ActionScript 2.0 :: MC With LoadVariablesNum Don't Work If I Loaded Into Other _level?

Jan 23, 2005

why my MC actionscript with loadVariablesNum("submit.php", 0, "POST"); don't wanna work if I loaded into other _level...

If i don't loaded it work well... but not useful

View 5 Replies


Similar Posts:


ActionScript 2.0 :: This LoadVariablesNum Won't Work

Apr 29, 2011

loadVariablesNum("script.php", 0, "POST");

That won't work. Could the error be that it's in a movie clip? Or is the script just wrong?

View 8 Replies

ActionScript 2.0 :: This LoadVariablesNum Wont Work?

May 20, 2004

loadVariablesNum("script.php", 0, "POST"); That won't work. Could the error be that it's in a movie clip? Or is the script just wrong?

View 6 Replies

ActionScript 2.0 :: LoadVariablesNum Doesn't Work Within MC?

Jan 23, 2006

I'm trying to make some sort of a GuestBook. I'm using one from flashkit. It's working ok but I need to put the hole thing inside of a movie clip. That's where my problems come out.It's just refusing to load my GuestBook.php.Here's the code for loading variables:

NumLow = 0;
NumHigh = 10;
loadVariablesNum ("GuestBook.php?NumLow="+NumLow+"&NumHigh="+NumHig h+"&R="+random(999),

[code].....

View 3 Replies

ActionScript 2.0 :: LoadVariablesNum Wont Work?

May 20, 2004

loadVariablesNum("script.php", 0, "POST"); That won't work. Could the error be that it's in a movie clip? Or is the script just wrong?

View 6 Replies

ActionScript 3.0 :: _root, _level... Not Working In Loaded File?

Feb 5, 2009

I have loaded as2 swf in as3 using Loader object. Loading is done fine, but the problem is that the as2 swf uses stuff like _root, _level1.. etc. that doesn't work in as3. So is there any way by which I can make as2 swf work properly inside as2? I have bought some readymade as2 swf and need to use them here. I dont have the as2 fla so can't make any changes in them...

View 9 Replies

ActionScript 2.0 :: Putting _level In A For To Do Loop?

Apr 28, 2010

Loading stuff in levels ( MovieClipLoader.loadClip(picOrSwf, 1); ) and want a -for to do- loop to make them all _visible = false; but can't get it to workfor (i=0; i<total; i++) { _root[_level+i]._visible = false; } is the closest I got. (_root[_level+1]._visible = false; DOES work, but is no good of course).Let me know if this outlines my problem goo

View 4 Replies

ActionScript 2.0 :: Clicking Buttons On Different _level

May 4, 2010

Loading Images in _levels via loadClip. Now i want 2 buttons on TOP of the Images. So first tried attachMovie _level 200. Did't work (don't ask me why since all logic says it should. but I'm guessing a difference in loading between loadClip & loadMovie). Now made 2 swf files with just the buttons and load via loadClip. Works fine BUT... now I can click then. tried stuff like:

Code:
_level200.button_btn.onRelease,
_level200[button_btn].onRelease, _level200["button_btn"].onRelease, _root[_level200["button_btn"]].onRelease
You get the picture. Any solution to this?

View 9 Replies

ActionScript 2.0 :: Controlling Sound In A Different _level

Apr 8, 2005

I have a loaded SWF file in _level1 that has audio in the timeline. I am trying to control the volume of this loaded SWF with a 'mute' button in the main SWF file. On the first frame I'm using the code:

my_sound = new Sound(_level1);
and then on the button script I have:
mute_btn.onPress = function(){
my_sound.setVolue(0);//mute volume
}

but it's not working. Is the new Sound(_level1) not valid?

View 1 Replies

ActionScript 2.0 :: Load Swf In Center Of _Level?

Aug 15, 2006

how I can center a swf, when I load it into a _level?

View 1 Replies

ActionScript 2.0 :: Controlling Sound In A Different _level?

Apr 8, 2005

I have a loaded SWF file in _level1 that has audio in the timeline. I am trying to control the volume of this loaded SWF with a 'mute' button in the main SWF file. On the first frame I'm using the code:

my_sound = new Sound(_level1);
and then on the button script I have:
mute_btn.onPress = function(){
my_sound.setVolue(0);//mute volume
}

but it's not working. Is the new Sound(_level1) not valid?

View 1 Replies

ActionScript 2.0 :: Mousewheel Within An Embedded Flash _level?

Feb 21, 2011

However I am using embedded .swf files, and the scrollable image I want to control is on _level10 (within a master file _level0). I am decent with actionscript and based on tests with the example file, I know the code works. BUT my problem is getting it to function within a different flash level. I'm about 99% sure it isn't working because the code is looking for my movieclips or the scroll function on the main timeline and not that of _level10, but I can't figure out where the code I need to change is. Its driving me crazy.Here's the code (from the above link). This goes into the main timeline, where "area1" is the movieclip you hover over to enable the mousewheel and "mc1" is the mc that is moved by the mousewheel:

Actionscript Code:
// IMPORT import FlashCommon.MouseControl;import mx.utils.Delegate;Stage.scaleMode = "noScale";// ADD SCROLL FOR AREAS - addScroll(id, mc, function)//// adding scroll

[code].....

View 2 Replies

ActionScript 1/2 :: Load External Swf Into A Specific _level

Sep 15, 2009

I am loading an external swf into the mc 'image' using: image.loadMovieNum("portfolio/100_design/1.swf", 1);

Every time a new image loads, I want it to load the level above, ie: image.loadMovieNum("portfolio/100_design/1.swf", 2); Is there a way this can be done dynamically. For example, "current level + 1"

View 5 Replies

ActionScript 2.0 :: Create An Array Of Object And Store The _level

Aug 23, 2010

I want to create an array of object so that I can store the _level I want to load image at specified level and and to keep track of levels in an array so that when any new image will be loaded I can get location of previously loaded image and place the new image before the last image

Code:
loadMovieNum(_global.myXML.childNodes[0].childNodes[3].childNodes[5].childNodes[0].attributes.path, 178);
_root.mcTray._alpha = 100;
_level178._x = 20;
_level178._y = 620;

View 1 Replies

ActionScript 2.0 :: _level Syntax - Loading External Swf Into Levels?

Feb 18, 2008

i read about the tutorial on loading external swf into levels. I have the following codes in Layer Frame 1:

Code:
loadMovieNum ("World.swf", 1);
_level1.gotoAndStop(2);
stop();

When i execute this code, world.swf is loaded, but i cannot get it to go to frame 2, and even if i use _level1.stop(); or _level1.trace("HI");,

View 2 Replies

Professional :: LoadVariablesNum In Different Directory?

Oct 19, 2010

(and wondering if it's somethin completely unrelated that i'm missing as i can't see how this would have any effect on loadVariablesNum!)

View 3 Replies

ActionScript 2.0 :: LoadVariablesNum To LoadVars?

Feb 8, 2003

When I was working with a txt file locally I used this command

file = new LoadVars();
fileURL = "PhoneBook.txt";
file.load(fileURL);

[code].....

View 7 Replies

ActionScript 2.0 :: How To Rewrite LoadVariablesNum

Feb 13, 2006

I have this script for flash player 6.. [kirupa tutorials][code]this is working fine in flash player 6.. but doesn't work in flash player 8.. so the question is how to rewrite loadVariablesNum so it would work?

View 1 Replies

IDE :: Cannot Use LoadVariablesNum Variables Outside Of Textboxes?

Feb 15, 2010

Does anybody know any reason why I can't use variables loaded from a text file using loadVariablesNum anywhere but in the Var field of a text box? If I try this:

The loadVariablesNum ("textfile.txt",0);it loads the textvariable1=3.14159&variable2=cowfrom the text file, and if I make 2 dynamic text boxes with the Var parameter as variable1 and variable2, they'd have "3.14159" and "cow" show up in them when I run the script. So I know that the textfile is being read and the variables are being loaded.But if I try newvar1=variable1;newvar2=variable2;in my code, and then put newvar1 and newvar2 in my textbbox Var, I get nothing in them. I should be able to assign the newvar variable the same value as variable1, but I can't. trace (variable1);should output the text "3.14159" when run, but it displays "undefined" every time.Every site I have been to says I should be able to access my loaded variable values simply by using variable1, or _root.variable1, or _level0.variable1, but none of these work any differently.

I can assign an instance name to the textbox and then assign a value to that instance name, and if I do that, assuming the instance name is "box")

[Code]...

View 3 Replies

ActionScript 2.0 :: Using _level Script For Pages - Create 2 Buttons The First Page Automatically Loads?

Apr 5, 2007

I have attached a zip file which has a main.fla and a folder pages which contains 2 fla's p1.fla and p2.fla.The main page loads the first page which is p1 and as the main page has 2 buttons i am using _level script to know which page to load, actually i wanted to create 3 buttons. Since i have already created 2 buttons the first page automatically loads but when i click on the 2nd button it does'nt the p1 page goes but it comes back again.In the main there is a movie clip which has an instance name of page_mc and the code inside it is:

Code:

nextpage="pages/p1.swf";
loadMovieNum(nextpage,1);
b1.onRelease = function() {[code].....

View 2 Replies

ActionScript 2.0 :: Loading A Txt File With LoadVariablesNum?

May 7, 2004

i'm loading a txt file with loadVariablesNum, which contains : a=1 or, when I try : trace(a) is says : undefined or, when I define a dynamique txt filed and in the properties / var I put the variable a from the txt file : it publishs : 1 so, I can read the variable or I cant use it !

View 5 Replies

ActionScript 2.0 :: LoadVariablesNum Working Locally Not Live?

Sep 12, 2009

Everything works fine when I'm testing it locally and sending the variables to the live PHP file online, but as soon as I upload it, everything just kinda goes to hell and nothing gets sent through. I know Flash just changed its security settings to not allow loading from external sources, but I wouldn't think that would make a difference since everything (including the PHP file) is under the same domain. I've put the crossdomain.xml file in there, as well, but still to no avail. My code to send things is pretty simple:

ActionScript Code:
loadVariablesNum("mailto.php"+"?name="+name+"&email="+email+"&message="+message+"&to="+to+"&recipient="+recipient, 0, "POST");

View 1 Replies

ActionScript 2.0 :: LoadVariablesNum - Displaying Correct Data

Jul 8, 2004

I'm making a game and I need to load variables into my flash movie from a database. I'm using asp and I know it works fine because it outputs what I want. My problem is that when I try to load the data into flash, it won't let me use the variables. If I put a dynamic textfield on the stage with fname (one of my variables), the text field displays the correct data, but when I say trace (fname) with having the text field, "undefined" pops up.

View 5 Replies

ActionScript 2.0 :: FMX04 - Control Variables In LoadVariablesNum?

Nov 15, 2004

I'd like to know if there is a way of controlling the variables that are sent with the AS command loadVariablesNum when calling an ASP.Let's say I don't want to send two variables that exist in that frame.

View 2 Replies

ActionScript 2.0 :: LoadVariablesNum(url,target) Load From Another Path?

Mar 12, 2003

I've got a question about the path of the txt fileI can easily load a txt file in a movie if the txt is in the same folder as de .swf, but when i try to load a txt file from a different levelfor Example projects/com/1.txt i dīn't see any txtthe code is:loadVariablesNum(projects/com/1.txt,0) i know the code is wrong, but can somebody tell me what i have to do to get a txt form a different level.

View 1 Replies

ActionScript 1/2 :: Customized Checkbox When Using LoadVariablesNum Function?

Nov 6, 2003

I have several cutomized checkbox that it can be selected or deselect and I have a button to determine which of the checkboxes is selected, and throught this button I passed the variable to loadVariablesNum corresponding to which of the checkboxes is selected

code in the button to determine which of the checkboxes is selected:
if (chk1.mark1._visible = true){ //trace("31");  loadVariablesNum("http://url?uid="+_root.uid+"&ans=31", 2);  if

[code].....

View 3 Replies

ActionScript 2.0 :: Loading A Txt File With LoadVariablesNum A Paradox

May 7, 2004

I'm using flashmx and my problem is: i'm loading a txt file with loadVariablesNum, which contains : a=1 or, when I try : trace(a) is says : undefined or, when I define a dynamique txt filed and in the properties / var I put the variable a from the txt file: it publishs : 1 so, I can read the variable or I cant use it

[Code]...

View 5 Replies

ActionScript 2.0 :: FMX04 Control Variables In LoadVariablesNum

Nov 15, 2004

I'd like to know if there is a way of controlling the variables that are sent with the AS command loadVariablesNum when calling an ASP.Let's say I don't want to send two variables that exist in that frame.

View 2 Replies

ActionScript 1/2 :: Customized Checkbox Problem When Using LoadVariablesNum Function?

Nov 18, 2009

I have several cutomized checkbox that it can be selected or deselect and I have a button to determine which of the checkboxes is selected, and throught this button I passed the variable to loadVariablesNum corresponding to which of the checkboxes is selected.

[Code]...

View 3 Replies

Professional :: LoadVariablesNum On Button To Access Cgi Script Mail Form?

Mar 24, 2010

Greetings: I've used this method many times in the past to create an email form in a movie clip with a "send button" that accesses a perl, cgi script to email text input fields. It worked fine in past versions of Flash, but now I'm using Flash CS3 (v9.0, AS 2.0). I've tried 3 different cgi scripts I found online for this purpose and am sure the configurations for sendmail server & perl bins, etc are correct. All of the other "if" and "else" statements on the button work fine. But I can see a Safari (browser) error message saying POST was not used, but clearly it is. I'm trying to trouble shoot whether the problem is from the flash button or the cgi script. Has something changed in Flash CS3 from previous versions, where I'm certain it has worked before???

[Code]...

View 3 Replies







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