Go Back   kirupaForum > Flash > ActionScript 3.0

Reply
 
Thread Tools Display Modes
Old 11-28-2009, 10:20 PM   #1
OMG
flash n00b...forever
the width automatically changes

hi, I have a MC called rectangle, and inside I drew a rectangle with a width of 100,0, placed it at the center and linked the mc to a class of the name name (Rectangle)

however, when I create and instance of Rectangle and I trace its width it says 149.5, I didnt make any change

help?
OMG is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?
 

Old 11-28-2009, 10:38 PM   #2
IqAndreas
Registered User
Location Värmland, Sweden (and Illinois, USA)

Posts 1,329
Perhaps you accidentally scaled it, where the scale value would be around 1.5.

Or perhaps there are children you don't know about. Try seeing what numChildren returns.

Otherwise, it could be pretty much anything. Could you upload the FLA?

__________________
Give someone code, and they will have code for a day.
Teach someone to code, and they will have code for life.

Support a starving developer. Click ads in my blog...
http://iqandreas.blogspot.com/
IqAndreas is offline   Reply With Quote
Old 11-28-2009, 10:53 PM   #3
OMG
flash n00b...forever
oh, turned out it's a textfield I put for the sake of debugging stuff
ty
OMG is offline   Reply With Quote
Old 11-28-2009, 10:53 PM   #4
SumYungGai
Horrible Actionscripter
 
SumYungGai's Avatar
Location The middle of frickin nowhere

Posts 75
Oh...the irony

__________________
www.ExperimentalFlash.com - Crappy games, crappy toons, and other crappy stuff. Take a few minutes out of your crappy day to go there .
SumYungGai is offline   Reply With Quote
Old 11-28-2009, 11:34 PM   #5
OMG
flash n00b...forever
lol, still doing my transition from as2 to as3 XD (since forever)
OMG is offline   Reply With Quote
Old 11-28-2009, 11:39 PM   #6
SumYungGai
Horrible Actionscripter
 
SumYungGai's Avatar
Location The middle of frickin nowhere

Posts 75
Ha, me too. So many things different O_o

__________________
www.ExperimentalFlash.com - Crappy games, crappy toons, and other crappy stuff. Take a few minutes out of your crappy day to go there .
SumYungGai is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:12 PM.

SUPPORTERS:

kirupa.com's fast and reliable hosting provided by Media Temple. flash components
Creative web apps. Make your own free flash banners and photo slideshows.
Check out the great, high-quality flash extensions. Buy or sell stock flash, video, audio and fonts for as little as 50 cents at FlashDen.

Flash Transition Effects

Flash Effect Tutorials

Digicrafts Components
Flash effects. Art without coding. Upload, publish, deliver. Secure hosting for your professional or academic video, presentations & more. Screencast.com
Streamsolutions Content Delivery Networks Flipping Book - page flip flash component.
Flash-Gallery.com - Get your flash photo gallery (flash component or swf gallery Learn how to advertise on kirupa.com
 

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com