flash issues
- Started
- Last post
- 8 Responses
- pushme
I have the function which is called from several movieclip instances. The problem is that no matter which one i click i the value of all is returned so when i trace the function values i get: rev , int
every single time.
Any idea why?function stopAnim (stopPoint) {
trace(stopPoint);
stopPoint = null;};
_root.ellipse_mc01.review_mc01.o... = function() {
stopAnim("rev");
}_root.ellipse_mc01.install_mc01... = function() {
stopAnim("int");
}
- UndoUndo0
clicking
_root.ellipse_mc01.will give you "rev"
waht were you looking for?
- pushme0
i'm looking for each mouseDown event to trace only the value for that event. Its displaying values for all events.
- UndoUndo0
is stopPoint a variable that you have setup else where in yr code?
- pushme0
No but i figured out that onRelease produces the result I want vs. onMouseDown. why is this? I've been trying to work through some flash projects recently and its things like this that just make flash an enigma. Whats your favorite resource for flash help? aside from PVN?
- UndoUndo0
haha - onMouseDown is a general event for whenever the mouse is clicked. sorry i missed that - bit too much vino last night!
I always look at flash help and read the notes for the function/event etc before going anywhere else but then just google my problem which usually gives me the answer
- pushme0
Thanks for the help anyway. What about events/function/etc. scope. Aside from google or the help any good sites that speak directl to that? I often find that my lack of knowledge there is my biggest problem.
- joyride0
I was gonna suggest you change it to onRelease... glad you figured it out.
For flash help, i usually find stuff like undo does. Flash Help & Google.
Search: "flash flv cue points", or "flash somekeyword" I always have good results putting the word flash 1st
- UndoUndo0
good point joyride,
again the flash help will tell you about scope and classes etc but
http://www.kirupa.com
and
http://www.actionscript.orghave been good to me in the past