A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Button movie

  1. #1
    Senior Member
    Join Date
    May 2002
    Posts
    153

    Button movie

    quick question:

    if I make a button adn drop it inside a movie (so i can use various instances of it, using vars to load the button text) when the rollover effect stops once i click the button.

    i guess this is a behaviour of the movie but i'm not sure what i need to do to get around this...

    cheers
    Last edited by j0s3; 07-20-2007 at 11:25 AM.
    jose gonzalez

  2. #2
    rabid_Delineator AttackRabbit's Avatar
    Join Date
    Dec 2003
    Location
    Orlando, Florida
    Posts
    481
    try to just use a movieclip instead of type button. You can assign onRelease, onRollOut functions to movieclips with instance names. So you can have one generic btnMc , that has multiple instance names with different event handlers.


    btnOneMc.onRelease = function():Void{
    getURL(crap);

    }

    or

    btnOneMc.onRelease = mx.utils.Delegate.create(this,releaseFunc);

    function releaseFunc():Void{

    do something

    }

  3. #3
    Senior Member
    Join Date
    May 2002
    Posts
    153

    awesome

    thanks a lot! that's great to know
    jose gonzalez

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