ActionScript 2.0 :: Link A Button To A Website With New Window?

Jan 28, 2010

I am using Flash Cs4 and I want to open a website window with a button click, but I want the window to open seperately without closing the first webpage. When the button is clicked, I want the user to see both pages open and in order to navigate back to the original, have them click the open window of the page instead of using the back button. It would be perfect if the second window would open smaller than the original webpage, sort of minimized, so that they can still see the original pages content. I can use either actionscript 3, or actionscript 2. Whichever will acomplish the task. I am having the damdest time finding the correct code to do this. I have Flash Cs4, currently set to publish as actionscript3 with Flashplayer 10. I can change that to actionscript2 and Flashplayer 8 if anyone can give me the actionscript2 code to accomplish this task. Here is the code I am currently using to navigate to the second webpage, and yes I know it is currently actionscript 3, and this an actionscript 2 forum: Either code will work for me as long as it does the job.

addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("https://mycw3.eclinicalweb.com/cent/jsp/login.jsp"));
}

It does open in a second window with no back button as I want, as long as I am testing the movie in Flash. When I publish it to the web on a server, you still have to use the back button to go back the original page which is not what I want.

View 1 Replies


Similar Posts:


Professional :: How To Open Website Link In New Window

Feb 20, 2010

I have created a flash website which contains a link to an outside website. When I click on the link, it takes me to that outside website in the same browser window. To go back to my website, I have to use the back arrow. I want to change the link to the outside website so that the link opens in a new window. Therefore, if somebody goes to the link, when they finish they can close the new link's window and the original window with my website will still remain, without losing both upon closing. What do I need to adjust in order to do this?

View 4 Replies

ActionScript 3.0 :: Made A Button With A Link To A Website?

Nov 7, 2009

I have got a small question. I have made a button with a link to a website lets say [URL].. but when you press a button i get an notification from adobe player security manager that tells me this site is trying to connect to a different site and you have to configure manually. Only after doing that button works fine. Is this going to happen to everyone when they try to use my website and is there any way i could fix that?

View 3 Replies

ActionScript 3.0 :: Create A Button That Link To A Website?

Jul 15, 2010

I am trying to create a button that link to a website and I cannot for the life of me get my flash to open a new window to a site. I am trying to have specific links to different sites for each slide, I'm not sure how to get it working. I get an error message of:

TypeError: Error #2007: Parameter url must be non-null.
at global/flash.net::navigateToURL()
at MethodInfo-119()

my script is the following:

import fl.transitions.*;
import fl.transitions.easing.*;
var imageWidth:Number = 0;[code].......

View 3 Replies

ActionScript 3.0 :: Link Button Without A New Window?

Jul 8, 2009

[code]...

I want to link through my button but without opening a new window.

View 4 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 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 :: Making Button Open Link In Same Window?

May 15, 2009

this is what I have as code but it opens in a new tab when i click the button

futureBtn.addEventListener(MouseEvent.CLICK,goFutu re);
function goFuture(e:MouseEvent):void
{

[code].....

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

ActionScript 3.0 :: TypeError: Error #1009 And Cant Link A Button To A Eksternal Website?

Jun 3, 2010

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at VM_montering_fla::MainTimeline/frame1()

that is one of my problems,

and that i cant link a button to a eksternal website. i have 4 buttons that shuld be linked, but i cant write any codes on the button itself like they have showed me in tutorials.

so what to do, i have been trying many different codes, and none of them works.

this code can only ben used one one button, if several more it gets alots off errors, and stil whit only one it wont link to a website.

ActionScript Code:
bad1_btn.addEventListener(MouseEvent.CLICK,mouseClick);
function mouseClick(event:MouseEvent):void
{

[Code].....

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

IDE :: HTML Link To Website AND ALSO Link To Location In SWF?

Feb 27, 2009

I have a 90% all flash-site and when u click news webpage splits up in HTML blended with flash in a page called news.asp

(buttons are in flash and content in asp bellow)When loceted on news.asp and you click... let's say service you go back to index.html with the flash main.swf, but the link has ALSO have to go to label (service) or frame 30 lets say...

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

ActionScript 3.0 :: Link To A Scene / Frame From A Flash Website To Flash Website?

Nov 17, 2010

I have 2 websites both built entirely in flash.My problem is that I have created a button on 1 of the sites that has to link to a particular scene and frame within a different flash website.

View 6 Replies

Link Website To A Banner?

May 11, 2009

I'm trying to link a web site to a banner, I've created a button put an action to the hit icon went back to the actions form put the command[code]...

View 1 Replies

ActionScript 3.0 :: Link To Website With Class?

Nov 9, 2009

trying to create a link in my flash file to a lightbox/pop-up window. So far it looks like this:

gotopart5.addEventListener(MouseEvent.CLICK, DocClick5);function DocClick5(event:MouseEvent):void{navigateToURL(new URLRequest ("http://www........./propel/test.html?height=450&width=620"), ("_blank"));};
 
the issue I have is making it somehow call the external class="xx" which I need in order to make the window actually appear right.
 
Where/how do I put this class in the flash document? Or do need to do something entirely different.

View 1 Replies

Actionscript 3.0 :: Getting A Return Value From A Website Link?

Aug 10, 2011

I am trying to program an app that searches for a project but I have two issues.1st when I click the search button the project opens up my browser.2nd I want the value to return the url, so I can parse it and use it as an xml, so I can get specific tags in the return of my search.

a bit of background info: I once made an app for finding your horoscope in flash, which retrieved an xml file(from an rss feed) on click and went to the right div tag within the file. I am not sure if this is the same way for using a regular website, but when I inspect html pages it seems like the same format. I am hoping to get only the return values of the search and not the rest of the stuff around it, and have it show up in a box to scroll through.

View 6 Replies

ActionScript 3.0 :: Button Link - Link Them To A Picture/url Address?

Dec 17, 2009

i created my subMenu buttons fine, however i only know how to link them to a picture/url address, my goal is to have the user click the subMenu button and open the image or page right below the menu bar in the "stage" area of flash. I read about IFrames but i'd rather create the whole site in flash .Here is the code for my subMenu...

btn_34th.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("images/34th.jpg"));
trace("I'm Clicked!");

Again, this works fine, i just want to have the image take up the "white" space on the stage area, very similar to an IFrame.

View 1 Replies

IDE :: Get The Link Appear In The Same Window?

Feb 16, 2009

i've download this gallery made by kirupa, if you do click on the image the url appear in a new window...

my question is ...how i can get the link appear in the same window? i don't know if xml allow the target="_parent" code....

this gallery use xml file...

<images>
<image>
<path>images/angel.jpg</path>

[Code]...

View 1 Replies

ActionScript 3.0 :: Toggle_window - Window Opens And Closes Not By Clicking On The Button But On The Window Itself?

Jun 12, 2009

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)

View 5 Replies

ActionScript 3.0 :: Making Flash Link To Website?

Apr 27, 2009

Trying to make it so when you click anywhere on the flash file, it loads a specific website. It works when I go to File > Preview > Flash, but if I try and preview in html it doesn't navigate anywhere. My actionscript is:

Code:
myButton.addEventListener(MouseEvent.CLICK, onMouseClick);
function onMouseClick(e:MouseEvent):void {

[code]....

View 1 Replies

ActionScript 3.0 :: Use An Image As A Link To A Specific Website

Feb 16, 2010

how i can use an image as a link and also a button to link to a specific web page. Also i am using keyframe animation if that helps atall

the button is called alaskanMist_btn and the move clip is called alaskanMist

I am trying to link them to [URL]

View 15 Replies

ActionScript 2.0 :: Link Website To Facebook Page?

Apr 12, 2010

just using getURL doesn't work if :1)the user doesn't have auto login for facebook turned o2)did not have facebook already opened on 1 of the pages of his browser. o:It will instead redirect user to login pg after which a search page with search results. The page i want user to see is actually way back on the list. How do i link a flash website to a facebook page

View 4 Replies

ActionScript 3.0 :: Launch A Link Website From Papervision3D?

Mar 19, 2011

How do you launch a link website from Papervision3D?

I have a plane with a material on it that I wish to be clickable and that would launch a default browser with the website.

View 4 Replies

ActionScript 3.0 :: Link Some Text To An External Website?

Aug 20, 2009

I am trying to link some text to an external web site. I am using the following code, but whenever I try to launch the external web site, I get prompted by Adobe Flash Player Security saying that it has stopped a potentially unsafe operation. It then tells me that I need to change my security settings in order to view the website. I am wondering if there is any way around stopping the security check, or is this built into Flash?
 
var linkLaunch:URLRequest = new URLRequest('content/web/fuel/project/home.html'); navigateToURL(linkLaunch);

View 2 Replies

IDE :: Embed A Link So That It Redirects To Website When Clicked?

May 27, 2011

hey there i have a series of jpegs about 7 with the dimensions of 190width x 500 hieght and i need to make them into a swf to put on a sponsors site which i need to embed a link so that it redirects to my website

View 1 Replies

Open Link In Same Window?

Jan 19, 2010

how to make the URL open in the same window. I am using flash CS3, Is there anyone who can edit the script below to allow this. The instance name is Button6

var getnextpage5:URLRequest = new URLRequest ("http://www.yokubou.co.uk/digitalart.html");
Button6.addEventListener(MouseEvent.CLICK,b5Click) ;
function b5Click(event:MouseEvent):void{

[Code]....

View 2 Replies

Open New Link In New WINDOW?

Jun 17, 2010

I've been using this code, which, when i click on a button it sends me to a new link, but when I put the .swf on my website and click the button, it sends me to a new tab *BUT* the url is instead ofI also want it in a new window instead of a new tab.here's the code (All in the first frame)

Actionscript Code:
button31BTN.addEventListener(MouseEvent.CLICK, clickButton31);function clickButton31(event:MouseEvent):void{  var url:String = "www.theurl.com";  var

[code].....

View 2 Replies







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