Skip to main content
Participant
December 6, 2014
Answered

Urgent Need of Help Playing Movie Clips

  • December 6, 2014
  • 2 replies
  • 452 views

I'm a complete noob when it comes to AS. I know basic things like stop(); and gotoAndPlay.

Here's my dilemma.

Dearest Professor has given us a task of creating a website in Flash. You need to have 15 links, or 15 pages. He states that you can only go frame by frame on the main timeline with no tweening spaces in between. So I'm virtually creating all of my animations in symbols.

This isnt such a problem... I created a short introduction title video in Flash using a Movie Clip Symbol... placed it on the main timeline on the first page, and then called ActionScript to play the video.

Here's the problem... So.... the movie will play, but it will continuously loop... I've tried putting stop(); on the home page, under the AS... I'm just completely lost on how to get this to play the short clip and go straight to the home page... Could someone PLEASE, direct me on how to do this and give me an explanation as to why this way is the way it is... I would very much like to understand how it works.

Thanks

The Flash Noob

This topic has been closed for replies.
Correct answer robdillon

Inside that opening movieClip change:

stop();

this(parent).play();

to:

stop();

MovieClip(parent).play();

2 replies

robdillon
Participating Frequently
December 7, 2014

This is one case where you don't want to use the actual name of the movieClip. Use "movieClip(parent).play();" or possibly, "this(parent).play();".

Participant
December 7, 2014

When I use movieClip(parent).play(); the whole site just speed loops over and over with no stop.

When I use this(parent).play(); I get this error:

TypeError: Error #1006: value is not a function.

  at dogwoodopening/frame9()[dogwoodopening::frame9:3]

I definitely know I'm going somewhere wrong here... So to make it easier on the both of us I decided to upload this to Google Drive so you can have a better look at where I may be going wrong.

Sorry I'm not getting this bit.

Anyone with link can edit.

Flash Troubleshoot

robdillon
robdillonCorrect answer
Participating Frequently
December 7, 2014

Inside that opening movieClip change:

stop();

this(parent).play();

to:

stop();

MovieClip(parent).play();

Participant
December 6, 2014

Some images to illustrate my dilemma if im just confusing people. @_@

robdillon
Participating Frequently
December 6, 2014

If you have a movieClip on any given frame and you want to play that movieClip, you will need to stop the main timeline on that frame until the movieClip has finished. So you need to put a stop(); directive on the main timeline. Then, to get your movieClip to only play once, you'll need to place a stop(); directive on the last frame of the movieClip that you have in that frame. To get the main timeline to play again you'll have to tell it start playing again. You can do that from the movieClip that you just told to stop. You can do that with MovieClip(parent).play(); or you can do it from the main timeline by monitoring the playback of the movieClip.

Participant
December 7, 2014

Thanks Rob!

I did what you suggested but I think I may have messed it up...

Here's the output error I have going on right now.

TypeError: Error #1034: Type Coercion failed: cannot convert flash_website_template2_fla::MainTimeline@7fff0d7aea1 to openingtodogwood.

  at openingtodogwood/frame9()[openingtodogwood::frame9:3]

In the end of the timeline of the movie clip I put this:

stop();

openingtodogwood(parent).play();

I think that might be wrong but I'm unsure on what I should have really put. I was also reading that having the name of the movie clip the same as the class in the properties panels is not a good idea?

Thank you so much for your help!