Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling parts of a flash file into seperate html files 1

Status
Not open for further replies.

s0crates9

Technical User
Jun 18, 2005
70
US
I would like to have an all flash website, but I want to be able to have each section of the flash to be on it's own page.

For example, I would like to have a site with the categories:

Contact us
About Us
Services
News

So essentially, when the user navigates through the flash file from category to category, they will be on seperate html files like:

contact.html
about.html
services.html
news.html

I am new to flash, so I have an idea that it is done through actionscript but have no idea - perhaps there is an example someone can make for me to study or guide me to some material on how to do this.

Thanks so much!

Web site design, internet marketing, SEO and business solutions company.
 
You just need a simple script like this in the main timeline:
Code:
contactUsButton.onRelease = function():Void  {
	getURL("contact.html");
};
"contactUsButton" is the name given to the Button instance on Stage.


Kenneth Kawamoto
 
Sorry I just saw the title of your post and I think what you want is to have 1 Flash file and display different sections of it depending on the hosting HTML.

One way is to use FlashVars: <
You can send the variable such as "section=contactUs" from HTML to the SWF, then you can navigate the playhead to the desired frame depending on the value of the variable "section".


Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top