ActionScript 2.0 :: Flash Mx Loading Large Mp3 In Segments?
Oct 23, 2009
I have an Mp3 which is approx 100mb on my server how can i load only small segments at a time so that when people listen to the mp3 it not downloading the full 100mb mp3 file all the time
i am using streaming mode, here some of my code i am using the loadsound command
[Code]...
View 0 Replies
Similar Posts:
Oct 9, 2008
I have a site that is image heavy and right now I have it so everything loads at once with a preloader and once it is all loaded the the site starts. I know I can load images through XML but i never liked doing that since the images seem to load at different rates.
Is it possible to only have certain parts load? Say I want only the homepage content to load when a user hits the site. But if they go to another area then another preloader would show up and that would load.The one thought I had was to have different swfs for different segments, but I wonder how that would mess up the flow of the site.
View 0 Replies
Apr 2, 2011
There is a simple html page with intro video (.mp4 file). Video frame size is 1280*1024 (I need video to be as large as page up to 1280 px).
With such quality settings video file size is:
.mp4 = 42 mb (HD 1690*1080)
.flv = 32 mb (1280*1024, 25 fps)
For video playing I used as3 sample script (because there must be only playpause, replay, mute buttons with custom styles), like that
var strSource:String = "video.flv";
// create a new net connection, add event listener and connect
// to null because we don't have a media server
[Code]....
The problem is that I can't find a way to play it smoothly. It's loading in very annoying way, video is interrupted after each few seconds of playing.
I understand that the main problem is large video file size and hd quality, but may be there is some way to largely decrease .flv size or handle playback in more friendly way?
View 2 Replies
Sep 16, 2011
I'm trying to load a local file using FileReference load(). It will load small files just fine, but when I try to load a file of around 4-80 megabytes the flash player will crash. I read the load method officially supports up to 100 megabytes.
Here is the exact class I'm using to test:
ActionScript Code:
import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.events.ProgressEvent;
import flash.net.FileReference;
import flash.net.FileFilter
[Code] .....
View 1 Replies
Dec 20, 2005
I am in the planning stage of an application. In fact, the application already exists but I am thinking about how to improve it. It's a sports event commentary viewer- it allows the user to view live commentary on soccer games, written by news scouters during the process of the game. Right now, it's all one big file, reading 7 different XML files on the fly, evaluating and processing them and displaying the data on screen.
It works well enough like this but now the whole thing is supposed to be expanded with live news feeds and a videoclip gallery, etc... and even though it would be possible to just keep expanding the file, I thought it would be cool to instead make several segments and put them in an HTML frameset. Now the question is: Is it even possible to pass values from one flash file that is running in one frame- to another one, running in another frame? Of course I will know the framename- so could use getURL with the framename as a target... but that would fully reload that frame and "cold-restart" the swf in that frame- I don't want that.
[Code]...
View 10 Replies
May 5, 2009
I have a large ON2 VP6 encoded FLV video (334 MB, 75 minutes) hosted on the web and being played back using a basic Flash movie player:
[URL]
Many people are having problems getting the entire video to load. The loading progress bar will increase quite quickly at first, but then it will either slow down to a crawl or will stop completely. If the progress bar stops increasing before the video has fully loaded, it will not continue no matter how long you wait. Reloading the page does help.
Is this likely to be a problem with the FLV file, the Flash player or is it more likely to be a problem with our web host?
View 6 Replies
Apr 28, 2011
Loading takes too long time. Maybe there are some workarounds to make it load at least a bit faster. There is a way of creating static XML - it means splitting existing database records in one, and new records - to dynamic XML (so it's not requesting all Mysql rows in every single page request), but I'm not sure if it's going to make it load fasterWhen loading XML some browsers stop at apprx. 70% and does nothing. (can't figure this one out)
View 6 Replies
Aug 31, 2010
I have this code which works fine when selecting a small number of images.
public var fileReferenceList:FileReferenceList;
public function browseFiles(event:Event = null):void
{
[Code]....
However, when selecting a large number of images (1000+), the fileList isn't initialized yet when the SELECT event is dispatched. Is there a way to wait for the fileList to be initialized?
View 1 Replies
Aug 20, 2010
I have made an application which loads large pictures and videos (1920*1080 px).
- Picture component is a swf movie that I load with a Loader and feed him with the path of the picture I need
- Video component is a custom actionscript class that uses Video class.
Before to create any of these components, I display an animated sprite (a wheel to suggest a current loading). Then I create this component and load the content. When the content is loaded, then I add it to the display list and remove the wheel sprite.As these actions take a while, the wheel is visible for 1 to 2 seconds. My problem is that during this loading operation (by a Loader or Instantiation), the animated Sprite is not running properly and smoothly, like if Flash was loading the pictures and videos synchronously.Is there a way to make an animated sprite running properly while I am loading a swf or loading a video through the instantiation of a class, means running something asynchronously?
View 2 Replies
Oct 2, 2010
I'm having a problem loading a 3900 x 5300 PNG file into a movie clip. Is there a limit to the image dimension? When I tried loading smaller png files, it works.
View 1 Replies
Oct 15, 2008
I'm building a flash based site for my photography in Flash CS3 with actionscript 2. The swf is almost 700kb so I guess I'll need a preloader right? I thought I could create a preloader scene before the main content scene and apply the following code to the single frame within the preloader:
Code:
ifFrameLoaded ("website", 3){
gotoAndPlay ("website", 1);
}
This doesn't seem to work as the large images in my gallery (contained within a movie clip) won't load unless you leave the gallery page then go back in?
View 3 Replies
Oct 2, 2009
[URL]. How is this video compressed? it loads so quickly and is large. Is it streaming?
View 4 Replies
Jun 30, 2010
I am loading the swf of this scroll bar into my main project using a button. How do I make a large version of the thumbnail load above the scroll bar?
Here is the code that is on the main timeline:
//Import TweenMaximport com.greensock.*;
//Save the horizontal centervar centerX:Number = stage.stageWidth / 2;
//Save the width of the whole galleryvar galleryWidth:Number = infiniteGallery.width;
//Speed of the movement (calculated by the mouse position in the moveGallery() function)var speed:Number = 0;
[Code] .....
View 1 Replies
Sep 28, 2011
loading large images(12000x6000). there are a number of interesting workarounds, but all a a bit clunky.
this is for a local application - not internet.
View 4 Replies
Aug 7, 2009
At the moment, I am loading an external SWF file into my movie. The swf file contains a large FLV video... At the moment, I am using the code below, and the video is being loaded into a movie clip with the label "vid1"
_root.vid1.loadMovie("womanonbike4.swf");
The video loads fine. However, because it is such a large video, there is a delay. Can I PRELOAD the video during the main movie's Preloader?
So, my main movie starts, a preloader loads the entire main movie AND the external SWF file (womanonbike4.swf). Then, when the movie gets to the part of the main movie, where the external file is loaded, it will just play!
View 0 Replies
Dec 12, 2007
What is the best way to work large amounts of external data in Flash? XML, remoting,something else??I'm looking into a project that has a lot and I'm not sure what the best way to handle it would be
View 1 Replies
Aug 7, 2010
I need to load a dictionary into a game I'm making. It resides in a very large (on the order of 2.81 MB) XML file. While trying to load it, I get an error stating that the script has run for more than 15 seconds. Is there any way I can change the default timeout to allow the file to load?
View 5 Replies
Jul 28, 2009
I have recently "inherited" several websites that feature 1 to 10 minute video animations in SWF formatOne of my challenges is to get these files to appear or play in a timely manner so that the viewer does not loss interest as it is loading. My questions will start with file size.reduce or minimize the size of published SWF files while still maintaining high quality video output? Second, how about this business of preloading.I don't really understand that term but my thinking is that if a large movie could be loading while another, shorter, movie is playing, or a graphic displaying, that this could be useful in my case. Lastly, how about streaming in general. Are there ways to optimally use a given download speed to efficiently stream SWF video?
View 5 Replies
Feb 6, 2009
I have a photo gallery that is XML based. In IE everything works fine. In Firefox, the gallery will load all the thumbnails and then hang up when loading the large image. The trouble is this only happens on the galleries that have a lot of images in them. It works fine with smaller galleries. Since it's xml driven, the images are not loaded until called for and all the thumbnails get loaded. I did see a post about a var being collected for garbage if it's defined inside a function, but I've tried to limit that to just declaring a new image to be displayed. My site is: [URL]. If for some reason you get a page saying that this site is under construction, click the link to the gallery again. I don't know why that keeps bringing up an old page.
View 2 Replies
Jan 24, 2009
What is the equivalent of the following program in AS 2.0?
In other words, how can I trace segments = a line between 2 points defined with their coordinates (x1,y1) and (x2,y2) ?[code]...
View 2 Replies
Jun 6, 2011
I have absolutely no knowledge in Regex whatsoever. Basically what I'm trying to do is have an error class that I can use to call errors (obviously) which looks like this:
package avian.framework.errors
{
public class AvError extends Object
{
[Code].....
The idea is to replace {0} with the first parameter parsed in ...params, {1} with the second, etc.
I've done a bit of research and I think I've worked out that I need to search using this pattern:
var pattern:RegExp = /{d}/;
View 3 Replies
Sep 25, 2011
I have a movieclip that shows the waterlevel rising in a glass. Frame 0 is named "empty", frame 20 is named "1/3", frame 40 is named "2/3" and frame 60 (the last frame) is named "full". Each of these keyframes contains the actionscript stop();
I have a variable in my main timeline, that contains a number ranging from 1-4. Depending on that number I want the glass to fill. e.g. var howFull:uint = 3 ---> the movieclip should playback from frame 0 to frame 20 AND THEN to frame 40. I've tried using nested if statements to make the mc segments play in the right order:
[Code]...
View 3 Replies
Oct 17, 2005
I have a MC named "preloader". Inside this MC got 10 frames and each of it represents a pencil. Frame 1 had 1 pencil, frame 2 had 2 pencils... and so on until frame 10(10 pencils ofcoz)After that I adding 3 frames on my root. Frame 1 is Actionscript as follow:
Code:
totalBytes = Math.round(getBytesTotal()/1024);
loadedBytes = Math.round(getBytesLoaded()/1024);
[code]......
View 4 Replies
Nov 2, 2009
I'm trying to improve upon the hitTest() function.I have a game in development that involves square robots, rectangular wall shapes, and line segment shots rotating and moving around. Without the rotation, hitTest works fine, but with rotation, problems arise.Walls at rotation 0,and square robots work fine. There is a small amount of funkyness with a rotated robot by a wall corner, but it's not very noticable.The big issue is collision of two rotated square robots.
I can create a function to get the line segments that make up each robot, and the check to see if any intersect. This will mean finding the location of eight points (using height and width and some trig to deal with rotation), finding the slope of eight lines, and then testing lines for intersection up to 16 times. This would be needed to find the intersection of each pair of robots. Those are worst case numbers, some colisions can be detected or ruled out before getting that far in the algorithm, but this check would need to be run every frame against all robots and walls and shots (shots could be a single line segment, though)Right now I'm talking about 8 robots max, maybe 6-20 walls, maybe 5-80 shots on screen @ 30 frames a second.
This is easy enough to create, but before I spend a day coding it all, I'm wondering if the computation requirements are going to make it prohibitive.(If so, I'll probably have to switch to circular robots).I feel like there should be a simple formula to find if two rectangles on a cartesian plane intersect, but I can't find one.
View 3 Replies
Feb 14, 2010
Closed path made with pen tool in Flash MX comprises of line segments & curved segments both.While adding anchor points on segments it is noticed that pen tool adds anchor points on curvaceous segments but not on line segments. Why is it so ? Is their any way to accomlish this task ?
View 5 Replies
Oct 28, 2011
I have a really basic question using the pen tool in Flash. Is there a minimum amount of segments (or something that I'm not doing) that need to be drawn in order to close a polygon shape created with the pen tool. I've found in many instances I seem to be closing the polygon and yet when I go to fill the object it won't fill. I then discover that the beginning and end points are not "joined" together (as in Illustrator).
View 4 Replies
Mar 13, 2012
I'd like to be able to manually extract the HDS fragments and segments from a .f4f file. I have the .f4m and .f4x as well. Once extracted, I'd like to be able to host the fragments and segments on a standard origin (web) server such as Amazon S3. Is there any way to do this? If not, does Adobe have any plans on releasing such a tool?
View 1 Replies
Mar 19, 2010
I'm doing some line charts in my Flex application, and I need to draw segments of those line chart in different color. Does anyone have an idea how this could be achieved? For instance, if I have a code like this (actually, I have given this trivial example for simplicity (the problem is the same)):
[Code]...
View 1 Replies
Jan 13, 2009
I am looking for a way to split a loaded mp3 Sound into small segments. I have googled around but cannot find anyth on the matter. I am begining to think it is impossible. My approach was to load the mp3, then use the extract function to extract all the bytes. now for every small section when the user wants to play it it is filled using SampleDataevent with some values from the array. At first i tried to do my idea by loading an mp3 into a bytes array then writing it to a new file and playing that file but it does not work:
Code:
var snd:Sound = new Sound();
snd.addEventListener("complete",loaded);
snd.load(new URLRequest("Burn.mp3"));
[Code]....
View 0 Replies
Nov 19, 2009
I ran into a problem when attempting to draw long line segments - some lines will be poorly scaled and appear very thick. I ran into this issue when building a Google Maps Flex application and thought the problem resided there, but I then tested with a basic Flex application and duplicated the problem.
Here it is:
Code:
var _lineSprite:Sprite = new Sprite();
Application.application.rawChildren.addChild(_lineSprite);
_lineSprite.graphics.lineStyle(
6, // thickness
0xFF0000, //color
1.0, //opacity
true, //pixel hinting
LineScaleMode.NONE);
_lineSprite.graphics.moveTo(-70000,-20000);
_lineSprite.graphics.lineTo(400, 400);
The code above will draw a line segment that is much thicker than the desired 6 pixels. The problem can be seen here: [URL]. Once the page loads, click the "Show Custom Polyline" button, then the "Zoom to Problem Coordinates" button and you should see two line segments - one very thick and one thin. They should both be the same width as the thin line. Strangely, in the code sample I posted above, if the starting coordinates for the line are changed from -70000, -20000 to -70000, 20000 or to -140000, -40000 the line draws correctly. I'm using Flash Player 10.
View 0 Replies