PDA

View Full Version : air framerate


Martin__
02-12-2009, 10:19 PM
hi all,

anyone ever tried to change the framerate of an air app?

for debugging purposes i tried to change it to 1 fps using the compiler option.
Enterframe events now fire once per second as expected but strangely some visual changes update more frequently (rollovers over buttons, scrollbars...)
like the framerate still is 60 fps,
is this a known bug, any workarounds?

greetings
Martin

corbo950
02-12-2009, 10:37 PM
i think that u changed the applications frame rate but that all objects on it have an independent frame rate

Martin__
02-12-2009, 11:21 PM
well no, the framerate of a swf is a global property, even loaded childs swf gain the root level framerate (see the docs)

it seems this behaviour is very common, i tried the same in a simple flash swf. I set the framerate to 1 and added some mc with rollover /rollout (rollover ->gotoandstop(2), rollout->gotoandstop(1))

and guess the gotoandstops were executed not only once a second....

i really wonder that this isnt documented anywhere since it breaks the whole concept of a framerate.