Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Calling Window.open In Embedded Html In Flash File


hey people,

this one may sound easy but i've been having some problem with it for some time now.

i have a dynamic text field in flash that opens a html script inside of it. now in the html document which is embedded inside the text field i have links to various different websites that call a javascript widow.open command. (each link has its own window.open command) The problem is every time a user presses on the link it opens up a new window to the site like its supposde to but it also replaces the main flash movie browser with a error page.

I've tested it on both pc's and macs and this problem only occurs on pc's. on mac it works completely fine. i also tested it on




Ultrashock Forums > Flash > ActionScript
Posted on: 2003-05-09


View Complete Forum Thread with Replies

Sponsored Links:

I'm Calling Html From As3 But How Do I Have The Window Open At A Certain Size
function callLink ( pEvent:MouseEvent):void {
var url:String = "aw01.html";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank'); // second argument is target
} catch (e:Error) {
trace("Error occurred!");
}
}

p1btn.addEventListener(MouseEvent.CLICK, callLink);

it works fine. but how do i make aw01.html open in a window thats width=600 by height=400

pls show me how thanks

View Replies !    View Related
Open New Window In Flash HTML File
Heya All,

I'd appreciate some help in a little problem i'm having importing flash movies into where I need them to be. I can't have an easy "_blank" on my link to open it in a new file. I need to format the HTML generated by flash to open the flash .swf in a new window... any ideas????

View Replies !    View Related
Open A Custom Html Window From A Flash File
Hail!

I'm doing a cd business card using flash mx. There is a section which I need to load in a custom html window.

I know you can do that inserting the flash file into a html file, but this is not the case, the flash file will not be inserted into a html file.

So my question is: how can I open a custom html window from a flash file?

also the flash file will be in fullscreen mode. How can I force the html file to be the first to be seen in the screen? (the problem is that when I open the html file, it loads minimized)

thanks in advance

Rodolfo Rogers

View Replies !    View Related
How To Open A Custom Html Window From A Flash File?
Hail!

I'm doing a cd business card using flash mx. There is a section which I need to load in a custom html window.

I know you can do that inserting the flash file into a html file, but this is not the case, the flash file will not be inserted into a html file.

So my question is: how can I open a custom html window from a flash file?

also the flash file will be in fullscreen mode. How can I force the html file to be the first to be seen in the screen? (the problem is that when I open the html file, it loads minimized)

thanks in advance

Rodolfo Rogers

View Replies !    View Related
Open .html Pop-up Window ABOVE Flash Projector File
I'm using getURL(); to pop open a new window from a projector file but the projector is taking hierarchy over the pop-up window. I need the window to appear ABOVE the projector file. I've heard you need third party software to do this (something like freeMX) but i'm wondering if someone has another solution.

View Replies !    View Related
How Do I Make A Flash Button Open A URL (.html File) In Same Window?
I’ve created a button in Flash CS3 which has been imported into Dreamweaver CS3. The button works fine in preview (with Internet Explorer) but opens in a new window. How do I get it to open in the same window, on the same page?

The code that has been written to the button’s action-script 3.0 (in a separate layer) in Flash is:

button.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("videos.html"));
}

When I add the code , “_self” to the action-script, nothing happens when I preview it in Explorer, why? What am I doing wrong?

The code now looks like this:

button.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("videos.html"), “_self”);
}

View Replies !    View Related
How Do I Make A Flash Button Open A URL (.html File) In Same Window?
I’ve created a button in Flash CS3 which has been imported into Dreamweaver CS3. The button works fine in preview (with Internet Explorer) but opens in a new window. How do I get it to open in the same window, on the same page?

The code that has been written to the button’s action-script 3.0 (in a separate layer) in Flash is:

button.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("videos.html"));
}

When I add the code , “_self” to the action-script, nothing happens when I preview it in Explorer, why? What am I doing wrong?

The code now looks like this:

button.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("videos.html"), “_self”);
}

View Replies !    View Related
Embedded Swf File Or Movie Clip That Can Open Html
Hey, i'm doing a website right now that so far the layout is entirely in flash. What i'd like to be able to do is have the content section of the site (the part in the middle) a movie clip that is opens an HTML site inside of it. What I have now is a top bar, and a navigation bar at the left,

http://members.shaw.ca/lyfe/retail/Untitled-1.html

So i'd like to be able to load an html file into the middle section. There are several reasons for this. First, it makes it so others without flash or flash knowledge can update the content, and will also separate the website into modules instead of one big swf.

If this is not possible, was thinking about starting in dreamweaver, importing the flash buttons, and somehow connecting those to the content section of the site.

Can someone please direct me to a post, tutorial or something else that could help me mix HTML and flash? Thanks!

View Replies !    View Related
Can I Open An Html File In A New Window?
Is there a way to use action script in my flash file to link to an html file and have it open in a new window (not a pop-up window)?

View Replies !    View Related
How Can You Open A Flash Window Using Html?
I want to use a dynamic text box to upload updates I've made to the site. I was wondering if I could put any type of coding in the text file to allow the link to open a flash window. Say I have a link, and I want it to open a window in flash for a 8-ball flash movie. I guess I could put the 8-ball flash movie in html and then have the link just go to that html file with the flash in it. Is there any other way to do it?

View Replies !    View Related
How Do I Open A Html Window From Flash?
the subject pretty much says it...

View Replies !    View Related
[CS3] Window.open In HTML In XML Into Flash
Okay, here goes: My Flash CS3 file displays HTML text, read in from an XML file (within CDATA). The HTML text contains links in the form of <a> (anchor) tags (of course).

I am attempting to open a new customized browser window whenever a user clicks on a displayed link. So far, I am able to open a window, but the customizing attributes ("width=600,..." etc.) are ignored.

Rather than displaying for you the one dozen variations I have (unsuccessfully) attempted, does anyone have a simple example of something that actually works?

If what I'm describing is not sufficiently clear, please advise and I'll try again.

Thanks in advance!

mondoFred

View Replies !    View Related
Open Html Window Using Xml And Flash
Hello, I have following xml in a dynamic text, but the Link does not work, How I must do so that it works?

Thanks to everyone.


Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<story>
<titulo>Mi titulo</titulo><br>
<kontenido>
<ul>
<li><a href="algo.html" target="_blank">algo</a></li>
</ul>
</kontenido></story>
The XML is loaded on dinamic text

View Replies !    View Related
AS2/CS3: Window.open In HTML In XML Into Flash
Okay, here goes: My Flash CS3 file displays HTML text, read in from an XML file (within CDATA). The HTML text contains links in the form of <a> (anchor) tags (of course).

I am attempting to open a new customized browser window whenever a user clicks on a displayed link. So far, I am able to open a window, but the customizing attributes ("width=600,..." etc.) are ignored.

Rather than displaying for you the one dozen variations I have (unsuccessfully) attempted, does anyone have a simple example of something that actually works?

If what I'm describing is not sufficiently clear, please advise and I'll try again.

Thanks in advance!

mondoFred

View Replies !    View Related
Open A Window Browser Directly From Flash File (*.exe File)
i have a standalone exe flash file which opens autorun from a cd, and i need to open a windows browser directly from that flash. i want it to open the htm without any toolbars or scroll... anybody can help???

View Replies !    View Related
Open A Window Browser Directly From Flash File (*.exe File)
i have a standalone exe flash file which opens autorun from a cd, and i need to open a windows browser directly from that flash. i want it to open the htm without any toolbars or scroll... anybody can help???

View Replies !    View Related
How Do I Embedded My Flash .swf Into An HTML File?
It's probably really easy, I just don't know how.

View Replies !    View Related
Popup Html Window Open Frm Flash
can you open a specific sized popup html window from a button in flash?
I dont want the full browser to open.

The main flash movie will be in its own window.
thankyou.

View Replies !    View Related
Open Flash Projector On Top Of An HTML Window
Can anyone help me as to how i can get a flash movie that is running in an HTML window to load a separate flash movie in a flash projector? This code is to be part of the on (release) function of a button that is within the flash movie that is within the HTML window and will load a tutorial movie. Any help would be greatly appreciated.

Thanks in advance

View Replies !    View Related
Open HTML Window On Top Of Flash Projector
Hello there...

I have created a CD-ROM in MX and i have a few offline HTML page which the user can look at if they dont have an internet connection. I need to open the HTML window from the .exe but i have a problem if there is already a browser window opened, the window opens in the background and will not appear unless the user quits out from the CD.

I have tried various methods like inserting a javascript into the HTML document (win focus), but still no luck yet....

Does anyone have any ideas or suggestions??!!



HELP!!

View Replies !    View Related
[Calling A Frame Of A Flash File From A HTML File]
Hi,

I need help linking html with flash. In other words, I have a flash movie that contains four keyframes. I want to be able to call that frame from a html file. For example, on a html page, if the user clicks on 'about' section, it should go to 'frame 10' of the flash movie file. How do i do that? Can anyone help me on that?

Thanks

View Replies !    View Related
Calling Functions Of A SWF Embedded Within An HTML Text Field...
I have a slideshow SWF of size 150px by 150px which changes image every 5 seconds with the use of a timer, the SWF has a kill() function which stops the timer.

In a larger content holding SWF I have a dynamically generated textfield which populates its htmlText property via an XML feed.

Within the htmlText I am inserting the slideshow SWF using the <img> tags... It all works great until I proceed to another page as there is no way to unload the slideshow SWF or call its kill() function which eventually lags the system as I have several heavy animations in the pages on ENTER_FRAMES.

Does anyone know how to unload a SWF or gain access to its functions which is embedded within htmlText...

View Replies !    View Related
Open Powerpoint File From A Flash Movie Embedded In A Powerpoint File
hello everybody,

I need to open powerpoint files from a flash movie that will run within a powerpoint presentation.
So far I have understood the concept of fscommand and have been able to open powerpoint files from a flash projector. I have not been able to import the flash projector within powerpoint (I do not think it is possible anyway).

Note: I use flash mx 2004

Any help very much appreciated.
qali

View Replies !    View Related
Detecting The Html File That Flash Is Embedded In
I would like to have the flash movie know what html file it is embedded in...automatically. I will be resuing a flash movie across a web site, and you like the contents of the flash movie to be slightly different depending on the page.

If I could detect the html page's name or the url that would do the trick. Is this possible?

Thanks,
Dege

View Replies !    View Related
Problem With Open.window From Flash To HTML Document
Here's my problem:

I have a flash movie in the HTML document and within flash movie I want to open another HTML document. On the button in the flash movie is a simple script:


javascript:window.open('http://www.bioagram.hr/fashion.html','FASHION','width=550,height=400,scro llbars=no,resizable=no,menubar=no');

Everything is fine on my Mac, it works great, both in Safari and IE, but on the PC it opens window I want to open and another window that displays only this text (object)

You can see the problem here www.bioagram.hr/havai.html and click on any button....

thanks for your time and I hope someone can tell me where the bug sleeps?????

View Replies !    View Related
Problem With Open.window From Flash To HTML Document
Here's my problem:

I have a flash movie in the HTML document and within flash movie I want to open another HTML document. On the button in the flash movie is a simple script:


getURL
javascript:window.open('http://www.bioagram.hr/fashion. html','FASHION','width=550,height=400,scrollbars=n
o,resizable=no,menubar=no');

Everything is fine on my Mac, it works great, both in Safari and IE, but on the PC it opens window I want to open and another window that displays only this text (object)

You can see the problem here www.bioagram.hr/havai.html and click on any button....

thanks for your time and I hope someone can tell me where the bug sleeps?????

View Replies !    View Related
Open Html Window Inside Of Flash Website?
when a user presses say Forums i would like an animation to roll a table out on the page , then the html open only on that table , something kinda like a iframe in html
i pretty new to flash soo it might be basic but i have no idea what its called

i included a rough image , i want the forums or whatever it is to open only on top of the front slab
any help would be mush appreciated
Thanks

View Replies !    View Related
Open External Window From Html Loaded Into Flash
hi again,

I know it's possible to open external window from dynamic loaded html into flash - via targed tag in html - but is it possible to open this window in custom dimension? Is it possible to use JS code in dynamic loaded html into flash? I just want to open via image link external window (custom dimension - i.e. 200x200 px) from html dynamic loaded into flash and load into this window image file.

View Replies !    View Related
How Can I Do To Open Other File .swf In A New Window By Flash 5
Hello someboy tells me how can I do to open other file .swf in a new window by flash 5 please
Thank you
I'm spanish boy so I writte in my lenguage again because my English is very bad
Alguien me puede decir como abrir un vinculo relativo en una nueva ventana desde un flash porfavor.
Gracias

View Replies !    View Related
Why Does The Framerate Drop When Flash Is Embedded Into An Html File?
Hey guys,

Basically im wondering why flash runs at a slower frame rate (and consequentially slower animation) when you put the swf into an html file (for instance in dreamweaver). When i open the swf file directly i get perfectly smooth animation. But when i take the same swf and put it inside an html file in dreamweaver (with nothing but the swf on the page) the frame rate is noticably slower (from a solid 30fps to about 20fps it seems, still passable but i'd like it to be 30fps).

So im really confused about what's going on... I've posted a similar question about this before but i've never had a decent answer (some have said something about compression, although i dont understand why this would matter between a stand alone swf file and a html file, both on my computer, not on the internet). I would really appreciate it if anyone can explain this. I see people like red interactive and bigspaceship creating much more intensive sites that run perfectly smooth, so what's happening with mine?

Thx a lot!

View Replies !    View Related
Flash Music Player Embedded Into Html File
Hey there.

I have a webpage with a SWF, that is a music player, embedded into an html/php file. although it works fine when you load it seperately as a SWF, it does not load up at all when it is part of the webpage.

http://www.lightsmusic.ca/index.php?section=media

If you click on the option to listen to the song, either one will load an embedded SWF that does not load the song. As I said before, if you play it as a SWF on it's own, it loads fine.

n00b problem, I bet. However, why is it being like this? It's a streaming file that should work.


thanks much!

View Replies !    View Related
Can U Open A Html Window From Flash Movie And Specify The Size And Features Of The Wi
Is there anyway I can specify a link to open the window size to 300 x 200 and no toolbar etc from a flash movie, to a html file?


at the mo the button just links as so:


on (release) {
getURL ("http://www.allmini.co.uk", "_blank");
}


cheers

View Replies !    View Related
Help Req: Need Flash Movie Links To Open Up In Parent Html Window
Newbie question.

I've got a simple html homepage, that opens up a popup window that contains my flash movie.

I would like all the links in the flash movie to open up in the original html home page.

I've looked at the MX opencenter tutorial for some hints but no luck.

I've tried the getURL (parent,self) and no luck either.

Anyone point me out to a solution.

Thanks

View Replies !    View Related
Help Req: Need Flash Movie Links To Open Up In Parent Html Window
Newbie question.

I've got a simple html homepage, that opens up a popup window that contains my flash movie.

I would like all the links in the flash movie to open up in the original html home page.

I've looked at the MX opencenter tutorial for some hints but no luck.

I've tried the getURL (parent,self) and no luck either.

Anyone point me out to a solution.

Thanks

View Replies !    View Related
OnKeyDown Doesn't Work When Flash File Is Embedded In HTML
I am making a Flash game, that uses the following code for key recognition.


Code:
this.createEmptyMovieClip('_keyListener',1);
Key.addListener(_keyListener);
_keyListener.onKeyDown=function(){
if (Key.isDown(Key.SPACE)) {Reload();}
if (Key.isDown(17)) {RandomGravity();}
}
Try playing the game as a standalone SWF file and as an SWF embedded in an HTML page. The SWF file is identical in both cases. Try pressing Ctrl and Spacebar.

For some reason, the standalone SWF file works properly, but the embedded HTML page does not detect keys. Is there some extra code I must add? I've been trying to fix this for an hour now!!

View Replies !    View Related
How Does One Link A Flash File To Open In An Independent Window?
Need to hav =e a button that opens another flash file in a seperate browser window...

Thanks

Christian

View Replies !    View Related
Is It Possibe To Open A .swf File Withing A Flash Window?
For example: I created a flash movie that consists of a link to another movie I had made in the past. This new movie has a box in the middle that I would like the older (the movie I made in the past) to play in when the link is selected.

If anyone can give me a hand on how to do this I would appreciate it a lot.

View Replies !    View Related
How To Open A Flash File In A Fixed Window Size?
here is the thing...

http://silentscreams.europe.webmatri...reamscapes.swf

this time what i want to do is, when a picture is clicked i want that picture to be opened in a new window. the window should be having the exact width and height of the picture. and the picture is going to be a .swf file

so its like opening a swf file of the pic to its width and height in a new window.

and when the mouse moves to the pic that person want to see, a preview is shown from the center of the circle. i tried it but that takes too much space, any idea of how to reduce the size of the file

View Replies !    View Related
How To Open A Flash File In A Fixed Window Size?
here is the thing...

http://silentscreams.europe.webmatri...reamscapes.swf

this time what i want to do is, when a picture is clicked i want that picture to be opened in a new window. the window should be having the exact width and height of the picture. and the picture is going to be a .swf file

so its like opening a swf file of the pic to its width and height in a new window.

and when the mouse moves to the pic that person want to see, a preview is shown from the center of the circle. i tried it but that takes too much space, any idea of how to reduce the size of the file

View Replies !    View Related
Using Flash To Open Html File From CD
Hi,

I am trying to create a CD that will open a file in the default browser when the CD is loaded.
I have set up the autorun.inf file on the CD to open a flash .exe which will display an image for 10 frames and then load the browser.

The Actionscript I am using is

getURL("index.html", "_blank");

I assumed that if both the .exe and the index.html file are in the same directory on the CD that this would function correctly but at the moment the browser is opening and directing to this page "http://www.amazon.com/exec/obidos/tg/browse/-/3023481/ref%3Dtab%5Fm%5Fgw%5Fl/104-0698132-1907120"

Does anyone know what I am doing wrong?

Many Thanks Cronán

View Replies !    View Related
JavaScript To Open Window And Target Frame In Flash File
I know how to open a pop-up window using JavaScript and I know how to control a Flash file (.swf) using JavaScript, but I'm having trouble creating a link in HTML that opens a new window and targets a frame in the Flash file in the new window.

Looking for a JavaScript code.

-dmacaula

View Replies !    View Related
JavaScript To Open Window And Target Frame In Flash File
I know how to open a pop-up window using JavaScript and I know how to control a Flash file (.swf) using JavaScript, but I'm having trouble creating a link in HTML that opens a new window and targets a frame in the Flash file in the new window.

Looking for a JavaScript code.

-dmacaula

View Replies !    View Related
Upload File And Open Html From Flash?
Hi.
Could anybody help with uploading from flash?
At this moment i using HTML-page with:
<input type="file" name="photo_url">
If there is no possability, could i open html-page from flash with properties like java-code do:
javascript:var Win=window.open('bla.htm', '', resizable=yes,width=1024,height=720');

thanks a lot in advance.

View Replies !    View Related
Flash Button To Open Html File
OK basically ive designed a little flash movie with a OPEN button......but i want to link the button to my Main.html file instead of a URL.........which makes it much easier for me to edit and update my website......currently i only know how to get it to open www.musicalorange.co.uk/Main.htm but i want it to open C:MusicalOrangePageMain.html

id appreciate any help thanks ill buy you all a pint... merry christmas

View Replies !    View Related
Popup Window From Embedded HTML Tag
I need to add a javascript popup window effect to the following line of code:


Code:
press += "<font family='Verdana' size='11' color='#B2B2B2'><a href='"+URL+"' target='_blank'>"+lead+"</a></font><br>";
For example, a popup window that is a width of 500px and height of 350px.

(Note: I'm using MX 2004 and I'm applying a stylesheet to some XML and need to be able to use HTML within Flash.) I can't seem to find the right syntax. I prefer a Flash solution to this problem rather than external Javascript. Check out the attached file.

View Replies !    View Related
Popup Window From Embedded HTML Tag
I need to add a javascript popup window effect to the following line of code:


Code:
press += "<font family='Verdana' size='11' color='#B2B2B2'><a href='"+URL+"' target='_blank'>"+lead+"</a></font><br>";
(I'm applying a stylesheet to some XML and need to be able to use HTML within Flash)
I can't seem to find the right syntax. I prefer a Flash solution to this problem rather than external Javascript. Check out the attached file.

View Replies !    View Related
Open Html File With Specific Size With Flash Button
Hi everyone!

well I need some help here...I have this flash presentation which ends up with 6 buttons. These buttons when clicked I want that they display an html document.

Up to there I am fine, the problem is here...I want that this html page may have a specific size, no scrolls, no bars apart from the title bar, not resizable.

TAKE A LOOK OF WHAT HAPPENS!! CLICK BELOW!
when you get at the end, click WAKE (IS THE ONLY THING DONE BY NOW)

www.radicalsurfex.com/paginas/intro.html

I put this script on the flash button in this flash presentation:


on (release) {
getURL("javascript:window.open('wake.html','','hei ght=711,width=953,toolbar=no,scrollbars=no')");
}

and then in the html document where I put the flash file I insert in the head this tag:

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
open.window(theURL,winName,features);
}
//-->
</script>


What happens is that when clicking flash button 2 html pages open (one with the things I specified, and another one in blank)

What is wrong?? Which script should I use??

thank you all!!

zanda

View Replies !    View Related
Calling An HTML Window With Javascript
hey folks

i've got an HTML page that i need to call up from a flash movie. no problem... but i need the page to be a specific size (also no problem) and also to have no status bar, URL bar, toolbar, etc (therin lies the problem)... i haven't found a javascript that can do all of this upon loading an HTML page, only when calling a pop-up from another HTML page. i'd really rather not call up an HTML page which calls up ANOTHER HTML page and then has to close itself... that's messy. is there anyway to put javascript into a button in the flash movie itself? thanks.

--andy

View Replies !    View Related
HTML Pop-up Window From SWF File (Flash 4)
I'm stuck. I am creating a Flash banner ad. The site it will run on requires a pop-up window at a specified size for one of my links in the ad, and they require a Flash 4 .SWF file as final art.

My problem is creating the pop up. I can accomplish this when I use the HTML file generated by Flash and add corresponding Javascript to the <Head> tag, but it won't work when I just run the SWF file by itself. Any suggestions?

View Replies !    View Related
Open 410*500 Html Window
Hi,
I have a flash site, and i need to open from this web, a html window, with "width=410,height=500" properties.
Working in dreamweaver it is easy, but i have no idea of doing it in flash...
anybody can help me?

regards

piraya

View Replies !    View Related
Open An Html Pop Up Window
Hi,
does anyone know how to open a new html pop up window from flash with actionscript?
I tried like this

on (press) {
getURL ("href="javascript:window.open('thepageIwannaopen .html','','toolbar=no,scrollbars=yes,width=310,hei ght=600');"", "_self");
}
and i get two browser windows,first with the word (object inthe html,that start to open another ones to infinity and beyond. Finally i have to shut down the machine or quit the browser

I feel desperated and lonely in the heart of nowhere...
helppppp

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved