Jump to content


Link Flash Movie clip so it opens html doc in a frame


  • You cannot reply to this topic
5 replies to this topic

#1 Radam

    Young Padawan

  • Members
  • Pip
  • 10 posts
  • Location:Stow, Ohio

Posted 17 October 2006 - 10:18 PM

Does anyone have any clue how to do this.

I have a Nav bar that i made in flash and I want to link it so that when i click on one of the movie clips it opens a html doc in a frame.

I have

homeNav.onPress = function(){
gotoAndStop("home"); getURL("news.html","_content");
}

in action script

and

<frameset>
<frame src="home.html" name="_content" width="550" height="100%" frameborder="0" scrolling="auto" allowtransparency="true">
</frame>
</frameset>

in the html.

So one would think that it would just work, but of course it doesn't.

If someone could please help me i have been trying to do this for about 2-3 hours.

Thanks

-Radam-

#2 PixelHiveDesign

    Young Padawan

  • Members
  • Pip
  • 83 posts
  • Gender:Male

Posted 17 October 2006 - 10:24 PM

Try this tutorial:
http://www.kirupa.co...ash5/frames.htm

#3 Radam

    Young Padawan

  • Members
  • Pip
  • 10 posts
  • Location:Stow, Ohio

Posted 17 October 2006 - 11:07 PM

i just tried the tutorial and i don't think it works for flash 8. I did exactly what the tut said and it still opens in a new window :-(

#4 Ben

    P2L Jedi Master

  • Publishing Betazoids
  • PipPipPipPip
  • 1,366 posts
  • Gender:Male
  • Location:VIC, Australia

Posted 18 October 2006 - 12:44 AM

Try removing the underscore (_) before the name. I dont know if it will work, I dont normally do this..

#5 Wowzers

    Young Padawan

  • Members
  • Pip
  • 40 posts

Posted 18 October 2006 - 02:51 AM

try making it..
Document:

<iframe src="thefile.html" id="main" width="550" height="100%" frameborder="0" scrolling="auto" allowtransparency="true"></iframe>



actionscript:

homeNav.onPress = function(){
gotoAndStop("home"); getURL("news.html","main");
}

No underscore should be needed. and if that fails, try making the link in the actionscript the full http://www.yoursite.com/file

Edited by Wowzers, 18 October 2006 - 02:53 AM.


#6 Radam

    Young Padawan

  • Members
  • Pip
  • 10 posts
  • Location:Stow, Ohio

Posted 19 October 2006 - 10:12 AM

Wowzers i tried that and no luck. i think it has something to do with javascript linking the flash and the html, anyways i just made that whole section flash instead of having it open an html doc. thanks for the help tho.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users