A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Help With Very Easy Code

  1. #1
    Member
    Join Date
    Jan 2007
    Posts
    48

    Help With Very Easy Code

    Hi



    I'm not to sure why, but I'm getting an error in my code


    Code:
    var cloud1:mcCloud1 = new mcCloud1();
    var cloud1.x = 7.5;
    var cloud1.y = 77.7;
    addChild(cloud1);

    ERROR:

    1086: Syntax error: expecting semicolon before dot.



    Can someone point me in the right direction please.


    Thanks

  2. #2
    Junior Member
    Join Date
    Dec 2009
    Posts
    9
    Code:
    var cloud1:mcCloud1 = new mcCloud1();
    //,this part is wrong
    var cloud1.x = 7.5;
    var cloud1.y = 77.7;
    addChild(cloud1);
    should be
    Code:
    var cloud1:mcCloud1 = new mcCloud1();
    cloud1.x = 7.5;
    cloud1.y = 77.7;
    addChild(cloud1);
    My Current Project, basically a language school in Turkey.Still at development stage though
    ingilizce kursu
    My friends are running this company in London, and I love hummers...
    hummer limo London

  3. #3
    Member
    Join Date
    Jan 2007
    Posts
    48
    OK.
    I see, It does not need to be placed inside of a var.



    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center