944,052 Members | Top Members by Rank

Ad:
Jan 4th, 2007
0

Flash MX Professional 2004 Actionscript HELP

Expand Post »
Hi,

I am using Flash MX Professional 2004. I have created a flash intro page and want to link it to the home page of my website (which i created in Dreamweaver). In Flash, i created a button and applied action script. I used:

on (release) {getURL(home.htm);

}

The flash doc and website docs are in the same location. The button works, it just comes up with an error message saying cant find the file (the file IS there).

Any suggestions to fix this problem or why it isn't working.

Any help appreciated.

Thanks
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jen12 is offline Offline
6 posts
since Apr 2006
Jan 5th, 2007
0

Re: Flash MX Professional 2004 Actionscript HELP

Quote ...
.htm .html
Does the extension make any difference.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jan 5th, 2007
0

Re: Flash MX Professional 2004 Actionscript HELP

Hi,

Thanks for replying. It does not make any difference.

The error message is:
‘file:///C:/Documents%20and%20Settings/My%20Documents/File%20Name/Folder%20Name/undefined’. Make sure the path of Internet address is correct

Any help appreciated!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jen12 is offline Offline
6 posts
since Apr 2006
Jan 5th, 2007
0

Re: Flash MX Professional 2004 Actionscript HELP

Erm try making the path more simple to eliminate errors.

For example place your html file somewhere simple such as directly in the c: drive. I.e.

c:/yourfile.html



Then I guess you could change on (release) {getURL(home.htm); to

on (release) {getURL("c:/yourfile.html");

Have a look here as well:

http://www.w3schools.com/flash/flash_button2.asp


Don't forget to use quotation marks around your path as well!!!
on(release)
{
getURL("c:/yourfile.html", "_blank"); 
}
Last edited by iamthwee; Jan 5th, 2007 at 9:05 pm.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jan 5th, 2007
0

Re: Flash MX Professional 2004 Actionscript HELP

I fixed it.

I am so dumb! It just needed double quotes around home.htm

So:
on (release) {getURL("home.htm");

}

Thanks everyone.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jen12 is offline Offline
6 posts
since Apr 2006
Jan 5th, 2007
0

Re: Flash MX Professional 2004 Actionscript HELP

Yeah I just realised! He he.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Configuring Readymade Scripts Forum Timeline: Case Tracking System
Next Thread in Configuring Readymade Scripts Forum Timeline: Guestbook question





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC