• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

actionscript 3.0 help

zimu

Diamond Member
i miss older actionscript 🙁

basic thing i'm trying to do. i have a button on a page that triggers a motion tween (button moves to another area of the page). at the end of the tween i want the browser window that you are viewing the flash in to load a different URL - no frames no nothing, just on _SELF.

any idea how to do this? i'm so sick of googling this, it's such a simple task yet i see no simple way to do it - people have all sorts of weird functions and crap!

please help!
 
I assume your looking for navigateToURL("yourpage.html","_self");

if that doesn't work perhaps use javascript to change the location?

Actionscript:
//this will need to be somwhere before all AS declarations
import flash.external.ExternalInterface;

//at the end of the tween
ExternalInterface.call("pageChange");
-----------------------------------------------------
Javascript:
function pageChange() {
window.location="newpage.html";
}
 
navigateToUrl(new URLRequest('http://www.somewhere.com'), '_blank');

If Drakkon's doesn't work, IRRC, URLRequest takes a URLRequest object as a parameter.

Easy way to find out is to (withing flash cs3) highlight "URLRequest" and hit f1 for help
 
Back
Top