Embed external HTML page in Flash
Does anybody know how to embed an external HTML page into Flash? I am envisioning something like an iFrame, but can't really figure how this would work. I've attempted using a scrollpane, but it didn't work at all.
Any suggestions?
you can display it in a popup window or in the same window or in an iframe in the same html page that displays your swf.
When you say this, do you mean I can create an iFrame on the same html page that displays my swf, and have it be dynamically populated by what the user clicks on the swf?
yes, exactly.
use getULR() (as2) or navigateToURL() (as3) with the 1st parameter being the html page you want to display and the 2nd parameter being the iframe "name" property.
Similar Messages
-
how to load external html page into flash? (AS3)
You cannot load an html page into Flash, though you can try to load the html code that it contains into a textfield. Flash supports only a very limited number of html tags, so it is highly likely you won't get what you are after if you are reading an html file that hasn't been edited for Flash specifically. Just look up the TextField.htmlText property in the AS3 help documents and it lists the html tags that are supported.
For AS3 you need to look into the URLLoader class as far as loadng an extrernal text file goes. -
Can I display html pages in flash player
Hi all,
Can I display html pages in flash player, i mean swf. Plz
help me if it can be done. Can I call html pages in flash (i mean
in flash player no new window)
Thankshi,
Actullay i want the site to be opened with in the flash
player, just like iframe in dreamweaver calling the external site
in the mail html page. Plz Help me accessing external site page
with in flash player
Thanks -
Displaying an external html page.
Hello,
Does any know if its possible to display an external html page within a container or area inside a flash catalyst project ?
We have created a media gallery and would like to display it within an area of the finished Flash Catalyst project.
Thanks,
AntonioHi Laurence,
There are two ways to do this:
1. If you are developing an AIR application, you can use the HTML component to load a page inside AIR's HTML engine. Here's a post on how to do that: http://blog.everythingflex.com/2008/02/25/air-html-control/
2. If you are developing a browser application, you can overlay an HTML iframe on top of your Flash movie. You do this in HTML code. I've never actually done it, but here's a thread about it: http://codingforums.com/showthread.php?t=95109
-Adam -
How to go to anchor html link from external html page in JEditorPane
Hi people,
I've been trying to jump to an anchor link from an external html page in JEditorPane, and I cannot get it working, I'm sure it can be done somehow...
The HTML page has a link like:
Hello
and this is loaded into JEditorPane ok.
The HyperlinkListener implementation:
public void hyperlinkUpdate( HyperlinkEvent e )
try {
if ( e.getEventType() == HyperlinkEvent.EventType.ACTIVATED )
editorPane_.setPage( getClass().getResource(
MyDialog.this.getBaseURL().concat( e.getURL().getFile().substring(
e.getURL().getFile().lastIndexOf( "/" ) + 1 ) ) ) );
if ( e.getURL().getRef() != null )
editorPane_.scrollToReference( e.getURL().getRef() );
else return;
} catch ( IOException ioe ) { ioe.printStackTrace(); }
This code loads the new html file ok, but it does not scroll to the anchor. The MyDialog.this.getBaseURL() just returns something like com.name.package, I construct the URL by using this base url and the name of the html file to open.
ANy help, thankshe! I'm not alone in my desperation. Take a look at my problem:
I've got a JEditorPane (not editable) inside a JFrame. The JEditorPane is loaded with the HTML text and all the links to anchors are working properly when I click on them.
BUT
If I try to go to an anchor from outside this JFrame I can see how the JEditorPane scrolls to the right anchor and suddenly it scrolls back to the place where the caret was located!!!
The "funny thing" is that my code is working in jdk1.3.1 but this is happening in jdk1.4.2. Is it a bug?!?!?!
How could I figure out what position I have to set the caret to for every anchor in order to get the scroll working correctly???
My implementation of hyperlinkUpdate (working properly, here isn't the problem):
jEditorPane.addHyperlinkListener(new HyperlinkListener() {
public void hyperlinkUpdate(HyperlinkEvent e) {
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
MiEditorPane src = (MiEditorPane)e.getSource();
src.goToAnchor(e.getDescription().substring(1));
});My object jEditorPane is an instance of this class:
class MiEditorPane extends JEditorPane {
MiEditorPane() {
super();
public void goToAnchor(String anchor) {
super.scrollToReference(anchor);
}And this is the method I call from outside the JFrame containing the JEditorPane:
public void goToAnchor(String anchor) {
jEditorPane.goToAnchor(anchor);
}Any help greatly appreciated ... -
Display external html page in (Collapsible Panel widget)
i everybody
is there a way to display external html page in (Collapsible Panel widget)
All the example a seen is with raw text in it
is the panel can display different object instead of simple text
At least a internal designed html page
ThanksThanks... surely a easy one for you
But its a great tool and its exatly what i want
even my js button works trough it
Thanks again -
How to embed a HTML Page in a Web Template and display it
Hi All
Can you please share ideas how I can embed a HTML page in a web template and how I can make it displayed as a popup when a button is pressed.
Also, how do I call a HTML page stored in Portal KM from the press of a button in the web template.
Your help is greatly appreciated.
Thanks
KarenUsing C# or javascript to authenticate the user to AD to read the property directly will be very difficult. Creating a custom user profile property and adding a sync from AD to that property is definitely the easiest way to do what you are describing.
Once its in User Profiles there are lots of samples on how to add it to the page.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
Hello,
I tried to load an external html page inside the ide but not found the method. If I right click on my project name present in the Project Navigator I can choose the 'New' voice that leave me the possibilities to only load template pages. Is there a method to load an external page in the project? Say for example that I like the sun structure page and want to load it in the project so I can see the html and also the type of structure: what I can do to do this?
However, I play a little bit with the ide and I like it. I am no an expert programmer. I start to program with vb5 but after I stop this passion; now I see that sun created this ide and I can see that it remember me the vb5 mode to create an interfance, and it is simple also for a seminovice.
Regards,
Marco MangianteMarco,
Use File > Add Existing Item > Web Page (on the main menus) to add an existing web page to your project. It will allow you to specify either a local HTML file or a URL.
If for some reason you don't see this option, try downloading the latest version of the EA, posted on May 3.
-jeff -
DPS In-App Folio Browser, Close Using External HTML Page?
Is it possible to close the in-app Folio Web Browser from an external HTML page and return to the folio?
Or, does syntax exist for me to place a button in an HTML web page to close the browser, in addition to having the "Back" button at the top of the screen (which is the standard way of closing the browser)?
The javascript way of closing a window does not work with the Folio Browser:
<button type="button" onclick="window.open('', '_self', ''); window.close();">Discard</button>
-mattDoesn't look like there was a response to this question. Were you able to find a solution for this?
-
Close In-App Folio Browser From External HTML Page
Is it possible to close the in-app browser window/overlay from an external html page, accessed from the HTMLResources directory for example?
Doesn't look like there was a response to this question. Were you able to find a solution for this?
-
Hi all,
i want to load HTML pages into my flash movie when i press a button. is that possible?
Thanks
thilsenNo. Flash has limited support for html and is not capable of displaying html web pages as content.
-
Problem open new html page from flash
Hello,
in IE7 and IE8 block popup lock my external link(page html)
I use GetUrl(url,"_blank") but not it works
Why?
i use flash cs4
With firefox it workthank you for response,
i have used correct command but not it works.
It Works, in my popup setting are setting "CUSTOM" not MEDIUM
thank you -
Loading Image from HTML page into Flash component
Ok, after doing much research on the internet, I am pretty
sure you have to be a Flash and Actionscripting Jedi in order to
solve this issue. Here we go:
I have created an HTML page using PHP and MySql that displays
image thumbnails. When a user chooses and clicks on one of the
thumbnails, I want the larger image to be loaded into my swf. It is
a jigsaw puzzle component I picked up here: www.crifano.com. Here
is the puzzle on my page with an image manually inserted using
Flash 8 (Note: This is only working in Internet Explorer right now,
for whatever reason):
http://premieretans.com/puzzle/jigsaw.php.
I want the image on this page to be chosen by the user from a
number of images that are populated on a regular PHP/HTML page from
a MySql database. What is the best way to go about this?
Thanks so much for the help on this matter. I know I am not
the only person who has run into this dilemma, so I hope your
knowledge will save others with a similar problem the hours I have
spent on this issue myself. Thank you!
Cheers-
CharlesHi,
There's no direct support for this. But you could implement
drag and drop the way you normally would in javascript. Except
here, on mouseUp over a div encapsulating the object or embed tag
(the flash object), you'll need to make a call into actionscript
from javascript indicating that a drag and drop happened.
For more info, see
how
to drag and drop using javascript and
actionscript
and javascript communication -
Load External HTML/Website in Flash (urgent)
Hi all,
I've found the codes to load the external html and text in
flash at run time, but I when I tested most of the html sites
cannot show very well at all such as videos and swf advanced tag in
html.So is there any way to load external website into flash at
runtime?
Thanksyou can display it in a popup window or in the same window or in an iframe in the same html page that displays your swf.
When you say this, do you mean I can create an iFrame on the same html page that displays my swf, and have it be dynamically populated by what the user clicks on the swf?
yes, exactly.
use getULR() (as2) or navigateToURL() (as3) with the 1st parameter being the html page you want to display and the 2nd parameter being the iframe "name" property. -
Trying to call MM_showHideLayers on container HTML page from Flash
I'm designing a site that is mostly in Flash, but I would
like to show some content by changing the visibility of a layer on
the HTML page that contains the swf file. I have tried
on (press)
{ExternalInterface.call("MM_showHideLayers",'testerbox','show');
and
on (press)
{ExternalInterface.call("MM_showHideLayers('testerbox','','show')");
and I have tried
on (press)
{getURL("javascript:MM_showHideLayers('testerbox','','show')");
My HTML page code is below. Can anyone tell me what I am
doing wrong and point me in the right direction? Can this be done?
Is there a better way to display large amounts of highly formatted,
dynamic content from within Flash without loading a new page or
resorting to a pop-up window? I really want it to look and feel
like it is all part of the same page, and I need more tags than I
can use in a Flash textbox. Thanks in advance :-)
Teri
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script type="text/javascript"
src="swfobject.js"></script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if
((obj=MM_findObj(args
))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style;
v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
//-->
</script>
<style type="text/css">
<!--
#testerbox {
position:absolute;
width:200px;
height:115px;
z-index:6;
left: 69px;
top: 42px;
background-color: #FFFFFF;
visibility: hidden;
-->
</style>
</head>
<body bgcolor="#FFFFFF">
<table width="316" height="180" align="left"
cellpadding="0" cellspacing="0">
<tr>
<td
background="../images/innerpage/sidebar-bg-iframe.jpg">
<div id="testerbox">My test</div>
<div id="flashcontent" align="center">
<p>
You must have Flash Player to use this feature.<br>
<br>
<a href="
http://www.macromedia.com/go/getflashplayer"
target="_blank">Click
here</a> to download or upgrade your Flash Player
</p>
</div>
<script type="text/javascript">
// <![CDATA[
var so = new
SWFObject("leaders.swf","leaders","316","180","6");
so.write("flashcontent");
// ]]>
</script>
</td>
</tr>
</table>
</body>
</html>
Text
Text
Text
TextHi, did you get a solution to this problem, i am having a similar issue with the MM_showhidelayers not working in IE6, it works fine in IE8?
the code im using on a flash button is:
on (press) {
import flash.external.ExternalInterface;
ExternalInterface.call("MM_showHideLayers('menu','','show','menu_back','','show' )");
Thanks
Gary
Maybe you are looking for
-
My friends can only send me an iMessage if they send it to my email adress and if they have saved my email adress in their phonebook. If they choose my phone number I will only get an SMS and the text color is green. In the options I've already marke
-
Fast busy, esp when accessing Voice Mail on FiOS Digital Voice
When we have new messages and call into voice mail and enter passcode, the voicemail guy starts talking and all of the sudden we get the dreaded fast busy. So then we have to hang up and try again, then get the old "I'm sorry, that account is in use
-
Mail cannot access the mail server, but other email clients do.
My web host recently had extended problems with the mail server my sites are on. Now, Mail on my iMac Intel 27 Duo says it cannot access the server. However, Thunderbird and Entourage Mac have no problem. Sending from Mac Mail seems to be Ok as well.
-
Hello All, The eth0 on one of my MCS 7835 has failed. The server is a subscriber and has lost connectivity to the publisher. How can I resolve or bring up the eth1. Thank you for your response.
-
Hi Gurus, im not able to fill EDI_DC40 mestyp with the value i want from XI. I try to pass ORDERS05 IDoc with mestyp ORDCHG, but the system automatically changes in mestyp ORDERS. I have read the following blog: /people/michal.krawczyk2/blog/2005/09