ActionScript 2.0 :: Target HTML Iframe With FLASH?
Jul 16, 2008Im doing a site where the menu is in flash, and the rest of the site is in HTML.
I was wondering if it's possible to target an Iframe with Actionscript or flash?
Im doing a site where the menu is in flash, and the rest of the site is in HTML.
I was wondering if it's possible to target an Iframe with Actionscript or flash?
I am still used to AS2 and this is resulting quite complicated.I am trying to make it so that when the timeline stops, for a website to load within an iframe next to it.I have the .swf on the left and I want to open up content on the right.as an example, I want to open up within the iframe. This is the code I have so far:
stop();
var url:String = "google.com";
var request:URLRequest = new URLRequest(url);
[code].....
I would like to place a scrollbar in the HTML page that is in the iFrame. I also would like to remove or hide the original scrollbar from the iFrame (without using the scrolling="no" since this stops scrolling all together). Is any of this possible? Am I able to control HTML scroll with a Flash scrollbar? Will I need to use javascript?
I understand my way around both actionscript, html, CSS, and some javascript....if any of this is a possiblitiy could you at least point me in the right direction? Would this be better if I built .PNGs and created Divs to build the scroll bar on the HTML page?
On my HTML page, I have <div> with an <iframe>, which references another page, that contains a Flash SWF object. If I set any of these:
display:none;
visibility:hidden;
opacity:0;
filter:alpha(opacity=0);
on the <div> that wraps the <iframe>, the SWF object sometimes remains in plain sight, while the <div>and <iframe> go out of view as expected.
[Code]...
This should work in the latest versions of Safari, Chrome and Firefox on a Mac and in the latest versions of Chrome, Firefox and Internet Explorer on a Windows 7 machine, and it should fail (no errors but the hiding behavior doesn't occur) in Safari on a Windows 7 machine.
It might be pertinent to note that one thing I've noticed about the SWF objects that have passed and failed are that the ones that have failed all revolve around video content whereas the ones that have passed don't. Granted I haven't tested more than a half-dozen objects, but that's quite a coincidence. :)
PHP Code:
<HTML>
<HEAD>
<SCRIPT>
<!--
[code]....
want to load a html page in a iframe when i click a flash button.
My code for the iframe:
[Code]....
Shouldn't that be alright? I've tried with _IFRAME too, but didn't work out. Instead of opening in the iframe, it opens in a new window. My flash button is on the main page, not in a iframe and the iframe is on the mainpage too.
I have searched the forums and know that you can use
[AS]
on(release){
getURL("somefile.htm", "someframe");
}
[/AS]
But I have and iframe and I want to load a new .htm file into it my HTML is here
{iframe src="main.htm" height="87%" width="900" align="middle" frameborder="0" scrolling="auto" name="mainFrame"} {/iframe}
I used {} 'cos I dont know if the froum uses HTML any way I tried to do
[Code]...
want to load a html page in a iframe when i click a flash button.
My code for the iframe:
[Code]....
Shouldn't that be alright? I've tried with _IFRAME too, but didn't work out. Instead of opening in the iframe, it opens in a new window. My flash button is on the main page, not in a iframe and the iframe is on the mainpage too.
I've made a site where an iframe calls to a top navigation element, with a javascript drop down menu. I have it working where the menu drops over a center flash element, but even when the menu is not "dropped" - any element in that area on the flash does not respond to clicks.
I've changed z indexes, and now i cant seem to get the flash file to even be ontop of the iframe -
heres a link
[URL]
heres the code -
<body>
<div id="wrapper"><center>
<div id="headerwrap">
[Code]....
I have an iframe to a page where a Flash swf file is running; does anybody have an idea how to make it transparent so that my drop-down menu should be shown perfectly? Kindly be informed I can't edit the source page (add param = wmode, value = transparent to the Flash object), only if there is any chance to make it possible in iframe or some JavaScript on my page, I have already tried allowtransparency="true" and background-color="transparent".
View 4 RepliesI know this question was asked before, but none of the solutions work properly. How do I render a basic html in flex 4 without an iframe? I saw textarea renders some weird format that would suffice if it would work. For example I wan't to add an image like this
[Code]...
then 1. I press enter 2. I add the image again like above, I get the img tag inserted 10 times or so; which is weird (but not funny at all). All things being equal, html is a much normal approach, is there a basic renderer for flex 4 that works ok?
How do I render a basic html in flex 4 without an iframe? I saw textarea renders some weird format that would suffice if it would work.For example I wan't to add an image like this
text_area.htmlText += "<img src='...' />";
then 1. I press enter 2. I add the image again like above, I get the img tag inserted 10 times or so; which is weird (but not funny at all). All things being equal, html is a much normal approach, is there a basic renderer for flex 4 that works ok?
How to display the html page in flexpopup without using iframe ?
View 1 RepliesI have a mx:html component in a AIR Desktop Application that load an external webpage into it...this webpage has an iframe in it and the iframe load (obviously) another page...I can't figure out how to get the code of the iframe...If I try to get the webpage content I only retrive the start page like:
File webpage.html
<html>
....
<iframe src="http://host/framepage.html">content default</iframe>
....
[code]...
It's like as the second page is not loaded, but it's actually be loaded and rendered in the browser window (i tried also using a button so I can delay the search for the iframe content.
I want to be able to click and HTML Link such as:
<a href="gotoFrame" target="flashID">TEXT</a>
And have the Flash read that you clicked the link and then go to the specified place depnending on the HREF.
Basically, I just need to know how to get Flash to read that you clicked the HTML Link.
Is it possible to create a link on an html page that when clicked will load a new page, which has a flash movie on it, but make the flash file jump to, say frame 50, or a frame label?
View 2 RepliesI have a text field that has an html link in it with target='display'. So what i want to happen is when the link is clicked, flash opens a new window called display, then when another link(with same taget) is clicked, it will use the existing open window.
The problem is that it keeps opening new windows.
I know that this works in html, but for some reason Flash is not using the same window.
Here is the code i have for the text field:
[AS]resInfo_mc.link_txt.htmlText = "<a href='"+GetterL.OutputLink+"' target='Display'>"+GetterL.OutputLink+"</a>";[/AS]
How do you target html iframes with actionscript within a flash movie? I have several buttons I wish to have target a single frame. I know that in Actionscript 2.0 and 1.0 it only requires a small amount of code, so I assume 3.0 also only requires a small amount of code.
View 12 RepliesI have a web page which has a SWF file embeded. I have an issue with the focus.
Steps to reproduce:
1)Click on a HTML Text Field which is inside a Iframe
2)Click on a Flex Field.
3)Begin to type some text.
Expected Result is the entered text should go in the Flex TextInput field but the actual Result is it goes into HTML text field.
This is the bug which was filed but closed without any resolution. The workaround suggested there doesnt work. ( bugs.adobe.com/jira/browse/SDK-12377 )
This is happening only in IE 6.0 and IE 7.0. Below is the live example. [URL]
Kirupa's tutorial on how to use Flash to target a certain frame in HTML doesn't work any more. The page opens up in a new window instead of in the targetted frame. This is the code that is used: on (release)
[Code]...
Note: I rarely join forums or post threads, however, given the living hell i went through to figure this problem out I thought i would go ahead and post this for all others having my problem (in hope that you find this link and it solves your problem). Aim: using frames, I want to create a flash menu in the left frame, the buttons in the left frame should open up the target page into the (main) right frame. [in other words a normal frame based website that has a flash menu as the navigation for the site] Problem: When using getURL to open the page in the frame i.e. on (release) {
[Code]...
I am doing a site with a top flash nav, and Iframe with some flash and html in it.Is there a way to have the flash in the Iframe give actions to the flash nav??when you hit the porperties button, i want the nav to change to FOR SALE.something like:
on (release) {
_level0.clip.gotoAndPlay(2);
}
I am using a flash template with a _urls.txt file. I would like to change the code so I can display a target html page in an inline frame. My goal is to change the page content when a nav item is choosen without reloading the swf.Here is the original code in the template.
on (rollOver) {
gotoAndPlay("s1");
}
on (rollOut, releaseOutside) {
[code]...
When I target flash player 10 in flex builder 3, the index.html template along with some other files (history.js, etc) are removed and no wrapper html page is built.Anyone else experiencing this? I have an ant build script as well, but I was trying to run the built in fb builder.
View 4 RepliesIs it possible in flash to use an iframe? I understand that you can use a dynamic textfield to import HTML text but as far as I know you cannot import images into the field.
View 3 Repliesanyone know how do i add a iframe inside the flash? the html is
<iframe width="100%" height="768" frameborder="no" scrolling="no" src="http://www.yoursite.com"> </iframe>
I have a website that I am creating in Flash CS5. There are several different pages of context and each of these pages are loaded from it's own XML file. I am trying to figure out how to add an iFrame to one of these pages. Specifically, I am trying to add the Facebook Like Box to a page and I figured the iFrame would be the best way to do it.
View 1 RepliesI have been using Flash for years by the skin of my teeth. I like the asthetics so I can seem to stop using it. Anyway. I just threw this website together using a flash menu at the top and an iframe in the center to change the content. I know I could just re-do the whole site and make it work but I think that I am probably missing a really simple code fix in Flash to make Firefox load the pages in the iFrame. The website is www.greathousefarm.com and I am on a mac so I did it checking Safari and it worked perfect. Than my husband checked it in Firefox and it kept opening a new window instead of loading into the frame. [code]...
Is there a simple code addition I can use to tell Firefox to target the frame?
It just reloads the animation instead of going to the html page the button is pointed to. I can give a link to it if you need.
View 3 RepliesAn image says a thousand words:URL...A flash object in a CKEditor dialog is being blocked by the IFrame element. This only happens on Chrome. I have tried changing the z-index, that didn't work at all.
View 1 Replies