ActionScript 2.0 :: (FMX) Popup Using Variable Javascript?
Mar 31, 2005
I know this might have been discussed somewhere else, but I couldn't find it where it worked using a variable as the url. So I have tried a few things but what I have right now is:
the button is set to: getURL("javascript:openNewWindow(movie,'thewin','h eight=400,width=400,toolbar=no,scrollbars=yes') ");
Movie being the name of the variable set up earlier in the project to randomly choose my swf movie that I want to play. Then of course I have the function set up in the HTML page to listen for the variables for the URL, name and windowsettings.I can get the whole thing to work with an HTML page in the URL, but I can't get a variable to work....
View 3 Replies
Similar Posts:
Mar 13, 2009
I posted about this a few weeks ago but it's still unresolved....I'm about ready to cry or go postal or both. I would love any input you might have. Another Flashkit member said he thought it might be line 23 of the html code, but I can't identify what's wrong with it. I will seriously send you a bar of fine chocolate I have created a multimedia site that pops up swf photo galleries. Trouble is.....the swf's are not loading in the popup windows. Here is an example:[URL] The link that opens the gallery is halfway down on the right.
It works perfectly on my local machine, and you can navigate directly to the swf ([URL]) so I'm thinking it's something in the html code of either the gallery "popper" or the "poppee." This is a recent development--until sometime this year it worked just fine. Not sure if some web standard changed or what?
View 3 Replies
Sep 1, 2009
I´m trying using a <a> tag in a html content in my code to make a link. Till now work perfectly. Problem begins though when i try to use javascript in the <a> tag to create a popup window. Here is the code-line. ct.content_right.htmlText = "<a href='javascript:popUp('impressum.html')'>"+"Impressum"+"</a><br/>";
View 7 Replies
Mar 2, 2011
I am trying to open a new browser window popup from Flash. I am using:
[Code]....
What is supposed to happen is that the popup should open in a new smaller window whilst the original window keeps displaying the flash file. Not sure what I'm doing wrong. Is there a better way to go about this? NOTE: I know that you can call JavaScript functions and house your js in the HTML file, but I cannot edit the HTML file since it is a page from a remote site.
View 5 Replies
Jun 26, 2011
i am using jquery based facebox popup. My ad platform is Doubleclick. Some flash ad comes over the popup. I am loading the ad's js code in a iframe.I tried passing wmode=transparent to as a parameter to the js ad code i did help for some flash ads but to some ads it's not taking wmode=transprent. I even tried to increase z-index of facebox but that too didn't help. What can i do .I dont think so this could be a double clik specfic problem( i know its where i have to look for help) but a flash of other site over my text/content issue
View 4 Replies
Nov 11, 2009
i`m trying to send variables from this .swf on level2 of the main movie to another swf that loads onto a javascript popup. i`ve tried using the GET and POST methods with no success.the popup script, first layer:
_root.btn.onRelease = function() {
address = "E01_p.swf";
target_winName = "test_pop";
width = 600;
[code]...
View 1 Replies
Mar 4, 2011
If you create a popup via:[code]It will create a popup and bring it on top of any other visual piece. I have one problem though. This 'popup' needs to stay up even when the user interacts with the background.I would use modal, but I need the ability to interact with the back. Any way to tell the popup manager not to remove the popup when the user clicks off of it?
View 1 Replies
Dec 1, 2009
is it somehow possible to open a HTML popup window from within Flash and have it receive text data from Flash which should be printed ... and this all only in AS3 and Javascript (since no server-side scripting is available)?
View 2 Replies
Nov 17, 2011
I have my html where I embed third-party flash video by means of iframe. When I click play on the video a popup is opened. I was wondering id there is a way to add a javascript function to my html that would close such a popup immediately when it is opened?
View 1 Replies
May 21, 2010
I have to have many small thumbnails on a page and each one needs to open up to a full size (640x480) video with controls when clicked.
View 3 Replies
Oct 3, 2011
I'm trying to pass the contents of variable playnoyes to the long line of code below to decide whether or not to autoplay the flash movie, but doing it as I have below, the resultant line of code has the variable in quotes and therefore the code doesn't execute it as expected. My question is, how can I pass the variable so that the resulting line of code doesn't have the quotes around the variable value.
var playnoyes='true';
var testtext = "<script type='text/javascript'>AC_FL_RunContent ('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.[code]....
View 3 Replies
Jun 2, 2011
I'm trying to create an image gallery with a similar functionality as the Impulse screenshots. I can't post links apparently, so just check a game page and click one screenshot to see what I mean. Basically, when you click an image thumbnail, a popup window appears and resizes to accommodate the picture. Clicking outside the pop-up closes it. There's are also buttons to go to the previous/next image in the thumbnail sequence.My guess is that this pop-up window would have to be an individual swfThe question is how do you open it and make it close when it loses focus. I'm not sure if this is possible with AS3 alone or not, as I failed to find a tutorial on the subject.
cc
View 5 Replies
Aug 11, 2004
I have created a picture gallery within Flash with 20 or so small pictures. When I click on a picture, I would like to open a page called "picture.html" with attributes. Ive got it working, sort-of, with the following code I found here on this site
in my button I have:
on (release) {
//customize the window that gets opened
// 0 equals NO.
[Code].....
Anyway, its working fine, except I would like to know if its possible to have only 1 "picture.html" file for all my 20 pictures in the photo gallery.
I know that somewhere within picture.html, I need to open an image.jpg. I would like to pass the big picture's file name to the picture.html page from the flash button. So, how would I pass "picture1.jpg" to "picture.html", and within "picture.html" how would I open an image from a variable?
View 4 Replies
Sep 12, 2011
I have an HTML button that I need to dynamically assign to an AS3 variable when clicked (in order to load an .mp3). I am using externalInterface.call to collect javascript variables - I am just unsure how to change these dynamically when a button is clicked.
View 2 Replies
May 10, 2010
I'm busy with making a XML banner in AS3. It worked so far with the following code:
Code:
Select allvar xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("private"));
function LoadXML(e:Event):void {
[Code] .....
And it worked! It bypassed all the browsers popup blockers, but it brought in some new problems. Every time the .swf loops. The addeventlistener adds a listener. So if the .swf loops 5 times it will open 5 windows when I will click it. I've tried to use removeeventlistener but with no success so far. In the code without the popup bypass this problem didn't occurred. Probably due the new URLRequest. But I don't know how to use this in the javascript. The other problem is the string of the link. For some reason javascript deletes parts of the link when there is an question mark in it. Example:
If the link is [URL]
The link what will open is: [URL]
View 5 Replies
May 3, 2010
PHP Code:
var xmlLoader:URLLoader = new URLLoader() var xmlData:XML =new XML(); xmlLoader.addEventListener(Event.COMPLETE, LoadXML); xmlLoader.load(new URLRequest("private"));
[code].....
View 2 Replies
Jul 6, 2004
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.
View 1 Replies
Dec 12, 2011
I need to close the popup(adobe flex), non modal window if I click on the parent page of the popup. I have to do the out of focus check and then do some validation before close the popup. So what I was thinking that is there any inbuilt focus check event or do we need to create custom event for that?
View 1 Replies
Aug 12, 2011
How to access main window's variable from popup window.
I create a popup window in the main window, and pass variable "content" to this popup window as following [code]...
View 2 Replies
Dec 7, 2010
I have a web application which contains a data grid. Double clicking on any row of that grid will open a popup (lets call it popup1). Now this popup1 again opens a new popup(lets call it popup2). When I close the popup2, I need pass an Object to popup1. Which is the easiest way to do that?
(PS: While opening popup2 from popup1, I am adding an event listener on Close event of popup2)
View 3 Replies
Jul 7, 2011
I have a parsley popup that can create another popup.The issue comes when I close the root popup, when I open the popup again and click on the child popup, it's actually opening 2 child popups.Any idea why this thing happen?
<parsley:PopUp open="{presenter.scenarioCreatePopup}" modal="true" center="true" reuse="false" id="hem" >
<views:ScenarioView width="100%" height="100%" id="scenarioView"/>
[code].....
View 1 Replies
Aug 14, 2009
Is there anyway to set a javascript variable from AS3? At the moment I have the following:
public function onBWDone(... rest):void{
var bw_event:Event = new Event(Client.bandwidth_event);
if (rest[0] > 0){
ExternalTrace.alert("Your bandwidth is: " + rest[0]);
var jscommand:String = "var bandwidth2 = " + rest[0];
p_bw = rest[0];
this.dispatchEvent(bw_event);
}}
I was wondering if I can use the jscommand to do this?
View 6 Replies
Jul 12, 2010
I am tring to run this JS function, I have tryed ExternalInterface and URL request and i can't seem to get it right.
function findUserName () {
var wshshell = new ActiveXObject('wscript.shell');
var username = wbshell.ExpandEnvironmentStrings ('%username%');
return username;
}
View 2 Replies
Dec 18, 2010
Does anyone know how to pass a variable to javascript in As2?
View 1 Replies
Dec 4, 2009
How could I set a Flash (Actionscript 3) variable using javascript? Or is it possible to call a flash function with parameters from javascript? I have tried ocument.getElementById('flash').SetVariable("data", "asdf");but it only works in AS2 and AS1.
View 3 Replies
Mar 2, 2010
I'm creating a quiz and as a timer in the quiz I have a flash movie (an animated clock). I poll the clock every second to see if the time for the quiz has run out.
[Code]...
First of all, it just fetches the flash movie object, and then calls some mehtods on the object. This works fine in Firefox (pc & mac), Safari (mac) but in IE8 on pc it returns 'unexpected error on line 3' (or any other line that uses the flashMovie object
[Code]...
View 2 Replies
Jun 14, 2010
Imagine I had a variable called X.Let's say every 5 seconds I wanted to make X = true. (it could be either true or false in between these 5 seconds, but gets reset to true when the 5 seconds are up).
Would it be more efficient to check if the value is already true, then if not, reassign it to true? Or just have X = true?in other words, which would run faster?
if(x==false){
x = true;
}
vs
x = true;
On one hand, the first program won't mutate the variable if it doesn't have to. On the other hand, the second program doesn't need to check what X is equal to; it dives straight in.
View 4 Replies
May 11, 2010
I have a javascript variable in my html page and I need AS to check the page and see what the value of that variable is.
JavaScript:
Code:
<script language="JavaScript">
function getMyVar()
{
[code]....
View 6 Replies
Jul 7, 2010
I want to send a variable to javascript, then in the javascript for it to take that flash variable and then evalute it using an if statement. Can I use the loadvars command?
[Code].....
View 1 Replies
Feb 4, 2009
Anyone know how to grab the values from a running AS3 file and put them into a javascript function on the html page?I know how to initiate js functions with the ExternalInterface but not sure how to push a variable out.What i am using this for is an MP3 player that i developed. I want to pass the variables for the "current track" and "if the player is playing". I just dont know how to begin making the swf pass out its variables
View 4 Replies