Copy link to clipboard
Copied
I want to make a video that does a loop. and use a button to stop.
Some idiot said use COMPLETE and I get this error :
intro, Layer 'action', Frame 1, Line 4 1119: Access of possibly undefined property COMPLETE through a reference with static type Class.
what actionscript can I use?
please and thank you
sign,
Tim
Copy link to clipboard
Copied
Are you using NetStream to play the video using pure AS3 or some component?
In AS3, you can monitor the stream status:
stream.addEventListener(NetStatusEvent.NET_STATUS, statusChanged);
protected function statusChanged(e:NetStatusEvent) {
if(e.info.code == 'NetStream.Play.Stop') {
//all done!
}
}
Copy link to clipboard
Copied
Wrong!
It didnt work.
It give me an error
1150:
Copy link to clipboard
Copied
I'm not sure how you are writing your code - in classes, on the Flash timeline, et cetera...
Removing the "protected" keyword should help if running this outside a formal class.
Copy link to clipboard
Copied
Sorry.
I just want the video to play and stop.
and go back to the beginning.
again. This guy had a CS4 .
I have CS6. He put the code in COMPLETE
flash doesn't recognize it.
his name is tutvid. he is wack
put in this code
video_mc.video_flv.addEventListener (videoEvent.COMPLETE, videoDonef)
and it didn't
Copy link to clipboard
Copied
sorry it didn't work
Copy link to clipboard
Copied
Is there a link [dropbox or whatnot] you can provide to the project files? I'll have a look at it for you.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
His coding is so stupid.
Is there another way?
Copy link to clipboard
Copied
I see - using the FLV Playback component in Flash Professional in this example.
You could look at using a NetStream coupled with a Video object. That is what I was demonstrating with the code I previously shared.
Reference: