PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197

PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197

PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197

PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197

PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197

PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
AS 2 [RESOLVED] gotoAndPlay with attachMovie
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [RESOLVED] gotoAndPlay with attachMovie

  1. #1
    Member
    Join Date
    Sep 2009
    Posts
    57

    resolved [RESOLVED] gotoAndPlay with attachMovie

    Here are is my movie I want to toggle. The second movie clip is called within the first movie clip. That is
    Actionscript Code:
    this.attachMovie("BubbleMC","popBBL",this.getNextHighestDepth());
    is being called within the clip
    Actionscript Code:
    this.attachMovie("TwitterWidget", "twitterMC", this.getNextHighestDepth());
    . Here are the clips I am trying to toggle gotoAndPlay.

    Code:
    bubble_mc.base_mc.gotoAndPlay("Black");
    bubble_mc.arrow_mc.gotoAndPlay("Black");
    Code:
    bubble_mc.base_mc
    and
    Code:
    bubble_mc.arrow_mc
    are in the clip
    Actionscript Code:
    this.attachMovie("BubbleMC","popBBL",this.getNextHighestDepth());

    Keep in mind that
    Actionscript Code:
    this.attachMovie("TwitterWidget", "twitterMC", this.getNextHighestDepth());
    comes before
    Actionscript Code:
    this.attachMovie("BubbleMC","popBBL",this.getNextHighestDepth());
    .

    Here is the way I have placed the codes, but this does not seem to work. Please HELP.

    Code:
    twitterMC.popBBL.bubble_mc.base_mc.gotoAndPlay("Black");
    twitterMC.popBBL.bubble_mc.arrow_mc.gotoAndPlay("Black");

  2. #2
    Senior Member
    Join Date
    Nov 2004
    Posts
    928
    good grief.
    how about posting the fla or at least the code in one cohesive piece (but preferably the fla) and explain what you mean by toggle and what you are hoping to achieve.

  3. #3
    Member
    Join Date
    Sep 2009
    Posts
    57
    thank you but I already figured it out =). I do have another problem. It involves getting or setting a previous volume. here is the code

    Actionscript Code:
    function mutevolume()
    {
        if (controlpanel.lft.mute._currentframe == 1) {
            this.prevvolume = volume;
            var _loc1 = controlpanel.lft.volumecnt.scr._x;
            var _loc2 = new mx.transitions.Tween(controlpanel.lft.volumecnt.scr, "_x", mx.transitions.easing.Strong.easeOut, _loc1, 0, 1, true);
            volume = 0;
            audio.setVolume(0);
            controlpanel.lft.mute.gotoAndStop(2);
        } else if (controlpanel.lft.mute._currentframe == 2){
            volume = this.prevvolume;
            var _loc1 = controlpanel.lft.volumecnt.scr._x;
            var _loc2 = new mx.transitions.Tween(controlpanel.lft.volumecnt.scr, "_x", mx.transitions.easing.Strong.easeOut, _loc1, volume / 2, 1, true);
            audio.setVolume(volume);
            controlpanel.lft.mute.gotoAndStop(1);
        } // end else if
    } // End of the function
    If you could help I would really appreciate it. THANK YOU!!

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