ActionScript 3.0 :: Linking A Button With A New Separate Window

Jan 25, 2010

This post has been edited to clarify, so that should explain the answer above.I am sure this topic has been covered a million times, but for the life of me, I have been searching the internet for hours trying to find a simple solution to this problem. I am using Flash Cs4 with actionscript 3 and flash player 10 for publish settings. I have a button that I want to open a new webpage. When the button is pressed, I want the window to open so the user can see the original webpage they were on before, and I dont want the original webpage to close. In other words, I want to open a new webpage without closing the original webpage, and allow the user to see both webpages, at the same time doing away with the back button. Is this possible? Here is the script I am using. It is placed on a seperate layer called actions. :

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

It does allow me to open the window seperately as long as I am testing the movie in Flash, but when I publish the movie and imbed in into a Dreamweaver Html document (Xhtml), you have to use the back button to go back to the original page. I know this might not be the best way to navigate but the person I am doing this page for wants it this way only.

View 5 Replies


Similar Posts:


Linking Button To HTML URL Opening In Same Window?

Jun 8, 2009

So the following code allows us to open an HTML link with the click of a button

function callLink(event:MouseEvent):void
{
var myURL:URLRequest = new URLRequest("http://www.adobe.com/");[code].......

The problem is that this always opens the link in a new window. So what if I want it to open in the same window? Changing the line to:

var myURL:URLRequest = new URLRequest("http:url...); results in a compiler error.I am embedding this swf on a web page of my own, so there are no security concerns regarding giving flash access.

View 3 Replies

ActionScript 2.0 :: Linking To A Specific Frame Within A Separate Movie Clip

Nov 12, 2009

I'm working on a Flash navigation system.

Currently, when you click on "Recent Projects", you are brought to a frame containing the following actionscript:

attachMovie("recentProjectsBody_mc", "recentProjectsBody_mc", 1);
recentProjectsBody_mc._x = 60;
recentProjectsBody_mc._y = 195;

This loads a new movie clip of a simple slideshow which has 7 frames. You can click through these frames with left and right buttons.

I no longer need the left and right buttons. I need a group of 7 buttons sitting under the "Recent Projects" link which each link to a different frame of the recentProjectsBody_mc movie clip.

I assume I need to load this movie clip before I link to a frame within it. But then how do I link to a specific frame within that movie clip?

View 1 Replies

ActionScript 2.0 :: Launch Another App In A Separate Window?

Aug 14, 2011

I want to launch another app, in a separate window - like Excel or something . I can predict a hard coded path to it - like "c:myappapp.exe".

View 2 Replies

ActionScript 3.0 :: Image Open In Separate Window?

Jan 12, 2010

I am a bit of a beginner to Flash and found a template online to use for my website. One issue I am having is that an image with a link is opening in the main window and I want it to open in a separate window. I am going to attach the code as it is now. Can someone tell me what I need to add or change to make the url link open in a separate window?

onClipEvent (load) {
imageProperties=_root.getCurrentImageName(0);
loadMovie(_root.url+imageProperties['name'], this.cont.pic);
loadMovie(_root.url+imageProperties['name'], this.cont.pic1);
url=imageProperties['linkToOpen'];
targetWindow = imageProperties['target'];
}

View 1 Replies

ActionScript 1/2 :: Image Open In Separate Window?

Jan 13, 2010

I am a bit of a beginner to Flash and found a template online to use for my website. One issue I am having is that an image with a link is opening in the main window and I want it to open in a separate window. I am going to attach the code as it is now. Can someone tell me what I need to add or change to make the url link open in a separate window? If you want to see the site and where the issue is, go to: http:[url]... and click on "main page" It is the "web" images that I am talking about. I really need them to open in a separate window when you click on the image. The action code is below:

 onClipEvent (load) {
imageProperties=_root.getCurrentImageName(0);
loadMovie(_root.url+imageProperties['name'], this.cont.pic);[code]....

View 34 Replies

ActionScript 3.0 :: Linking To A Webpage Within Same Browser Window

May 24, 2011

I have a small Flash movie that is embedded on a site. At the end of the movie, there is a call to action to click to another page on that site. However, it appears the only action in the Code Snippets panel is for an action that opens a new browser window. I miss the basic actions panel! Am I missing something here? How do I accomplish what I need to? I tried changing the code to "_self" instead of "_blank" but that doesn't work
 
Here's the code:
 
button_5.addEventListener(MouseEvent.CLICK,fl_ClickToGoToWebPage_9);
function fl_ClickToGoToWebPage_9(event:MouseEvent):void
{
navigateToURL(new URLRequest("purchase.html"), "_blank");
}

View 3 Replies

Open Separate Browser Window And Pass Data?

Feb 22, 2010

I want to display some data in a separate browser window instead of using popupManager. How do i do that. Also i need to pass parameter to that window, based on that parameter, i ll call the service and get the required data and display that in the datagrid.

View 1 Replies

ActionScript 2.0 :: Calling SWF File To Load Into Its Own (Separate) Window

Dec 2, 2011

My code doesn't work.I use flash 8 (AS 2.0). When I click a button, I want it to load another flash file but not into the same parent/web page. I need the file to load in it's own window.
on (release) {
loadMovie("MyAccountPage.swf", "_blank");
}
After this, I still do not get a respond when I test run the script.

View 2 Replies

Jpegs - Load Images So They Pop Up In A Separate Window To The Flash Movie?

Mar 10, 2009

how to load images so they pop up in a seperate window to the flash movie, to see what mean check out this site and click one of the images [URL]

View 4 Replies

Data Integration :: Open Separate Window For Word, Xls And Pdf Documents?

Jan 30, 2008

How to link a PDF, word, & Excel file in fla by clicking a button? This should open a separate window for the document,with the swf file open in the background.

View 2 Replies

ActionScript 3.0 :: Control An External Movie In A Separate Browser Window?

Jul 31, 2008

i am creating a website for a band, with an mp3 player. i want to be able to make an mp3 player that pops up in a separate browser window. the mp3 player would have a "playlist" that can be dynamically changed from the main window, which gives a list of albums & tracks to choose from. the model for this is Rhapsody's web interface. so, how would i go about creating & dynamically changing the playlist (while music is playing) across multiple browser windows? the "playlist" would be an array of references to mp3s, i guess-- so is there a way to pass events & variables across the windows?

View 4 Replies

ActionScript 2.0 :: Movie Loads In A Separate Window Instead Of The The Main Timeline

Jun 21, 2003

I have a button that I want to have load a movie when pressed. It works, howerver, the movie loads in a separate window instead of the the main timeline where I would like it to. How can I correct this? Here's how I have it scripted now:

[Code]...

View 3 Replies

ActionScript 2.0 :: While Posting Mail It Opens My Aspx File In A Separate Window

Aug 7, 2006

I have been using this function for a long time and this problem never occured. When the user press send button it does send the form as email but it also opens my aspx file in a seperate window.[code]...

View 3 Replies

ActionScript 2.0 :: Linking To A Video - Open A Popup Window In Flash With 320 X 240 In Size

Jun 18, 2009

I can only do so much with flash. I am having issues with linking to a video. Here is my question: please refer to [URL] and click on the video link. I have 3 videos that I want people to view when they click on the links:

- SI TU T'EN VAS (2001)
- GWADA (2004)
- JODIA (2008)

I need the links to be able to open a popup window in flash with 320X240 in size.

1- I imported each video in flash (separatly) using the 30rates/frames, progressive dowload from webserver. (the usual).

2- I allready uploaded the videos (.swf and .flv) on the server (godaddy.com)

3- In my main file, I created a button for each one of the links above using the invisible button with their own instances. they are each on a different layer.

View 2 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 2.0 :: Button Which Affects A Separate MC?

Apr 18, 2011

Now then, I am working on a game and I've come across a problem that I simply cannot figure out. I have a symbol with the instance name of "textbox" (genius, no?) and I have a button with no instance name. Now, within the "textbox" symbol, I have two frames; one of which is named "descentlava". When the aforementioned button is clicked, I need the "textbox" symbol to gotoAndStop on the "descentlava" frame. My feeble mind managed to whip up the following code for the button:

on (release) {
_root["textbox"].gotoAndStop("descentlava");
}

Unfortunately, this does not work and frankly, I'm losing my mind trying to figure this out all on my own. Anyone feel like they could offer some assistance?PS: Not sure if this changes anything, but I feel I should mention that the button and the "textbox" symbol are both within ANOTHER symbol with no instance name. Perhaps this is whats causing the problem, but taking everything out onto the stage is a big no-no. It must be contained within the symbol.

View 2 Replies

Linking A Button To A New Frame?

Oct 27, 2009

I am currently building a website in flash for a school project and it has to be on a timeline. I was wondering if you could help me i have buttons at the top of the page how would i link these to another frame so it can be used as a new page

View 6 Replies

ActionScript 3.0 :: Linking A Button To A Pdf?

Nov 23, 2010

I need to get the code to make a button link to a pdf located in the same folder on my host server as my flash movie and index.html file. (or should it be located differently?) I want the pdf to load in a new window..

View 3 Replies

IDE :: Button Linking To File

Jul 20, 2009

After defining my button as a button and then going into the F9actionscripts menu, I don't know what code to input to make the button link to a specific file. I'm doing this as an autorun swf for a CD I am making.

View 1 Replies

ActionScript 3.0 :: Assign 5 Separate Dynamic Text Fields To 5 Separate Buttons?

Apr 18, 2010

What I need to do is assign 5 separate dynamic text fields to 5 seperate buttons and at the same time to those same five buttons i would like to add 5 images that i would  be able to change merely by swapping out the images in the file theyre in on the server.I would also like to get a nice transition between the images...ALSO i want to dynamically load the images for the buttons that will be used for switching from picture to picture(which im thinking i will be able to do after i know the how to do point the aforementioned things.) 

Through tutorials I've found around the net I've been able to get most of the parts together... but i get lost because what they show you for AS2 they don't for AS3 and vice versa, at least that ive seen.so... I guess my question is... would i need to set up 5 seperate dynamic text fields on the stage and then set each one of them to one of the corresponding button. If so what AS code would i need to use to do so.  And if not what would i need to do?
 
The other part of the question would be I know about the UILoader... would i be able to use it as my buttons and images, if so would i need 5 seperate ui loaders for both the Thumbnail buttons and the images or is there a way that would be better to do it?  and once i do that would i do the transitions using frames and tweens like with AS2?

View 2 Replies

ActionScript 3.0 :: Accessing A Button On A Separate Scene?

May 15, 2011

Okay, so I'm creating a game. I currently have 2 scenes. The first scene is called Opening, the second is Main.The first scene has a title screen and then a button that the user will click to start the game (essentially go to the second scene).However, I'm getting the error: Error #1009: Cannot access a property or method of a null object reference.at code:ocument()t's throwing this error where I'm calling my event listener for start_btnMy code is below:

Document:
ActionScript Code:
{

[code].....

View 6 Replies

ActionScript 3.0 :: Linking Invisible Button To URL

Feb 18, 2009

I am having a problem linking an invisible button to a url. I have 3 invisible buttons that have an action script as follows:

button1.addEventListener(MouseEvent.CLICK,clickHan dler1);
button2.addEventListener(MouseEvent.CLICK,clickHan dler2);
button3.addEventListener(MouseEvent.CLICK,clickHan dler3);
function clickHandler1(event:MouseEvent):void{
navigateToURL(new URLRequest("mywebsite"));
[Code] .....

After I upload the files, I can see the hand icon when I mouse over them, but when I click on that spot nothing happens. I have two text links on the same page that do work. One is an email link and the other is a url link. I have check the button names to my code and they do match.

View 4 Replies

ActionScript 1/2 :: Linking Button To A File

May 20, 2009

Here's my new question: What code I have to input in a button file in Flash, for that when I click it opens a site I've made, in a browser? I'm doing my website in Flash, and the other website I want to put the link was made in Dreamweaver. It's not hosted, it's in my pen, that's why I'm having problems with the code.

View 4 Replies

Professional :: Linking A Button Within The Same Website?

May 12, 2010

I have created mc's (movie clips) for each one of my pages and for pages within those pages, if you can understand that lol. The problem I am having is, linking from one mc to another.
 
Example: I am in my home page movie clip, and I have a "read more" button on one of the articles, when a user clicks on this button I want him to be redirected to the page that article is on.
 
In my case, I am making a website that gives users information on Paris, France. On my home page I have an article that speaks about Napoleonic and I have created a "read more" button. The information on Napoleonic is on the landmarks page(which is its own movie clip). When the user clicks on the "read more" button I want him to be redirected to the page thats in its own movie clip with the info.

View 6 Replies

Professional :: Linking A Button To A Scene?

Oct 12, 2010

how to link the button I made to say Scene 2 of my flash project. I'm not sure the actionscript required or where I put the action script.

Here is the file I'm using, trying to simply figure out how to make the open button go to scene 2. [URL]

View 2 Replies

ActionScript 3.0 :: Linking Flash Button To URL

Apr 29, 2011

I have created seven buttons using Flash version 9 following a tutorial on this site [URL]. The buttons function the way they were designed, however, when I attempt to link them with a URL or a unpublished website file (eg. contact.html or index.html) the button brings up the "TextEdit" application on my Mac.

The action script 3 code that I am using:
btn_6.addEventListener(MouseEvent.CLICK, onMouseClick);
function onMouseClick(event:MouseEvent):void {
navigateToURL(new URLRequest("contact.html"), "_same");}

I have even tried using action script 2 code after changing the publish settings to AS2:
btn_6.onRelease=function(){
getURL("[URL]", _same);}
The results are the same. When I test the buttons, they link to an application on my Mac. All of my buttons are on the same layer.

View 2 Replies

Professional :: Linking A Button To A Pdf File

Jul 19, 2011

I m building a website and lately i am facing a lil problem.i have placed a button from windows->components-> button with movie type button property now the issue is i am unable to link that to a pdf file.i want that button to open a pdf file.and how do i do that.

View 18 Replies

ActionScript 3.0 :: Linking A MovieClip Button To URL?

Aug 30, 2011

I have recently followed a Adobe Flash tutorial, which has helped me make MovieClip buttons which extend to the left when hovered over.
 
This tutorial can be found here: [URL]

An example and download link for the project is at the bottom of that page.
 
Everything on the tutorial went fine, but now I am trying to work out how to make these MovieClip buttons link to another URL.
 
What code do I need to do this, and where do I need to put it?

View 3 Replies

ActionScript 3.0 :: Linking A Button Within The Same Website?

May 13, 2010

I am creating a website in flash and I need help linking to internal pages. I have created mc's (movie clips) for each one of my pages and for pages within those pages, if you can understand that lol. The problem I am having is, linking from one mc to another.

Example: I am in my home page movie clip, and I have a "read more" button on one of the articles, when a user clicks on this button I want him to be redirected to the page that article is on.In my case, I am making a website that gives users information on Paris, France. On my home page I have an article that speaks about Napoleonic and I have created a "read more" button. The information on Napoleonic is on the landmarks page(which is its own movie clip) and inside the landmarks page is the Napoleonic page(also its own mc). When the user clicks on the "read more" button I want him to be redirected to the page thats in its own movie clip with the info.

View 1 Replies







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