Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

The COMPLETE error

New Here ,
May 03, 2015 May 03, 2015

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

TOPICS
ActionScript
1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 03, 2015 May 03, 2015

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!
  
}
}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 04, 2015 May 04, 2015

Wrong!

It didnt work.

It give me an error

1150:

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 04, 2015 May 04, 2015

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 04, 2015 May 04, 2015

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 04, 2015 May 04, 2015

sorry it didn't work

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 04, 2015 May 04, 2015

Is there a link [dropbox or whatnot] you can provide to the project files? I'll have a look at it for you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 04, 2015 May 04, 2015

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 04, 2015 May 04, 2015

His coding is so stupid.

Is there another way?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 05, 2015 May 05, 2015
LATEST

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:

Video - Adobe ActionScript® 3 (AS3 ) API Reference

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines