dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: What the heck?

  1. #1
    The Cheeze to Your Macaroni ColbyCheeze's Avatar
    Join Date
    Dec 2007
    Location
    Texas
    Posts
    244

    What the heck?

    var mySprite:Sprite = new Sprite();
    mySprite.width = 700;
    trace(mySprite.width) // 0

    ??

  2. #2
    M.D. mr_malee's Avatar
    Join Date
    Dec 2002
    Location
    Shelter
    Posts
    4,140
    try

    mySprite = new Sprite()
    mySprite.graphics.beginFill(0x000000, 0)
    mySprite.graphics.drawRect(0, 0, 1, 1)
    mySprite.graphics.endFill()
    mySprite.width = 700;

    you can't stretch something with doesn't have a size in the first place, not sure about scaleX, scaleY though.
    lather yourself up with soap - soap arcade

  3. #3
    The Cheeze to Your Macaroni ColbyCheeze's Avatar
    Join Date
    Dec 2007
    Location
    Texas
    Posts
    244
    Oh well, I'll just pass in the width / height manually instead of doing what I originally thought of...

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