dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: AS2 HELP!!!! Button inside of MC...EASY ONE!!!

  1. #1
    Senior Member
    Join Date
    Jul 2002
    Posts
    134

    Unhappy AS2 HELP!!!! Button inside of MC...EASY ONE!!!

    I have a button inside of a movie clip that I want to control (define) from the main timeline to getURL.

    How do I access that button from the main timeline? I am using the same MC (button) multiple times through out the flash to get different results.

    I thought this would do it... no luck.

    HERE IS MY CODE...using AS2.

    mc_trigger.mc_media.onRelease = function(){
    getURL("http://wbtreview.sbctest.com/LMC-Test/MichelleStacko/TCP-Project/media/flash/FiveRules.swf", "_blank");
    trace("show trace if button is working");
    trace(this.mc_media);
    }


    thanks in advance.
    J

  2. #2
    An FKer
    Join Date
    Sep 2005
    Location
    Ontario
    Posts
    1,167
    Are you sure your movieclip has an instance name of mc_trigger and your button inside the movieclip has the instance name mc_media?

    If so, try: _root.mc_trigger.mc_media.onRelease = function(){

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