Re: [Flashcoders] flex 3 Event.RESIZE
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 the main class function/constructor stage.addEventListener(Event.RESIZE, initialise); problem is, this event never gets fired, and i simply can't find out why :(, i scale the stage in the browser env, the event is being ignored. I tried Event.INIT and others, they seems to work, but not this one, can someone tell me what the heck do i wrong? P. -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] flex 3 Event.RESIZE
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 need to check the html, if your movie is not resized with the browser, the event won't fire. Romu -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 have an basic problem with my AS code: i got an event Listener added to stage instance in the main class function/constructor stage.addEventListener(Event.RESIZE, initialise); problem is, this event never gets fired, and i simply can't find out why :(, i scale the stage in the browser env, the event is being ignored. I tried Event.INIT and others, they seems to work, but not this one, can someone tell me what the heck do i wrong? P. -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] flex 3 Event.RESIZE
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 have an basic problem with my AS code: i got an event Listener added to stage instance in the main class function/constructor stage.addEventListener(Event.RESIZE, initialise); problem is, this event never gets fired, and i simply can't find out why :(, i scale the stage in the browser env, the event is being ignored. I tried Event.INIT and others, they seems to work, but not this one, can someone tell me what the heck do i wrong? P. -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] flex 3 Event.RESIZE
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 :( P. On Jun 5, 2008, at 4:14 PM, Sidney de Koning wrote: 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 the main class function/constructor stage.addEventListener(Event.RESIZE, initialise); problem is, this event never gets fired, and i simply can't find out why :(, i scale the stage in the browser env, the event is being ignored. I tried Event.INIT and others, they seems to work, but not this one, can someone tell me what the heck do i wrong? P. -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] flex 3 Event.RESIZE
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 function initialise() : void { trace( Initialised ); stage.removeEventListener(Event.RESIZE, initialise ); init(); } On Jun 5, 2008, at 4:37 PM, Eduardo Omine wrote: 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 -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] flex 3 Event.RESIZE
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 = StageQuality.HIGH; stage.scaleMode = StageScaleMode.NO_SCALE; stage.addEventListener(Event.RESIZE, initialise); } Also, as've been said, be sure stage is accessible. / Viktor H On Thu, 05 Jun 2008 17:16:43 +0200, Patrick J. Jankun [EMAIL PROTECTED] wrote: 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 function initialise() : void { trace( Initialised ); stage.removeEventListener(Event.RESIZE, initialise ); init(); } On Jun 5, 2008, at 4:37 PM, Eduardo Omine wrote: 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 -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] flex 3 Event.RESIZE
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 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 = StageQuality.HIGH; stage.scaleMode = StageScaleMode.NO_SCALE; stage.addEventListener(Event.RESIZE, initialise); } Also, as've been said, be sure stage is accessible. / Viktor H On Thu, 05 Jun 2008 17:16:43 +0200, Patrick J. Jankun [EMAIL PROTECTED] wrote: 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 function initialise() : void { trace( Initialised ); stage.removeEventListener(Event.RESIZE, initialise ); init(); } On Jun 5, 2008, at 4:37 PM, Eduardo Omine wrote: 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 -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders