Quantcast
Channel: Adobe Community : Discussion List - Using Flash Builder
Viewing all articles
Browse latest Browse all 1802

setting up starling with flash builder 4.7 problems

$
0
0

I followed the instructions here:

 

https://helpx.adobe.com/flash-builder/kb/overlay-air-sdk-flash-builder.html

 

I clicked File -> New -> ActionScript Project

Then I called my "project StartingStarling01" and made it a Web Application.

I clicked Next -> Add SWC -> browse, then located my Starling.SWC file in the Program Files in my C drive that. I had downloaded the Game SDK from my Creative Cloud account: "C:\Program Files (x86)\Adobe Gaming SDK 1.4\Frameworks\Starling\Starling-Framework\starling\bin"

I clicked Finish.

 

I created these classes:

 

importflash.display.Sprite;
importstarling.core.Starling;

[SWF(width="400",height="300",frameRate="60",backgroundColor="#ffffff")]
publicclassStartingStarling01extendsSprite
{
   privatevar_starling:Starling;

   publicfunction StartingStarling01()
   {
   _starling=newStarling(Game,stage);
   _starling.start();
   }
}

 

importstarling.display.Sprite;
importstarling.text.TextField;

publicclassGameextendsSprite
{
   publicfunction Game()
   {
   vartextField:TextField=newTextField(400,300,"Welcome to Starling!");
   addChild(textField);
   }
}


But I get all these problems:


Capture.PNG

And when I run the file it comes up with this in my browser:



Capture2.PNG

What have I done wrong and how do I fix it please?




Viewing all articles
Browse latest Browse all 1802

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>