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

The COMPLETE error

New Here ,
May 03, 2015 May 03, 2015

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

TOPICS
ActionScript

Views

1.0K

Translate

Translate

Report

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

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Wrong!

It didnt work.

It give me an error

1150:

Votes

Translate

Translate

Report

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

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.

Votes

Translate

Translate

Report

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

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

sorry it didn't work

Votes

Translate

Translate

Report

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

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

His coding is so stupid.

Is there another way?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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