Sorry for the delay, but the matter isn't trivial. I've made an example, the base source files are included with this message, you can compile them if you add your own images and sound. You need swfmill version 0.2.12.6 (link in the other thread) to succesfully use the sound.
The whole thing, including images, sound and the compiled product is on rapidshare: http://rapidshare.com/files/173252398/sampleButtonProject.rar.html I created a bunch of new tags for the simple dialect: The sound control tags, mentioned in the other thread, should pretty self explanatory. <ActionInitSound name="" /> <ActionSoundAttach name="" sound="" /> <ActionSoundPlay name="" /> <ActionSoundStop name="" /> <ActionSoundSetPan name="" pan="" /> <ActionSoundSetVolume name="" volume="" /> Button tags, they turn an object of given name into the button. <ActionMakeButton name="" frame="" /> //jump to a frame after pressing the button <ActionMakeButtonStop name="" /> // as you will see, it doesn't work too good if there are sounds or animated sprites, so I advise against using it. <ActionMakeButtonPlay name="" /> Jumps to a frame: <ActionGotoAndPlay frame="" /> Removes an object from the given depth <remove depth="" /> I also altered the behaviour of the place tag, it now has two extra parameters. <place ... replace="x" morph="x"/> You can forget about these two in usual situations, but they are needed to work with animated sprites. When working with an animated sprite use replace="1" and morph="constant_number", otherwise the sprite is reset back to first frame with each place. Morph tag may also be utilized for various effects, I'm not 100% sure of the details, but it seems to manage how an object will behave on movie loops and jumps- if the movie jumps from one frame to another, and an object has the same value of morph in these frames then the object will retain its sprite (id) (and some other properties, like being a button), but will be moved and scaled to a new position. It could potentially be useful. On Thu, Dec 11, 2008 at 1:25 PM, tavleen oberoi <[email protected]> wrote: > Hi > I have made a swf file .Now i want to add control buttons to control the > swf file like play ,pause . > > I have used swfobject and jsp webpage to play that swf file . > > Do i need to install flash player and them use <object > tag to get player > layout for the movie. > > OR > Use actionscript 3 .But i have never used actionscript before .If action > script is the solution then what else is needed to do this task like flex > tool or anything else? > > Please reply ASAP > regards > tavleen > > > > > ________________________________ > Be the first one to try the new Messenger 9 Beta! Click here. > _______________________________________________ > swfmill mailing list > [email protected] > http://osflash.org/mailman/listinfo/swfmill_osflash.org > >
sampleButtonProjectSRC.rar
Description: application/rar
_______________________________________________ swfmill mailing list [email protected] http://osflash.org/mailman/listinfo/swfmill_osflash.org
