all groups > flash (macromedia) > march 2006 >
You're in the

flash (macromedia)

group:

URL links not working in SWF from Flash MX2004


URL links not working in SWF from Flash MX2004 phillipthegreat
3/31/2006 11:11:03 PM
flash (macromedia): I'm fairly new to flash (used to be decent with it, but I've had about a 2 year
break).

I created a menu header that has buttons that are supposed to link to their
corresponding pages in my webpage. I added the 'open webpage' action to the
button with 'upon release' slected for the action starting point. When I load
up the SWF file everything runs fine - the menu animates and sets itself, and
all of my buttons are clickable, but when I click on any of the buttons nothing
happens. I think part of the problem is going to be that I work with iframes
and I have to manually change the defualt "_blank" tag in the actionscript to
"ifrm1"... but shouldn't it work regardless? Is there anything else I could
be doing wrong or is there a specific way you're supposed to link flash buttons
to an iframe?

thanks
Re: URL links not working in SWF from Flash MX2004 alanwallace4
3/31/2006 11:35:59 PM
Hi,
Can you show us a copy of the code which you are using on the buttons.
Cheers
Re: URL links not working in SWF from Flash MX2004 Wolf van Ween
4/1/2006 12:00:00 AM
Re: URL links not working in SWF from Flash MX2004 phillipthegreat
4/1/2006 1:33:37 AM
on (release) {

//Goto Webpage Behavior
getURL("http://www.greenless.com/philliplybrand/news.html","_ifrm1");
//End Behavior

Re: URL links not working in SWF from Flash MX2004 phillipthegreat
4/1/2006 6:42:47 PM
Sorry that was a typo. It's not like that in the actual code I'm using.

I've also tried changing the target to "_self" and "_blank" and neither of
those work.

Does this have something to do with the 'stop' command that I have on there to
stop the movie from looping? Will the buttons' actions still work after the
movie's been told to stop?
Re: URL links not working in SWF from Flash MX2004 Wolf van Ween
4/1/2006 11:23:04 PM
No, the buttons still work. The stop() doesn't stop actionscript, just the
playhead.
But let me ask you a basic question. Are you testing from your local machine?
If so, upload to a server and try again.
Re: URL links not working in SWF from Flash MX2004 phillipthegreat
4/2/2006 12:04:38 AM
I have been trying it locally from my machine both inside my HTML editor in the
'preview' mode and with IE opening the HTML files. I can upload it and give it
a try, but why would that make a difference?
Re: URL links not working in SWF from Flash MX2004 Wolf van Ween
4/2/2006 12:16:38 AM
AddThis Social Bookmark Button