ActionScript 3.0 :: Making Buttons Link To Popup Browser Windows?
May 9, 2008
I am trying to figure out how to make buttons on my flash file link to URLs that appear in a window of fixed dimensions (with scroller bars) next to my Flash window. I am aware that Adobe has instructions for creating pop-up browser windows through Flash [URL]. However, what I'm trying to do is a bit more complicated, since I want to have multiple embedded invisible buttons in the Flash window that each take you to a specific URL when you click on them. Alternatively I'd be happy if any button click resulted in a link to a random selection from a pre-programmed list of URLs. This is for ActionScript 3.
Im trying to make two buttons for my artefact to link to facebook and twitter, but it doesn't work. I've got no error messages or anything, I just click the button and it doesn't do anything
The code is the following: BTN_FACEBOOK.addEventListener(MouseEvent.CLICK, FacebookClick); function FacebookClick(event:MouseEvent):void{ var getFacebook:URLRequest = new URLRequest("[URL]"); navigateToURL(getFacebook); }
BTN_TWITTER.addEventListener(MouseEvent.CLICK, TwitterClick); function TwitterClick(event:MouseEvent):void{ var getTwitter:URLRequest = new URLRequest("[URL]"); navigateToURL(getTwitter); }
I am pretty rusty when it comes to action script. I am using CS3 and want to have an XML file that has the links likeimported into the flash so when a button is clicked it will go there...I have looked at numerous examples but all are too complicated for what i want to do.I will pay someone via paypal if they want to do this quick fix for me... I can send the file... should be strait forward for someone knowing waht they are doing
i'm using the centered pop up window script from: [URL]. i have multiple buttons in my flash movie which open screenshot html pages in external browser windows. the script works fine except when a popup window stays open. the rest of the buttons don't open/replace past that one popup. i tried changing the window name in the onRelease script to screen1, screen2, etc for each button, but that didn't work.
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?
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.
I used Flash a wee bit several years ago, but now with AS3 I'm a bit out of my depths... Anyway I have this template I'm adapting, and at the moment it is a thumbnail gallery that loads via an external xml file, and the fullsize image it loads is a link to an html file. The only thing is that it loads the html file in a new window and I want it to load in a popup window. I have figured out how to make a regular popup window using AS3 but that doesnt help me for this case as the actionscript is a bit more complex and going via the xml.... I have honestly spent a good 8 hours scouring the net for tutorials and nothing tells me exactky what I need to know to adapt my particular code.
Here is the code in my actionscript that seems to be calling up the html link part of the xml file:
function pic_click(e:MouseEvent):void { navigateToURL( new URLRequest( flashmo_tn_list[current_no].url ), flashmo_tn_list[current_no].target ); }
[Code].....
My question is, is there a way to alter this code so that all the files in the xml will open as popups?
in other words, suppose I want to send data, like text, programmatically from a Windows app (such as a browser plugin) to a Flash app running in the browser. Well, conceptually, an example of this might be a Flash instant messenger with a textbox and button "Send"; so let's say I want to be able to programmatically paste the text and press Send or otherwise activate it. That's NOT what I am trying to do here in reality (i.e., no,I am not trying to spam other people's chat rooms or anything)but just an illustration of a similar situation.I can include in it whatever widget or hack that may be necessary.The reason why this problem is arising for me is that AFAIK the SDK that is providing me the data I want cannot be directly accessed from Flash, so I need a way to pipe the data from a regular app into Flash. can I have the Flash app interact with other apps through localhost IP? Or are there draconian restrictions on which server Flash in browser can and cannot interact?
I have a PHP mailer form on my site which needs to be published in action script2 to work, but I also have a script set up to open browser windows of a certain size & location which needs actionscript 1 to work? The PHP mailer form has a "Name" field, "Email" field & "Message" field, theses can all be reset with a button. The button clears off any text in the 3 boxes to wipe them clean. The script on the reset button is:
This works fine with section script 2 but not with as1. Does anyone know of a script that resets the .text field on as1 Alternatively is there any way of opening browser windows from a flash movie with browser win controls, eg. centre win, no scrollbars.
how can I make a windows popup when I put my mouse cursor over a item? The popup should display the item name and it's characteristics. When the cursor rolls out fo the item, the popup windows disappears.
Is there any reason why a scrollbar would not show up in a popup window? THe popup window is a dreamweaver document.URL...If you click on the "Interior" button, and then click on any of the balusters a popup window will appear with 4 images. This popup window has no scrollbar?? It should, and I didn't do anything to tell it to "not show a scrollbar".The scrollbar shows up on my Mac, but does not show up on my friends Mac, nor does it show up on my PC?Also, I have been doing a few tests on this page on the first few balusters (trying to get around the scrollbar issue), so maybe pick the 5th baluster, rather than the first one? Or pick one of the last balusters.
I want to show all popup windows(already popped up and closed individually) on an image by pressing a button press and want to close all those windows on another button press.
I have different buttons to open another browser window using getURL. The problem is each button opens a new browser window. If a user does not close the window when coming back, there would be many browser windows open the same time. A few users get confused by this thinking that they are accessing the same page.Is there a way to control it so the popup will open all at the same window (if someone chooses not to close the window each time)?
I have many photos (converted to buttons) in a movieclip. This movieclip slides continuously across the stage in which the speed and direction are dictated by the mouse's position.I want these pics to be hot and when the user clicks on them a fixed-size window (html page with larger image) appears. I added the javascript and altered the published HTML but the windows popup with no controlled settings that I placed in the getURL script assigned to each button. A sample of what I am trying to do is at [URL] Click on an image then click again. That's the box I want.
I have an externally loaded file in flash. I'm trying to create a pop up from the text file. In order to do so I place a function into my actionscript, then place the link inside my external text file. It works fine but only while publishing in flash 6 and not 8.Below is the example of the function and the internal link.
I am very new to Actionscript and I'm only used to stop();and GetURL. I've spent countless/frustrating hours on how to make thesebutton codes work with a window pop-up. I am almost there.PROBLEM: I have four different buttons pointing to fourdifferent URL's. The code below is not allowing me to pull up theurl's, individually in the script. It keeps opening the same URL.Here is the code: (Do I apply the code to their own actionlayer for each movie or all in one actions layer like I have it)?
I have and swf embedded into an aspx web page. I am using ExternalInterface.call to open windows using javascript Eeverthing is working fine when stage.displayState = "normal" all popup windows are diplaying behind the flash when stage.displayState = "fullScreen";Does full screen mode allow the popup windows to be displayed just like normal mode?
I want to open a simple pop up window on a user click in a flash movie. I can make it work from all browsers except Chrome (6.0.472.41 beta) which blocks the pop up. Here is an example: [URL] (click the black rect, to bring up a google page in a popup);
I have a parent window that has a flash movie embedded in it. When a certain button is clicked inside the flash movie, it calls a a pop up javascript function to pop up a window with another flash movie embedded in it. This flash movie (the one embedded in the pop up window) has a button that I need to close the pop up and refresh the parent window when clicked. (i.e., when the user clicks the button, the pop up closes and the main parent window goes to a different URL).
I used javascripting inside flash to do so, it works fine, however, I keep getting a warning message when using IE : ("The website you are viewing is trying to close the window, do you want to close this window?"). This message is not displayed in FireFox. I don't want this message to appear. I read about a lot of solutions around this, however, they only work when I test them in regular html pages, but not when used in a button inside a flash movie.
I'm working with a very old version on Flash (Flash 8 Professional) and need to show popup windows similar to JQueryUI Dialog Boxes [URL] How can i get similar objects using this version of Flash?
I have pages in a training module that I need to include a link to open a swf file as a separate popup window. The main SWF files are located in:[code]While the file I need to pop-up is located at:..Courseglossaryglossary.swf.I have a number of other folders similar to the one above that will use the same code to open the glossary file. Right now, I use AS2. I can also display the swf inside a htm if needed, but would have to define the size of that window.
I'll have an swf that I'd like to open up as a popup from an html link. I've been searching the forum, but most similar questions are to go from flash to html.
You've got your main flash working as a main menu on your active browser window. Then you click a link and you get a pop-up. Easy enough. But there's some code or something that can make your main menu and background totally inactive while you browse within the pop-up. When you're done with the pop-up, you close it and then click ANYWHERE on the inactivated "main menu" flash to reactivate it.
[URL]
Load it up, go inside and click the first orange linked text you see. It will bring up and pop-up and "grey-out" the main page.
how do you make an image pop up in a window javascript style, from flash?
i have a variable in flash, equal to something like "images/image.jpg", and I want to make a button so when you click it it opens up a popup window thats a certain size, without menubars/scrollbars etc, to display that image, like a javascript on your standard HTML.
I read that flash has a javascript API, so there must be a way to do it huh? Is it getURL stuff, maybe with a POST of my variable?
when i open up one of the links, if i dont close it, but go to open up a different link. the already open window pops back up. i need this window to change due to the new link pressed. the site is [link removed by claudio] click on the prodoct locator to see an example. here is the script for the root->
I have dynamic text in my movie that when clicked opens different image jpgs in _blank window. I would like to be able to have the blank window open at a set size so that when the link is clicked it doesn't open the image in a full window.Code:<a href='http://" + currAttribs.link + "' target='_blank'>Keep in mind that I'm not calling actual html pages but rather jpg files to open in _blank pages.
I'm trying to launch a popup window from Flex, but the popup window needs to have certain properties as one can usually specify with the JavaScript window.open. For example, the popup window should not have a browser toolbar or URL box.I've tried using navigateToURL, which works fine, but I can't find a way to specify the popup window properties've tried using ExternalInterface.call, but the popup gets blocked when calling window.open directly, or even creating a custom JS function that calls window.open.