Re: [Flashcoders] flex 3 Event.RESIZE

2008-06-05 Thread Patrick J. Jankun
Viktor, you were completly right, i have actually fully overseen that mistake :-/ after correcting that mistakes everything seems to work. Thank you for pointing it out! P. On Jun 5, 2008, at 7:10 PM, Viktor Hesselbom wrote: Is that your actual code? Because if it is, I think I see the p

Re: [Flashcoders] flex 3 Event.RESIZE

2008-06-05 Thread Viktor Hesselbom
Is that your actual code? Because if it is, I think I see the problem. You can't just write a reference to the constants. You have to actually use them to set the stage's align, quality etc. public function PbMain() : void { stage.align = StageAlign.TOP_LEFT; stage.quality =

Re: [Flashcoders] flex 3 Event.RESIZE

2008-06-05 Thread Zeh Fernando
If the instance is dynamic (if you instantiate it and then add it as a child, instead of being an object that's already in the stage), you cannot access the stage on the constructor. It'll return null - stage is not known until the container is added to the display list. You have to add a metho

Re: [Flashcoders] flex 3 Event.RESIZE

2008-06-05 Thread Patrick J. Jankun
already done this, before even adding that listener, this is the whole code i want to get working: public function PbMain() : void { StageAlign.TOP_LEFT; StageQuality.HIGH; StageScaleMode.NO_SCALE; stage.addEventListener(Event.RESIZE, initialise); } private func

Re: [Flashcoders] flex 3 Event.RESIZE

2008-06-05 Thread Patrick J. Jankun
Sidney: i didnt even checked it out, cause the event don't fire in the stand alone player as well, i mean, what the f*k am i doing wrong here? im trying to use flex 3 only for this project, and not flash ide, honestly i don't know even how to change the .html wrappers settings inside flex

RE: [Flashcoders] flex 3 Event.RESIZE

2008-06-05 Thread Romuald Quantin
Sorry didn't see it was flex. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick J. Jankun Sent: 05 June 2008 15:04 To: Flashcoder Mailinglist Subject: [Flashcoders] flex 3 Event.RESIZE Hello Everyone, This is something probably very stupid, but i h

RE: [Flashcoders] flex 3 Event.RESIZE

2008-06-05 Thread Romuald Quantin
This event is the right one, maybe because the stage == null when you add the listener? If it helps, I wrote classes to handle liquid UI based on this event: http://www.soundstep.com/blog/downloads/baseui/ Even if you don't use it, you can probably check the code and find something. You might ne

Re: [Flashcoders] flex 3 Event.RESIZE

2008-06-05 Thread Eduardo Omine
I think you must set stage.scaleMode = StageScaleMode.NO_SCALE. -- Eduardo Omine http://blog.omine.net/ http://www.omine.net/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] flex 3 Event.RESIZE

2008-06-05 Thread Sidney de Koning
Hi Patrick, How is your Flash set in your HTML? in pixels or in percent? GReets, Sid On Jun 5, 2008, at 4:04 PM, Patrick J. Jankun wrote: Hello Everyone, This is something probably very stupid, but i have an basic problem with my AS code: i got an event Listener added to stage instance in