|
From: | Matthew Morgan |
Subject: | Re: [Swftools-common] show sprite then delete |
Date: | Fri, 30 Oct 2009 09:33:07 -0400 |
User-agent: | Thunderbird 2.0.0.23 (X11/20090817) |
Chris Pugh wrote:
Thanks! It was the .unloadMovie() that I was missing. I was trying to use .del or delete. The only thing I can't figure out now is how to get "on_key" to work. I've tried changing on_press to on_key "a", but this doesn't seem to do anything when I press the "a" key, even if the mouse is over the button. I tried adding on_key to the main body of .flash, but that causes swfc to segfault. I've searched google for 'swfc "on_key"', but that just gives me copies of the swfc source code, and a couple of pages that list available commands. None of them really say how to use it.Attached is a simple example with a button trigger. Press shows, Release removes. [ Watch what happens when you change the version number., say version=10 ;o) ] HTH. Regards,
I didn't see a difference when changing version to 10, though.
Chris. 2009/10/29 Matthew Morgan <address@hidden>:I've been playing around with swfc for the past couple of days, looking though the examples online, and I can't quite seem to accomplish what I need to do. I just need to show a sprite, and when a key is pressed, remove it and show another sprite instead. I've tried several different things, and I can't figure out how to get it to work. Can anyone give me just a basic skeleton of what that might look like?
--*“* When you say "I wrote a program that crashed Windows," people just stare at you blankly and say "Hey, I got those with the system, for free." *”*
-Linus Torvalds
[Prev in Thread] | Current Thread | [Next in Thread] |