Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > Macromedia Flash-button only works in Macromedia Flash, not when it is saved in SWF-format
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 9th June 09:43
jjwluijten@gmail.com
External User
 
Posts: 1
Default Macromedia Flash-button only works in Macromedia Flash, not when it is saved in SWF-format



Hi,

I made a flash-animation with a button-layer that redirects to a
external URL.
In Macromedia Flash the animation works just fine, but when I compile
it to SWF-format, the animation doesn't open a link when you click.
I have downloaded an example file with a button, but after saving it
as an SWF-file, the button doesn't work.


Does anyone know how to solve this problem?


Kind regards.
  Reply With Quote


  sponsored links


2 9th June 09:43
the buffalo
External User
 
Posts: 1
Default Macromedia Flash-button only works in Macromedia Flash, not when it is saved in SWF-format



Hmm....you are using ActionScript, correct?

If so, I am assuming you have similar code on your button as below:

on(release)
{
getURL("http://url.com", "_blank", "POST");
}

whereas "http://url.com" is your URL, so if you're redirecting to
Google, it would be "http://www.google.com" (Note the HTTP://)

the "_blank" is the piece of parameter that determines in which window
will the site be shown. "_blank" opens a new browser window, while
"_self" will open the URL in the current window (assuming the SWF is
already embedded in the browser), "_parent" will open the URL in the
parent of the current window (if you're using frames, the URL will
open in the parent frame, otherwise, don't worry about it). I have no
idea what "_top" does, but I doubt you'll be using that.

Anyway, hope that solves your problem. If you're doing something
totally different, don't be afraid to post back. Many people will be
more than willing to help you.

Good day,
TheCodeArchitect.


  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666