HTML Viewport within Flash CC
I have a question about HTML in Flash. How can I create a simple viewport or window within my Flash document that allows me to reveal HTML content within. Is there a simple way or a code that I could drop into Actionscript? Need immediate help. THANKS!
it's already part of actionscript: Adobe ActionScript® 3 (AS3) API Reference
Similar Messages
-
Displaying HTML page within Flash
Hello!
We need to display an HTML page within a Flash executable file. We request the members of this forum to kindly guide us on how to go about it.
Looking forward to your reply.
Thanks and Regards,
Hayagriva Softwareflash textfield's have limited html tags they can parse so your best bet is opening an html page in another window using getURL() (as2) or navigateToURL() (as3).
-
Encapsulate existing asp/html site within flash CS3...?
Hi guys,
I am trying to integrate an existing ASP/sql server driven
site within an existing flash-only site.
I have used getURL in some places to grab bits and pieces
but, ideally, I need to have a couple of areas within the flash
site that will access the existing ASP that generates the dropdowns
for searching etc. then pull the results into a separate 'frame'.
Is it possible to define an area within the flash movie that
will enable me to directly retrieve and display the ASP generated
HTML? I'm trying to avoid a whole interface re-write using flash
components.
Thanks in advance for any help, advice or examples.The easiest way would be to use FlashVars to pass data into your SWF. Just add a parameter to your embed called FlashVars and pass key value pairs.
Object Tag Example:
<PARAM NAME=FlashVars VALUE="FName=Tom&LName=Johnson">
Embed Tag Example:
<EMBED href="display.swf" FlashVars="FName=Tom&LName=Johnson" ... (other parameters)></EMBED>
I usually create my embed from the code-behind so I can add the data as needed and place everything in a label or literal on the front end. -
hi everyone im trying to get a html window within a flash
website. Basically the html page contains a complex login script
that i need to get into this flash site for my wife it logs the
customers in to their designated gallerys.
any ideas anyone? im well stuck.Hi there,
Maybe what you can do is make a few text fields in flash like
kglad said and post the variables to the page that it normally
posts to. Like this you will not lose too much time.
Creation site internet |
Jeux
Concours |
Echantillon Gratuit |
Radin -
Load webpage within flash page?
Sorry if this has been answered before, but I'm not sure what
to search under. I have a page made in Flash 8 that is mainly an
animated background and a menu on the bottom. I want to be able to
click one of the buttons on the menu and have a new "window" open
up in the middle of the background area and load the different
webpages (html, etc). Honestly I have no idea where to start on how
to tell the buttons to open up in the new window instead of opening
up in an external link. I have everything else done except for this
last part. I am including a little picture to explain - if it
helps. Thanks!
Main page before click
After click, menu
openedveekay8 wrote:
> Sorry if this has been answered before, but I'm not sure
what to search under.
> I have a page made in Flash 8 that is mainly an animated
background and a menu
> on the bottom. I want to be able to click one of the
buttons on the menu and
> have a new "window" open up in the middle of the
background area and load the
> different webpages (html, etc). Honestly I have no idea
where to start on how
> to tell the buttons to open up in the new window instead
of opening up in an
> external link. I have everything else done except for
this last part. I am
> including a little picture to explain - if it helps.
Thanks!
well, you can't load web page within flash, flash has no
browser capabilities.
you can only load text formatted with basic html tags, but
not an actual html page.
Regards
Urami
Happy New Year guys - all the best there is in the 2006 :)
<urami>
http://www.Flashfugitive.com
</urami>
<web junk free>
http://www.firefox.com
</web junk free> -
I am trying to find out if there is any way to have the HTML
send informaion to the embedded FLASH file. I need to change 2
peices of information on the FLASH file when it loads on the page
(based on the page it comes up on.) Is there a way to have the HTML
send a message to FLASH that says use "pic_2.jpg" or a way for
Flash to look into the HTML to find its directive. Better yet, is
there a way to let flash know what file it is within, and search
the XML file based on the parameter of location? Please
help.Hi adjourney,
External images should work in the same way (via flashvars).
You can do
this in a two step process as you suggested, or directly via
the
embedding variables. I'll assume you want the simpler of the
two so you
would do something like this:
The HTML embedding code would look like this:
<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
width="354" height="63" id="myFlashThing" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="flashvars" value="imageFile=myImage.jpg"
/>
<param name="movie" value="flashFile.swf" /><param
name="quality"
value="high" /><param name="bgcolor" value="#cccccc"
/> <embed
src="flashFile.swf" quality="high" bgcolor="#cccccc"
width="354"
height="63" name="forumLogo" align="middle"
allowScriptAccess="sameDomain" allowFullScreen="false"
flashvars="imageFile=myImage.jpg"
type="application/x-shockwave-flash"
pluginspage="
http://www.macromedia.com/go/getflashplayer"
/>
Notice that you need to include the file name two...once as a
"param"
and then again in the "embed" tag. This is done to compensate
for
differences between FireFox/Mozilla browsers and
InternetExplorer-style
browsers.
In Flash, getting the image file name couldn't be easier. In
ActionScript 2.0, this is simply available as:
_level0.imageFile
In ActionScript 3.0, this is available as:
this.loaderInfo.parameters.imageFile from the class that's
associated
with the main movie clip (the Document class).
Now you simply take this value and use a loadMovie or Loader
instance to
get your image.
If you wanted to specify an XML file and then some identified
within it,
the flashvar would look something like this:
xmlFile=data.xml&offset=5
And this would be received as two separate values in Flash:
_level0.xmlFile and _level0.offset (and the associated ones
for AS 3).
Of course this is a bit of overkill...if you're specifying a
file and
then hardcoding a link within that file...you might as well
specify the
file right off the top. But I guess that's up to you.
Good luck,
Patrick
adjourney wrote:
> It seems that through this I can change the text
contents, but what if I wish
> to point to an external image, and want to load that jpg
into an empty movie
> clip within Flash. How do I do that? I suppose I could
assign a value to a
> variable (say "image" = 5) and then look up the XML to
pull the variable (grabs
> image definition 5, and pulls the referenced image). Am
I on the right track,
> or am I shooting beyond capability (of my own I am sure
- but what of Flash)?
>
http://www.baynewmedia.com
Faster, easier, better...ActionScript development taken to
new heights.
Download the BNMAPI today. You'll wonder how you ever did
without it!
Available for ActionScript 2.0/3.0. -
How to save CD files to disk from within Flash?
Hi.
Is there any way I can copy files from a swf in a CD ROM to
users computer?
Some kind of "save to..." from within flash... ?
Maybe I can explain better what I need to do:
I have an external .swf, loaded into an .EXE.
In the .swf, I need to put buttons to downloads of wallpapers
and stuff.
This is where my troubles start...
tks for your time.pedrosantos.dsgner wrote:
> Hi.
> Is there any way I can copy files from a swf in a CD ROM
to users computer?
> Some kind of "save to..." from within flash... ?
>
> Maybe I can explain better what I need to do:
> I have an external .swf, loaded into an .EXE.
> In the .swf, I need to put buttons to downloads of
wallpapers and stuff.
>
try
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context= LiveDocs_Parts&file=00002210.html
or 3rd party tools like Jsystem from
http://www.flashjester.com/?section=tricks_jtools_jsystem
Regards
Urami
Happy New Year guys - all the best there is in the 2006
<urami>
http://www.Flashfugitive.com
</urami>
<web junk free>
http://www.firefox.com
</web junk free> -
ClickTAG testing problem within Flash
Hello! I am by no means a Flash pro, more on the noob end of
the spectrum but I know the basics... I did a search and couldn't
find what I was looking for on this, and I'm new to the forum, so
apologies if I miss some etiquette step (I originally posted this
in the Flash ad section, but its dead over there and thought I
could get more love here).
So, I've got a simple linear animation banner ad with a
topmost layer as a clear button and the clickTAG info from the
hosting site/agency.
The code they have provided should be attached below...
I've tried tracing the button and even that simple step is
not working.
Should I be able to test this within Flash? If I swap out the
code for regular ol' Flash links it works and tests fine. Anyone
with similar issues, or a solution to shis? TIA!rcbmoose,
> Should I be able to test this within Flash?
Well, yes and no. How do you like that for an answer? ;)
> If I swap out the code for regular ol' Flash links it
works and
> tests fine. Anyone with similar issues, or a solution to
shis? TIA!
>
> on (release) {
> if (clickTAG.substr(0,5) == "
http://www.rebit.com") {
> getURL(clickTAG, "_blank");
> }
> }
Here's the scoop on clickTAG (and its various spellings,
including
ClickTAG, ClickTag, clickTag, clicktag, etc.). As shown, the
value of
clickTAG is undefined in Flash because the variable,
clickTAG, hasn't been
declared anywhere. If it hasn't been declared, then where
does the data
come from, right? Good question.
What you're seeing here is an example of passing data into a
SWF from
the outside. Any string variable can be passed in, and any
legal variable
name will do. String variables can be passed in via something
called
FlashVars, which is a parameter of either the EMBED tag or of
a PARAM tag
inside an OBJECT tag in the HTML. They can also be passed in
via a query
string appended to the SWF's file reference in the HTML (e.g.
nameOfMovie.swf?variable1=value1).
It just happens that many ad agencies use clickTAG as an
agreed-upon
variable for storing URLs for tracking user clicks. Because
you're testing
your SWF in Flash, you're not making use of the HTML document
in which this
SWF will be embedded. The HTML document will supply a value
for clickTAG,
so this needs to be tested in an HTML document. Ah, there's
the rub. Is
there a way to debug SWFs inside a browser? There is. :)
http://www.adobe.com/devnet/flash/articles/debugging_actionscript.html
The trouble is, you may or may not ultimately have control
over the HTML
into which this SWF is embedded. If that HTML embeds the
variable as
ClickTAG (or some other variant), Flash Player won't see it,
because your
code specifies clickTAG, and variables are case sensitive in
Flash since
Flash Player 7. So bear that in mind, and try one of the
techniques in the
article (either a temporary dynamic text field or the
Debugger panel).
Good luck with that!
David Stiller
Co-author, Foundation Flash CS3 for Designers
http://tinyurl.com/2k29mj
"Luck is the residue of good design." -
HTML and how Flash can handle this???
Hello everyone,
A while ago now I can across a component that you could place in flash and it would let you view html web pages from within flash. Now the frustrating this is that i cannot remember where I saw it and what the name of the component was. Has anyone any ideas?
Im working on an embedded systems project using flash and there is a requirement to view html web pages from within Flash. I know there are a number of third party apps that let you create a stand alone app, using flash, where you can create virtual browsers. One application in particular that lets you do this is SWFStudio. I have already been in touch with these guys and they do not support embedded systems so does anyone else know of any third party application that is supported on embedded systems, that will let you view HTML pages using Flash?
This is frustrating the hell out of me so any help to ease my pain would be very much appreciated.
Thanks in advance.Hi,
Thanks for the link and as it would appear there is no solution to my problem. A real shame though as you would have thought adobe, in all thier wisdom, would have built this functionality into Flash. Maybe something to put onto the wish list for the future.
Thanks again for your help. -
Showing HTML behind a flash movie
Hi,
I have a div layer containing a flash file which sits on top of some HTML. When the flash file is clicked, an animation is played. After this animation i want the flash file to disapear and the HTML behind the flash file to become clickable.
The flash is an animation of a door opening, to reveal the HTML below it.
I can make a flash file with a transparent background but the HTML below the flash layer is unclickable.
Any ideas how i can make this clickable without refreshing the page? I have attached an example of my situation.
Thanks,
Tony>> P.S. Someone mentioned the "SWFObject method" but I
was curious if there
>> was
another way to do this. Remember the main concern here is
that search
engines
can pick up the text.
That's the way to go if you want search engines to spider a
Flash site.
SWFObject writes the Flash content to a <DIV> on your
page. Inside that div
element, you place your HTML page... you can do dynamic stuff
with PHP,
whatever. If your user doesn't have Flash, or if a spider
hits the page,
they will see the HTML content within the div. If they do
have Flash, then
SWFObject overwrites the div with the Flash, and your user
sees the Flash.
Works a treat...
If you want an example: www.arandell.com
Turn off JavaScript and refresh, and you'll see the HTML
version. Google
spiders this site perfectly.
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
Creating Links for other Web pages within Flash C23
Hello Everyone,
First of all, I'm sure you're tired of answering the
questions regarding "Links". Although, I'm having a very
difficult time with this issue. I just purchased Flash C23,
taken all the tutorials from www.lynda.com, but
I do not find answers for linking one web page to another
within Flash C23. I have read all the answers
on this forum and still can not get my buttons to link up to
my other web pages.
I have figured out how to create the buttons, although, I'm
not doing something right when I try to link up my web
pages. You have to realize I'm coming from Adobe Golive (no
need for codes or scripts). I do not want to stop
using Flash... Can someone help?
Thank you so much, it's appreciated.replace 'siteName' with whatever you use to target your site
in a browser. 'FranchelleDesigns' is what you named your page in
GoLive.
function loadPage(event:MouseEvent):void{
var myURL:URLRequest = new URLRequest("
http://www.siteName.com/FranchelleDesigns.html");
navigateToURL(myURL,"_blank");
my_btn.addEventListener(MouseEvent.CLICK, loadPage);
EX: my website is
http://www.damonedwards.net
lets say I create some HTML page that I want to link to, and I save
it as, ContactMe.html... this is what I would use in flash to link
to it
function loadPage(event:MouseEvent):void{
var myURL:URLRequest = new URLRequest("
http://www.damonedwards.net/ContactMe.html");
navigateToURL(myURL,"_blank");
my_btn.addEventListener(MouseEvent.CLICK, loadPage); -
Comment convertir des fichiers Flash écrit en AS2 en html 5 avec Flash CC ?
Bonjour,
j'ai créé des présentations multimédias il y a quelques années en Flash en utilisant l'AS2 ces présentations sont constitués d'une multitude de fihiers swf qui se supperpose (loadmovie). Je dois aujourd'hui en faire une version html 5. J'utilise adobe CC et l'extension de Google Swiffy ne fonctionne pas sur cette version. Existe-t-il un moyen simple de convertir ces fichier écrits en AS2 en html5 ?
Merci d'avance de vos réponses.I'm basically trying to do the same thing.
I have two swf files and I need these as flv files.
I looked for some freeware to convert swf files to flv. The only ones I've found so far leave a watermark on the flash video file. As I only have two files to convert (and this is probably a one-off occasion), I am loathe to spend a fortune to do this....
We have a graphic designer here at our company with Flash CS3. Is it possible to do it within Flash?... or is anyone happy to convert them for me if they have the tools and if I email them to you?
(Pour Isabelle en français): J'essaye fondamentalement de faire la même chose.
J'ai deux dossiers de swf et j'ai besoin de ces derniers comme dossiers de flv.
J'ai recherché du freeware pour convertir des dossiers de swf en flv. Les seuls j'ai trouvé jusqu'ici le congé un filigrane sur le dossier visuel instantané. Car j'ai seulement deux dossiers à convertir (et ceci est probablement une occasion unique), je suis déteste pour dépenser une fortune pour faire ceci….
Nous avons un concepteur ici à notre compagnie avec le flash CS3. Est-il possible de le faire dans le flash ? est-ce que… ou n'importe qui est heureux de les convertir pour moi s'ils ont les outils et si je te les envoie ? -
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 -
Getting html into a flash movie
A client is concerned with getting some html text picked up
by the search engines. I've already created a flash site they are
happy with. Now they are asking if I can actually make part of
their flash site include some html text layed over the flash movie
or something like that.
All I could think of was some way (perhaps with javaScript)
of making the buttons in the swf movie load html text.
Does anyone know if this is possible?
Thanks.
A
P.S. Someone mentioned the "SWFObject method" but I was
curious if there was another way to do this. Remember the main
concern here is that search engines can pick up the text.>> P.S. Someone mentioned the "SWFObject method" but I
was curious if there
>> was
another way to do this. Remember the main concern here is
that search
engines
can pick up the text.
That's the way to go if you want search engines to spider a
Flash site.
SWFObject writes the Flash content to a <DIV> on your
page. Inside that div
element, you place your HTML page... you can do dynamic stuff
with PHP,
whatever. If your user doesn't have Flash, or if a spider
hits the page,
they will see the HTML content within the div. If they do
have Flash, then
SWFObject overwrites the div with the Flash, and your user
sees the Flash.
Works a treat...
If you want an example: www.arandell.com
Turn off JavaScript and refresh, and you'll see the HTML
version. Google
spiders this site perfectly.
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
Opening an HTML popup from Flash, not as tab
Hi
I need to open an HTML popup from Flash (using ActionScript in
Flex 4).
Thus far I found a solution, and it does work in Safari - a new
and separate HTML window is popped up (with a new web page).
private function popUpTheHtmlEditor():void {
var url:String = "http://www.adobe.com";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank');
} catch (e:Error) {
trace("Error occurred!");
But in (my) Firefox (with my settings), when I click on the Flash
(Flex) button, the page is being opened in a new tab.
I need a solution which pops up the HTML page in a new/separate
window, as far as possible regardless of the browser (and browser
settings).
I found an example where a popup is opened from HTML, and it opens a
separate window (a real popup) in my Firefox:
http://www.gtalbot.org/FirefoxSection/Popup/PopupAndFirefox.html
-> "Open a requested popup"
The JavaScript code seems to be:
OpenRequestedPopup(this.href, this.target); return false;
with this function def:
function OpenRequestedPopup(strUrl, strTarget)
if (WindowObjectReferenceOfRequestedPopup == null || WindowObjectReferenceOfRequestedPopup.closed)
WindowObjectReferenceOfRequestedPopup = window.open(strUrl, strTarget, "top=" + windowTop + ",left=" + windowLeft + ",width=" + windowWidth + ",height=" + windowHeight + ",menubar,toolbar,location,resizable,scrollbars,status");
else
if(WindowObjectReferenceOfRequestedPopup.focus)
WindowObjectReferenceOfRequestedPopup.focus();
How could I call such code from ActionScript? Should this work through
ExternalInterface? I couldn't even get this to work:
ExternalInterface.call('alert', 'foo');
Should I use swfobject.js for embedding the .swf in the HTML wrapper?
Any other ideas?
The two files are pasted below.
Here's the compiler command I'm using:
mxmlc -output button.swf -target-player 10.0.0 flash_to_editor.mxml
I'm running the examples locally (as files, not over http). Would it
help to place the files on a server?
Tobi
<?xml version="1.0" encoding="UTF-8"?>
<mx:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
horizontalAlign="center" verticalAlign="middle">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import flash.external.ExternalInterface;
import flash.net.URLRequest;
// This 'http://www.adobe.com' is just an example URL.
// Works but opens tab in FF (not a separate window):
private function popUpTheHtmlEditor():void {
var url:String = "http://www.adobe.com";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank');
} catch (e:Error) {
trace("Error occurred!");
// Doesn't work:
// var url:URLRequest = new URLRequest("javascript:alert('foo'); void(0);");
// navigateToURL(url, "_self");
// How to get this to work?
private function popUpTheHtmlEditor():void {
ExternalInterface.call('alert', 'foo');
// How to get this to work?
private function popUpTheHtmlEditor():void {
ExternalInterface.call('launch','http://www.adobe.com');
// Or
// ExternalInterface.call("window.open", "http://www.adobe.com", "win", "height=200,width=300,toolbar=no,scrollbars=yes");
// Perhaps it's necessary to try different approaches:
// (As soon as I get two approaches to work.)
private function popUpTheHtmlEditor():void {
var s:String;
if (ExternalInterface.available) {
// Necessary? Safe?:
// Security.allowDomain('*');
s = ExternalInterface.call('launch','http://www.adobe.com');
} else {
// TODO: Then try URLRequest?
s = "Wrapper not available";
Alert.show(s);
]]>
</fx:Script>
<s:Panel title="One way to open the HTML editor"
width="75%" height="75%">
<s:Button id="button" label="Open the HTML editor"
click="this.popUpTheHtmlEditor();"
horizontalCenter="0" verticalCenter="0"/>
</s:Panel>
</mx:Application>
<html
xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">
<head>
<title>html_around_swf.html</title>
<script type="text/javascript">
function launch(url) {
alert(url);
// OpenWin = this.open(url, "FOO", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=400,height=200");
</script>
</head>
<body>
<object id="button" name="button" width="550" height="400"
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
<param name="movie" value="button.swf" />
<param name="allowScriptAccess" value="always" />
<embed id="foo" name="button" src="button.swf" width="550" height="400"></embed>
</object>
</body>
</html>Hi,
Here's a solution.
1. Make ExternalInterface work when files are loaded as local files:
Go to
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l
In tab Global Security Settings: Edit Locations -> Add Location ->
browse to the .swf file, add it. Make sure it's in the list (under the
Edit Locations drop down, with a green check mark.)
Now open the HTML wrapper in a browser (eg Firefox).
Now this works (ActionScript):
private function popUpTheHtmlEditor():void {
ExternalInterface.call('alert', 'foo');
On Windows: perhaps:
http://techjig.blogspot.com/2008/03/flash-global-security-settings-windows.html
"In order for external interface functions to be called, you must also
specify the folder/file where the swf file is located."
The above setup isn't necessary when the files are on a server.
Also see:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/external/External Interface.html#call()
""ExternalInterface" "
"call() method"
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7ea6.html
"About ExternalInterface API security in Flex"
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf626ae-7fe8.html#WS2d b454920e96a9e51e63e3d11c0bf69084-7f31
"Using the ExternalInterface API to access JavaScript"
2. Open a real popup: Example:
ActionScript:
private function popUpSomething():void {
var editorPathOrUrl:String =
'wrapper.html';
var windowName:String =
"SomeNameSeeDocs";
var windowFeatures:String =
"toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,width=500,height=700";
ExternalInterface.call(
'launch',editorPathOrUrl,windowName,windowFeatures
JavaScript:
function launch(editorPathOrUrl,windowName,windowFeatures) {
windowRef = window.open(
editorPathOrUrl,windowName,windowFeatures
Works in all browser I tested except Opera.
Tobi
Maybe you are looking for
-
There is error showing while updating my iPad 2 software to IOS 6.1. Please suggest me what should I do?
-
How can one associate mp4 video files in Bridge?
Bridge has no problem showing them, but associating them with PS CS6 is antother story. PS CS6 can open and edit those files when you drag them by hand into the workspace, but the preferences box of Bridge doesn't seems to know this kind of file type
-
Does ayone know anything about the acclaimed Intel imacs?
Apperently there is a new intel imac coming soon. The thing is I want an imac for christmas but I am not sure if its worth waiting for this new intel one. Plus if the new intel imacs would work with frutiy loops (a windows music programe). Cheers Sam
-
How to do recovery from Recovery dvd's...
Hello I Had using HP Pavilion DV6-1211AX with window VISTA HOME PREMIUM N i installed window 7 ultimate on it but my fingerprint reader, touchpad buttons, and GRAPHIC CARD is not working please help me out.. i had made Recovery dvd's a year ago..
-
I reset my ipod touch with ios 7 and cannot remember my apple ID
I yea reset it but now I cannot use it because I forgot the apple ID I used for it