Re: [Flashcoders] How can I set stage dimensions ? (AS3)
Sorry, that previous post was sent prematurely: You didn't specify if this was for Flash or Flex. If it's Flash, metadata isn't supported. If it's for Flex, it looks correct to me: http://www.morearty.com/blog/2006/06/27/setting-the-width-and-height-of-a-pu re-actionscript-application/ I don't know enough about Flex to offer a suggestion. You might try the FlexCoders list? The only thing I can think of as a wild guess is that maybe you want to trace after the constructor has finished, or after a stage resize event? However, you can probably see with the naked eye that your stage size is not 100 x 100. Rich http://www.LearningActionScript3.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How can I set stage dimensions ? (AS3)
You didn't specify if this was for Flash or Flex. If it's Flash, metadata isn't supported. If it's for Flex, it looks correct to me: I don't know enough about Flex to offer a suggestion. You might try the FlexCoders list? Rich http://www.LearningActionScript3.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] How can I set stage dimensions ? (AS3)
Hiya, I can't understand why the dimensions I've set in my app class aren't being implemented. If someone could have a look at my code and show me the error of my ways I'd be very happy :) Cheers, Ali / package { import flash.events.*; import flash.display.Sprite; import flash.display.Shape; import flash.events.Event; import flash.net.URLLoader; import flash.net.URLRequest; import flash.events.IOErrorEvent; import com.adobe.serialization.json.JSON; import flash.display.StageScaleMode; [SWF( backgroundColor='0xE3FF12', frameRate='30', width='100', height='100')] public class MyApp extends Sprite { private var loader:URLLoader; private var request:URLRequest; private var objCount:Number; public function MyApp() { super(); trace("- - - stagewidth:"+stage.stageWidth+" height:"+stage.stageHeight); //tracing as stagewidth:820 height:808 ? } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders