On Mon, Oct 17, 2005 at 03:44:15PM +0100, Pedro Jorge Caridade wrote:
> One final question about swfc format. Now, like I told, I'm using a swfc
> file with a stop() command:
>
> .swf MyElec "electrod.swf" #this file loop forever
> .put MyElec
> .frame 71 #Last frame
> .action:
> stop(); //Stop it!
> .end
> .end
>
> and then insert it in another swfc which have the buttons etc, with
> actions like
> .swf ExtFile"electrod.swf" #this file loop forever
> .put ExtFile
> .....
> #Button
> .action
> ExtFile.MyElec.play();
> .end
>
>
> Can I create single swfc format file with a sprite gathering these
> instructions and skip this two step problem?
You can, using the .sprite command.
The syntax would be
.sprite ElecSprite
.swf MyElec "electrod.swf"
.put MyElec
.frame 71
.action:
Stop();
.end
.end
.put ElecSprite
.....
#Button
.action:
ElecSprite.MyElec.play();
.end
HTH,
Matthias
_______________________________________________
Swftools-common mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/swftools-common