Yes, timer does this magc! Thank you Karim! Thank you Cédric also.
Maybe you can give me better idea for calculation when I calculate
picture size and column numbers on the start. I want it be in width
from 180 to 225. Column number should depends on stage width and I
will calculate it after res
just use a timer (as Karim pointed out)
or compare the previous values (stageWidth and stageHeight) with the current
ones: if both are equal you could fire your resize code
or you could, ultimately, resize your application each time resize is called
too (depending on how you are handling your re
Maybe I don't understand your idea.
I checked
stage.addEventListener(Event.RESIZE, resizeHandler);
function resizeHandler(e:Event=null):void {
trace("stage "+stage.stageWidth)
}
That gives me
stage 999
stage 967
stage 911
stage 835
stage 790
stage 745
stage 705
stage 679
stage 674
No but compiling a page each time it is requested feels somewhat awkward
(even though I know how html renders ;) )
I feel that the cross platform compatibility feature (iPhone <-> Flash Player)
is a dense fog, plus it certainly has a lot of drawbacks (complex things done
in Flash won't be i
Has anyone else seen this or know anything about it?
http://reshapemedia.com/ftml/
-Gerry
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
or you could setup a CustomEvent.RESIZED thing that you throw when your resize
code has been executed ... but you could also be ok by just calling a method
/after/ the resize code/loop
private function resizeHandler (e:Event):void {
// resize code here (could be long)
//
Or, if you really need to, you can do something like this:
import flash.utils.setTimeout;
import flash.utils.clearTimeout;
var timeOutID : uint;
stage.addEventListener(Event.RESIZE, resizeHandler, false, 0, true)
function resizeHandler( e : Event = null ) : void {
clearTimeout( ti
On this note, all as3 developers would be remiss not to read 'JavaScript: the
good parts' for some of the modern JavaScript coding techniques born of
necessity that will improve your understanding of ActionScript's possibilities
and likely improve your practices. Side effect could be a more tol
Quadrupling. Anything but JS would be a giant leap!
>>> I'll settle for actionscript 3 replacing JavaScript in the browser
>>> :)
>
> Second that!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listi
Yes, I know, but I interpreted what was needed, and I /think/ RESIZE does the
job:
RESIZE occurs
your 'resize' code is executed
when your code has been executed, it is RESIZEd.
:) Ok, ok, I know
> Cédric Muller skriver:
>> stage.addEventListener(Event.RESIZE, resizeHandler, false, 0, true)
>>
10 matches
Mail list logo