[mtasc] A start up script cannot work yet
jannerick
aye at gmx.at
Wed Nov 15 12:26:26 CET 2006
just a guess... try to describe a lineStyle.
greets from munich,
jan eric
Zeng Ke wrote:
> Hi:
> I have downloaded mtasc today(Version 1.12 linux binary), and want to
> make it working. But even a very basic action script cannot work!
> The following is my as file TTk.as
>
> /class TTk {
> public static var app : TTk;
> function TTk(){
> _root.moveTo(0,0);
> _root.lineTo(400, 300);
> }
> public static function main():Void {
> app = new TTk();
> }
> }
>
> /I ran the mtasc tool with the following command line
> % ./mtasc -v -strict -swf tt.swf -main -header 400:300:20 -out kk.swf
> TTk.as
> under linux (FC5) , the mtasc executable is the linux binary
> distribution downloaded today.
>
> The flash player, Shockwave Flash 7.0 r68, which is embeded into firefox
> 1.5, just shows a blank page with out anything distinguishable.
>
> May anybody help me to make the simple taste working? Thanks a lot.
> BTW, the attachment contains the xml dump of kk.swf by swfmill , maybe
> that shows somthing usful.
>
>
> ------------------------------------------------------------------------
>
> <?xml version="1.0"?>
> <swf version="7" compressed="1">
> <Header framerate="20" frames="1">
> <size>
> <Rectangle left="0" right="8000" top="0" bottom="6000"/>
> </size>
> <tags>
> <SetBackgroundColor>
> <color>
> <Color red="255" green="255" blue="255"/>
> </color>
> </SetBackgroundColor>
> <DefineSprite objectID="20480" frames="1">
> <tags>
> <End/>
> </tags>
> </DefineSprite>
> <Export>
> <symbols>
> <Symbol objectID="20480" name="__Packages.TTk"/>
> </symbols>
> </Export>
> <DoInitAction sprite="20480">
> <actions>
> <Dictionary>
> <strings>
> <String value="TTk"/>
> <String value="_global"/>
> <String value="_root"/>
> <String value="moveTo"/>
> <String value="lineTo"/>
> <String value="prototype"/>
> <String value="main"/>
> <String value="app"/>
> <String value="ASSetPropFlags"/>
> </strings>
> </Dictionary>
> <PushData>
> <items>
> <StackDictionaryLookup index="0"/>
> </items>
> </PushData>
> <GetVariable/>
> <LogicalNOT/>
> <LogicalNOT/>
> <BranchIfTrue byteOffset="155"/>
> <PushData>
> <items>
> <StackDictionaryLookup index="1"/>
> </items>
> </PushData>
> <GetVariable/>
> <PushData>
> <items>
> <StackDictionaryLookup index="0"/>
> </items>
> </PushData>
> <DeclareFunction2 name="" argc="0" regc="2" preloadThis="0" suppressThis="0" preloadArguments="1" suppressArguments="0" preloadSuper="1" suppressSuper="0" preloadRoot="0" preloadParent="1" preloadGlobal="0" reserved="0">
> <args/>
> <actions>
> <PushData>
> <items>
> <StackInteger value="0"/>
> <StackInteger value="0"/>
> <StackInteger value="2"/>
> <StackDictionaryLookup index="2"/>
> </items>
> </PushData>
> <GetVariable/>
> <PushData>
> <items>
> <StackDictionaryLookup index="3"/>
> </items>
> </PushData>
> <CallMethod/>
> <Pop/>
> <PushData>
> <items>
> <StackInteger value="300"/>
> <StackInteger value="400"/>
> <StackInteger value="2"/>
> <StackDictionaryLookup index="2"/>
> </items>
> </PushData>
> <GetVariable/>
> <PushData>
> <items>
> <StackDictionaryLookup index="4"/>
> </items>
> </PushData>
> <CallMethod/>
> <Pop/>
> </actions>
> </DeclareFunction2>
> <StoreRegister reg="0"/>
> <SetMember/>
> <PushData>
> <items>
> <StackRegister reg="0"/>
> <StackDictionaryLookup index="5"/>
> </items>
> </PushData>
> <GetMember/>
> <StoreRegister reg="1"/>
> <Pop/>
> <PushData>
> <items>
> <StackRegister reg="0"/>
> <StackDictionaryLookup index="6"/>
> </items>
> </PushData>
> <DeclareFunction2 name="" argc="0" regc="2" preloadThis="0" suppressThis="0" preloadArguments="1" suppressArguments="0" preloadSuper="1" suppressSuper="0" preloadRoot="0" preloadParent="1" preloadGlobal="0" reserved="0">
> <args/>
> <actions>
> <PushData>
> <items>
> <StackDictionaryLookup index="0"/>
> </items>
> </PushData>
> <GetVariable/>
> <PushData>
> <items>
> <StackDictionaryLookup index="7"/>
> <StackInteger value="0"/>
> <StackDictionaryLookup index="0"/>
> </items>
> </PushData>
> <New/>
> <SetMember/>
> </actions>
> </DeclareFunction2>
> <SetMember/>
> <PushData>
> <items>
> <StackInteger value="1"/>
> <StackNull/>
> <StackRegister reg="1"/>
> <StackInteger value="3"/>
> <StackDictionaryLookup index="8"/>
> </items>
> </PushData>
> <CallFunction/>
> <Pop/>
> <EndAction/>
> </actions>
> </DoInitAction>
> <DoAction>
> <actions>
> <Dictionary>
> <strings>
> <String value="MTASC_MAIN"/>
> <String value="this"/>
> <String value="TTk"/>
> <String value="main"/>
> </strings>
> </Dictionary>
> <PushData>
> <items>
> <StackDictionaryLookup index="0"/>
> </items>
> </PushData>
> <StoreRegister reg="0"/>
> <Pop/>
> <PushData>
> <items>
> <StackDictionaryLookup index="1"/>
> </items>
> </PushData>
> <GetVariable/>
> <PushData>
> <items>
> <StackInteger value="1"/>
> <StackDictionaryLookup index="2"/>
> </items>
> </PushData>
> <GetVariable/>
> <PushData>
> <items>
> <StackDictionaryLookup index="3"/>
> </items>
> </PushData>
> <CallMethod/>
> <Pop/>
> <EndAction/>
> </actions>
> </DoAction>
> <ShowFrame/>
> <End/>
> </tags>
> </Header>
> </swf>
>
More information about the mtasc
mailing list