A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: help with button with links inside it

  1. #1
    Junior Member
    Join Date
    Jan 2003
    Posts
    17

    help with button with links inside it

    HI!

    I am trying to make a button that's a movie with dynamic text links inside it . the movie(its simple scale tween) plays fine.it's just the links don't work, i have the text box set to html and set the links in the prop. panel.

    on the movie I have:

    on (rollOver) {
    this.gotoAndPlay(2);
    }
    on (releaseOutside, rollOut) {
    gotoAndPlay(11);
    }


    in the movie i have a layer of dynamic text links on frame 10.

    attached is how i am doing it, i know there is a better way of scripting it out. with my limited knowage of scripting i just can't figure it out.

    thank you in advance.
    Attached Files Attached Files

  2. #2
    Junior Member
    Join Date
    Jan 2003
    Posts
    17
    HI!

    i am so stuck on why the links won't work..please can someone point me in the right direction on how to solve this.

    thank you in advance.

  3. #3
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Get an "Unexpected file format" error when opening your .fla.

    Can you try attaching it again?

  4. #4
    Junior Member
    Join Date
    Jan 2003
    Posts
    17
    here it is .zipped...
    thank you

    Attached Files Attached Files

  5. #5
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Your on rollOver call is simply keeping the "underlying" links from being clickable. If you remove your button movie's on calls and go directly to frame 10, every link works fine.

    Solution? I'd have to think about it!

  6. #6
    Junior Member
    Join Date
    Jan 2003
    Posts
    17
    i think this button is going to drive me crazy


    i have tried: an invisible button to control the movie, some components, hittest and am looking in to swapDepths. I did find a script to play the movie backwards on rollout.

    which i found here:

    http://www.flashkit.com/board/showth...hreadid=420835


    so i have on:
    layer 1 the links (which i defined in the text prop panel)
    layer 2 (10 frames long) the tween to make the box larger
    layer 3 the empty MC (containing the AS for the rollout)
    stop actions on frames 1 and 10

    i understand that the movies on calls are making the links non clickable. is there a way around that? i guess its like a button in a button.

    any help is mucho appreciated.

  7. #7
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Use movieclips as buttons and put the textfield inside the movieclip on the button, name everything and control from the main timeline:
    myButton.onRollOver=function(){
    myButton.myMovie.gotoAndPlay(2);
    myButton.textField.text="text here";
    myButton.textField.textColor=0xFF0000;
    }

    and so on.
    - The right of the People to create Flash movies shall not be infringed. -

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