User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Existing Scripts section within the Web Development category of DaniWeb, a massive community of 425,929 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,691 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Existing Scripts advertiser: Web Code Converter
Views: 2778 | Replies: 5
Reply
Join Date: Apr 2006
Posts: 6
Reputation: jen12 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jen12 jen12 is offline Offline
Newbie Poster

Help Flash MX Professional 2004 Actionscript HELP

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Posts: 4,782
Reputation: iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light 
Rep Power: 17
Solved Threads: 319
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: Flash MX Professional 2004 Actionscript HELP

  #2  
Jan 5th, 2007
.htm .html

Does the extension make any difference.
I'm not a programmer. My attitude starts with ignorance, holds steady at conversation, and ends with a trip to the hospital. Get used to it.
Reply With Quote  
Join Date: Apr 2006
Posts: 6
Reputation: jen12 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jen12 jen12 is offline Offline
Newbie Poster

Re: Flash MX Professional 2004 Actionscript HELP

  #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  
Join Date: Aug 2005
Posts: 4,782
Reputation: iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light 
Rep Power: 17
Solved Threads: 319
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: Flash MX Professional 2004 Actionscript HELP

  #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 8:05 pm.
I'm not a programmer. My attitude starts with ignorance, holds steady at conversation, and ends with a trip to the hospital. Get used to it.
Reply With Quote  
Join Date: Apr 2006
Posts: 6
Reputation: jen12 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jen12 jen12 is offline Offline
Newbie Poster

Re: Flash MX Professional 2004 Actionscript HELP

  #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  
Join Date: Aug 2005
Posts: 4,782
Reputation: iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light 
Rep Power: 17
Solved Threads: 319
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: Flash MX Professional 2004 Actionscript HELP

  #6  
Jan 5th, 2007
Yeah I just realised! He he.
I'm not a programmer. My attitude starts with ignorance, holds steady at conversation, and ends with a trip to the hospital. Get used to it.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Existing Scripts Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Existing Scripts Forum

All times are GMT -4. The time now is 9:10 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC