ActionScript 3.0 :: Loop On Progressive Loaded Movie?
Nov 16, 2009
I got help for a a week ago to do a loop on progressive loaded movies, but nov I got a problem it only loops on keyframe one and not on keyframe 2. Do anyone know how I can sort that out..?
I have the following on keyframe 1, where everything is perfect:
[Code]...
View 3 Replies
Similar Posts:
Nov 8, 2009
I made some moveis, i need to have on my homepage, have eveything loaded, just can't find a way to have it going on a loop.
[Code]...
View 15 Replies
Nov 18, 2009
Developing a flash resource which runs FLV files from within it as pro
gressive. It works ok on my local testing computer/network server. But when I put it online it does not play.I opened up the components panel for each FLV and noticed they were absolutely linked to my network drive (obviously when online this linking will now work). So i changed all the linking to be relative and some warning windows did come up and say i was breaking the link but i ignored them because i don't care about how it runs locally...i want this resource to work online!line.something that it might also be is I am uploading this resource to an LMS called Janisons (perhaps they are not FLV through flash playback - friendly).
Is there any particular path of troubleshooting I could go along? Because I have just about tried everything i know!UPDATE: I changed back one of the FLVs parameters to link to local drive in the component parameters - and as expected, it runs fine locally but when previewd in chrome (which might i add has some great debugging features that you could only dream of finding in IE) i get the following message:
SecurityError: Error #2148: SWF file http://my.tafe.qld.gov.au/GLC/GLC_Food_Hospitality/GLC_SITHFAB009A_TQC_A/Scenario/barMenu.swf cannot access local resource G:Resource DevelopmentRD2009-2010ITG
[code]......
View 1 Replies
Jan 16, 2004
I don't know why, but my sound dosn't loop, even though I set it to loop, here is the complete code: This is on my 1st frame:
[AS]
bg_music = new Sound(_root);
bg_music.loadSound("music.mp3", true);
bg_music.stop();
[/AS]
This is on my sound controller clip, shows the progress of the music playing and stuff:
[AS]
onClipEvent (enterFrame) {
var musicloaded = _root.bg_music.getBytesLoaded();
var musictotal = _root.bg_music.getBytesTotal();
var lprogress = Math.round((musicloaded / musictotal) * 100);
var musicttime = _root.bg_music.duration;
[Code] .....
I tried with "loop" too, but the sound just plays once.
View 1 Replies
Sep 3, 2004
I am trying to make a quiz work online. At the moment pupils can start playing before all the questions are loaded and it mucks it up. I tried putting a 'loading question' frame in. In this I put a movie clip with only made a continue button appear after 30 seconds. But this is not practical as all servers take a different time to load. I know I need to put in a loop but am having problems and would be grateful for help.
I have the questions saved as 15 notepad files in a folder. The folder is named Women. When they choose this topic they press a button with this code.
[Code]...
View 3 Replies
Nov 3, 2005
Ok, I've used this syntax to load an external mp3 into my movie
mySoundObject=new Sound();
mySoundObject.setVolume(100);
mySoundObject.loadSound("podloga.mp3",true)
[code]......
View 4 Replies
Jan 16, 2004
I don't know why, but my sound dosn't loop, even though I set it to loop, here is the complete [code]...
View 1 Replies
Oct 25, 2010
I'm using Flash CS5, AS3 to create an .swf that imports an .f4v or .flv that was encoded with Adobe Media Encoder.When I use .flv the video begins playing immediately and downloads progressively. When I use .f4v the video has to download completetly before playing. Considering all things are equal except for encoding the video as either .flv or f4v, what step am I missing that is preventing the .f4v from downloading progressively?
View 1 Replies
May 24, 2009
Just trying to load and display a progressive JPEG with AS3. At this stage I do know how to load and display the jpg after it is loaded but I can't figure out how to display it progressively (ie: get something on the screen even before it is fully loaded).
View 3 Replies
May 5, 2009
is this a "valid" method to check if the current image is loaded before going to the next loop/image?
[Code].....
View 7 Replies
Jan 16, 2009
I was trying to set up a loop which checks to see if all files are available from an array before loading them in. I have got it working to a point where it traces out file is loaded or not but I cant seem to trace out which actual file name is missing eg. myfile1.swf is missing.
[Code]...
View 0 Replies
Jan 14, 2010
So this is loading images by looping through a xml file and displaying them on the stage... The images load fine only they're way too big. Problem is when I add .width to myLoader the images disappear all together.
ActionScript Code:
var xml:XML;
var xmlList:XMLList;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(new URLRequest("data.xml"));
var myLoader:Loader = new Loader;
[Code] .....
View 2 Replies
Mar 22, 2010
I am running a for loop to bring in movie clips from an array, and I have a couple buttons that I want to affect the properties of all of the mcs. The buttons (labelsOff_btn, labelsOn_btn, increaseSize_btn, decreaseSize_btn) are only affecting the second-to-last item on the list, although the drag functions targeting the same mcs (thIcon) are working for everything. Code is pasted below:
[Code]...
View 0 Replies
Oct 19, 2009
I have a loop within a loop as you can see below. I am trying to trace the images so that each one comes up:
video0
video1
video2
video3 (etc. - there are a total of 9 images indicating videos).
But the way that I have it tracing right now does not bring up the names as I want them. You will probably be able to see why after looking at the code below.
Here is my loop:
[AS]
for (var i=0; i<rows; i++) {
for (var j=0; j<columns; j++) {
imageHolder = new MovieClip;
imageHolder.x = leftMargin + j * imageWidth * marginX;
imageHolder.y = 290 + i * imageHeight * marginY;
[Code] .....
I tried different ways of doing it such as putting a trace in the second loop.
View 4 Replies
Apr 20, 2009
I'm trying to have a preloader animate according to how much of the external swf has already downloaded on the user's computer. However, several errors like :
1046: Type was not found or was not a compile-time constant: MovieClipLoader.
View 1 Replies
Jan 21, 2010
simple solution to a simple problem. I've made myself a little flv player, using the progressive download method.
However, it only starts playing once the whole flv has been downloaded. Now the adobe docs quote:
While using an ActionScript 3 file, the video begins playing only when enough of it has downloaded so that it can play the FLV file from start to finish. This behavior can be altered using ActionScript. However, I can not find this code anywhere. bufferTime does not work (as it is downloading, not streaming).
View 1 Replies
Jun 18, 2009
I'm trying to decide whether, for my particular application, I would be better off delivering video via streaming or progressive download. Here's the situation: Background: this will be a learning drill for learning foreign language phrases. There will be a series of ten short video clips, each one a headshot of a native speaker, saying a single sentence. The background is static so the only thing changing will be facial expressions, so compression should be pretty effective. Each clip will be approximately 4-6 seconds total length. Resolution will be approximately 360 X 270.
The way this particular drill works makes me wonder if perhaps progressive downloading might make more sense than streaming. But like I said, I'm not a Flash developer, so I could easily be wrong. (Did I mention we're currently looking for a talented, reliable Flash developer?) So here's how it will work: Drill will load up showing written text of instructions, along with audio of the narrator reading the instructions aloud. Approximate length of the audio instructions will be 15 seconds. (I"m thinking progressive download could begin during the reading of the instructions.)
After the instructions have been read, the intructional text goes away and is replaced with (from top to bottom) the text for the first sentence, the video box with a static image of the first frame, a "Begin" button. When the user clicks the "Begin" button, the video begins to play, and the "Begin" button transforms into a "Repeat" button, which is inactive while the video plays. When the video ends, the "Repeat" button becomes active. Clicking the "Repeat Button" causes the same video clip to play a second time (again, the "Repeat" button is inactive while video plays.
View 1 Replies
Jan 20, 2011
Like the title states my Progressive download never plays. Before I waste your time and mine showing the methods used I rather start off simple.
Are there any reasons an flv might not be allowed to stream? I have followed the methods in every Progressive video tutorial I can find (about 7 so far) and they explain the exact same steps yet my flv never plays. I have also done it entirely with just action scripte and nothing. I get the player and my video list but never get the video. I have the Source set to the web directory of my flv in the parameters in the property inspector.
I have also tried to use this method with other types of video and it also never plays. The only thing that works is embedd it which is of course a terrible only choice.
View 7 Replies
Apr 1, 2012
how to pause the progressive doenload for video on demand (VOD) or .flv files.
View 3 Replies
Nov 17, 2009
I'm trying to understand and really pinpoint when to use progressive download vs. rtmp in flex/flash. It seems that the main point is that rtmp is not served with http, whereas progressive download is. Since it's not rtmp, the resource is protected since there is no way to connect to the rtmp server from outside the swf.
[Code]...
they would not be able to connect to rtmp. So rtmp seems to be more useful when you want to protect a resource? Is that all there is to it?
View 3 Replies
Jun 19, 2009
I have written my own flv player in Actionscript 3. You can view it in action here. It serves up sample videos. All of the videos are encoded at 700kbps (I know that is really high. I'm working on serving different bitrate versions) and they range from 8mb files up to 95mb. have had reports that sometimes the videos will stop playing, and the only way to get it to restart is to stop and restart (sometimes even refreshing the page). I have never had the problem on any of my computers. However, in talking with someone that does have the problem I have figured out that it is an issue with connection. The connection gets interrupted for some reason and it will stop downloading. BTW, everyone says that youtube, and other flv sites works just fine.
View 6 Replies
Apr 21, 2011
pausing the actual download of a progressively downloaded FLV/F4V or MP4 file?
Scenario: You have a playlist-style video player. You start downloading/playing a video file using the netStream class. Video finishes downloading (bytesLoaded == bytesTotal) and is playing fine. Custom class you have starts downloading other video files in your playlist. The need arrises to PAUSE the custom class's downloading of other video files (similar to pause buttons in downloads windows of web browsers).
View 2 Replies
May 26, 2008
I have a swf with just a jpg as the background and a simple animation. I simply want the swf to start playing and do a progressive download and continue to play.With the jpg it won't start playing until the jpg is finish downloading. Without it will start playing and downloading at the same time.I am using Event.INIT to know when the swf is loaded enough to play.
View 3 Replies
Mar 22, 2010
Ok I have this 30 minute FLV that is progressively downloaded. The app also has chapter points that the user can click. This was orginally being built for use on a CD rom, but now they want it on the web things are changing..ughhh..ion is to disabled all the chapter points until the FLV has loaded to that chapter point. How can I figure that out how much (in seconds) of the FLV has loaded?
View 1 Replies
Apr 23, 2012
I would like to make a dynamic field where the number to make a count of 0 to a number that will come from a variable.I am researching several hours and can not find.An example is the preloader, we have the percentage below the bar that has that type of field, plus the preloader I have is based on getBytesTotal (), and getBytesLoaded ();But in my case I'll just have a variable with the final value, and I want to show that the field from 0 to this value.
View 3 Replies
Feb 16, 2009
I'm using MovieClipLoader to load in external swfs so that I don't need to include a preloader on each one. I'm really unfamiliar with this technique, including how to use and implement listeners and follow the functionality after using it, I've just been playing with borowed code.basically i've been trying to use this code:
Code:
var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(this);
[code].....
View 4 Replies
May 5, 2010
I have created a SWF file with three main sections. Each section has at least one video that is viewed using the FLVPlayback component. In order to reduce bandwidth, and unnecessary processes in general, I want the videos only to load if the user is currently viewing that section.
The first part is simple enough only call the source method for the FLVPlayback until the video is needed. Great, works fine. However, problems arise in cancelling the download.
I have searched the Adobe documentation, and it seems almost impossible to stop a progressive download using FLVPlayback. (To be honest, I am using FLVPlayback simply so I don't have to build my own player. Its a whole other level of complexity that I simply do not want to get into unless ABSOLUTELY needed.)
The Adobe methods that actually stop streams (closeVideoPlayer(), etc.) render the FLVPlayback instance useless once called. I was looking for a way to stop a download AND be able to use the FLVPlayback instance again.
[URL]
To test it, I created a simple file (the AS is below) with only an FLVPlayback component and a button on the stage. The button is connected to a function that clears the video and then resets the FLVPlayback instance to play the file again.
Everything works (play, pause, volume, etc.) EXCEPT that after button has been clicked and the reset function has been called, clicking the component's stop button "breaks" the player. The seekbar displays its streaming mode and clicking on any other button inside the player does nothing. (I could not recreate the problem in the Flash IDE (imagine that!), but it persistently appears when testing in a browser.)
[Code]...
View 5 Replies
Apr 2, 2012
We have FMS interactive configured to do RTMP and HLS streaming. However the clips still can be downloaded through [URL]..Is there a way to disable progressive downloads? While at it is there a way to disable HDS also? I want to allow HLS and RTMP only.
View 7 Replies
Dec 17, 2010
I am using FLVPlayback Component in Flash AS3 to play an F4V video hosted on a different server. I want it to start playing as soon as possible, but the video won't start playing until the F4V is completely downloaded (I checked with Firebug). I tried fooling around with the component's bufferTime parameter, but it didn't seem to make a difference. For what it's worth, the SWF is being embedded in a Facebook profile using the FBML tag fb:swf, although I can't see how that would make a difference here.
View 1 Replies
May 17, 2011
I have been trying to use the example from xmoov.com to fetch only a part of video, as explained in the blog:URL...The code works fine for the video link they have, but when i change the link to a video file on my server, I get null object error for onMetaData( e:MetadataEvent ) function on the line "Alert.show(e.info.keyframes.filepositions.toString());" [code]
View 1 Replies