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


Similar Posts:


Flash :: Movie Link Opening In Same Window

Jun 4, 2009

We have Flash movie in one domain and accessed from other Domain. The links in Flash movie was not working and with security restricitions we cannot use 'allowscriptaccess'.
So, we used System.security.loadPolicyFile [URL]; and included the XML in our assets. This worked for the links to open in New Window. But, when the links were changed to open in the same window, the links are working in Flash Player versions till 9.2XIn the versions, 9.4X+, it is not working.

View 1 Replies

Flash :: Opening Movie In New Window On Clicking Link In A Webpage

May 23, 2009

opening flash movie in new window on clicking link in a web page

View 1 Replies

ActionScript 3.0 :: Flash Player Permission Warning On Opening New Link Window

Oct 1, 2010

I am trying to add a link button to my facebook page on my profile website, but I get flash player's permission warning when I press button and open new link window. Is the only way to permit to goto link setting flash player's security option manually? or is there any way to do not show this warning and permit going throw?

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

ActionScript 1/2 :: Opening New Browser Window Via URL Link

May 20, 2010

I've trawled the forums but still trying to get new browser window to open from my site so far have used Properties to add URL which works fine - but doesn't open a new browser window - not sure if this (text) needs to become a button with actions

View 3 Replies

ActionScript 3.0 :: Button Link- Why Does It Keep Opening In A New Window

Sep 1, 2009

I created a button and linked it using this code:

[Code]...

But it keeps opening the link in a new window, how do I stop it from doing that so it opens in the same window the swf will be in? Where do I add target=_self?

View 1 Replies

ActionScript 3.0 :: Slideshow Link Opening In New Window?

Sep 27, 2010

i have the following code for a flash xml slideshow and would like the links to open in the same browser window.....i am fairly new at this so i am unsure about how to add the code to make it work....

import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;

[code]....

View 2 Replies

ActionScript 2.0 :: Opening A Sized Window Off A Link

Aug 29, 2004

what is the as for opening a sized window off a link. for example, clicking an image thumbnail, and it opens larger in a window that fits the picture. with no adress bar, or stuff like that.

View 5 Replies

ActionScript 3.0 :: Link A Button To A Webpage Without It Opening New Tab/window?

Dec 29, 2011

Right now I have everything set up and linked correctly except when you click the button it opens up a new tab rather than just going straight to the suggested URLHere is the code I have now...

button_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);
function fl_ClickToGoToWebPage(event:MouseEvent):void
{

[code].....

View 6 Replies

Professional :: Stop A Browser Window Opening Up When The Email Link Is Clicked?

Jul 19, 2010

how to stop a browser window opening up when the email link is clicked? I'm using a button with this script:
 
on(release){
getURL("mailto: name@address.co.uk ");
}

View 2 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

MX04 - Opening YouTube Link From Flash

May 19, 2010

I need to open up a page within "youtube" from a clip used in a Flash movie. I have no problem with how to go about this it is just that with IE it won't let me open the link automatically - I get the "Pop up" warning spiel before the site can be opened. Is there any way I can do this seamlessly, from the movie, without requiring users to authorise security checks?

View 2 Replies

ActionScript 2.0 :: Opening New Window From Flash Using GetURL?

Feb 12, 2002

I have the following problem trying to open a new window from flash:

getURL(url, new_window, "POST")

What happened was that the first time I clicked the button, it opens a new window; but subsequent clicks seem to do nothing... No "post" is done and that window doesn't get refreshed.

View 3 Replies

ActionScript 3.0 :: Keep Flash Button From Opening Link In New Browser Tab

Aug 5, 2009

I'm trying to figure out why my Flash button opens the link in a new browser tab, when it should just replace the page with the new one.

I'm using Flash CS4 with AS3 code, the button in Flash receives variables from an XML file and then knows what URL to pass when the user clicks the button. "Request" is the variable being passed for the URL. The website uses PHP and everything works except opening a new tab.

The main line of code for this is:

navigateToURL(request, '_blank'); [I know this WILL open new tab]

I modified it to try both of these:

navigateToURL(request, '_self');
navigateToURL(request);

View 1 Replies

ActionScript 2.0 :: Opening A New Window With The Flash Video Player?

Aug 2, 2009

I'm building a CDROM using Flash CS3 but with Actionscript 2.0. There are videos that need to open in a new window with a Flash video component (on click ) within Flash and not in the browser. Also with the option of opening full screen

View 6 Replies

Flash :: Opening Page In Same Window Using NavigatetoURL Function?

Jul 18, 2011

I have a flash code, in which i am loading images and opening urls through xml file, now it is opening in a different window(pop up window) but i want it to open in the same window.

var xmlReq:URLRequest = new URLRequest("XML/ImagesData01.xml");
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
xmlLoader.load(xmlReq);

[Code]....

View 2 Replies

ActionScript 2.0 :: Opening Popup Window From Flash Button

Jun 24, 2010

Is it possible to open a cross domain pop up window from a flash button. Let's say something like this:
ActionScript Code:
on (release) {
getURL ("javascript:NewWindow=window.open('[URL]','newWin','width=800,height=650,left=60,top=60,toolbar=No,location=No,scrollbars=no,status=No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}
Is a button hosted in domain that links to a secure page in link. Will it work or will it get blocked by browsers or internal flash restrictions?

View 3 Replies

ActionScript 3.0 :: Send Data From Flash To PHP Without Opening New Window?

Sep 18, 2011

After searching for posting values from flash to php without opening new window.I found the answer in document. using sendToURL() method.Here is tutorial to pass data from flash as3 to php

ActionScript Code:
import flash.net.URLVariables;
import flash.net.URLRequest;

[code]......

View 0 Replies

ActionScript 2.0 :: Auto-close Flash-window When Opening URL?

Jan 11, 2004

I want to make an actionscript where, at the end of my Flash-movie, the Flash-window will close 'automatically' after the getURL-action is performed. Can someone tell me how to do this?Like, in the last frame, I got so far:

stop();
getURL("http://www.somewhere.com");

View 5 Replies

ActionScript 2.0 :: (auto)close Flash-window When Opening URL?

Jan 11, 2004

I want to make an actionscript where, at the end of my Flash-movie, the Flash-window will close 'automatically' after the getURL-action is performed. Can someone tell me how to do this?Like, in the last frame, I got so far:
_______________________________________
stop();
getURL("http://www.somewhere.com");
_______________________________________

View 5 Replies

ActionScript 3.0 :: 'new Window' Links Opening BEHIND Full-screen Flash

Aug 7, 2009

I'm working on a site that's intended to display full screen. At present the initial HTML page has a "launch site" link which pops up a fullscreen window (via javascript window.open) with our Flash content.Once in the Flash site, all URLs that point at off-site destinations are set to open in a new window ("_blank" as the target - either an href in text, or via navigateToUrl). In Mac Firefox the new window opens BEHIND the full-screen Flash (as a new tab in my case). In Windows FF and IE, and Mac Safari, the new window pops in front of the fullscreen Flash.Is there a way to make the non-fullscreen window pop in front of the fullscreen Flash? I'm using swfobject 2.1 - perhaps I need to use an externalInterface call...thoughts?

View 0 Replies

ActionScript 3.0 :: Opening The Main Flash EXE File In A MAXIMIZED Window?

Aug 27, 2010

My company emails our Flash EXE files out to customers. Most of these Flash files use keyboard events to navigate through them, and they load external SWF and video files.So, obviously,I have to package all of my movie files, SWF, and the main EXE into the same folder.In the past, they have simply Zipped the file, emailed it out, and told them which file to open.

I am trying to find a way to take the entire folder and bundle it into a single EXE file.I need to find a permanent solution for opening the main Flash EXE file in a MAXIMIZED window. I don't mean fullscreen.I mean MAXIMIZED.In fullscreen, keyboard events don't work.But, they do in a Maximized window.

View 1 Replies

Flash :: Professional - Menu Doesn't Work After Opening An External Link

Nov 7, 2010

I made a simple website with a flash menu, that opens internal links in an iframe. However, I have a few other (not included in the menu) external links, which open in the same iframe. And after I click on one of them and it loads in the iframe, the buttons on the menu stop working. I'm beginning to think it has something to do with the internet explorer, since it works on some computers. But I'm not sure... not very good at this.

View 5 Replies

Flex :: Have A Link In A Datagrid And To Popup A Window On Clicking The Link?

Oct 15, 2009

I have a datagrid with different types of columns, like I have checkboxes, combo boxes and text Inputs as the column types. Now I want one of the column type to a link, with the label "view". All the rows in that column are link with the same label "View" and on clicking it, I want a Pop up window to be opened?

This is my code:

<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%">
<mx:Script>
<![CDATA[

[code]....

I didn't know how to bring a link in the datagrid. So used the Text control to display the "View" label. Now If I click this item, "View" in the datagrid, I want the Pop up function, i.e.,defectCommentsPopUp() to be called.

View 1 Replies

ActionScript 2.0 :: New (controllable) Window - Put A Link In Movie That Will Close The Window?

Feb 6, 2003

ACTUALLY i just thought of another one so now i have two. sorry. hope you don't mind. i get sidetracked rather easily. before i start, a quick nota bene. i'm a complete newcomer to flash so my questions are very simpleminded. not much of a challenge i'm afraid.

1. can i put a link in my movie that will close the window?

2. can i put a link in my movie that will open a new window of a specific size, and without the menu-buttons of explorer?

View 10 Replies

ActionScript 3.0 :: Link To Rather Open Up A Download Window Instead Of Just A New Browser Window?

Oct 30, 2009

i have a flash site that links to PDF's with the navigateToURL function which works etc But now i would like Link to rather open up a download window instead of just a new browser window?

View 3 Replies

ActionScript 2.0 :: Javscript:window.open In IE - Link In A Button Inside A Flash Movie To Open A New Window And Play A Youtube Movie

Jul 13, 2009

I work with 3d animation. Im have a problem with a personal website Im doing, I have a link in a button inside a flash movie to open a new window and play a youtube movie:

on (release) {
var jscommand:String = "window.open('http://www.youtube.com/v/b0L4XLODhAA&hl=en&fs=1&','win','height=344,width=4 25,toolbar=no,scrollbars=yes');"; getURL("javascript:" + jscommand + " void(0);");
}

This works fine in Firefox but in IE it doesnt work, I then change the /v/ in the youtube link with /p.swf?video_id= and now I have the window open showing the small youtube thumbnail of my video but once a click play, nothing happens, I check it and is not loading anything.

View 8 Replies

ActionScript 3.0 :: NavigateToURL - Get The Link To Open In The Same Window Instead Of A New Window

Nov 18, 2009

I'm trying to get the link to open in the same window instead of a new window, it's currently set to _blank. I tried _top, _self, _parent. When it's set to anything other than _blank the link doesn't work.

[Code]....

View 7 Replies

Opening Link In Target

May 21, 2010

I have a flash menu which i'm trying to get to open in a target "_ibody".The default code for a button is:[code]

View 2 Replies







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