Target HTML Iframe from Flash

  • Cat6000
  • Newbie
  • Newbie
  • No Avatar
  • Joined: 08 May 2007
  • Posts: 7
  • Status: Offline

Post May 8th, 2007, 5:32 am

Hi there,

I have a flash file that has buttons in it. I want to put this into Dreamweaver and I need these buttons to link separate HTML files into an Iframe I have created in Dreamweaver.

The flash buttons are working great from dreamweaver, BUT they are not opening into my Iframe, the are opening into a new window.

In Flash, I am adding an action script 'GetURL', and then in the 'Window' option box, am putting my Iframe name.

getURL("mypagename.html", "iframename");

I have been reading forums for 2 days, and dont know why this is not working..

Can anyone help me?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 8th, 2007, 5:32 am

Post May 8th, 2007, 6:07 am

you made the flash file in flash 8 ?
if so, you may want to read this topic
“All you need in this life is ignorance and confidence, and then success is sure. ”
  • Cat6000
  • Newbie
  • Newbie
  • No Avatar
  • Joined: 08 May 2007
  • Posts: 7
  • Status: Offline

Post May 9th, 2007, 1:06 am

Hi there IceCold,
Thanks for replying to my question

I have had another go and it still doesnt seem to work. Yes i am using Flash 8, I checked out the link, and tried the options suggested there, but still no luck.

Here is my script

For Flash:

on (release) {
getURL("Page2.html", "Profile");
}
  • Cat6000
  • Newbie
  • Newbie
  • No Avatar
  • Joined: 08 May 2007
  • Posts: 7
  • Status: Offline

Post May 9th, 2007, 1:09 am

I guess there is a character Limit here...?

Where "Page2.html" is obviously the page I want to link into the IFrame, and "Profile" is the name of my IFrame

For Dreamweaver:

body>
<table width="658" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="376"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="376" height="457">
<param name="movie" value="RedButton.swf" />
<param name="quality" value="high" />
<embed src="RedButton.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="376" height="457"></embed>
</object></td>
<td><iframe name="Profile" src="Page1.html" height="150" width="327" frameborder="0" scrolling="Auto">content here</iframe></td>
</tr>
</table>
</body>
</html>

Sorry about the heap of script, so here i want a page already viewable and when you click on "RedButton", "Page2.html" views in the IFrame.

Hope this shows you what i am doing wrong and I hope you can help me! It is really frustrating, and I am not all that familar with script!

Post May 10th, 2007, 12:37 am

try to give an id to the frame as well. don't know, maybe it will work.
<iframe name="Profile" id="Profile" src="Page1.html" height="150" width="327" frameborder="0" scrolling="Auto">
“All you need in this life is ignorance and confidence, and then success is sure. ”
  • luckysas
  • Born
  • Born
  • No Avatar
  • Joined: 10 Oct 2007
  • Posts: 2
  • Status: Offline

Post October 10th, 2007, 1:38 pm

I had the same issue as you do. There is no problem with your code, but you need to change the global security settings of your Adobe flash player.

Here is what you do
1st -- go to the adobe site:
http://www.macromedia.com/support/docum ... ger04.html

2nd --choose the tab "Global Security Settings" and check the radio button "always allow"

3rd-- go to edit locations...click add a location: here you can pick a trusted location on your computer for your files/folders. I picked my desktop, but you can of course also make a trusted folder.

Make sure your dreamweaver folder/files is/are in your picked location(for me that was my desktop) then try and see if your flash button loads the I frame..it should work. You may have to change these settings for every browser you choose to test with.

I hope this works for you...it did for me anyway.

good luck :)
luckysas
  • darsh999
  • Newbie
  • Newbie
  • No Avatar
  • Joined: 11 Aug 2007
  • Posts: 8
  • Status: Offline

Post October 12th, 2007, 1:00 pm

First question to ask are you using flash 8 if yes use another version otherwise just do simple thing just give a specific name or i d to first frame it will work..
  • cityba
  • Newbie
  • Newbie
  • No Avatar
  • Joined: 03 Feb 2007
  • Posts: 10
  • Status: Offline

Post October 21st, 2007, 1:05 pm

Hello luckysas ,Thanks link!
  • sketchergirl
  • Born
  • Born
  • No Avatar
  • Joined: 07 May 2008
  • Posts: 1
  • Status: Offline

Post May 7th, 2008, 4:57 pm

Hi there, im having the same problem, just wondering if you have found a way around it yet?. :)




Cat6000 wrote:
Hi there,

I have a flash file that has buttons in it. I want to put this into Dreamweaver and I need these buttons to link separate HTML files into an Iframe I have created in Dreamweaver.

The flash buttons are working great from dreamweaver, BUT they are not opening into my Iframe, the are opening into a new window.

In Flash, I am adding an action script 'GetURL', and then in the 'Window' option box, am putting my Iframe name.

getURL("mypagename.html", "iframename");

I have been reading forums for 2 days, and dont know why this is not working..

Can anyone help me?

Post October 3rd, 2008, 11:07 pm

Hi to all, I discovered this forum searching for and answer for the problem about the iframe called from a flash button.

Reading I found something about the flash 8 was the trouble one.

Well, I decided to down my flash publishing version from 8 to 7 and the problem get solved.

If you don't have any animation effect or ActionScript that gets afected for that change maybe it can be the solution for you.

Seeya.

Post Information

  • Total Posts in this topic: 10 posts
  • Moderator: Moderator Team
  • Users browsing this forum: Thomper and 85 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© Unmelted Enterprises 1998-2008. Driven by phpBB © 2001-2008 phpBB Group.

 
 
 

Need a pre-made web design for your website?

Check out our templates here: Ozzu Templates