Mailing List
Home
Forum Home
Flash Pro
Subjects
Subject: RE: Firework Effect
Web Service Results
Flash Interface with 10mb xml file
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash MX 2004 Sucks
Reading and displaying RSS feeds in Flash MX
Flash and QuickTime VR
Textfield prototype question
XML to Object help
Order of events per frame
MX2004 Dataset itemClassName
memory management removeMovieClip /
Event Dispatcher between classes
Help: MX 2004 How to script a print button to print the entire sli
ScrollPane component doesn 't auto update
setInterval bug identified and fixed
setInterval bug identified and fixed
Listener Object 's best practice
 
on (rollover) + on (release)

on (rollover) + on (release)

2004-03-04       - By Jesse Warden

 Back
Reply:     1     2     3     4     5     6     7  

You can also do (I think):

on(rollOver, release){
  trace('both');
}

-- --Original Message-- --
From: Andreas Weber [mailto:webweber@(protected)]
Sent: Thursday, March 04, 2004 08:11 AM
To: flashnewbie@(protected)
Subject: RE: [Flashnewbie] on (rollover) + on (release)


...hm, just an idea...

The rollover will always fire before the release.
So as soon as the mouse is over the button, the mcBM timeline is sent to the
frame 'showing'. One possibility for the problem is that on this frmam you
have a different instance of the button than the original one, with only the
rollover handler attached. Make sure that this instance (the one which is
visible in the 'showing'
frame) has the release handler too.

-- ---- ------
Andreas Weber
motiondraw.com



-- --Original Message-- --
From: Andreas Weber [mailto:webweber@(protected)]
Sent: Thursday, March 04, 2004 1:28 PM
To: flashnewbie@(protected)
Subject: RE: [Flashnewbie] on (rollover) + on (release)


Strange...

I just opend a new .fla, drew a rectangle, converted it to a symbol and
pasted your code into the ActionScript panel - works as expected, the
onRelease fires just fine. If you do it this way - you still have problems?

-- ---- ------
Andreas Weber
motiondraw.com



-- --Original Message-- --
From: IsK [mailto:isk@(protected)]
Sent: Thursday, March 04, 2004 11:56 AM
To: flashnewbie@(protected)
Subject: Re: [Flashnewbie] on (rollover) + on (release)


Andreas,
Okay sounds good. However the problem seems to be when I combine it with

on (rollover) {
     _parent.turnOff();
     _parent.mcBM.gotoAndStop("showing");
}

// So my code is actually:-

on (release) {
    getURL("http://someurl.com","_self");
    trace('Clicked');
}
on (rollover) {
     _parent.turnOff();
     _parent.mcBM.gotoAndStop("showing");
     trace('Rolled');
}

Unfortunately the on (release) only works when the button is off stage. As
soon as it is within the confines of the stage it only registers on
(rollover)

Ideas?

IsK





> The code you posted does something like:
>
> When clicked the first time I do A
> When clicked again I do B
> Whne clicked agian I do A
>
> constantly alternating between two options.
>
> > I'd like to be able
> > to use on (rollover) and on (release) on the one button.
>
> is not quite the same - you would just do:
>
> on(release){
> trace('I do A');
> }
>
> on(rollOver){
> trace('I do B');
> }
>
>
> Or - better - with the 'new' (Flash 6+) event handler model, from the
parent
> timeline:
>
> myButton_mc.onRelease = function(){
> trace('I do A');
> }
>
> myButton_mc.onRollOver = function(){
> trace('I do B');
> }
>
> -- ---- ------
> Andreas Weber
> motiondraw.com


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Supported by Fig Leaf Software
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Lower Prices for Certified Training! Check out new lower prices for
Certified Macromedia Training from Fig Leaf Software. Expand your skill set
with courses in ColdFusion, Flash, Rich Internet Applications and .NET in
the new year.  Fig Leaf Software provides the highest caliber instruction at
our training centers in Washington D.C., Atlanta, Chicago, Baltimore,
Northern Virginia, or on-site at your location.

Get the details at http://training.figleaf.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected)
For additional commands, e-mail: flashnewbie-help@(protected)





-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Supported by Fig Leaf Software
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Lower Prices for Certified Training! Check out new lower prices for
Certified Macromedia Training from Fig Leaf Software. Expand your skill set
with courses in ColdFusion, Flash, Rich Internet Applications and .NET in
the new year.  Fig Leaf Software provides the highest caliber instruction at
our training centers in Washington D.C., Atlanta, Chicago, Baltimore,
Northern Virginia, or on-site at your location.

Get the details at http://training.figleaf.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected)
For additional commands, e-mail: flashnewbie-help@(protected)





-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Supported by Fig Leaf Software
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Lower Prices for Certified Training! Check out new lower prices for
Certified Macromedia Training from Fig Leaf Software. Expand your skill set
with courses in ColdFusion, Flash, Rich Internet Applications and .NET in
the new year.  Fig Leaf Software provides
the highest caliber instruction at our training centers in Washington  
D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your
location.

Get the details at http://training.figleaf.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected)
For additional commands, e-mail: flashnewbie-help@(protected)


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Supported by Fig Leaf Software
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Lower Prices for Certified Training! Check out new lower prices for
Certified Macromedia Training from Fig Leaf Software. Expand your
skill set with courses in ColdFusion, Flash, Rich Internet
Applications and .NET in the new year.  Fig Leaf Software provides
the highest caliber instruction at our training centers in Washington  
D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at
your location.

Get the details at http://training.figleaf.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected)
For additional commands, e-mail: flashnewbie-help@(protected)