actionscript 3 - From Flash CS to Flex Builder -


i trying port pure-actionscript flash project flex builder.

i have created new project , opens mxml file :

<?xml version="1.0" encoding="utf-8"?> <s:application xmlns:fx="http://ns.adobe.com/mxml/2009"                 xmlns:s="library://ns.adobe.com/flex/spark"                 xmlns:mx="library://ns.adobe.com/flex/mx" minwidth="955" minheight="600">     <fx:declarations>         <!-- place non-visual elements (e.g., services, value objects) here -->     </fx:declarations>     <fx:script>         <![cdata[         ]]>     </fx:script> </s:application> 

now, trying copy on flash's document class inside mxml file no avail.

if add inside fx:script following code:

        addchild(new tradeshow()); 

i this:

1180: call possibly undefined method addchild.

ok, there no implicit displayobjectcontainer mxml. let's try define 1 (always inside fx:script):

        public class tradeshow extends sprite {} 

here contradicting error :

1131: classes must not nested.

i have lost several hours , ashamed myself several times. can please shade light here?

you can create flash professional project inside flash builder , use flash builder interface build code , can compile swf through flash builder , flash professional.

it's nice way develop projects have fla file assets , that.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -