A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: play movieclip from movieclip

  1. #1
    Junior Member
    Join Date
    Aug 2010
    Posts
    5

    Question play movieclip from movieclip

    I am trying to tell a movie clip nested within a movie clip to play a movie clip in a totally different part of my timeline. How do I do this?

    At the same time I need the target pic1 to iterate as the nested clip loops, for example pic2, then pic 3 each time it plays.

    This is in frame 30 of the nested movie clip:
    `var _i:int = 1;
    var varPlayer:String = "pic" + _i ;
    playMask(varPlayer);
    _i ++;`

    then in my actions layer frame 1 I have the function:
    `function playMask(theNum) {
    this[theNum].play();
    }`

    But my nested movie clip can't seem to call the main function.

    Is there a way to make this work? Appreciate the help, Thank you.

  2. #2
    Flashin'
    Join Date
    Aug 2010
    Location
    Somewhere
    Posts
    9
    Add the actions from movieclip2 in the first movieclip. (not in the maintitle)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center