ActionScript 2.0 :: Change The _root.broj And _root.logo Variables Inside The Function?
Jan 14, 2010
In the code below i want to change the _root.broj and _root.logo variables inside the function which returns values from .php file. Inside the function everything works fine and all values are correct but when i trace var broj outside the function it's still 0.
var result_lv:LoadVars = new LoadVars();
var send_lv:LoadVars = new LoadVars();
var broj:Number=0;
var logo = new Array();
[Code].....
View 1 Replies
Similar Posts:
Dec 11, 2006
i am creating my own component. the problem is how can i access the variables inside the Class without using _root.myComponentName.variableName.
[Code]....
View 1 Replies
Feb 27, 2003
im lookin to make this so that the points taken from the _root.cargo are multipled by 10 and added to _root.totalscore
[Code]...
View 2 Replies
Sep 14, 2004
if a condition is true, then:_root.(MC with instance name that is the value of "_root.eelmine").nextFrame(); is this correct?_root._root[eelmine].nextFrame();
View 16 Replies
Jan 26, 2009
I just recently began migrating from AS2 to AS3, and I have of course realized that I can no longer move the "_root" by changing the _x and _y positions of the _root (which no longer exists in AS3). How can I do this in AS3 (specifying _x, _y, _z possibly of the "_root")?
View 2 Replies
Apr 29, 2003
ive loaded a movie into another and postitioned it..
_root.abc._x="400";
_root.abc._y="200";
_root.abc.loadMovie("trig_sub.swf");
but once it is loaded where ever i have used _root in the loaded movie (trig_sub.swf) it nolonger works eg..
on a button i have
on(rollOver){
_root.menu.stop();
}[/AS]
bnut this dosent work when it has been loaded into instance "abc" in the main movie...wat do i have to use instead of root to point at an instance?
View 14 Replies
Jan 24, 2007
I have a MC1 insede MC2. I have to get the _x coordinate of MC1 but relative of _root. instead of the _x valeu of MC2.
View 3 Replies
May 19, 2004
to change the fps for only one mc and not the whole _root and if so how would i do it radomly?
View 4 Replies
Dec 19, 2006
I need to send a variable (zipcode) to a coldfusion script and also load the cf page that displays the results (same script) in the browser window (_self) is getURL the appropriate choice for this? (never done it this way before). if so, does using POST in a getURL just grab any variables on the _root? where does it get its variables?
View 3 Replies
Jan 21, 2004
is _root same as _level0? or is _level1 the timeline inside a movieclip on the _root?
View 5 Replies
May 28, 2007
Just wondering how this is done within an "if then" statement. I need a code like
if (_root.frame = "home") then {
this.quickHome.onPress = function () {
_root.gotoAndPlay ("homeToContact");
}
}
I know the first line isn't going to work, but just wondering if someone knew of a code that would?
View 2 Replies
Jan 18, 2008
If I have a movieclip on the main timeline, is there a way to put this movieclip inside another movieclip on stage (ofcourse during runtime) ? I know that one of the methods of doing this is using bitmapdata class to capture an image of the movieclip (draw method), then attaching the object it to another movieclip that can be anywhere, but this will make the movieclip lose it's interactivity behaviour, and vector quality.
View 5 Replies
Nov 9, 2005
Is it possible to change the _root. background colour with actionscript.
View 5 Replies
Aug 8, 2002
I have some global Arrays defined and loaded with data at the _root level. Data is OK cause I checked it with the List Variables option. I cannot address any of my arrays from within my MC hierarchy (not from MC2, MC1 or Component MC), BUT I can address variables defined at the root level correctly?
MC Hierarchy: ComponentMC-->MC1-->MC2-->Various MCs
I placed trace(_root.MyArray[0]); at MC2 level, then at MC1 level and finally at ComponentMC level but the sentence still reads "undefined". Is there a way to actually get my Arrays data from _root ?
View 3 Replies
Mar 25, 2006
I was wondering, is it possible to call a function in a MC from the _root of the movie?
I have an MC called timer, linked aswith a function in it,
Code:
testFunc = function(){
trace("It Worked!");
}
On the _root in the first frame I have this,
Code:
_root.attachMovie("timer","t",5);
_root.t.testFunc();
View 10 Replies
Apr 8, 2010
I want to edit a variable in _root from a function
it should look like this:
Code:
var index:number = 0;
function fnct (root_counter){
[Code]....
View 3 Replies
Oct 7, 2003
i have a:
Code:
_root.onMouseDown = function(){
someAction
[code].....
View 4 Replies
Dec 30, 2009
I have two movie clips on stage, each with the same code, I have another movie clip that comes along and interacts with the two of them and changes properties to its speed and such. The problem is, it only seems to work one at a time, for instance I can't have both of the movie clips changing its speed, it works with one and then ignores the others code. *EDIT* I just ran a trace on the two mcs, I can confirm both of them know when the main one hits it, but because I'm trying to change a _root.mc.speed property in each one, it only accepts one of them and ignores the other for some reason :S If I use different properties in each it allows that.
View 5 Replies
Oct 18, 2009
MainMove.swf is doing a loadmovie of SecondMovie.swfThe Button that loads SecondMovie.swf also disables other buttons in MainMovie.swfon (release) { _root.intro_btn.enabled = flase; loadMovieNum("SecondMovie.swf", 2);How do I Re enabled the Buttons in MainMovie.swf from a Button within SecondMovie.swf???
View 4 Replies
Sep 13, 2009
I'd like to control a movie clips current frame by another movie clips action script.I realise the following controls the outside (root) frame time line:
on(release){
_root.gotoAndStop(1);
}
but I'm not sure how to apply that to my other movie clip. I'm guessing it would be something like this:
on(release){
_*movie_clip_name*.gotoAndStop(1);
}
View 1 Replies
Jul 6, 2009
what does it mean _root and how to convert in AS3 for _root. Is _root supportable in AS3 ?
View 4 Replies
Mar 2, 2009
I an trying to get the _root node of an FLA via JSFL. A co-worker wrote a script that uses _root via actionscript. I was trying to wrap that code into a panel. I have all the trace functionality running and everything running accept I can't seem to access the "_root". I have tried _level0, and almost everything I can think of... I am looking to have JSFL return the _root object from the current file the same way can can hand "_root" to a function. (IE: myfunction( _root ); ) here is my current attempt:
Code:
var doc = MMExecute( "fl.getDocumentDOM()._root;" );
View 1 Replies
Jun 2, 2009
I have an external swf, that is a photo gallery, loading into my main swf. When the external swf loads, everything works fine except when you click on a thumbnail in the external swf, the jpg doesn't load. I have it set up that an empty movie clip is created first, then the jpg is loaded into that. I have a feeling it is something with the fact that I am using _root, but I don't have any guesses whats causing the issue and how to fix it.
Code:
News.onRelease = function(){
if( !this.up ){
[code].....
View 4 Replies
Oct 27, 2004
explain to me what _root and this. do
View 5 Replies
May 29, 2009
in my root I have this code:
Code:
//score node selection
var i:Number;
var scoresUserName = new Array() ;
var scoresFbid = new Array();
[Code]....
View 1 Replies
Nov 9, 2010
Edit - managed to find an answer to this by using _parent instead of _root
I've got a swf loader that loads a swf obviously but in the swf that's being loaded I have a button inside of a movie clip which I use...
Code:
on (release) {
_root.gotoAndStop("page1");
}
When viewing the swf file on its own this works perfectly, however when it gets loaded into the first file it no longer works because the root has now changed to that first file.
View 0 Replies
Mar 24, 2012
Why isn't this working?I've tried everything.Here's a resume on what's the part with errors:
Code:
var Bl:Object = {x:-18, y:174};
_parent.mwall.globalToLocal(Bl);
[code].....
View 0 Replies
May 2, 2004
I was jsut wondering if it is possible to have the _root fade out, when e.g. loading a something into level1 and then have _root fade back in when unloding level1?
View 7 Replies
Jun 14, 2007
I used the tutorial on Kirupa on loading external swf's. Before writing here I tried to find an answer in the forums, but no luck so here I go.[URL]..If you look at my files: Open portfolio.swf and hit one of the first two images (that initially flies in). here you will see that if you hit the second one, the rpesent one displayed makes an outro and the second one makes an intro, PERFECT!
Now, if you open default.swf (that has portfolio.swf loaded into a movie clip as you can see by looking at the source) and if you hit the second image, the first one makes the outro, and then makes an intro. So the shift to the second one is not happenening. Please, can someone help me to make this happen?
View 4 Replies
Jun 4, 2009
difference between _root and _global when dealing with variables or point me in the direction of a good explaniation on the web? I feel like there is something basic I am missing. For example the other day I was working on making some scenarios. In a nut shell I was setting up dynamic text boxes where the text would changed based on what the student selected (via buttons).
When the varible was changed (by clicking the button) the text wouldn't refresh when it was a _global, but would refresh when it was _root. Everything is working fine but I've been trying to understand the "why" it works this way.
View 3 Replies