ActionScript 3.0 :: Launching New Window From SWF Ad On Click
Oct 6, 2008
I am using Flash CS3 and am attempting to simply launch a new window from a .swf ad when clicked. For the publisher I have to use the clickTAG property to track the ad. I have made an invisible button (just the hit state the same size as my stage) and am placing this code on my button on the timeline:
on (release) {
if (clickTAG.substr(0,5) == "[URL]") {
getURL(clickTAG, "_blank");
}}
There are 2 problems. Firstly, the debugger generates errors:
1087: Syntax error: extra characters found after end of program.
View 2 Replies
Similar Posts:
May 18, 2010
I have setup a Flash viewer in a HTML Div container. In the Flash I have put a button which, when clicked, launches a new browser window with another site I've done to appear in. When I test this in Flash its working fine and launches the new window as it should. But when I go into Dreamweaver where I have placed the Swf. in the Div container, I test it locally in a Firefox browser window. The viewer appears and it works correctly, but when I click the button to launch the new browser window it just opens a window with an error msg 'unable to connect, etc'.
View 1 Replies
Jun 23, 2010
I have a preloader that measures the size of the external swf, then goes to a frame with a 'launch site' button on it. When the button is clicked, I'd like a popup window to open that is the exact size of the swf file (1100x800), but I can't figure out how to do that. I know there is some combination of AS3 and javascript required. Has anyone done this? I cannot attach the preloader file that launches the external swf since this is my first post, but have it available if anyone wants it. I have the site online for viewing as it is currently (just loads then opens in same window): [URL]
View 4 Replies
Mar 22, 2004
I was following the tutorial on this site for the pop up window and was having some problems. When I click on my link to open the pop up window I also get another window that says [object]. The pop up window also pops up behind my original window.I launching the pop up window from a swf loaded into another swf.
View 2 Replies
Jul 7, 2005
I've been attempting to launch a window from an attached movie, I've got the function to work but after it launches, the main window (with the flash file) relocates automatically with the message "[object Window]"
I'm presently using the following coding with the button's AS:
Code:
getURL("javascript:window.open('http://www.atomicstos.com/popup.html','Nubeau Guarantee', 'toolbar=no, location=no, status=no, menubar=no, scrollbars=no, resizable=no, width=500, height=800')");
I've attempted to setup a javascript function in the HTML and have the "getURL" call the function, but that doesn't seem to work.
View 1 Replies
Jun 4, 2009
I am using AS3 on a website. Part of the AS has been setup by an external source and I ma now updating and adapting it. My knowledge of AS is limited but slowly expanding.
Currently the site is a main flash file with all the content delivered via a main.as file and then populated via images and videos held in folders on the web.
In one section we have an email link.
I was using Email[url]... and it worked fine. It launched the email program and put the email address in ready to go.
When I added the subject element as below[url]...
it now does what it should with the email program but it also opens a blank webpage.
What can I do to get rid of the blank web page opening?
View 4 Replies
Aug 27, 2009
I am trying find the correct as3 code to make a button on Click, open a pdf in a new window. I have tried different ways, but when I add the code not only does it give me errors, but it makes my swf flip through all the pages instead of stopping on load. It is fine before I enter the code for this button. Just to let you know, this button is within a movie clip on the main stage. I really wanted it in a MC within another MC, but can't figure out where to put the code.
Should it go on the main timeline, where all the rest of the code is, or should it go within the MC?
View 12 Replies
Sep 23, 2009
Im trying to get my flash player window to close, when I click on a button. I have tried various code from the net but nothing seems to work. Im building in Flash CS4 on a mac.
View 2 Replies
Sep 18, 2003
This is the code I have....
on (release) {
getURL ("javascript:NewWindow=window.open('http://www.enarde.com/popups/3D/3DRed.htm','newWin1','width=511,height=448,left=0, top=0,toolbar=No,location=No,scrollbars=No,status= Yes,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}
Everything works, its fine...in my flash movie you would click on a icon to see the pic in a new window...okay that works...but i want the user to be able to click on another pic and have the last window they open resize to the size of the pic...Its not doing that...it does open the pic in the same window but not resized...it stays the same size as the first pic they clicked on...what i have done was for every pic i would change newWin1 to newWin2 and so on...but that just opens it in another window.So is there a way that i can make it so when i click on a pic it resizes the first window that was open?
View 2 Replies
Aug 19, 2010
how to make lightbox window open from flash. I just want to click a button to open a lightbox window.
View 1 Replies
Feb 14, 2011
I am using this nyromodal.nyrodev.com to open a modal pop-up windows on the webpage. The thing is it watches for click even on tag that has a certain class. For instance
Code:
<div href="popupform.php" class="nyroModal"></div>
Code:
$(function() {
$('.nyroModal').nyroModal();
});
It obviously doesn't have to be anchor tag, but they say preferably that it is. Anyway I need to implement the same thing inside the flash movie: after click on the button the given modal box pop up. It'd be nice if I can load external content inside the popup windows.
View 1 Replies
Dec 23, 2011
make an graphic (just a box with text in it) be shown as default, then when the user clicks (either clicks the box or anywhere or a cross - anything!) the window is hidden, then if the user wants to see the box again, they can click a button saying 'show info'.
And I looked on the forums and found ( showthread.php3?t=66284" ) << I can't post links because my post count is too low .
But I tried that (both methods mentioned) and i can't seem to get them to do anything?
View 3 Replies
Nov 20, 2010
I know how to make a symbol "clickable" to where it brings you to a URL, but I need to know how to make my game (I made for a virtual world) to pop up when I click on a laptop (not in a new link).
View 2 Replies
Jun 30, 2004
I'm having a problem destroying a pop-up.The window creates beautifully, but does not close on click of the 'x'.Here's the code
Code:
buttonListener = new Object();
buttonListener.click = function(){[code]....
View 1 Replies
Jan 22, 2010
I just started out using autoscript 3.0. What I want is that when I click a button (with an image inside) it opens a new window with an enlargement of that image. I've already done the following:
1. Create new button
2. Set it's instance nam to appinvent_btn
3. Created new action layer.
4. Set up the following script in actionscript 3.0
appinvent_btn.addEventListener(MouseEvent.MOUSE_DO WN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("???????????????????????????"));
}
View 1 Replies
Apr 7, 2008
I have a slight issue with my application I'm working on. Whenever I attach new "windows" to the stage (using attachMovie), it seems that the window that is currently on top allows the user to click the buttons and components on the window behind it. I'm using Flash CS3 Professional, but exporting to AS2.0/Flash8.
View 3 Replies
Sep 21, 2003
I followed Senocular's XML portfolio tutorial and everything is working fine, except I want for each thumbnail when you click, for it to open the larger pic in a javascript window. I got it working, almost, the strange thing it's opening the same large pic no matter which thumb I click on. It seems to be loading the same javascript window also, with the adress being the html file where the swf file is. The code in the html file is this:
[Code]....
View 1 Replies
Dec 4, 2011
I am an artist trying to remake my website...I have a picture of a window on my homepage. The window is a movie. When clicked on, the window lights turn on and a grid of thumbnail pics appear. Each thumbnail is a movie clip. When a thumbnail is clicked on, the movie plays and a larger image appears over the window. The problem is, the window is still active underneath the large image, so if I click on the large image, I am really clicking on the window movie clip underneath, and the thumbnail grid disappears-starting the window movie clip over. How do I make the window clip inactive after it is initially clicked? Also, I would like the larger images to end their movie clips after another thumbnail is clicked, so that there aren't large images piled up on top of each other.
View 6 Replies
Feb 3, 2009
It appears when I click the Next button on the window with the likert scale. I have no idea why its giving this error.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
View 1 Replies
Mar 2, 2009
I'd like to replace my current functionality of just launching a new url in a new window to loading a .swf in lightwindow. I've seen a previous post on this but I was having trouble following it.
My current function looks like this:
protected function clickHandler(me:MouseEvent):void {
trace("PortfolioItem::click ");
var request:URLRequest = new URLRequest("http://" + _url);
[Code]....
I think I am supposed to add the ExternalInterface class to help adapt the lightwindow javascript to work within flash.
View 2 Replies
Jan 28, 2012
I've made some games using Adobe Director and I would like to open them in a separate projector window.I tried attaching this code to my button.[code]I placed my .exe file in a folder named 'fscommand', that folder is in the same folder as my .fla and .swf files.It doesn't work, unfortunately. : When I click, nothing happens.
View 1 Replies
May 22, 2011
why the below line of code launches notepad.exe twice?
fscommand("execfile", '"C:\Windows\Notepad.exe"'); //opens notepad 2x - path in double quotes
verses this line of code which opens it only once?
fscommand("execfile", "C:\Windows\Notepad.exe"); //opens notepad once
I'm working on a FP10 .exe projector project and noticed this odd behavior.If I had spaces in my file path, I'd want to surround it in double quotes, but that has the undesired effect of opening the app 2x.Since I don't have full control over all the elements in the project, I'm forced to use fscommand in this scenario.
View 1 Replies
Aug 2, 2011
Need to launch an external program through Flash AIR. Tried reading up but are unable to get it working. Think there is something else I need to perform before launching my external file (exe). It is a exercise that is like a game.
var myApp:File = File.applicationDirectory.resolvePath("Hazards.exe"); var myAppProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo(); var myAppProcess = new NativeProcess();
[code].....
View 6 Replies
Oct 27, 2003
Launching EXE'S from within flash?
View 5 Replies
Sep 4, 2008
I have a project where a swf is going to call another swf via a url and the calling swf needs to detect when the child swf is done. The child will not have any means of communicating with the calling swf so the calling swf will need some means of launching the child and detecting when the child is exited (either by ending or the user closing it).
Below is the current code. flashThickBox throws an error because it apparently doesn't understand the format of the data passed to it.
flash.net.naviagetourl launches the child correctly but does not provide any means for detecting when the child is exited.
The url is [URL] which is a simple html page that loads player.swf. It has to be done in this format as we currently have older authorware files that need to be launched via this same method.
View 1 Replies
Jun 9, 2010
I downloded and installed Trial version of Adobe Flash CS5 but when I try to launch it, it just does not launch. I don't get any error messages or any pop up.
View 1 Replies
Jul 6, 2010
I am working on integrating an air application with a web application and for the most part it works.The only issue that I am having is that when I attempt to pass variables from my launching badge, the application does not load and I get no errors from my swf.
[Code]...
View 2 Replies
Jun 9, 2011
I'm developping an mobile program with the Flex 4.5 SDK, this for my thesis for school. I have a bug in my program that I can't fix. I have a view where I have 2 states. When I change from state my program doesn't listen to the backKey event anymore.
[Code]...
View 1 Replies
Dec 21, 2011
I have create a game and added keydown event on Stage but but problem is user need to click on stage then it start capturing keydown event. I want that when game window open after that user don't need to click on flash stage area for unable keydown event..
View 1 Replies
Jun 1, 2011
Hello Every Body. I have a problem launching flash cs5 and cs5.5 on windows vista home premium edition. When i launch it, the register screen appears(the one that tells the trial time left) but the flash main window always stays black (or white)and is not responding. I had it working about one week ago and i can't figure out what is the problem .It tried reinstalling couple of times without succes. I also tried deleting the left flash cs5 program files after uninstall but it didn't work . I would need your advice. Here is the screen as it appears:
View 1 Replies