Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

how to make a button to load another movie in flash

Options
  • 07-05-2008 9:41pm
    #1
    Closed Accounts Posts: 401 ✭✭


    as Above ^^ Last query for today hopefully!!


Comments

  • Registered Users Posts: 8,070 ✭✭✭Placebo


    jaysus

    make a button, export for actionscript, give it an instance name

    actionscript 3
    instanceName.addEventListener(MouseEvent.CLICK, theMethod);
    
    function theMethod(event:MouseEvent):void
    {
    var request:URLRequest = new URLRequest("http://www.[yourdomain].com/externalSwf.swf");
    var loader:Loader = new Loader()
    loader.load(request);
    addChild(loader);
    
    }
    


  • Closed Accounts Posts: 401 ✭✭culabula88


    made button then did it with window -> behaviours after , thanks anyway


  • Registered Users Posts: 35,524 ✭✭✭✭Gordon


    Use the help manual with the Application :)


Advertisement