Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
asiabackpacker #1
attaching "do-all" function to button
not sure how to phrase this, but i hope it makes sense::
Is there a way to have one function attached to a button that will apply to
all the different button states (and do different things)? Right now, I have to
write one function for the over state, one for the down, one for the release,
etc (and call each of these individually in each instance of the button)...
Basically, it would be easier if I could put one line of code in my button,
that calls a function that contains all the scripts for the different states.
This way, if I create a new button, I only have to attach one thing, and not
"on press...on release...on...etc..."..you get the point. It sounds like a
trivial matter, but it would make certain things a little more streamlined.
Anyway, if anyone has an ideas, or even understands what I'm talking
about,,,let me know.
thanks
asiabackpacker Guest
-
How to add "..." button to a property to open up "File Open"?
I am creating a control and thinking about adding a property to the control. I will like a "..." button shown next to the value of this property... -
I don't see the "New function" button in RecordSet
Hi, I've been going through the ColdFusion tutorial for creating a sample database application from... -
ListContains function sees "10" as "1"
I have a problem with the "ListContains" function. I am building a "thermometer" and coloring the cells based on 3 color lists. The problem is when... -
Sony DSC-F1 Video Connector?? "Battery adapter attaching part"???
Sony DSC-F1 Video Connector? What's the connector for the DSC-F1 Video Out? If I stuff in a 1/8" phone plug, I get video out. Problem is that... -
Attaching "OnClick" Javascript code to dhtml popup menu links
I am currently developing a web site using fireworks, and am trying to figure out a way (through hand-coding) of attaching a javascript function... -
Laiverd.COM #2
Re: attaching "do-all" function to button
function blah(msg){
trace(msg);
}
first_btn.onRelease = function(){
blah("onrelease")
}
first_btn.onRollOver = function(){
blah("rollover")
}
Like that?
John
--
----------------------------------------------------------------------------
-----------
RESOURCES
[url]http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash[/url]
----------------------------------------------------------------------------
-----------
TUTORIALS at
[url]www.laiverd.com[/url]
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------
Laiverd.COM Guest
-
kglad #3
Re: attaching "do-all" function to button
you coud initiate a setInterval loop on(rollOver) that would poll for mouse presses etc and take appropriate action. clear your interval on(rollOut).
kglad Guest



Reply With Quote

