Flash MX Professional 2004 Actionscript HELP

Reply

Join Date: Apr 2006
Posts: 6
Reputation: jen12 is an unknown quantity at this point 
Solved Threads: 0
jen12 jen12 is offline Offline
Newbie Poster

Flash MX Professional 2004 Actionscript HELP

 
0
  #1
Jan 4th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Flash MX Professional 2004 Actionscript HELP

 
0
  #2
Jan 5th, 2007
.htm .html
Does the extension make any difference.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 6
Reputation: jen12 is an unknown quantity at this point 
Solved Threads: 0
jen12 jen12 is offline Offline
Newbie Poster

Re: Flash MX Professional 2004 Actionscript HELP

 
0
  #3
Jan 5th, 2007
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!
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Flash MX Professional 2004 Actionscript HELP

 
0
  #4
Jan 5th, 2007
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.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 6
Reputation: jen12 is an unknown quantity at this point 
Solved Threads: 0
jen12 jen12 is offline Offline
Newbie Poster

Re: Flash MX Professional 2004 Actionscript HELP

 
0
  #5
Jan 5th, 2007
I fixed it.

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

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

}

Thanks everyone.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Flash MX Professional 2004 Actionscript HELP

 
0
  #6
Jan 5th, 2007
Yeah I just realised! He he.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Existing Scripts Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC