Google Answers Logo
View Question
 
Q: hyperlinking in Flash 8 ( No Answer,   5 Comments )
Question  
Subject: hyperlinking in Flash 8
Category: Computers > Programming
Asked by: mwinstanley-ga
List Price: $15.00
Posted: 28 Dec 2005 08:08 PST
Expires: 27 Jan 2006 08:08 PST
Question ID: 610484
how do you hyperlink to another page in a website through a flash
driven menu? I know how to do it in straight HTML, but not Flash and
have not had any luck finding examples. I have a template that I am
trying to modify and I cant click on the 'about us' menu or 'contact
us' link in the flash portion of the site (or any other 7 pages in
this website).

I see how I can create a new popup window with the getURL command and
go to a new URL, but nothing for a simple hyperlink to another page in
the same site.  I am assuming that the object has to be a button. I am
editing with Flash 8.

Any help would be appreciated.

Thanks
Matt
Answer  
There is no answer at this time.

Comments  
Subject: Re: hyperlinking in Flash 8
From: cascaval-ga on 29 Dec 2005 11:28 PST
 
Have you tried...
getURL("your_url","_self");

If that doesn't work and if you are setting a relative URL, try to set
an absolute URL, eg.
getURL("http://www.your_site.com/your_page.html","_self");
Subject: Re: hyperlinking in Flash 8
From: karthik_wiz-ga on 04 Jan 2006 08:44 PST
 
hey, i don;t think there is a simple solution to this problem. what i
suggest is to do an fscommand and call a javascript function outside
of flash. The javascript function will capture this fscommand. The
parameters for this fscommand would be like
"fscommand("open","http://www.yahoo.com")". The javascript function
that gets called would then simply do a document.redirect to the web
address provided in fscommand.

if you need the exact code to do this, please let me know and i will
post it for you.
Subject: Re: hyperlinking in Flash 8
From: karthik_wiz-ga on 04 Jan 2006 08:57 PST
 
basicaly what you do is publish your flash file as html and choose the
option for flash with fscommand.

flash will put code for the fscommand in your html file. which looks like this

function test_DoFSCommand(command, args) {

            var testObj = isInternetExplorer ? document.all.test : document.test;

            //

            // Place your code here.

            //

}
where "test" here is the name of your flash movie. 
within this fscommand function you add this piece of code.

if(command == "open")
 {
   window.location.href = args;
 }

make sure the hyperlink on your flash file calls an 
fscommand("open","http://your-url-goes-here")
Subject: Re: hyperlinking in Flash 8
From: mwinstanley-ga on 08 Jan 2006 22:21 PST
 
I am sorry but I think that you are a little ahead of me on this one. 
I am still trying to follow cascaval-ga's suggestion, but not coming
up with any solutions.  I will continue to explore any other
options/suggestions that are posted on this message forum.  I do not
understand what fscommand is or how to create a JS to call for it.  I
am not a JS prgmr by any means.  If you would be able to post any
additional examples, I would appreciate it.

MWINSTANLEY
Subject: Re: hyperlinking in Flash 8
From: andrewmeister-ga on 26 Jan 2006 11:19 PST
 
I don't have flash on this computer so this code may be incorrect. 
However, it might be enough so that you can figure it out.  First set
the text or pic or shape as a button object.  Then select the object
and enter in the actionscript:

onPress {
  getURL("your_url", "_self");
}

Lastly make sure this actionscript is enabled for all of the timeline
that you want it for.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy