A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Canceling an action for a button on rollout

Threaded View

  1. #1
    Junior Member
    Join Date
    Oct 2008
    Posts
    11

    Canceling an action for a button on rollout

    Ok, im self taught flash so forgive me if im not quite using the lingo, im sure ill be taught how to be hip and down with it soon enough. Anyway, my issue is that i have a basic button, with the following script

    PHP Code:
    btn1.onRollOver = function () {
        
    this.gotoAndPlay(2);
    }
    btn1.onRollOut = function () {
        
    this.gotoAndPlay (12)
    }
    btn1.onReleaseOutside = function () {
        
    this.gotoAndPlay (6)
    }
    btn1.onPress = function () {
        
    _root.gotoAndStop (1)

    which all works fine, its just when you skip over the button, it doesn't compleate the OnRollOut function. Now I think this is because it is still trying to compleate the OnRollOver function. Is there any way to get round this or would i be better using a frame reversal technique instead?

    if you want a sample i can provide

    oh yeah, im in flash 8 professional
    Last edited by Night Hawk; 10-24-2008 at 02:31 PM.

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