ActionScript 3.0 :: URLRequest Without Opening Window?

Jan 28, 2010

I have this thing that sends variables to a php-file. The code snippet looks like this:

Code:
var myURLRequest:URLRequest = new URLRequest("kampanjerbjudande/process_variables.php");
myURLRequest.data = myVariables;
navigateToURL(myURLRequest, '_blank');

Now, the thing is this opens the process_variables.php in a new window/tab. I want to send the variables to the file to be processed without "visibly" opening the file in a window. Do you know what I mean?

View 6 Replies


Similar Posts:


ActionScript 3.0 :: Opening Jpegs With URLRequest?

Apr 10, 2011

I'm creating a file with buttons and thumbnails that when clicked, opens up jpegs. I've written script that works successfully, opening the jpeg from the swf in Preview. This works for my desktop. However when using my laptop, the jpeg opens in Opera.

How do I write the code so that the jpegs open in Preview by default regardless of what computer one is using? Below is the script:

domino_mc.addEventListener(MouseEvent.CLICK, dominoClickFunction);
function dominoClickFunction(e:MouseEvent) {
var url:String = "domino.jpg";
var request:URLRequest = new URLRequest(url);
navigateToURL(request);
}
buttonMode = true;

View 2 Replies

ActionScript 3.0 :: Opening Local Files Using A URLRequest?

Nov 16, 2009

is it possible to open a file from say C drive when your flash file is in C:somefolder?

View 1 Replies

ActionScript 3.0 :: Get The URLRequest To Bring Up The New Page In The Same Window?

Sep 1, 2010

how to get the URLRequest to bring up the new page in the same window? I am trying to create the flash navigation bar and it keeps opening up on a new page.

View 7 Replies

ActionScript 3.0 :: URLRequest - NavigateToURL To Open A New Browser Window

Mar 8, 2009

I have a embedded flash application that uses URLRequest and navigateToURL to open a new browser window. Basic code is:

[Code]...

View 3 Replies

ActionScript 3.0 :: Opening A .swf In A New Window?

Oct 29, 2009

I've got a .fla file, with 3 scenes in it. In the 3rd scene, there's a button which upon clicking it, should open a new window showing a external .swf file. Both files are placed in the same folder.

Now.. I'm able to open the .swf file in a browser, but what im trying to do, is open it in flash player. How the *#@%*#@ am i supposed to that? :P

Oh yeah, i should probably mention that the external .swf file also has mulitple scenes and buttons. And both "movies" should still be interactable when i open the new window.

View 6 Replies

IDE :: GetURL Always Opening In New Window

May 25, 2009

I can't seem to get the buttons I have created in flash to open in the same window.. I've tried
1. leaving it with no target
2. on (release) {
getURL("[URL]");
targetPath("_self")
}
3. on (release) {
getURL("[URL]", "_self");
}

View 2 Replies

ActionScript 3.0 :: Opening A Pdf.swf File In Its Own Window?

Dec 2, 2010

im having no luck with this at all. im building a site for my company, building and selling homes. ive made a website in flash, nothing too complex, ive also made a pdf in indesing, which when published left me put a page turing feature on it, and that pdf was then published as a swf file. its put all the code in for me automatically so the people can now interact and page turn it.i simply want a button/link i can put on my site to open this swf in its own browser window or in a flash player window. this code in previous versions of flash has been easy...on release etc but now with as 3.0 i see people using child, navigatetourl, its so confusing and every example ive found just doesnt seem to work

View 14 Replies

ActionScript 3.0 :: Opening New SWF File In Same Window

Jul 1, 2009

The code, To open a new .swf file in the same window, like on my website when u click a button I want it to load another .swf file in the same window. Its either this or to make it open a new scene.

View 1 Replies

Flash :: Link In Keeps Opening In New Window

Sep 16, 2009

I have l a flash file in my pages that links to other pages within my web site but when clicked they automatically open in another window. How can I link them without opening a new window as would happen with a normal web page  link?
 
Here is my current Action Script code: index.addEventListener(MouseEvent.CLICK,indexbuttondown);
 
function indexbuttondown(event:MouseEvent):void {
var bbcURL:URLRequest = new URLRequest("index.html");
navigateToURL(bbcURL);
}

View 2 Replies

ActionScript 3.0 :: Opening A Link In A New Window?

Dec 5, 2009

I'm primarily an HTML/CSS girl.  I'm pretty new to Flash, and until recently have only worked from the timeline without using any action script other than stop(); and simple goto commands like gotoAndPlay(49);
 
This week, I needed a nav button to take the user into the site from the Flash intro; it's live at [URL]
 
Flash CS4, Action Script 3.  Since I don't write Action Script - yet - and needed the link in a hurry, I Googled for the code.  As you can see, it works fine, but the site opens in a new window, and I don't want it to do that, I want it in the same window.
 
The code is as follows:
 
clickToEnter.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void  {    
navigateToURL(new URLRequest("http://www.deppimpersonator.com/cms"));
}
 
I thought it might be the use of "new" in front of URLRequest, but of course when I took that out the link didn't work at all.
 
Blind experimentation produced two attempts that simply broke the link (don't laugh ):
 
[Code]...
 
What do I need to add (or remove) from this code? And is this the most efficient way to code an internal link?
 
In case this is browser-specific:  I've only tested this in the latest versions of Firefox and Safari for Mac, OS X 10.6.2 (Snowleopard).  It's the same in both browsers.

View 3 Replies

Professional :: Opening In Same Window Using CSS & Flash CS3?

Jun 2, 2010

I'm working on a portfolio in Flash CS3 and AS3. I'm trying to avoid doing the whole thing in Flash, so the home page is a CSS/HTML header page that will house a looping flash piece underneath the header, and the inner portfolio will be flash pieces brought into the same CSS header framework.I'd like to know what kind of code I need to use in the portolio flash navigation so that the "home" link will open the CSS/HTML home page in its same window, rather than launching another window. Is this something that can be done using AS3, or do I need javascrpt as well?

View 4 Replies

Professional :: Opening Links In Same Window

Jan 4, 2011

using the following action script on buttons to open links:URL...Trouble is they all just open new windows and not the link in the current window!

View 3 Replies

ActionScript 3.0 :: Opening A Url In A Blank Window

Dec 8, 2011

I have a button called bt07 and I would like when you click down this button to open an url in a blank_window (for exemple [URL]) I wrote this code below but I don t know how writting the code to open the url?

//mouse downbt07.addEventListener(MouseEvent.MOUSE_DOWN,auSurvolSurbt07);function auSurvolSurbt07(e:Event){bt01.gotoAndStop(1);bt02.gotoAndStop(1);bt03.gotoAndStop(1);bt04.gotoAndStop(1);bt05.gotoAndStop(1);bt06.gotoAndStop(1);bt07.gotoAndStop(2);

[Code].....

View 1 Replies

PHP :: Opening Custom IE Window From Flex Possible?

Nov 11, 2009

Is it possible to open a custom IE window (i.e no status bar or address bar etc) from within flex? Or if I call a php file or html file can the page customize itself when loaded?

View 2 Replies

Web Development :: Opening IE Window From Within Flex?

Dec 4, 2009

All I need to open a new IE Window from within Flex code on click of a link.P.S I dont want to open a new Browser. I want to open a browser window only that can open a new URL.Something like clicking on a link in Flex and then openin a Pop up window.

View 2 Replies

ActionScript 3.0 :: Opening New Window In JavaScript?

Oct 9, 2009

I've been trying to find the Migration from AS2 to AS3,for the following code:

ActionScript Code:
on (release) {
getURL("javascript:NewWindow=window.open('main.htm l','ssWin','width=990,height=600,left=0,top=0,tool bar=N0,location=No,scrollbars=No,status=No,resizab le=No,fullscreen=No');NewWindow.focus();");
}

the code I've got so far is:

ActionScript Code:
if (mcUrl == i)
{

[code]....

But I'm not sure how to implement JavaScript in it.

View 1 Replies

ActionScript 2.0 :: Opening An External Window?

May 12, 2010

i have Movie A playing. When you click PlayStep button, I want to open another window that has Movie B in it. When Movie B is done, I want to go back to where I came from (Movie A). Nothing that I have tried has worked -- like _blank or importing ExternalInterface.

View 2 Replies

ActionScript 2.0 :: Opening Up Site In Pop Up Window?

Jan 10, 2004

I am trying to open up my site in a pop up window, and to be self contained in the window itself. This involves javascript and the code must be entered in the index.html page of the site, after the head tag, but why wont it work?! Does anyone know what to do?

View 14 Replies

ActionScript 2.0 :: GetURL Without Actually Opening A Window?

May 4, 2006

is there any way to use the getURL command without it actually opening a new page? What I'm really doing is sending variables to a php page and inserting data into a database, but when i use LoadVars and LoadVars.send it's not workin for some reason. So I tried a simple getURL and that also sends the variables to the page and that works for me, but I don't want the users to see a new window popup or for the one theyre in to go to a new URL...? Maybe I'll post my LoadVars code too just to make sure I did that correctly... but I copied and pasted it from another LoadVars object in the same flash program that is working correctly (both sending AND loading variables)...

View 6 Replies

ActionScript 2.0 :: Opening URL In Box / Window Inside SWF?

Aug 3, 2008

How to open a website page (anysite.com/whatever) inside a box/window of designated size and position inside a flash swf? I am an Actionscript newbie and can't deal with "snippets" of info as well.

View 3 Replies

IDE :: Opening An Fla In A New Browser Window With Java

Jan 20, 2009

I followed this tutorial [URL] put the proper actions on my button, the button calls the window in a blank page but it does not have the settings in the javascript no scroll, no resize and a preset window size.

The tut is from Flash 5 and that was before the "ACruncontent" file flash uses now in cs3. window opening the way I need it is critical for a client.

View 2 Replies

ActionScript 2.0 :: Opening A New Window With A Certain Size?

Mar 18, 2002

I want to open a new window with let's say height 500 and width 600 could i use this in flash so i can open such an window with an html -file in it, i have made a javascript to do this, but could i use this in my actionscript or do I have to work with getURL somehow.

View 3 Replies

ActionScript 3.0 :: Mp3 Player Opening In New Window

Apr 15, 2011

I have made an mp3 player which works fine but I have one issue. Currently if you click on the speakers it will open the player in another window. way for the original player to stop playing and then new one which opens to continue playing.

The second player launches via a get url command, so I guess this might not work with what I am trying to achieve.

Here is the link to the file.

[URL]

The idea is for the original mp3 player to sit on the first page of a website and the second one to float when opened over the other pages the user navigates through.

View 3 Replies

ActionScript 2.0 :: Opening A Jpeg In A Pop Up Window?

Mar 8, 2004

I am stuffed with trying to figure it out.

View 4 Replies

ActionScript 3.0 :: NavigateToURL Opening In New Window Even With _Self?

Feb 18, 2009

Strange Behavior in a flash I'm working on. And I must be doing something wrong because I can reproduce it in every flash I create. You can check out the behavior here at a test page on my under construction site:I have a menu bar at the top of the page, with the following code:

btnHome.addEventListener(MouseEvent.CLICK,btn1Clic kHandler);
function btn1ClickHandler(event:MouseEvent):void{
navigateToURL(new URLRequest("http://www.i2ctech.com/"),"_Self");

[code].....

View 2 Replies

ActionScript 2.0 :: SendAndLoad Still Opening New Browser Window?

Mar 31, 2009

I am trying to modify this tutorial on exporting the flash movie to a jpg. On the completion of the flash file, using AS2, there is this method:

Code:

// copy is complete, send the result LoadVars to PHP
listener.onComplete = function(target:MovieClip, load_var:LoadVars){
loader.label = "sending to php..."

[code]....

so i mean...I am using sendAndLoad as appropriately right? then why does my flash movie STILL open a new window (pixels.php) after the script gets to this point? I am also open to new methods of redirecting, assume i cant stop pixels.php from opening, how do I close the current window, so at least only 1 window will be open to the user?

View 1 Replies

ActionScript 2.0 :: Opening New Window From Dynamic Text URL

Feb 18, 2010

I have a dynamic text box with html enabled on it. There are hyperlinks in the text that I want the user to be able to click and have that link open in a new window. This is causing pop up blockers to go crazy though, and when the user allows popups it refreshes the window, losing their current location in the flash file.

I have been able to open a new window with some javascript and a geturl(), but this only seems to work with buttons. My textual hyperlinks are not buttons though. I have tried using asfunction in my href and then using geturl inside the function, which doesn't seem to work either. Open a new window without triggering popup blockers from an html enabled dynamic text link.

View 1 Replies

ActionScript 2.0 :: SendAndLoad Still Opening New Browser Window

Apr 16, 2010

I am trying to modify this tutorial on exporting the flash movie to a jpg. On the completion of the flash file, using AS2, there is this method:

Code:
// copy is complete, send the result LoadVars to PHP
listener.onComplete = function(target:MovieClip, load_var:LoadVars){
loader.label = "sending to php..."

[Code].....

so i mean...I am using sendAndLoad as appropriately right? then why does my flash movie STILL open a new window (pixels.php) after the script gets to this point?

I am also open to new methods of redirecting, assume i cant stop pixels.php from opening, how do I close the current window, so at least only 1 window will be open to the user?

View 1 Replies

ActionScript 3.0 :: NavigateToURL Opening In New Window Even With _Self

Feb 18, 2009

Strange Behavior in a flash I'm working on. And I must be doing something wrong because I can reproduce it in every flash I create. You can check out the behavior here at a test page on my under construction site: [URL]I have a menu bar at the top of the page, with the following
code:

btnHome.addEventListener(MouseEvent.CLICK,btn1ClickHandler);
function btn1ClickHandler(event:MouseEvent):void{
navigateToURL(new URLRequest("
http://www.i2ctech.com/"),"_Self");

[Code].....

If I open up a web browser and then click the menu buttons, the buttons open the link up in a new page. Once the NEW page opens, the menu buttons start acting as I would expect, then opening any further links in the same web page. Is this some internet explorer security setting? Every computer that I have utilized (total of 5) to view the web page exhibits this same behavior.

View 13 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved