ActionScript 2.0 :: Passing Variables From Swf To Javascript Popup?

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


Similar Posts:


Flash :: Javascript - Passing Variables To PHP

May 13, 2010

I have a simple standalone application written in Visual Basic that I'm porting to a browser based application using PHP/javascript. The original VB application has some simple embedded flash games with token and point counters. The token and point values are being passed as variables between the application and the game.

I'm trying to achieve the same effect in my PHP port without modifying the actionscript code( using the variables in actionscript that already exist). Below is Visual Basic code that's loading a value from a database and posting that value to flash using FlashVars:

[Code]....

View 1 Replies

Flex :: Passing Data From Popup To Popup?

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

Javascript :: Passing File Paths From Flash To JavaScript For Upload?

Sep 29, 2010

Is it possible to pass file names from a running Flash application, which only purpose is to enable multiple-file-selection, to a JavaScript application which handles upload of all files to the server?I have examined various Flash upload solutions (like SWFUpload, Uploadify, etc.) and none of them meets my needs. I want an easy to implement solution (like Uploadify) which also lets me specify various parts of the HTTP request.

The reason I need this is because my upload form uses session cookies (for user authentication) and an CSRF token both passed to the server when uploading files.Is it technically possible to pass filenames (+ paths) to a JavaScript application which then handles the upload?

View 1 Replies

Javascript Popup Will Not Load Swf

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

ActionScript 3.0 :: Passing URL - Popup Window With Embedded Flash Player

Jun 4, 2009

Basically, I'm trialling a javascript button that, when clicked, will produce a popup window with the flash player embedded in it. I've had some progress but am having problems passing the url I want...

My javascript reads:
function doublePopup(){
var player = document.FLVClipEditor;
if (player) {
var url = "[URL]";
player.doublePopup(url);
}}
[Code] .....
 
But when I try to pass a URL through, nothing happens. However, if I put the url in directly (as below), bingo! The pop appears!

View 2 Replies

AS2 :: Popup With Javascript In A Html <a>Isot Tag

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

Javascript Popup Window Buggy

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

Javascript :: Flash Ad Comming Over Popup

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

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

Actionscript :: Flex Popup Manager Mouse-down Outside Of Popup Removes The Popup

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

Javascript :: Opening Print-HTML-Popup From Flash?

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

Javascript :: Close Popup Opened By Embeded Flash

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

Javascript :: Js Popup Window To Play .flv Flash Video Using Jwplayer.swf?

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

ActionScript 2.0 :: Load Variables From Popup Script/file Upload?

Nov 12, 2009

I've searched, but I don't believe flash (actionscript 2.0) itself offers a "select filefield" and fileupload functionality?

That's why my swf has a button which opens a popup window. In the window the user has the ability to upload a file to the server. That's no problem.

But I would like to send the filename back from the popup to the swf. How on earth can I manage that?

I can't use Loadvars.sendAndLoad in the swf because then my visitor does not see a popup and can't select the files. Loadvars.load doesn't work in popup?

View 1 Replies

Flash :: Passing From AIR To Javascript

Mar 5, 2012

Is there a way that I can pass the value of app: or appstorage: to a javascript file which has been included via URLRequest? I have a web application with an HTML5 video player, and I've been asked to get it to work as an AIR app. So far so good, except that there is a bug in jPlayer that requires you to use absolute file paths for media if you're using flash fallback. I need to get the file path of the app: or appstorage: directory on a users machine, and pass that to javascript so that the player can find my videos.

View 1 Replies

ActionScript 2.0 :: Passing Value From Javascript?

Feb 24, 2011

I m using AS2.0 which interacts with the JSP to get three values using a JS call.After that from the AS i m trying to call a servlet by passing these values but the values are coming as NULL or undefined.

View 1 Replies

ActionScript 3.0 :: Variables Into Javascript Variables

Jun 30, 2009

I am making a simple math quiz game that generates two numbers randomly and then the user has a keypad to enter the answer. I trace not only the real answer to each question but also what the user punches in and I even have it so that it checks to make sure the user's answer is correct.

What I need now is to find a way to export that data into an html page. I think I can do so with php, but I really need it to go into javascript. Does anyone know how I can send this data, either in a string or as integers to Javascript? I believe that the integers would be best.

[Code]....

View 5 Replies

ActionScript 3.0 :: Passing Arrays From Javascript ?

Feb 2, 2007

I am working on a break through technology which brings together Audio DSP, Embedded, C/C++ and Javascript/AS3. I am in charge of getting the javascript/as3 done .

I need to send Arrays to and fro Javascript / Actionscript 3.I tried the javascript/as gateway from http://osflash.org/flashjs. It's done in actionscript 2 and I might have to migrate it to as3. I am not sure how long it would take.And I tried the ExternalInterface class in AS3. But it seems only strings can be passed using the addCallBack() and call() methods. Moreover I was not able to reslove the security issues when the flash player tried to communicate with the javascript.

View 3 Replies

ActionScript 2.0 :: [F8] : Passing A JavaScript Array To Flash?

Mar 5, 2008

Passing a JavaScript array to Flash?I want to pass an Array from JavaScript to a Flash movie. My goal is to create an Array of URLs to pass to Flash and once the Array is in Flash, I can access those URLs in the movie.I know how to send a variable to Flash using the "Embed" and "Object" tags using "FlashVars".

<PARAM name=FlashVars VALUE="song=song_URL">

but I want to somehow send and array, or maybe can I call a function that creates the Array I want to send?My reason is to have an HTML developer come back and change the Array values and that will change the Flash Array, so they don't have to edit the Flash movie.

View 4 Replies

ActionScript 3.0 :: Passing Variable From JavaScript In SWF File

Aug 9, 2009

My goal is to pass a variable from JavaScript to ActionScript in my swf file. I am using Flash CS3 and AS3. Currently all I want is my test to work where I mouseover a text link and a function is called with a passed variable in my swf file.

Here is my code:
// test.html - Cropped out the excess code
<html><head>
<script type="text/javascript">
function myMovie(movieName) {
[Code] .....

ExternalInterface.addCallback("sendToActionScript",fromJS); only once, or inside of my function onEnterFrame(event:Event) loop? I tried both, but since I can't get it to work I don't know which one is the proper one.

View 14 Replies

Professional :: Passing Values From Swf To Html Or Javascript?

Aug 8, 2010

i have developed a flash website, just user interface, now i have a contact form in my swf file . can anyone help me in embedding this swf file in html and getting values out of swf file on html page and printing on another html page, i just need help in getting values and out of swf file to html.

View 13 Replies

Javascript :: Passing Data Into An Adobe Air App Continuously?

Jul 15, 2011

I have an HTML/JavaScript Adobe AIR app which needs to be listening for data coming in from an external process.I could have the AIR app itself invoked by the external process. If anyone knows how this could be done in such a way that AIR would then continue to listen for messages/events from the process which invoked it, then I would like to hear about it.Failing that, can I set up some kind of endpoint in AIR itself to accept data through?'ve experimented with a Native Process, and while having AIR launch the process allows it to read data in, the native process itself to be externally accessible, plus it must be able to write to STDOUT for Adobe AIR to receive.

View 2 Replies

JavaScript :: Passing Alphanumeric Value To URL QueryString Not Working

Feb 9, 2012

I am having a flash application where I want to send parameters to it via the javascript from a defaul.aspx page. I have a parameter called Id where it can accept alphanumeric values. The query string in the url works fine if I enter just numbers for the Id, and takes me to the specific page related to that id , but if I enter a combination of numbers and characters like 001A , it does not work.

This is the code I used
<script type="text/javascript">
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0; i<vars.length; i++) {
[Code] .....

And then passed the flashvars into swfobject.embedSWF. I also don't want to change anything in my mxml files in flash side.

View 1 Replies

ActionScript 3.0 :: Passing A Variable With Quotes To Javascript

May 11, 2009

I'm trying to send a string from flash to javascript. The string can contain anything, from XML to quotes, symbols etc...

I've URL encoded the string, eg :

var u:URLRequest = new URLRequest("javascript:showEditor('hello%20%27%3Cb r%20/%3E')");
navigateToURL(u,"_self");

[Code]....

View 3 Replies

ActionScript 3.0 :: Passing Xml Object From Javascript To Flash

Dec 18, 2009

A brief overview:

1. I am working on a project in ASP and I am making queries to a SQL db that returns data back in the form of xml. I am not in control of the db or how it returns data.

2. I process the XML within the ASP page and then I also process the data from within flash. I am therefore making two database calls for one page view.

3. I am trying to figure out if I can in anyway, pass an XML list from the page to flash so that I am making only one database call. The site is heavily hit and I am practically doubling the server load. Basically, the only way I think that may be possible is through javascript but not sure where to begin.

View 2 Replies

ActionScript 2.0 :: F 8 - Passing Variables From One SWF To Another?

Feb 8, 2009

I have a swf with an input text box and a button. When the button is clicked, I need it to open another swf in a new window on a different domain and pass the variables to a dynamic text box in the new window. I looked at local connect but I wasn't sure it would work because the two windows wouldn't necessarily be loaded at the same time and they are on different domains.

View 4 Replies

Passing Variables Between .swf Files?

Sep 9, 2009

I am loading images into a movie clip dynamically from an XML file. Based on what image the user clicks, I would like to be able to open a separate window, displaying a different image. Ideally, I'd pass the variable of which image was selected to the new open window.I've done some research online, and am thinking I'm making this harder than it needs to be.

Actionscript from main movie

Code:
chosenImage.onPress = function() {[code]......

I've also seen where I could possibly pass a variable through ASP.NET, but am experiencing the same errors when trying to pass the variable. I suppose I could embed the popup.swf file in a new .aspx page, that would probably be acceptable.

View 1 Replies

ActionScript 3.0 :: Passing Variables On URL?

Jan 6, 2010

I'm using IE 8 and trying to open an HTML file. All files are either local or ran on a server. Problem is I use the URLVariables object, and they still won't get passed. for example:

Code:
var req:URLRequest = new URLRequest("Y:/htmlFile.html");
var urlVars:URLVariables = new URLVariables();

[code].....

View 14 Replies

ActionScript 2.0 :: Passing Variables Between Mc?

Jul 21, 2010

I just want to show the contents of the input data in Movie Clip Movie Clip A into B which is still in one layer.

View 2 Replies







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