-
Can anybody convert this here actionscriptz?
This here code works great and dandy for the ole AS2 but wont play ball on AS3 whatsoever. Is there a straightforward conversion for AS3 or must I embark on an entirely new scroll?
Heres the code:
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
this.onRelease = function(){
getURL("index.php","_top");
}
Any help would be greatly appreciated mandem.
-
Senior Member
In order to be able to create an AS3-based movie you better learn the AS3 language. Even if somebody gives you some script now, you would not be able to debug it if there is a mistake. Here are some hints:
1. In AS3 you cannot have code associated (inside) with an object.
2. Give your button a name like "myBut" for example.
3. Events are written as Eventhandlers. Here are a couple of examples:
import flash.events.MouseEvent;
import flash.net.URLRequest;
import flash.net.navigateToURL;
myBut.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
function mouseOverHandler (event:MouseEvent):void
{
rewind = false;
event.currentTarget.play();
}
myBut.addEventListener(MouseEvent.CLICK, mouseClickHandler);
function mouseClickHandler (event:MouseEvent):void
{
navigateToURL(new URLRequest("index.php"), "_top");
}
- The right of the People to create Flash movies shall not be infringed. -
-
thanks for your reply cancerinform, i managed to get it working with the same effect over in as3 with a bit of tweaking. i know what youre saying though, i need to learn the language properly if i want to be banging with the best.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|