PDA

View Full Version : Flash acionscript help


wormthingy
24 Jul 2007, 11:52
I tried google, seems like noone knows.
Here's the problem:
I need to place a website on a page of a pageturning flash movie.
I already made the page flipping part, but i can't seem to get the website to load within the page MC. I used,
{getURL("introduction.html"), window="mainFrame");
But it won't work. Flash says,

Symbol=page1, Layer=Layer 4, Frame=1: Line 1: ';' expected
{getURL("introduction.html"), window="mainFrame");

But as far as I can tell, there is a ";" at the end of the line.
I'm using Flash MX, a.k.a. Flash 6

Please help me?

Xinos
24 Jul 2007, 15:13
It's usually a problem on the line above, or a codeblock problem. Post all of that code if you can't find it..

AndrewTaylor
24 Jul 2007, 15:59
Your brackets are all wrong.

I've not used ActionScript in a while so I don't know what the problem is, but my guess would be that the correct code is:
{getURL("introduction.html", "mainFrame");}

Whatever it is, it doesn't involving opening a brace and never closing it and then closing a bracket you never opened.

SupSuper
24 Jul 2007, 20:53
Also, you can't just put an external page into a movieclip, getURL() just loads the requested page onto the browser.

wormthingy
24 Jul 2007, 21:00
Your brackets are all wrong.

I've not used ActionScript in a while so I don't know what the problem is, but my guess would be that the correct code is:
{getURL("introduction.html", "mainFrame");}

Whatever it is, it doesn't involving opening a brace and never closing it and then closing a bracket you never opened.

Almost, the first bracket shouldnt have been there in the first place, I ofund this out by going back to the basic editor and dragging the getURL into the script.

Also, you can't just put an external page into a movieclip, getURL() just loads the requested page onto the browser.

Darn. Ah well.

Mods, I found the solution to my problem (load the xml generated by the cms on the pages, publishing/editing content to a swf from anywhere! ) so this thread may be closed for as far as i care.