d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Actionscript(adobe Flash As3) > Looking For Help Fixing Error.
Add Reply New Topic New Poll
Member
Posts: 2,923
Joined: Jul 10 2011
Gold: 7,407.00
Nov 18 2013 07:11pm



Scene 1, Layer 'actions', Frame 1, Line 12 1180: Call to a possibly undefined method navigateToUrl.





import flash.events.MouseEvent;
import flash.net.navigateToURL;
import flash.net.URLRequest;

var uniURL:URLRequest = new URLRequest("http://www.yahoo.coml");

btnSkip.addEventListener(MouseEvent.CLICK, skipIntroduction);

function skipIntroduction(event:MouseEvent):void {
stop();

navigateToUrl(uniURL, "_self");
}
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Nov 18 2013 07:18pm
Quote (astraea @ Nov 18 2013 08:11pm)
Scene 1, Layer 'actions', Frame 1, Line 12 1180: Call to a possibly undefined method navigateToUrl.                             





import flash.events.MouseEvent;
import flash.net.navigateToURL;
import flash.net.URLRequest;

var uniURL:URLRequest = new URLRequest("http://www.yahoo.coml");

btnSkip.addEventListener(MouseEvent.CLICK, skipIntroduction);

function skipIntroduction(event:MouseEvent):void {
stop();

navigateToUrl(uniURL, "_self");
}


URL is upper case.

This post was edited by carteblanche on Nov 18 2013 07:19pm
Member
Posts: 2,923
Joined: Jul 10 2011
Gold: 7,407.00
Nov 18 2013 07:28pm
Quote (carteblanche @ Nov 18 2013 09:18pm)
URL is upper case.


Thank you! btn skip isn't skipping to the web page








import flash.events.MouseEvent;
import flash.net.navigateToURL;
import flash.net.URLRequest;

var uniURL:URLRequest = new URLRequest("http://www.yahoo.com");

btnSkip.addEventListener(MouseEvent.CLICK, skipIntroduction);

function skipIntroduction(event:MouseEvent):void {
stop();

navigateToURL(uniURL, "_self");
}







btnSkip.addEventListener(MouseEvent.CLICK, goToEnd);

function goToEnd(event:MouseEvent):void
{
gotoAndStop("end");
}
Member
Posts: 2,923
Joined: Jul 10 2011
Gold: 7,407.00
Nov 18 2013 07:31pm
error msg


1026: Constructor functions must be instance methods.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll