Link to specified frame on a different page?

Hello,

I think this question is similiar to the recent post called “goto and play”, but I am wanting to accomplish two different things:

  1. To open a specified frame in a single-scene .swf file

  2. To link to this frame from a different web page.

Here is the project URL:
<http://www.gatewaytola.org>

The Flash header links at the top of the page – HOTELS, PARKING, etc. – need to take visitors to
<http://www.gatewaytola.org/maphome.html>

… But HOTELS should take them to the Hotels frame of the .swf file that is embedded on the maphome.html page, PARKING should take them to the Parking frame, etc.

I am not sure if this is a pure ActionScript thing, or if I need to employ some JavaScript, or something else.

Thanks for any suggestions you can give!

This just may be of some help to ya… Seems like LocalConnection(); is the only way to make something like this possible…

http://www.flashkit.com/tutorials/Projector/Interact-Dragnovi-975/index.php

:smirk:

Hm… Thanks for rooting out this link! Discerning actual code from place holders is often a challenge for me… :puzzle:

I will give it a try (and still open to other possible solutions!).

SylvanLady

have you tried naming your frames inside your swf and selecting
named anchor form under the frame name field?
It gives you acces to link to a specified frame in your swf something like
<www.yoursite.com/yourpage_with_flash.html#a_frame_in_the_swf>
It’s easier this way… I guess. :slight_smile:

I am just checking back in…

Thanks for this suggestion! I am hoping it can really be this straightforward.

Does this mean I can treat it as a simple link, and treat the frame like an anchor if I name it?

I will try this out ASAP!

Does this mean I can treat it as a simple link, and treat the frame like an anchor if I name it?

Yes, that’s what it means :wink:

Well… I’ve made my first and second attempt. Can’t get the named anchor technique to work. :crying:

I named the anchor in frame 2, “hotels” and then used a simple ActionScript to create a link <maphome.html#hotels>

I need to go out for awhile, but I looked through my Hands-on Flash MX book, and they consider using named anchors an fscommand thing. Showed how to Publish to html using named anchors. I tried that, and it behaved badly.

I will have to research more when I get home!