flv, as3 flash help.
- Started
- Last post
- 15 Responses
- Schmeddy
Trying to loop my .swf file from my .fla but i can't find anywhere to do this. I also need a simple link..ugh! Anyone help!
- airey0
wtf?
i'm here to help but i have no idea what you're asking nor what the sentence of your means. my apologies, english is my first language so i struggle sometimes...
reword and i'll help you out.
- kult0
You have a published SWF, that you're loading into another flash file, and you want it to loop?
...Either edit the original SWF with a gotoAndPlay(1) on its last frame, or add an event listener on your loaded movieclip object that brings it back to Frame 1 when it hits the end.
- ********0
i think he is talking about FLV not SWF. he wants to loop the FLV video to loop. and trying to do this via AS3 with in the FLV. which i believe is not possible?
thats my guess
- kult0
Of course you can loop an FLV :)
Create an event listener on your NetStream object, listening for NetStatusEvent.NET_STATUS. Have it point to a function like this:
function nsEvent(stats:NetStatusEvent) {
if(stats.info.code == "NetStream.Play.Stop") {
ns.seek(0);
}
}
- kult0
The status event listener is definitely the cleanest and easiest option available for this, if you're dynamically loading in an FLV
- funkage0
Or you could use the FLVPlayback class:
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Voi... {
my_FLVPlybk.play();
};
my_FLVPlybk.addEventListener("co... listenerObject);
- funkage0
* my_FLVPlybk.addEventListener("co... listenerObject);
- airey0
holy crap. this whole discussion has gone on to solve a problem that may not actually be what was asked. MrDinky said it might be FLV but Schmeddy hasn't even replied. gold.
- nonerpants0
yes but the topic title says .flv and i'm assuming he/she could easily find info on looping an .swf! i'm guessing .swf was a typo . . .
- BettyBotox0
Maybe this person Schmeddy is running a social experiment. He/she comes up with an impossibly ambiguous requirement and sees who will try and solve it...
The winner gets a job at Google.
- airey0
or the thread is to weed out psycho anti-socials that continue both sides of conversations on their own. a small group of special-forces social workers appear at the door in the middle of the night of anyone who seems like they fit the bill. after 6 weeks of electro-therapy they are delivered back into the community at large.
- Schmeddy0
whoa....thanks...sorry for the bad late response. Internet was down. Those are good ideas. I guess my problem is in my .fla file i want to create a link to another site and have the .flv loop. Sorry im a noob at flash. Thanks again.
