naturally i let a typo get in
all instances of gallery_prev_btn are just prev_btn but the theory is
sound
should be
var prev_btn:MovieClip =
itemOverlay_mc.largeFormatImage_mc.attachMovie
("gallery_prev_btn","gallery_prev_btn",11,{_x:905, _y:36});
On 10 Mar 2008, at 16:25, Allandt Bik-Elliott (Receptacle) wrote:
i had a similar problem with a gallery i was doing and someone
pointed out on the flashnewbie list that if you have any v2
components in the movie, they will steal the focus after the first
use of a button
the way around it was to turn off focusmanager to stop the
component doing this on the press and then turn it back on on release
code:
var prev_btn:MovieClip =
itemOverlay_mc.largeFormatImage_mc.attachMovie
("gallery_prev_btn","gallery_prev_btn",11,{_x:905, _y:36});
prev_btn.onRelease = function():Void {
// execute button code here
focusManager.enabled = true; // turn focusManager back on for v2
components
};
gallery_prev_btn.onPress = function():Void {
focusManager.enabled = false; // stop focusManager stealing the
focus for v2 components
};
i think it was keith reinfeld who gave me that one
a
On 10 Mar 2008, at 14:44, McVirusS wrote:
You could do it like this:
- onMouseDown -> start a timer that repeats a certain action
- onMouseUp -> stop timer
----- Original Message ----- From: "Lehr, Theodore M (N-SGIS)"
<[EMAIL PROTECTED]>
To: "Flash Coders List" <flashcoders@chattyfig.figleaf.com>
Sent: Monday, March 10, 2008 2:59 PM
Subject: [Flashcoders] Repeated action on mouse down
How would I repeat an action with a button click held down? Seems
like
onMouseDown should repeat the action, but seems to only do it
once....
Ted
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders