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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash with frames

Status
Not open for further replies.

hat

Programmer
Joined
Jun 4, 2001
Messages
8
Location
ID
How do i get flash to work with frames?
Flash 5 has only _top,_parent,_self and _blank none of which enable me to open a page in the frame next to the flash url
 
you should be able to just type in the frame name. someone correct me if I am mistaken...but I believe if you were trying to target a frame named main then you would simply specify mainFrame instead of _blank , _top, etc.

yourframename+Frame Ya' Gotta Love It!
sleepyangelsBW.jpg
 
It doesn't seem to work i've tried that already
 
It doesn't seem to act to anything. It just automatically responds to a command as _blank
 
Do u know of any sites that would beable to help me with this problem?
 
Doesn't anyone know???
 
Tghe other option, of course, is to simply rename your main frame as _main. You do this in the page where you define your frames; just simply add the name tag to the html:

i.e.:

<frame name=&quot;_main&quot; ....

=)

PetitPal
 
Sorry for the second post, but I just checked one of my movies that uses frames and all you need to do is either put a variable name in the window bit (e.g.: my_target) or put the actual frame name in quotes (e.g.: &quot;_my_main_frame&quot;).

I think the way I did it in my movie was to keep all the frame names in a text file, load this on entry to the movie and then just reference the variables in the 'url' and 'window' bit; this means if the layout of the site changes / frame names etc then you don't have to republish the movie; just change the text file.

Hope this is useful.

=)

PetitPal.
 
This doesn't seem to work either flash can't seem to detect the _main function
 
As far as I know, all you need to do is, on the getURL thing, put the name of the page (e.g.: my_page) and then un-check the expression box, so that it appears in quotes in the actionscript, then put the target (e.g.: _main) and then un-check the expression box.

The script will look like this:

getURL( &quot;my_page&quot;, &quot;_main&quot; );

If you try this and it doesn't work, or already have tried it then could you paste (or e-mail me) the html code that sets up your frames and the ActionScript code that you are using?

Ta,

=)

PetitPal.

p.s. My e-mail is petitpal@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top