PDA

View Full Version : How to edit Flash File


confused01
02-08-2006, 06:25 AM
Ok.. I am very new, and very inexperienced here... so forgive my ignorance. :)

I have downloaded a rotating image script.. which is fantastic, and works well. Problem is, I need the link to open in a new window.. and I can't seem to work out what to edit.

I would also like to have a double action so to speak on the link... but I know that could be asking a bit much given I don't know a lot about flash. Example being, if the user clicks on the picture link, it opens a new window and redirects the current window to a new page.. if that makes sense.

But firstly I need to get the link opening in a new window. The script I have downloaded is http://www.jeroenwijering.com/?item=Flash_JPG_Rotator

Would appreciate any help :D

Cheers

FormerSwinger
02-08-2006, 07:46 AM
I use this to open links in new windows:
getURL("javascript:window.open('http://...','_new','toolbar=yes, status=yes, location=yes,status=yes,menubar=yes,scrollbars=yes ,resizable=yes, width=600, height=400')");

confused01
02-08-2006, 08:00 AM
Thanks for that.

I have tried putting target"_blank" in but that doesn't seem to work.

This is the getURL section from the script....

if (links[currImage].length > 5) {
button.onPress = function() {
getURL(links[currImage]);
};

The pictures & links load from an external XML file... so not sure exactly where I would put any other code for open in new window. :confused:

confused01
02-09-2006, 01:41 AM
Ok...just in case it helps anyone else.. I managed to work through this, and get the results I was after... well I think :confused:

if (links[currImage].length > 5) {
button.onPress = function() {
getURL(links[currImage], "_blank); getURL("http:/otherlink.com")
};

So... that being done, the image links open in a new window, and then redirect the current page to a new one.

The only problems I now have is.... pop up blockers are stopping the new window launch... and someone tested the page for me and said the swf doesn't show, even though it works fine on my pc.. :confused: :confused:

Can anyone test it for me and see if it works for them please, cause I am not sure where to go from here.

View Here (http://www.lisachappell.net/testindex.html)