Flash :: Opening Movie In New Window On Clicking Link In A Webpage
May 23, 2009opening flash movie in new window on clicking link in a web page
View 1 Repliesopening flash movie in new window on clicking link in a web page
View 1 RepliesRight 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].....
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.
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);
}
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.
it's a box component that can be used then opening a window in a webpage...or for a button.
View 2 RepliesI 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 RepliesI'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.
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 RepliesI 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?
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]....
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 RepliesI 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.
How do I get an html pop-up window by clicking a button on a Flash movie?Flash CS4 and Actionscript 3
View 1 Replieshow 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 ");
}
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?
I'm working on my portfolio at the moment and trying to make my examples of work open in new windows that are the size of the original swf movie. I've read the Flash 5 tutorial on here about making a borderless window but I can't make it ork.
View 3 RepliesI want to open a web page on the same tab when the user clicks a movieclip. I'm using this method:
var url:String = "http://www.google.com";
var request:URLRequest = new URLRequest(url);
try {
[Code]...
how to open it sending POST vars. Is that possible?
i would like that my window opens and closes (opens: scale out; closes: scale in) not by clicking on the button but on the window itself.here are 3 applications of mine (schuifwindow, scroll and fotoalbum).
Grtz,Jan the man
here are 3 applications of mine (schuifwindow, scroll and fotoalbum).
schuifwindow www.truevision.be/other/btn_home.flascroll www.truevision.be/other/scroll.flafotoalbum www.truevision.be/other/foto_album.fla only picture one (left up corner) has a X button (i dont want to use this button)
I used flash banner at html page in a iframe. But when I clicked at another navigation link (like index to contact page). flash reloads. & it takes time for low bandwidth user. Is there any solution that, i can go at any page without refresh whole page...(not reload flash). I don't want to reload flash when I click at another link.
View 1 RepliesI'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 RepliesI 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 RepliesI just finished reading the popup tutorials on the site, one is for chromeless windows (which I dont want), and the other one uses buttons.Is there a quick and easy way where when I click an mc, it will open up an html file?
View 2 RepliesI just finished reading the popup tutorials on the site, one is for chromeless windows (which I dont want), and the other one uses buttons.Is there a quick and easy way where when I click an mc, it will open up an html file?
View 5 RepliesI just finished reading the popup tutorials on the site, one is for chromeless windows (which I dont want), and the other one uses buttons. Is there a quick and easy way where when I click an mc, it will open up an html file?
View 4 RepliesI 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.
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);
I am creating a textbutton using actionscript. the code is given below.
public function createTextButton(parentId){
var mytext:TextField = new TextField();
mytext.x = 478;
[Code]....
Now i want the click event of this button to be handled in my event handler function only. It should not navigate away to the 'href' source given upon clicking. How can i achieve that.
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 RepliesI 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]....