PDA

View Full Version : HTML based 'home' button for Flash



AgentOrange
May 13th, 2009, 02:35 PM
Hi all. I've built a Flash site, embedded it within an HTML page and I'd like to add a 'HOME' button to the HTML page linking to a particular frame within the Flash. Is this possible?

ninjay
May 13th, 2009, 04:14 PM
I don't believe you can direct an html link to go to a particular frame within the flash file. Only to direct to an entirely different flash.

kunjan
May 19th, 2009, 03:57 AM
Hello,

it is not possible if you think technically but what i believe is, it is possible logically. on the link of home you can call another html page then embed swf with this and in this swf you can write code like...
gotoAndPlay() function ...

if you want then you can pass dynamic value from html to swf and make gotoAndPlay(n)..

where n is dynamic variable passed from html page to flash file.

let me know if you have any query

Regards,
Kunjan

SandeR2
May 19th, 2009, 06:34 AM
You could make a new page with the same flash.
And in the flash you let the actionscript check the url of the page and according the url it will then go to a assigned frame. But if you would do this woudn't it be easier to just make a seperate flash.

kunjan
May 20th, 2009, 12:53 AM
Hello,

you are right it not easy but this type of solution I have used 2 to 3 times... we have to do this kind of stuff because we dont have direct connectivity with database in flash.

Regards,
Kunjan.