Forgive if I am not explaining this very well- here goes. I have one major site with three other gallery sites that are related. From one of the gallery sites I need to create a button that takes you back to a specific page on the major site. Playing with the coding has not resolved the issue so appreciate any help in finding magic:
on (press) {
getURL("http://www.client's main site.net","_blank");
}
gets me back to the beginning of the major site but I need to get to a certain page within the site. Is this possible? Thank you! All coding is AS2, Mac platfom, FlashCS5.
if you're loading an html file, you can append a query string in flash that indicates the frame you want to play, parse the query string using javascript in the html file and use the as2 externalinterface class to retrieve that query string and find the frame that should be displayed. finally, you must ensure that frame is loaded before executing a goto method.
if you want to load frame 22, use:
on(press){
getURL("http://www.yoururl.com/page.html?framenum=+22","_blank");
}
then within the head tags of page.html in yoururl.com, use:
<script type="text/javascript">
function urlF(){
return location.href;
}
</script>
and in the swf that's embedded by page.html, add the following to frame 1:
import flash.external.ExternalInterface;
stop();
trace(ExternalInterface.call("urlF"));
// upload that to your server, post the url to the flash containing the getURL() and indicate which button needs to be pressed.
If you are using frames, just use the name of the target instead "_blank".
on (press) {
getURL("http://www.client's main site.net","content");
}
voila!
North America
Europe, Middle East and Africa
Asia Pacific