Does anyone see the green ball with this code in Flash Pro CC?

If you can see the green ball at the top let me know what you did, thanks. I have Windows 8 PhotoShop CC.  I am very new when I only have the code below open in Flash saved as a ".as" when I press CTRL+ENTER nothing happens. The problem I believe is when I open another new document or ".fla" file and when it allows me to preview the screen after pressing CTRL+ENTER there should be a green ball at the top of the page, but there isn't
P.S. WHen I click F-9 to bring up the code and then CTRL+ENTER its just a blank screen with #333333 as the stage color size 640 X 480 and 30 Frame Rate
package{
     import flash.display.Sprite;
     import flash.events.Event;
     import Box2D.Dynamics.*;
     import Box2D.Collision.*;
     import Box2D.Collision.Shapes.*;
     import Box2D.Common.Math.*;
     public class Main extends Sprite{
          private var world:b2world;
          private var worldScale:Number=30
          public function Main(){
               world =new b2World(new b2Vec2(o,9.81),true);
               var bodyDef:b2BodyDef=new b2BodyDef();
               bodyDef.position.Set(320/worldScale,30/worldScale);
               var circleShape:b2CircleSHape;
               circleShape=new b2CircleShape(25/worldScale);
               var fixtureDef:b2FixtureDef = new b2FixtureDef();
               fixtureDef.shape=circleShape;
               var theBall:b2Body=world.CreateBody(bodyDef);
               theBall.CreateFixture(fixtureDef);
               var debugDraw:b2DebugDraw=new b2DebugDraw();
               var debugSprite:Sprite=new Sprite();
               addChild(debugSprite);
               debugDraw.SetSprite(debugSprite);
               debugDraw.SetDrawScale(worldScale);
               debugDraw.SetFlags(b2DebugDraw.e_shapeBit);
               debugDraw.SetFillAlpha(0.5);
               world.SetDebugDraw(debugDraw);
               addEventListener(Event.ENTER_FRAME,updateWorld);
          private function updateWorld(e:Event):void {
               world.Step(1/30,10,10);
               world.ClearForces();
               world.DrawDebugData();

confirm using the trace function shown below.  what do you see in the output panel when testing your app?:
package{
     import flash.display.Sprite;
     import flash.events.Event;
     import Box2D.Dynamics.*;
     import Box2D.Collision.*;
     import Box2D.Collision.Shapes.*;
     import Box2D.Common.Math.*;
     public class Main extends Sprite{
          private var world:b2world;
          private var worldScale:Number=30
          public function Main(){
trace(this);
               world =new b2World(new b2Vec2(o,9.81),true);
               var bodyDef:b2BodyDef=new b2BodyDef();
               bodyDef.position.Set(320/worldScale,30/worldScale);
               var circleShape:b2CircleSHape;
               circleShape=new b2CircleShape(25/worldScale);
               var fixtureDef:b2FixtureDef = new b2FixtureDef();
               fixtureDef.shape=circleShape;
               var theBall:b2Body=world.CreateBody(bodyDef);
               theBall.CreateFixture(fixtureDef);
               var debugDraw:b2DebugDraw=new b2DebugDraw();
               var debugSprite:Sprite=new Sprite();
               addChild(debugSprite);
               debugDraw.SetSprite(debugSprite);
               debugDraw.SetDrawScale(worldScale);
               debugDraw.SetFlags(b2DebugDraw.e_shapeBit);
               debugDraw.SetFillAlpha(0.5);
               world.SetDebugDraw(debugDraw);
               addEventListener(Event.ENTER_FRAME,updateWorld);
          private function updateWorld(e:Event):void {
               world.Step(1/30,10,10);
               world.ClearForces();
               world.DrawDebugData();

Similar Messages

  • When opening aperture I get Warning that says There was an error opening the database for the library "~/Desktop/Feb 12, 2011.aplibrary".  I'm concerned that my pictures may be lost.  Does anyone know how to deal with this Warning?

    When opening Aperture I get Warning that says "There was an error opening the database for the library “~/Desktop/Feb 12, 2011.aplibrary.”  That's it. The program does not open at all.  I'm concerned that my pictures may be lost.  Does anyone know how to deal with this Warning? 

    Might just need to rebuild the library...see this link:
    Aperture 3: Troubleshooting Basics

  • Does anyone get the mouse lag with an external display connected via the display port?

    does anyone get the mouse lag with an external display connected via the display port?

    You don't describe the problem in great detail.  Is this the issue you are describing?
    https://discussions.apple.com/thread/4398076?start=0&tstart=0
    If so, then, "Yes."  I have the same problem.  Note that this isn't a tracking speed problem for me, it's a lag between my hand moving and the pointer moving on the external display.
    Andrew

  • I can't be the only one with this issue. MacBook Pro Retina Late-2013 WiFi disconnects after waking up from sleep.

    Did anyone buy a MacBook Pro Retina 13" from Best Buy this Black Friday?
    I'm having an issue where the WiFi disconnects after the MacBook wakes from sleep but only after a couple of minutes.
    Once the WiFi disconnects, I can't reconnect to the same network and sometimes it won't find nearby networks.
    I have to turn off the WiFi and wait for at least 5 seconds before turning it back on for it to auto-reconnect to my home network.
    If I wait less than 5 seconds, it will continue to attempt connection to the home network but won't connect.
    I've tried reformatting and deleting my network configurations as well as resetting my modem, power cycling it, etc.
    I am using 2Wire Gateway modem/router from AT&T on b/g network.
    I've tried connecting to a friend's network under Time Warner Cable and the same issue occurs.
    I exchanged the MacBook at a Best Buy for a brand unopened one (I hope) and the same exact thing happens with this new one.
    Really, I can't be the only one with this issue. Unless in a 0.00001% chance I received two defective units in a row?
    Please.. does anyone have a clue why this is happening?

    You're definitely not the only one.  I have the same issue.  I spent 6 hours over multiple days on the phone with Apple support trying a variety of things (some of which are mentioned above), and none of them worked.  They finally sent me a replacement laptop.  I made sure to try it periodicaly as I was moving files and installing applications to see if I ran into it again and things seemed okay at first but now I am running into the same issue and it is terribly annoying.  I've got 5 other devices that connect to the same router and I've never had this issue with any of them.
    My router is a Linksys E2000.  I haven't tried changing the router channel but I have tried to cnnecting to other networks in the building I live in and I have run into the same issue there.

  • HT1338 There's not enough contrast in my 2012 MacBook Air display. Does anyone else have a problem with this? Can I fix it?

    When I watch streaming shows or movies on my Air the contrast is lousy. If it's a dark scene you can hardly see anything. Does anyone else have this issue? I've got it as bright as it lets me go.

    It seems that my pioneer DVD drive ate my disc and no matter what I do, I can't get it out.
    What have you done so far?  Provide details on what you have done to date in the way of troubleshooting and the results.  In doing so, the helpers here will avoid the "been there done that" response scenerio. 
    Have you tried any of the suggestions mentioned in this thread:  The Stuck CD/DVD Thread
    how hard is it to take the iMac apart?
    If your model iMac is not user repairable, do a Google search for DIY instructions.  Two places to start is iFixit and YouTube's tutorials.
    What is a good replacement for it?
    External CD/DVD burners.  Check out OWC & Lacie websites for CD/DVD drives.  Make sure you read the system requirements for the drives.
    Good luck!

  • Gud evening i have got an iphone 5 which is running on ios 7.0.4 as i m trying to put r sim with vodafone india it shows sim failure does anyone know what to do with this problem occuring again and again

    k

    Has the phone been officially unlocked by the carrier? Check this article:
    iPhone: About unlocking
    If yes and your SIM is not recognized, see this article for more information.

  • Hi can anyone see anything glaringly wrong in this code its only a few line

    class test
    public static void main(String []args)
    public void display()
         int limit=5;
         int total=0;
         for (int i = 0; i<limit; i++)
              System.out.println(i*i+i);
              total+=i;
         System.out.println(total);

    see after running this code
    public class test
         public static void display()
         int limit=5;
         int total=0;
         for (int i = 0; i<limit; i++)
              System.out.println(i*i+i);
              total+=i;
                   System.out.println(total);
                        public static void main(String []args)
                                  display();
    I get this output
    0
    2
    6
    12
    20
    10
    but when i work it out in my mind i get this
    2
    12
    and then i stop because i wonder why i didnt get the 0 and why i missed the 6
    can anyone work out what im doing wrong
    thanks

  • KMS Error 0xC004F015 on Windows 2008 R2 - Does anyone have the correct fix for this please?

    I am in the process of migrating my KMS server from Windows 2003 to Windows 2008 R2 64-bit. My Windows 2003 server has been happily providing my Windows 7 clients with licenses for well over a year. I have followed these migration steps in this forum article:
    social.technet.microsoft.com/Forums/windows/en-US/cd4177bd-8df5-4a66-afdc-c760398b7e7f/migrating-kms-server-from-one-computer-to-another?forum=itprovistaactivation
    I cannot get passed step 5. As soon as I try step 5 with my Windows 7 KMS key I receive error 0xC004F015. Despite reading countless articles on Microsoft forums and also speaking the Microsoft licensing who frankly were of no help at all, I am none the wiser
    how to resolve this fault. My questions are:
    1. Should my Windows 2008 R2 server be licensed with a MAK or KMS key? Does this matter?
    2. Some articles I have read suggest if you use a Windows Server "C" license then you do not need to use a Windows 7 KMS key. I've tried this but it just tells me I have insufficient licenses.
    3. When installing my windows 7 license key via the slmgr /ipk command should I be using my Windows 7 Professional KMS key? This works fine on my old Windows 2003 server, but Windows 2008 does not like it at all. Would I be better simply moving my KMS server
    to a Windows 7 desktop instead?
    4. I also want my Windows 2008 R2 to carry out my KMS activation for Office 2013. Can this run on the same server as my Windows 7 KMS key should I ever get it to work
    Thank you anyone who can shed some light on this absolutely baffling error. Surely some one out there has the definitive answer.
    Regards
    N Buck

    I am in the process of migrating my KMS server from Windows 2003 to Windows 2008 R2 64-bit. My Windows 2003 server has been happily providing my Windows 7 clients with licenses for well over a year. I have followed these migration steps in this
    forum article:
    social.technet.microsoft.com/Forums/windows/en-US/cd4177bd-8df5-4a66-afdc-c760398b7e7f/migrating-kms-server-from-one-computer-to-another?forum=itprovistaactivation
    I cannot get passed step 5. As soon as I try step 5 with my Windows 7 KMS key I receive error 0xC004F015. Despite reading countless articles on Microsoft forums and also speaking the Microsoft licensing who frankly were of no help at all, I am none the wiser
    how to resolve this fault. My questions are:
    1. Should my Windows 2008 R2 server be licensed with a MAK or KMS key? Does this matter?
    2. Some articles I have read suggest if you use a Windows Server "C" license then you do not need to use a Windows 7 KMS key. I've tried this but it just tells me I have insufficient licenses.
    3. When installing my windows 7 license key via the slmgr /ipk command should I be using my Windows 7 Professional KMS key? This works fine on my old Windows 2003 server, but Windows 2008 does not like it at all. Would I be better simply moving my KMS server
    to a Windows 7 desktop instead?
    4. I also want my Windows 2008 R2 to carry out my KMS activation for Office 2013. Can this run on the same server as my Windows 7 KMS key should I ever get it to work
    Hi,
    on your KMShost, if that is a WindowsServer OS, you cannot use a WindowsClient (WinVista/Win7/Win8/Win8.1) KMShost product key, you must use a WindowsServer KMShost product key.
    Further, the KMShost product key must match the OS of the KMShost machine (or exceed/better it).
    e.g. if your KMShost machine is WS2008R2, you must use a WS2008R2 (or higher e.g. WS2012 or WS2012R2) product key.
    If you will use a higher product key, you will need to install the relevant patch package to do so.
    When you install a Windows KMShost product key onto a machine, the Windows KMShost product key completely replaces the previous Windows product key of that machine [it serves two purposes, (1) replace the previous key, (2) activates the KMShost feature].
    So, your KMShost is neither licensed as MAK nor KMS, it becomes a KMShost.
    For WS2008R2 KMShosts, you can install one of 3 types (channels/groups) of KMshost pkey.
    The channel/group pkey you choose, is based upon the maximum product editions you wish to perform KMSclient activations for.
    http://technet.microsoft.com/en-us/library/ff793411.aspx
    For your issue #2, are you attempting to install your Windows7 KMS key upon the KMShost or a KMSclient?
    For your issue #3, are you attempting this upon a KMSclient? (Volume License editions on Win7Pro or Win7Ent, are already pre-loaded with a KMSclient pkey, so you should have no need to alter the client keys). As previously mentioned, no Win7 key is needed/possible
    for the KMShost, if the KMShost is WS2008R2.
    For your issue #4, yes, your WS2008R2 KMShost can also act as KMShost for Office2010 and/or Office2013, this requires a further patch, and the installation of the relevant Office KMShost pkey.
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Does anyone know the FCP 7 capture settings for Blackmagic Intensity Pro?

    What are the three settings I should use for black magic intensity pro?

    You really should be asking the the blackmagic people. What does your manual say?
    There are only a few ways to set up , hook up and use a card like Blackmagic. The directions are specific.
    But I've never used one.

  • Does anyone know the default size for 24 in. imac display?

    I inadverently changed the display size on my 24 inch imac. The font in the toolbar at the top of the desktop is larger than I want. Also, when I open windows in different applications, they open larger than the display and have to be downsized in order to see the entire window.
    Does anyone know the default size for this display? Or is there a different way to fix my issues?
    thanks in advance.

    Hi Napamike2: The default setting for the 24" is 1920X1200. If that doesn't get you back to the proper display, maybe you have accidentally activated "Zoom". To check go to System Preferences, Universal Access. Check that Zoom is turned off.
    Stedman

  • HT201320 i use shaw email. the settings dint want to work on the outgoing email. does anyone know the proper setting?

    I use shaw email but cant seem to get the outgoing mail to work. does anyone know the proper settings?

    This is the Vancouver server: shawmail.vc.shawcable.net. Other cities use slightly different addresses that you can get from Shaw's website.

  • [b]Does anybody know what is wrong with my code[/b]

    I cannot see what is wrong with this code but i can't get it to compile. when i try to compile it i get the
    "Exception in thread "main" java.lang.NoClassDefFoundError:
    Is this a problem with compiling or is it a code error?
    Here is my code
    public class IntCalc{
         int value;
         public IntCalc(){
              value = 0;
         public void add(int number)     {
              value = value + number;
         public void subtract(int number){
              value = value - number;
         public int getValue()     {
              return value;
    Message was edited by:
    SHIFTER

    Youd don't have a class file. Compile it first then run it. If your compiler isnt making the .class file tell me and ill give you a link to a realy good java compiler.

  • Having trouble opening a pdf with Adobe...keep seeing an error sign "acroExch"  does anyone have a way to fix this?

    Having trouble opening a pdf with Adobe...keep seeing an error sign "acroExch"  does anyone have a way to fix this?

    Hmm, "Use Adobe Reader" should launch the PDF outside of Firefox in the stand-alone Adobe Reader application, so seeing it in a tab is something of a puzzle.
    Could you check your version of Adobe Reader? For Windows 7, you normally would have the Reader XI series (Reader 11), which has had several updates. From inside Adobe Reader, you can use Help > Check for Updates to make sure it's current.
    In Firefox, could you check your Adobe Acrobat plugin version or possibly versions? You can view that on the Add-ons page. Either:
    * Ctrl+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Plugins. If you find multiple versions, this can cause problems and may need to be cleaned up manually (post back on that for suggestions).
    Sometimes, the settings file which stores those download handler preferences becomes corrupted and there's not much else to do than to rename or remove that file and let Firefox rebuild it.
    To do that, open your current Firefox settings (AKA Firefox profile) folder using either
    * "3-bar" menu button > "?" button > Troubleshooting Information
    * (menu bar) Help > Troubleshooting Information
    * type or paste about:support in the address bar and press Enter
    In the first table on the page, click the "Show Folder" button. This will launch a new window (Windows Explorer window) listing various settings files.
    Leaving that window open, switch back to Firefox and Exit, either:
    * "3-bar" menu button > "power" button
    * (menu bar) File > Exit
    Pause while Firefox finishes its cleanup, then rename '''mimeTypes.rdf''' to something like mimeTypes.old
    Start Firefox back up again and "PDF Files" should be back to their default setting of "Preview in Firefox". Try changing that to "Use Adobe Acrobat (in Firefox)" and test to see whether there's any improvement.

  • I am not able to see the airplay icon with Maverick. Can anyone help on how to go about this?

    I am not able to see the airplay icon with Maverick. Can anyone help on how to go about this?

    Does restarting the router help?
    Best.

  • I got new iphone and when i connect it to my pc, it lost all my current data and replaced it with the backup on my computer, which is from april. so i have lost all my calendar information and schedule. does anyone know how i can reverse this?

    i got new iphone and when i connect it to my pc, it lost all my current data and replaced it with the backup on my computer, which is from april. so i have lost all my calendar information and schedule. does anyone know how i can reverse this and get my information back?

    Every backup replaces the old one, so, unless you included the backup folder in your computer backup routine, you can't get back your calendar info.
    The only time iTunes will not replace a backup is, when you use it to restore from, this one will stay in the backup list in iTunes.
    More info on backups here: http://support.apple.com/kb/HT1766

Maybe you are looking for

  • Need Inputs on transferring data thru Webservice

    Hi All, Can we use webservice to transfer huge amount of data (i.e. An XML which has 20,000 rows from a table of 15 columns) from the webserver to the client. Currently am passing this as a String. Is it okay to pass it in this way? or is there any o

  • Facebook login

    Hi, Has anyone created an app for iOS and/or Android which successfully logs a user into Facebook and therefore has an access token? The AS3 FB api requires the FB popup to work which is fine but, it doesn't work on iOS during my tests. Any clues? Ca

  • Illustrator mac and pc

    Can I start an illustrator project on a mac and continue working on a pc, then go back to mac?

  • RFC call in Servlet problem

    Hello, I have servlet in my web application module, and I try to make RFC call, within it. I use com.sap.mw.jco.*. I compile it but when run the server respond with Application error occurs during processing the request.   Details:   java.lang.NoClas

  • What does Apple mean by "For best battery performance, leave your device connected to a power source until the restore is complete."

    I just recently returned an IPad air and exchanged it for another. I first set up this new one as a new IPad but then deleted all content and settings right away (since I wasn't getting the progress I had made in apps and games) in order to restore i