PDA

View Full Version : Flash Buttons, ActionScript, and IFrames...


Thothrah
07-10-2004, 12:15 AM
Ok Heres My Scenario...

On my html page I have 1 table with 3 rows. In the first row i have placed a flash navigation bar, in the second row i have placed an iframe, and in the final row i have placed an image.

Now.. In regards to actionscript, what coding would I use and where exactly would i place it, if i wanted my flash buttons to open different pages in the iframe, while not affect the other 2 rows?

There have been similar threads but they have not quite helped, rest assured i went threw the archives.

I know this must be very very simple, and I really do look like a newbie, but the help would be much appreciated!!

Thank You For Your Time

tg
07-10-2004, 12:49 AM
1 what version of flash are you using?
2 does your iframe have a name?
3 if not 2, can you use regular frames/frameset?

Thothrah
07-10-2004, 12:54 AM
I am using Flash MX 2004.

The name of the iframe is currently "Home.html" but would change for each button I assume, as it would open different pages in that particular iframe.

Thanks again for the help

tg
07-10-2004, 01:24 AM
with regular framesets (in html) each specific frame can be assigned an identifying name, thats what i'm talking about, not the name of the file that will go into the frame.

i don't have flash on this box, but i think you can use

getURL(url,location,method);

in the above command, location would be the identifying name of the frame, method can be ignored, and url is the url of the page you want loaded into the frame.
so if each button had an instance name then on your main timeline you would have something like:

home_btn.onRelease=function(){
getURL("home.html",myIframeName,"get");
}

and do the same for all the buttons.

but i'm not too sure if its the same for mx2k4, i would imagine it is, also i know little to nothing about iframes. i don't use them cause they are not standard to all browsers, just ie.

Thothrah
07-10-2004, 07:48 AM
Thank you for all your help tg, you are a life saver, all the best to you!!

:)

boyzdynasty
07-10-2004, 01:54 PM
you can target to open up html pages in iframes. just do it the same way you would w/ frame sets.

tg
07-10-2004, 05:06 PM
thanks boyz, i thought you could, but have never used them. learn something new every day.... and since its the morning, i can relax for the rest of the day now.

boyzdynasty
07-10-2004, 07:48 PM
no problem.
just recently got back from vacation (Orlando, FL).

so much work to catch up but the I still have vacation on the brain. will get back to the daily work routine after this weekend is over [i guess]