« Return to Thread: creating swf files?
Of course you can create a swf without using a swf input file, you would use the -out option for that. Read the instructions on mtasc.org. Best, however, is to use swfmill to create a swf that holds your symbols, then use mtasc to inject the code. Have a look at swfmill.org for more info on creating symbol swf's.- Luke
>>> "Baluta Cristian" <cristi.baluta@...> 13/06/2008 5:33 am >>>
you can't create a swf with mtasc. mtasc compiles code into an existing swf file. so you'll finaly have your initial swf with fonts, vectors and others + the code. this is faster because only the code is compiled.
On Thu, Jun 12, 2008 at 7:10 PM, Kent <kent@...> wrote:
I am trying to learn what I need to do to create a swf file from an
ActionScript 2.0 file using mtasc. I have a taken a sample code from a book
and compiled it with mtasc and it works just fine as long as I use the swf
file that was also included with the sample. If I instead compile
with "mtasc -swf x.swf -main -header 550:400:12 x.as" so that it makes the
swf file from scratch it doesn't work.
I ran flasm on both swf files and on the one that mtasc created. Some code is
missing from the created file that is present in the original file and in the
file modified by mtasc when the swf file is reused. The code that is missing
is as follows.
========================
defineMovieClip 4 // total frames: 30
frame 0
stop
end // of frame 0
end // of defineMovieClip 4
exportAssets
4 as 'AvatarSymbol'
end // of exportAssets
frame 0
constants 'av', 'this', 'avatar', 'Avatar', 'rav', 'randomavatar', 'RandomAvatar'
push 'av', 200, 300, 0.0, 'this'
getVariable
push 'avatar', 5, 'Avatar'
new
varEquals
push 'rav', 100, 100, 1, 'this'
getVariable
push 'randomavatar', 5, 'RandomAvatar'
new
varEquals
end // of frame 0
============================
I am at a loss to understation what I need to do to create a working swf file
with mtasc.
I appreciate any help you can give me.
--
MTASC : no more coffee break while compiling
--
Cristi
www.ralcr.com
![]()
This communication and any files transmitted with it, are intended for the named addressee(s) only, are confidential and may contain legally privileged information, and are subject to copyright. No part of them can be reproduced without the consent of the copyright owner. If you receive this communication in error, please advise by telephone (61-2-8584-5500) and then delete the communication. This footnote also confirms that this email message has been swept by Messagelabs for the presence of computer viruses. While this email has been scanned for viruses, the contents of any attachments to this email may contain software viruses which could damage your own computer system. Whilst every reasonable precaution has been taken to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should therefore carry out your own virus checks before opening the attachment.
--
MTASC : no more coffee break while compiling
« Return to Thread: creating swf files?
| Free embeddable forum powered by Nabble | Forum Help |