FLASH - GoTo Q

  • Started
  • Last post
  • 3 Responses
  • Meeklo

    Ok, Please don't laugh, I'm really not a programmer, so bare with me.

    I'm working on a site, that loads external MC, on every page.

    I have a section called "Nightlfe" (the section that loads there is "2_nightlife.swf" )

    I would like that when the user clicks on NIGHTLIFE, first you go to another frame on the main timeline "called NIGHTLIFE" then on that frame I will load the external movie clip, for some reason I can't get it to work, I would appreciate a little help.

    If helps, here is the code that I have on the Nightlife Button.

    on (rollOver) {
    //Play the start of the zoom animation
    this.square_mc.gotoAndPlay("zoom...
    //Add 10 to the root variable archiveOrder
    _root.archiveOrder+=10;
    //Set the depth of the child movie to the new archiveOrder variable to appear on top
    this.swapDepths(_root.archiveOrd...
    }
    on (rollOut) {
    //Play the end of the zoom animation
    this.square_mc.gotoAndPlay("zoom...
    }

    on (release) {
    //load Movie Behavior
    if(this._parent.calendar_holder... ;
    loadMovieNum("swf/2_nightlife.sw...
    this._parent.calendar_holder.loa...

    }
    //End Behavior

  • Meeklo0

    I'm trying this now:

    on (rollOver) {
    //Play the start of the zoom animation
    this.square_mc.gotoAndPlay("zoom...
    //Add 10 to the root variable archiveOrder
    _root.archiveOrder+=10;
    //Set the depth of the child movie to the new archiveOrder variable to appear on top
    this.swapDepths(_root.archiveOrd...
    }
    on (rollOut) {
    //Play the end of the zoom animation
    this.square_mc.gotoAndPlay("zoom...
    }
    on (press) {
    this._parent.calendar_holder.got...
    }

  • Meeklo0

    no one?

    :(

  • chrisRG0

    hi meeklo...

    clean that on(Press){} part of your button and try put this there:
    "this is assuming you have a frame label called "Nightlife" on your main movie, right?

    on (release) { _root.gotoAndStop("Nightlife");
    }

    and put this line on your frame "Nightlife"

    loadMovie("external.swf", _root.getNextHighestDepth());

    hope it helps!