Iframe problems :(

  • l3lade
  • Born
  • Born
  • l3lade
  • Posts: 4

Post 3+ Months Ago

Well ive tried almost everything and am resorting to the tried and tested
method of asking for help :P

I cant seem to target an iframe, hears my iframe html

Code: [ Select ]
<iframe src="main.html" name="mid" width="800" height="1200" scrolling="no" frameborder="no" id="iframe"></iframe>


And hears my action script

Code: [ Select ]
on (release)
{
  getURL("http://www.midland4stroke.co.uk/links/midlink.htm", "iframe");
}
  1. on (release)
  2. {
  3.   getURL("http://www.midland4stroke.co.uk/links/midlink.htm", "iframe");
  4. }


i cant see any major problems to cause this, hears the page
http://rmmsclan.com/main/4stroke/

Btw im only doing this to further home my scills and i might send the finished
product to the owned of the site, the content is not mine
  • l3lade
  • Born
  • Born
  • l3lade
  • Posts: 4

Post 3+ Months Ago

the webpage is down now :( but can anyone help anyway?
  • GeTSm0keD
  • Beginner
  • Beginner
  • User avatar
  • Posts: 55

Post 3+ Months Ago

I'm not sure and havent tested this,
But I think you want to target the frame name,
not the Iframe itself
Code: [ Select ]
on (release){
  getURL("http://www.midland4stroke.co.uk/links/midlink.htm", "mid");
}
  1. on (release){
  2.   getURL("http://www.midland4stroke.co.uk/links/midlink.htm", "mid");
  3. }


be sure not to make capitals either,
if your frame name is Mid,
and you target mid, it won't work.

and I'm not sure if you have to use _mid either
its been a while for me and frames :-|
  • l3lade
  • Born
  • Born
  • l3lade
  • Posts: 4

Post 3+ Months Ago

retard me lol

**edit**

yay thanks
  • URanimEnigma
  • Born
  • Born
  • URanimEnigma
  • Posts: 3

Post 3+ Months Ago

Yo! I'm a newb. New to this forum as well.
I tried just about every code I came across to target an IFRAME with flash buttons.
I'm curious to know if it might be just that I'm using a specific Browser.
The one I'm using is SAFARI on a Mac.
That's because the installation software didn't come with any other browsers, such as Internet Explorer.
At least that is from what I have checked.
Anyway, Lots of other people have said that this code works for them.
It doesn't for me and I'm goin a bit nuts trying to figure it out and why?
Could you please tell me what Browser and Version of FLASH is.
I'm using Flash Pro 8.
I'll wait to start supposing.
  • l3lade
  • Born
  • Born
  • l3lade
  • Posts: 4

Post 3+ Months Ago

get firefox for mac ;)

http://www.mozilla.org/download.html
  • URanimEnigma
  • Born
  • Born
  • URanimEnigma
  • Posts: 3

Post 3+ Months Ago

Well, I don't think that would be the problem. If it was going to work, it would in every browser. Anyway, I did find the solution to the problem. The reason it doesn't work is because I was using Flash 8 and the way to do it is different for that version. Here's the solution.

Code: [ Select ]
on (release) {
    button_name.onRelease = function() {
        getURL("pagename.html", "framename");
    };
}
  1. on (release) {
  2.     button_name.onRelease = function() {
  3.         getURL("pagename.html", "framename");
  4.     };
  5. }


NOTE: You have to name your buttons(in the property inspector, instance names), and you have to put the code ON the button for it to work.[/code]

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 15 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.