A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Need to get swf to load from another button

  1. #1
    Senior Member
    Join Date
    Dec 2004
    Posts
    459

    Need to get swf to load from another button

    Hello all,
    I am loading swfs into a movie clip. However, the contact button is not a loaded swf any longer. It's in the main flash page. This is what I want to do.
    All the buttons load the external swfs except when I click on the contact button that is in the main flash page. I need to get the other buttons to load after I click the contact flash button.
    Below is the code for the contact button and the one under for one of the other buttons.
    Thanks for any help you can send my way.

    Contact Button

    Actionscript Code:
    on (rollOver) {
        this.contactMC2.gotoAndPlay("start");

    }

    on (rollOut) {
        this.contactMC2.gotoAndPlay("goback");


    }

    on (press) {
        this.contactMC2.gotoAndPlay("press");



    }

    on (release) {
        _root.flash.intro.gotoAndPlay("contact form");


    }

    Loading SWF Button

    Actionscript Code:
    on (rollOver) {
        this.aboutmeMC2.gotoAndPlay("start");

    }

    on (rollOut) {
        this.aboutmeMC2.gotoAndPlay("goback");


    }

    on (press) {
        this.aboutmeMC2.gotoAndPlay("press");

    }

    on (release) {

        loadMovie("aboutme.swf", this._parent.blank_mc);

    }

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    huh?

    what the heck is it you want to do? LOL


    are the buttons "NEW" in these frame you are jumping to from the contact button?
    (_root.flash.intro.gotoAndPlay("contact form")

    meaning do they have the code ON them?

  3. #3
    Senior Member
    Join Date
    Dec 2004
    Posts
    459
    Hey,
    I am trying to get a button go to back down to a section in a time line on a parent MC so it will load an external swf again. It's not working. I guess I did not make myself clear.

  4. #4
    Senior Member
    Join Date
    Dec 2004
    Posts
    459
    I am narrowing it down a little.
    I have invisible buttons on a movie clip that is loading swfs onto a parent movie clip. I hope I am current in the terminology. Are a parent and root the same? Is saying root absolute and parent relative? I'm digressing.

    So, this this._parent.gotoAndPlay("contact form"); is going to the keyframe named "contact form" and it will stop there. What I want to happen, is, I want the other invisible button named aboutmeMC2 to go back to the keyframe named "skip" so my contact form will no longer show up and it will load the external swf.

    I hope that's clear.
    Thanks

    Actionscript Code:
    on (release) {

        this._parent.gotoAndPlay("contact form");
        aboutmeMC2._root.gotoAndPlay("skip");

    }

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