Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash


Advertisements:










ActionScript 2.0 :: Add A Variable To A GetURL Javascript Function?


how to add a variable to a getURL Javascript function. I have; ActionScript Code: getURL("javascript:JavascriptFunctionNAme(ASVariableName?);"); It works fine when I replace ASVariableName with "1" or some other plain text.


View 5 Replies (Posted: 01-13-2011, 09:29 AM)

Sponsored Links:

Related Forum Messages For Flash category:
ActionScript 2.0 :: Pass Flash Variables Through A GetURL Javascript Function Call
How To Run A Shadowbox Gallery From A Flash getUrl function Call..

This Is What I Have In My Flash:

btn1.onRelease = function() {
getURL("javascript:MyGallery([page1,app1]);", "_self");
}

I want to be able to declare my arguments in flash like so

var page1 = {
title: 'Google',
player: 'iframe',

[Code].....

Posted: 12-02-2009, 05:38 PM

View 1 Replies!   View Related
ActionScript 3.0 :: Getting A Variable From A JavaScript Function
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;
}

Posted: Jul 12, 2010 2:21 AM

View 2 Replies!   View Related
ActionScript 3.0 :: Pull Variable FROM AS3 To Javascript Function?
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

Posted: 02-04-2009, 11:41 AM

View 4 Replies!   View Related
Actionscript 3 :: Passing A Variable To A Javascript Function Using ExternalInterface?
How would I go about passing a variable to a javascript function using ExternalInterface?

Posted: Jan 18 10 at 14:06

View 1 Replies!   View Related
ActionScript 2.0 :: If Function In Javascript, Variable Passed To Flash?
Basically I want Javascript to pass a variable to Flash according to resolution. I realize my syntax might be off, but something like:

HTML Code:
<script type="text/javascript" language="javascript">
if (screen.width <= 800) {
expand = "false";

[code]....

Trouble is, I'm not sure what to do from here. I don't know exactly what I need to put in the <param> and <embed> tags, and how Flash would detect if the variable was true or not.

Posted: January 24th, 2006

View 3 Replies!   View Related
ActionScript 2.0 :: Flash Variable To HTML Javascript Function?
I have a flash SWF that passes a variable as a parameter to a javascript function in my HTML page. Somehow I need to put that value of that parameter into a global variable I can use outside the html javascript function that actually receives it from the SWF function that passes it. Ultimately I will store that value in a hidden form field in the HTML so I can reuse it elsewhere.

Using an alert box, I can see my desired variable data is being passed by the AS2 function but I can't figure out a way to access it from outside the javascript function. Here's a screen print of the alert and what I see when I try to reference it outside the function. Here is a link to a screen pic that demonstrates that

This is a code snippet that starts with the javascript function that receives the variable. YES, I know the"mailLink = str" is not valid. It just demonstrates how off the mark I am.

Code:
<script language="JavaScript" type="text/javascript">
var mailLink = null;
function callJavascript(str) {

[code]....

Posted: January 30th, 2009

View 2 Replies!   View Related
Php :: Calling A Page With MySQL Query From Javascript Function Then Returning Results To Another Javascript Function
I am refactoring some code. I have a PHP page that contains a MySQL query and stores the result in a PHP variable $my_result. This result is then echoed to a Flash SWF during embedding with SWFObject. I now want to call this PHP page that makes the query from a javascript function like so - one change I have made to the PHP is that instead of storing the result in a variable $my_result I am echoing the result. Javascript function to call the PHP page and make the database query

[Code]....

Posted: Jul 8 10 at 11:14

View 2 Replies!   View Related
Javascript :: Why Use DoFSCommand If One Can Just GetUrl
I read it's possible to call any javascript [URL] so why would I need doFscommand ?

Posted: Dec 4 10 at 13:59

View 1 Replies!   View Related
ActionScript 2.0 :: Flash's Own GetURL-with-javascript Not Working?
I'm trying to use getURL to open a new window that will have a specified size.I downloaded Macromedia's own tutorial/sample code for how to do this using javascript and cannot get it to work.

Here's their code:

on (release) {
getURL("javascript:openNewWindow('http://www.macromedia.com','thewin','height=400,width=400 ,toolbar=no,scr ollbars=yes') ");
}

[URL]

Nothing happens when I click their button. I tried changing the target, still nothing. I also tried it in Safari and in Firefox with FF's popup blocker turned off. Nothing.

[URL]

Posted: March 8th, 2007

View 3 Replies!   View Related
ActionScript 2.0 :: Resizing Browser Window On GetURL - Not Using JavaScript
I'm working on a kind of coverflow layout and I'm using an XML file to house my links and information about those links. in my ActionScript, I'm using getURL to point to the link the user clicks and open the link in a new window using the following script:

getURL(infostruc[current - 1].artLink, "_blank");

I need to have the new window open up to a specific size (1014x714), but I'm not sure how to write the AS for this kind of action since I'm calling the link from an external file.

Posted: 09-20-2010, 12:10 PM

View 1 Replies!   View Related
ActionScript 2.0 :: Disable GetURL Javascript Calls When Publishing?
Is there a way to tell Flash to ignore getURL javascript calls when testing? It's highly annoying to hit control + enter and then have a damn browser window pop-up every single time.I'm woring on a site that has javascript calls to Google Analytics to track nearly every action. This is not by my choice but by the choice of a client. Typically the tracking gets added last but in this case, that was for phase I launch of the site and now I'm onto phase II.I could go through & comment out all the getURL javascript calls until the sites ready but I'm hoping theres another way.

Posted: February 21st, 2007

View 3 Replies!   View Related
ActionScript 2.0 :: GetUrl With Javascript Breaks When Publishing For Flash Player 8
I want to use getUrl to display a javascript alert. I've found an example that works perfectly, by using getUrl("javascript:alert('hello world')"); But that example is published for Flash Player 6, and the rest of my movie requires FP8. And if I go to publish settings, and select Flash Player 8 as target, the javascript is no longer executed.

It's not about the getUrl changes in Flash Player 9, I've also tested with Flash Player 8. If you want to try for yourself, the example I'm talking about is from [URL]..

Posted: September 28th, 2006

View 9 Replies!   View Related
ActionScript 2 :: Javascript - Google Analytics Flash Track GETURL #anchor
I'm trying to track a #anchor for example [URL] the anchor is being called by Flash AS2. how can i tell GA to track hits on this page? I tried the GETURL method in flash:

[Code]....

which apprently used to work, but since they've made changes this doesn't... during tests firefox navigated to a page with the url javascript:_gaq.push [URL] was strange. Do I need to even use flash to ask GA to track the anchor? Is there a way i can point GA to track all anchors that are part of my page?

Posted: Nov 28 10 at 21:26

View 2 Replies!   View Related
ActionScript 2.0 :: GetURL From Variable
I am loading in some text which is stored in a text object with the var name of jslink

I also have one button which upon press I would like to get the url of "jslink"

Posted: April 4th, 2005

View 2 Replies!   View Related
ActionScript 2.0 :: GetURL From Variable?
I am loading in some text which is stored in a text object with the var name of jslink

I also have one button which upon press I would like to get the url of "jslink"

Posted: April 4th, 2005

View 2 Replies!   View Related
ActionScript 2.0 :: Incorporate A Variable Into A GetURL?
how to incorporate a variable into a getURL like so -

getURL ("javascript:NewWindow=window.open('I want to insert a variable HERE','','width=600,height=500,left=0,top=0,toolbar=No ,location=No,scrollbars=No,status=No,resizable=No, fullscreen=No'); NewWindow.focus(); void(0); return false;");
}

I want to be able to generate a new window that just loads into it an image that's in the sites directory. I know it can be done in javascript, cause this code works in a html page

<a href="" " onclick="window.open('#fullSiteTextImage#/#uploadTextImageDirectory#/large_#strTextImageImage#','', 'width=600,height=500,noscrollbars'); return false;>

The green bit is a CFM variable, which contains something like flash/flash_images/image.jpg

So how can I do this from flash? I KNOW it can be done. It must be possible, someone please help me. The thing that seems to stuff it up to me is the fact that I have to enclose the getURLs URL parameter in quotes, so flash doesnt evaluate the variable.

Posted: August 21st, 2005

View 6 Replies!   View Related
ActionScript 2.0 :: Unable To GetUrl Variable?
I've been playing around and still can't get this to work. My thumbnail gallery is loaded dynamically using xml and I have a link included with each thumbnail but can't seem to get it to work to load the link with each thumnail.In xml I have:

Code:
<pic>
<image>http://www.yoursite.com/images/image1.jpg</image>

[code].....

Posted: July 29th, 2007

View 5 Replies!   View Related
ActionScript 2.0 :: How To Post Variable Using GetURL
Why am I not able to pass variable to PHP using getURL?I have this actionscript ...

Code:
var bb_debugcount:String = "4";
getURL("myserverpage.php", "_self", "POST");

[code]....

Posted: August 11th, 2007

View 1 Replies!   View Related
ActionScript 2.0 :: Xml Link Variable In GetURL?
i have a link setup in my xml attributes so that when i click a button it will use that link. ex. of xml

Code:
<song name ="Test Track 1" band ="Band1" file="test1.mp3" lyrics="http://www.theskooks.com" />

lyrics attribute is the link i'm trying to use for the button i have made an new rray and everything for it and then created on release functions to getURL from that attribute from the xml but my code doesnt work properly it doesnt get the url.

Code:
playlist = new XML();
playlist.ignoreWhite = true;
playlist.onLoad = function(success) {

[Code].....

Posted: August 24th, 2007

View 6 Replies!   View Related
AS3 :: Use GetURL Function In It?
How do I use the getURL function in AS3 ?

Posted: Jun 6, 2010 9:18 PM

View 1 Replies!   View Related
Javascript 3 :: Can A JavaScript Function Detect Which Flash DOM Object Called It
Here's the challenge: I have a Flash movie which will be embedded in a page using an unknown DOM ID that I want to be able to identify/store for callback in a JS function. My ideal user flow would be: User clicks button in Flash. Flash pauses any animations / video / sounds / etc. Flash calls an injected JS function to display a page-covering overlay experience. When user closes overlay experience, a callback method on the Flash object is called. Flash resumes playback.

The problem is, when AS3 uses the ExternalInterface.call("functionName", args...) method, there doesn't seem to be a DOM event triggered, and thus it is impossible to tell which object called a JS function, so having a "registerMe()" function doesn't seem to work. Basically, the injected JS function has no way to determine which DOM object to call, because the ID of the Flash object is unknown.

[Code]...

Posted: May 20 11 at 23:47

View 3 Replies!   View Related
Javascript :: Flash - Call A Javascript Function From An Embedded .swf File
I'd like to call a javascript function from an embedded .swf file. Specifically, I'd like to call a function in one of my externally linked javascript files from within: function loadTrack(){

[Code]...

which is in an .as file which I assume somehow becomes the swf file. How would I go about this and 're-compile' the .as file?

Posted: Apr 16 09 at 18:14

View 3 Replies!   View Related
Actionscript 3 :: Javascript: Calling JavaScript Function From Flash (swfObject)?
let suppose i have a object named "data" which has a callBack function named "closeItem" which does something. So i have flash file which has a close button. on click of that i am calling this function which closes this item. So issue is? If i pass this "closeItemFunction" as global function this works fine. but if a pass this function as a "data.closeItem" this doesn;t work throwing some falsh error. so i just wanna ask that "does flash only call gobal scoped javascript function" ??

Posted: Feb 29 at 7:28

View 2 Replies!   View Related
ActionScript 3.0 :: Cannot Add GetURL Function To Button?
I'm trying to add a simple getURL script to a simple text button-- should be really simple, right? But when I select the instance of the button on the stage it says the current selection cannot have actions applied to it. This, despite the fact that I am able to open an old .fla that has the same type of button and it does have a getURL action applied. What gives?
Flash version 9.0 (CS3 Professional)

Posted: Jan 8, 2009 11:46 PM

View 1 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved