ActionScript 3.0 :: Not Working In IE 7 Passing Vars?

Apr 8, 2009

I am having a strange problem with my Actionscript not working in PC IE7. Everything works fine in Mac Firefox and safari. I am passing a variable from the html using swfObject, loading it in flash, populating a movie clips text field. However, the field shows "error" in IE7.

Also with the actionscript I am positioning the movieclip to stage right. When I remove that code everthing appears to work fine. However, positioning to the right is a must for my design. Why does IE7 act differently. I have spent way to long googling a solution to no avail. Can anyone shed light on this for me?

[Code]...

View 1 Replies


Similar Posts:


IDE :: Passing Vars From A SWF To New SWF?

Feb 26, 2008

I think this should not be a big deal, but I do not get it to work. I got a "MainFlash" witch loades an XML with about 60 variables (Settings), in base of a paramater then this "MainFlash" loades another "FlashMovie" and this one needs, all, the same Variables too.

How do I properly pass all the Vars in the new/other "FlashMovie"?

U need to know I use LoadMovieNum to Level 0 I do replace the "MainFlash", cause the new loaded "FlashMovie" can have a completly different height and width ( ...I don't think it's possible to change the Document-Setting in a compiled swf, or is it? If this is possible I would not need to load a separate swf to Level 0. the main SWF usually ist about 320x180, the following can be 2x, 3x bigger...

View 2 Replies

IDE :: Passing Vars To Flash?

Apr 2, 2009

I have to pass some variables to the flash movie (movie.swf?var1=aaa&var2=bbb). never had a problem with using them before.I've read around a lot an tried different coding, but when I export the swf I got the error, that root is unknown...doesn't matter, if I use one of this

var flashvars:Object = root.loaderInfo.parameters;
var flashvars:Object = stage.loaderInfo.parameters; // stage is unknown here..
var flashvars:Object = MovieClip(root).loaderInfo.parameters;
var flashvars:Object = MovieClip(root.loaderInfo).parameters;

[code]....

View 4 Replies

ActionScript 2.0 :: Passing Vars Between Swf's?

Sep 19, 2003

i have to separate swf's, and i need to pass a var from one to the other

initially i thought i could write the var to a text file (do this from the first swf) and then load the var in the second swf

is there an easier way? (i.e. i'm using getURL in the first swf to launch the second swf. could i pass it in that?)

View 5 Replies

ActionScript 2.0 :: Passing Flash Vars Through Php?

Apr 26, 2009

I want to pass flasvars to my app usng php. I can get the php var from the url string fine and write it but i cant pass it through flash vars for some reason.The code im having issues with is in red.

Code:
<?php
$avar = $_GET['a'];

[code]....

View 2 Replies

ActionScript 3.0 :: Passing Flash Vars To Php

May 20, 2010

ok so i have set up a register user page in my flash document and i'm trying to send the variables to a php document on my server which then puts the vars in a database. trouble is the variables dont ever get to the php. every time i add a user a row of blank variables are stored in my database and seen as i have had the php working with html forms passing the vars i am pretty sure this isnt the problem. here is my as3 code:

[Code]....

View 3 Replies

Actionscript 3.0 :: Passing Vars Between Frames?

Apr 15, 2010

I've been trying to pass function variables from one frame to another for awhile now and looked at a few tutorials on how to do but I've had no success. I'm thinking my flash CS4 is bugged..... this will not work even though its supposed to...

(frame 1 on time line)
stop();
var transferText:String;

[Code].....

Even if I use trace in the same frame I cannot call the variable "transferText" while outside the function. It is always null in both frames. Like I said I pulled this from a few tutorials and others have said it works perfect but it won't for me. I've also tried using AS classes but the result is the same. I cannot call variables created or changed by functions.

BTW, I have no problem passing standard vars from frame to frame this works every time:

(frame 1 on time line)
var passThis:String = "I'm passing this.";
frame 2 on time line)
trace(passThis);

View 2 Replies

ActionScript 3.0 :: Passing Vars In MovieClip Heirarchy?

Jun 24, 2009

I have a bunch of nested movieclips. I set a var "foo" on the topmost clip. A child clip wants to know the value of foo: easy enough, i just call parent.foo.But what if I don't know how far down the tree the child resides in? Worse, what if foo changes every so often on new branches?My first thought was to simply add thisvar foo = parent.footo every clip, but this of course requires every clip have that line, or it breaks, and it doens'tus if a new child is inserted, or if a parent "foo" value changes.I was thinking that I could call a recursive function, where a child asks it parent, then its parent's parent, etc, for the value of foo along its particular branch...

function whatIsFoo(obj) {
if(obj.parent.foo==undefined) {
return whatIsFoo(obj.parent)

[code]......

View 0 Replies

ActionScript 2.0 :: Passing Query Vars Using GetURL?

Apr 15, 2011

I'm having to work on some old AS2 stuff and my AS2 brain is sadly atrophied.

ActionScript Code:
on (press) {
arrivaldate = day.text+" "+month.text;
//trace(arrivaldate);

[code]....

Is working fine, passing all the variables into the URL. The question is... why? I can't see any mechanism whereby getURL is given all the variables defined above. Does it pass in all local vars by default?

View 0 Replies

ActionScript 2.0 :: Passing Vars Between 2 Separate .swf Files?

Jan 6, 2007

- in the parent.fla i created a dynamic txt box and var String named 'txt', this initialises the dynamic text box content to say "parent value".

- in the child.fla i tried to assign and send a new string value i.e. "child value" to 'var txt' which in found within parent.fla. At this point if everything was to work fine the dynamic txt box in parent.fla should output "child value".

View 4 Replies

ActionScript 2.0 :: Passing Hidden Vars From Flash To Php

Sep 28, 2008

I'm placing swfs in product pages of a oscommerce site.I trying to send the whole info of a certain product to the shopping cart.[code]

View 3 Replies

ActionScript 2.0 :: Passing Vars Between 2 Html Files?

Aug 16, 2003

I have 2 HTML files with embedded flash movies. One HTML file is the main area (main.html) with a flash movie called gallery.swf which has a grid of thumbnail pictures, and the second HTML file (popup.html) is a pop up chromeless window for enlarged images depending on the thumb's the user clicks. Essentially I need to pass variables to popup.html and ulimately its embedded movie enlarged.swf. These variables will basically be id's of the clicked thumbnails which I will use to locate the correct enlarged images on the server to load into into a container clip within enlarge.swf.

View 3 Replies

ActionScript 2.0 :: Thumbnail Gallery Not Passing Right Vars?

Dec 27, 2009

I'm struggling with my XML thumbnails gallery. The gallery itself is set up without a problem, nice grid of images created, including a listener etc. But then... In my mc.onRelease function, I can't the the node ID to pass through. And I really need it to so I can create the enlargement of the image. Here's my full code so far.

[Code]...

View 2 Replies

ActionScript 3.0 :: Passing Vars To Mouse Handler?

Mar 4, 2010

btn.addEventListener(MouseEvent.CLICK, handler);
function handler(e:MouseEvent):void{
}

how do I access an input textfield in that hander? Is the only way to use the Dictionary class?

View 2 Replies

ActionScript 3.0 :: Counting Function / Passing Vars Between Functions

Jun 21, 2010

Could anyone suggest how to fix the function at the bottom so that when button forward_btn with label "Go to next Training Point" when clicked recalculates the fields created in function fileLoaded.[code]

View 2 Replies

ActionScript 2.0 :: Passing Input Text Field Vars To Asp?

Aug 24, 2009

I'm having a problem getting my data from input text fields to pass to the ASP script using getURL and "POST". The input fields have var of email and password. The form works fine when an html form passes the same variables.

on the submit button, I have this code

ActionScript Code:
on(press){
//loadVariablesNum("samplescript.asp",0,"post");
getURL("samplescript.asp",0,"post");

[Code]....

where to look to pass the variables from the input text fields?

View 0 Replies

ActionScript 2.0 :: Passing Vars To Flash From Html/javascript

May 9, 2007

So, does anyone know of a cross plaform/browser compatible way of passing variables to flash from html or javascript?

View 2 Replies

ActionScript 3.0 :: Flash Passing Different Vars From HTML To 1 Swf-menu?

Dec 8, 2010

I have a very classic website with Flash built menu and HTML content. Now what I need is the menu buttons( which are Movie Clips actually) to maintain in their pressed position when a particular button from menu is pressed (which actually I did inside flash, but everytime new hyperlink is followed, the website is refreshed and new SWF loaded without button being pressed obviously).

I know this can be done either by Frames which I do not want or passing an argument in URL string from HTML when we call for an SWF object.

Sounds great, but I how do I pass different arguments to several menu pages, when i have only one SWF object and therefore only one hard-coded place of data or value where i can pass the argument in string ?

Do I need to divide my flash object to as many swf's as i need buttons and links ?

View 1 Replies

Flash :: Server Side - Passing Vars To Php And Edit A Mysql Row From The Db

Oct 5, 2005

i'm passing vars from flash to php and trying to edit a mysql row from the db. anyone know php and can spot something going awry with my code here?

[Code]...

View 11 Replies

ActionScript 3.0 :: Passing Variables - When Send The Vars I Get Back That User Doesn't Exists ?

Nov 17, 2010

I try to make a simple login. I use the code

Code:
function sendVars_login(event:MouseEvent):void
{
var scriptRequest_login:URLRequest = new URLRequest("http://******.aspx");[code]...

when i send the vars i get back that user doesn't exists although i have checked that it exists.A funny thing is that when i change the following

Code:
scriptVars_login.u_pass = "somePass"
scriptVars_login.u_email ="someEmail"

I get correct results. So the .aspx script works and the way i'm sending the variable works. when i trace

scriptRequest_login.data

i get a url encoded string, so i tried to unescape the value

Code:
var unescapedString = unescape(String(scriptVars_login));
scriptRequest_login.data = unescapedString;
scriptLoader_login.load(scriptRequest_login);

now when i trace(scriptRequest_login.data) i get an unescaped value but it still doesn't work

View 1 Replies

ActionScript 2.0 :: MC Mask - Combining Vars Not Working

Jun 24, 2006

Why the following doesnt work:
Code:
for (var i = 1; i < 6; i++) {
var mc = "mc"+i;
var mask = "mask"+i;
mc.mask._xscale = 50;
}
But, if I change the line mc.mask._xscale to mc1.mask1._xscale, it will work. I also put a trace(mc) and trace(mask) and it spits out mc1, mc2..mc5 and mask1 to mask5.

View 3 Replies

ActionScript 2.0 :: Load Vars Function Not Working?

Jan 21, 2008

I am trying to make a button that when clicked on loads an external text file into a dynamic text box.

I can make it work when I use it specifically - but I can't make it work when I want to use it as part of a generic 'button function'.

Basically I have a .txt file "mycontent.txt" which is called using the Load Vars function inside a generic function (tab_grow) i created to managed the behavior of the 12 tabs that are the navigation for the movie. For now i'm just focusing on ONE of the tabs. Basically the tabs move when a user hovers over them and when they mouse off. When they click it should call the external text file. The section in the .txt i'm calling is called 'mega_data'.

This is what I have right now:

HTML Code:
function tab_grow(mov, file) {
mov.onRollOver = function() {
mov.onEnterFrame = function() {

[Code].....

BUT then I can't change which section of the .txt file I pull up for different tabs - which is the whole point of the function!!

View 1 Replies

ActionScript 2.0 :: Send Vars From Flash To PHP (sendAndLoad Not Working?)

Feb 4, 2011

I have a high score submit script, and it goes as follows...This is the actionscript:

Code:
on (release) {
var uscore:LoadVars = new LoadVars();[code]......

We have tried many things, and we finally decided to just check for success to see if the vars were passed through. The first time we tried it, it worked, and then since then no matter how many times we try it won't work. I have also tried to just run random scripts when the page is loaded, regardless of what vars were sent, and nothing ever happens, so I'm under the notion that the sendAndLoad() isn't well.. Loading the page. It was working before, but it appears to have just stopped, we're not sure what we changed.

View 9 Replies

ActionScript 1/2 :: Passing Value From Js To As In A Flvplayback Component Not Working

Jun 2, 2009

my flvplayback component is not working when i tried to pass the url of the video to be played from js to the actionscript.(using actionscript 2)
 
I properly embedded the swf and added the object ids as well. i just assigned the url to a string and then passed it to the function in the as but it's not working...

View 3 Replies

AS3 :: Flash - Passing Variables To A Function Not Working?

Oct 8, 2011

I had written this code out using Adobe CS3 and have recently upgraded to CS5. I haven't touched this site in forever and the last time that I did it worked great. The problem is as follows.type of page: galleryproblem: passing variablesthis is the original code that worked last time I checked it but has since stopped working.

function onClick(e:MouseEvent):void
{
trace(e.currentTarget.name);

[code].....

View 3 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

PHP :: Multiple File Upload With Parameter Passing Not Working

Apr 7, 2010

I have created my own file upload flash app that has been working great for me up until this point. It uses PHP to upload the files and sends back a status message which gets displayed in a status box to the user. Now I have run into a situation where I need the HTML to pass a parameter to the Actionscript, and then to the PHP file using POST. I have tried to set this up just like adobe has it on [URL] without success.

Here is my Actionscript code:
import fl.controls.TextArea;
//Set filters
var imageTypes:FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png");
var textTypes:FileFilter = new FileFilter("Documents (*.txt, *.rtf, *.pdf, *.doc)", "*.txt; *.rtf; *.pdf; *.doc");
var allTypes:Array = new Array(textTypes, imageTypes);
[Code] .....

The flashVars variable is the one that should contain the values from the HTML file. But whenever I run the program and output the variables in the PHP file I receive the following.
//Using this command on the PHP page
print_r($_POST);
//I get this for output
Array (
[Filename] => testfile.txt
[Upload] => Submit Query
)
Its almost like the parameters are getting over written or are just not working at all.

View 3 Replies

ActionScript 2.0 :: Load Vars From A Text File Into A Load Vars Object?

May 19, 2005

i am trying to load vars from a text file into a load vars object.

var kitchentext = new LoadVars();
kitchentext.load('moccastext.txt');

Once in the object, i thought i could reference them like so

kitchentext.name
kitchentext.style

but i am having trouble doing this.

i have a textbox called displytext.

_root.displaytext.text = kitchentext.name;

doesnt work

View 3 Replies

ActionScript 3.0 :: Get Vars From PHP?

Jul 22, 2010

I'm building a little application in AS3 but I need to get variables from PHP. I searched on the internet on how I should do that. It makes the connection, but it doesn't get the variables. It just prints whole my php script.

[Code]...

View 1 Replies

ActionScript 3.0 :: Add Vars To XML?

Dec 7, 2009

var navChildXml:XML = <subpoint>
<text>XML(_nodes[prop].childNodes[inc].title)</text>
<link>XML(_nodes[prop].childNodes[inc].title)</link>
</subpoint>;

how to in this instance

the vars are not being declared

View 1 Replies







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