Wellheres the problem i want to rotate a dial by a random factor on a click of different buttons, i can do this in MX but not mx 2004
See here
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="550" height="400">
<param name="movie" value="http://www.boweevil.net/rotate.swf">
<param name="quality" value="high">
<embed src="http://www.boweevil.net/rotate.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="400"></embed>
</object>
Using the code on the movie =
onClipEvent (load) {
_root.targx = 100;
}
onClipEvent (enterFrame) {
cX = this._rotation;
difx = cx-_root.targx;
setProperty(this, _rotation, cx-(difx/6));
}
- onClipEvent (load) {
-
-
-
- _root.targx = 100;
-
- }
-
- onClipEvent (enterFrame) {
-
-
-
- cX = this._rotation;
-
-
-
- difx = cx-_root.targx;
-
-
-
- setProperty(this, _rotation, cx-(difx/6));
-
- }
and on the button
on (release) {
_root.targx = random(200);
}
- on (release) {
-
- _root.targx = random(200);
-
- }
But when saved as a MX2004 or started the same coding in 2004 it doesnt work? what am i doign wrong?
All help woudl be greatly appreciated.