how to change Flex Application frame rate at runtime


hello,

i have flex application need change frame rate @ runtime.
when changing using slider component, here code:

private function onchangeslider(e:event):void
{
framerate = sliderfr.value;
trace(framerate);
}
<mx:hslider id="sliderfr" x="452" y="765" width="378.2" minimum="1" maximum="50" livedragging="true" snapinterval="1" value="25" change="onchangeslider(event)"/>

the value changed, frame rate not changed.
when insert binding <application> tag got error on one, because can't bind there items application level.
how can change flex frame rate @ runtime?

i found solution!
in flex application have framerate properties doesn't work @ runtime in actionscript code.
if have video want change speed of it, need change stage.framerate (of player itself). , there catch here. if try change right after application start (like in: creationcomplete event) have runtime error.
what need is, change stage.framerate value after application started button or other event in system.
this working grate fast/slow flv playing

enjoy!


More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

Rasperry Wifi LAN Controller - Raspberry Pi Forums

Unlock car with bluetooth and car key