Hello, is there any demo version of swf sdk showing the power of as compiler?
Besides, did the as compiler support as3?
Hello, is there any demo version of swfsdk showing the power of as compiler?
7 April, 2011 - 22:03
#1
Hello, is there any demo version of swfsdk showing the power of as compiler?
15 April, 2011 - 18:04
#3
I mean the action scripter,
I mean the action scripter, which can compile action script to swf bytecode or swf tags.
the xml demo can only convert compiled action to swf?
I want to get clear what the asc in delphiswfsdk can do and what it can not do.
15 April, 2011 - 19:18
#4
Ok, look example:
<?xml
Ok, look example:
<?xml version="1.0" encoding="UTF-8"?> <SWF XMax="8000" YMax="6000" FPS="12" Version="7" SystemCoord="Twips" Compressed="True"> <SetBackgroundColor Color="#FFFFFF"/> <DefineShape ID="1" XMin="0" YMin="0" XMax="3000" YMax="2000"> <FillStyles> <Solid Color="#000066"/> </FillStyles> <Edges> <MoveTo Fill0="1" X="3000" Y="2000"/> <Line X="-3000" Y="0"/> <Line X="0" Y="-2000"/> <Line X="3000" Y="0"/> <Line X="0" Y="2000"/> <End/> </Edges> </DefineShape> <DefineButton2 ID="2" TrackAsMenu="False"> <ButtonRecord ID="1" Depth="1" State="Up,Down,HitTest"> <Matrix/> </ButtonRecord> <ButtonRecord ID="1" Depth="1" State="Over"> <Matrix/> <ColorTransform AddR="30" AddG="30" AddB="30" /> </ButtonRecord> <EventActions> <Actions Event="OverUpToOverDown" CodeType='AS'> <![CDATA[getURL("http://delphiflash.com");]]> </Actions> </EventActions> </DefineButton2> <PlaceObject2 ID="2" Depth="1"> <Matrix X="-20"/> </PlaceObject2> <ShowFrame/> <End/> </SWF>
Node EventActions contains action script code "getURL". Please see xml specification