A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Graphic tools don't work in flash 9 export

  1. #1
    Junior Member
    Join Date
    Jul 2009
    Posts
    1

    Graphic tools don't work in flash 9 export

    I am currently using version 4.9.8.7 to make a simple vector based game, and have had a lot of fun doing it. However, I have been using flash 8 exports to test it.

    Recently I decided I'd like to use the drawCircle feature, but found that it only works with flash 9. When I exported to flash 9, none of the graphics worked at all. I closed my project and created a new one with only a few lines of code:

    Code:
    element ("Canvas").lineStyle (5, RGB(255,0,0), 1);
    
    element ("Canvas").moveTo (0,0);
    element ("Canvas").lineTo (500,500);
    Although this code works when run in the 3DFA environment, when exported in flash 9, the screen is blank even though the movie has loaded. I have tried in google chrome, firefox and explorer but none were successful in rendering anything.

    Has anyone else had this problem or know of a solution? I apologize if it has already been posted, but I couldn't see it on the first few pages.

    Thanks.

  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Try installing the debug version of the flash player and perhaps you can find whats going wrong.

  3. #3
    Member
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    76
    You have to use the graphics object of a sprite to draw lines etc.

    Like so:

    Code:
    element ("Canvas").graphics.lineStyle (5, RGB(255,0,0), 1);
    
    element ("Canvas").graphics.moveTo (0,0);
    element ("Canvas").graphics.lineTo (500,500);
    Cheers,
    Leifi

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