ActionScript 2.0 :: _parent, _root Or Something Else?

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


Similar Posts:


ActionScript 2.0 :: Paths - _root Will Not Work With _parent

May 21, 2003

I have several SWFs that I need to work when loaded into another container SWF file as well as work when they are stand-alone SWF files. Because of this, in circumstances where a movieClip is being talked to from another MovieClip I am using _parent as opposed to _root. It has been working fine until now. I have one circumstance that only works with _root and will not work with _parent. _root.content_mc.anim_mc.screenShots_mc.gotoAndSto p(2); Obvously this works fine as a stand alone but not of course once loaded into the container movie.

View 5 Replies

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

ActionScript 2.0 :: _root.cargo Are Multipled By 10 And Added To _root.totalscore?

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

ActionScript 2.0 :: _root._root[eelmine].nextFrame()?

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

ActionScript 3.0 :: No Longer Move The "_root" By Changing The _x And _y Positions Of The _root?

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

ActionScript 2.0 :: Use _parent 2 Times?

Dec 6, 2006

I would like to make a game for christmas. How can i use _parent 2 times? i mean, i have a kinda complicated MovieClip, it's movieclip in movieclip, i think 4, and i want to a script do nextframe to the second parent folder.

Code:
ROOT->Movieclip->2nd Movieclip->3rd Movieclip->4th movieclip.

The 4th movieclip when gets to a keyframe, it activates a script, to do nextFrame() in 2nd movieclip. I tried _parent._parent.nextFrame() and also _parent(2).nextFrame() but they didnt work.

I wanna know how can i jump up 2?

View 2 Replies

ActionScript 2.0 :: Disable All Buttons In _parent?

Nov 13, 2005

Is it possible to disable all buttons in _parent?I dont want to use the name of all the buttons

View 2 Replies

ActionScript 2.0 :: _parent._name Not Showing Up

Nov 6, 2011

ok since no replyes to my last post ive added an example: basicly in root i have this code:

var container_mc:MovieClip = this.createEmptyMovieClip("container_mc", this.getNextHighestDepth());
attachMovie("button_mc","button_mcadded",_root[container_mc]);

[Code]....

View 1 Replies

ActionScript 2.0 :: _parent Not Working - How To Make It Work

Nov 7, 2004

I have a movie clip that has the following code:

on (release) {
_root.rightMenu_mc.gotoAndStop("Animation");
}

It works fine the way it is but I read that it is better to use relatives paths rather than _root all the time but when I change it to _parent.rightMenu_mc.gotoAndStop("Animation"); it doesn't work anymore.

View 13 Replies

ActionScript 2.0 :: {FMX} _parent Action Doesn't Work For SWF?

Apr 3, 2003

I have a movie load an SWF into a movie clip, in that SWF there is a button which tells a movie clip to .play, the movie clip inside that swf is called "clip". i have on that button _parent.clip.play();

View 2 Replies

ActionScript 2.0 :: _parent.onRollOver Overwriting OnRelease?

May 22, 2007

I have some code similar to this:

Code:
mc1.button.onRelease = function() {
//do stuff
}
mc1.onRollOver = function() {

[Code]...

View 2 Replies

ActionScript 2.0 :: Create A Variable From _parent Mc Right After CreateEmptyMovieClip?

Nov 5, 2002

I am trying to something like the following:

createEmptyMovieClip("iconLoad"+ i, .i+100);
["iconLoad" + i].iconName = IconArray[i];
loadMovie("pIcon.swf",["iconLoad" + i]);

In the movie pIcon.swf there is a local variable iconName. I am trying to set this variable from the above code (2nd line).

View 3 Replies

ActionScript 2.0 :: _parent[vehiclename1][vehiclename2]._rotation?

Mar 29, 2005

how would i write this _parent[vehiclename1][vehiclename2]._rotation, it doesn't like the two breackets next to each other need quick reply.

View 3 Replies

This._parent.mc_video - ContentPath - Load A Video Swf In To A Master Swf

Aug 31, 2010

First off I am using flash 8 What I am trying to do. (or should that be failing to do?) load a video swf in to a master swf, Master swf has no controls and loads the video swf ok But no video content. Main file loads video swf in to mc_vidholder in the main swf Code in AS frame

[Code]....

View 1 Replies

ActionScript 2.0 :: Video Object _parent (Without Conponents In Libary)?

Jun 26, 2009

How can I create Video Object only with AS? (Without Conponents in Libary) I want to locate my Video Clip in MovieClip

var myMovieClip:MovieClip=this.createEmptyMovieClip("m yMovieClip", this.getNextHighestDepth());

and How can I create Video Object in this myMovieClip (AS without Components in Library)

var myVideo:Video=...
...=myMovieClip.createNewVideo("myVideo", myMovieClip.getNextHighestDepth());

View 0 Replies

ActionScript 2.0 :: Change Root To _parent Values And Nada?

Sep 27, 2005

i can't get this preloader to work. i test it out, and it hangs. i've tried to change my _root to _parent values and nada. it just shows 0% and does nothing. here's the AS that i am using:

[Code]...

i got it off a tutorial a while ago. it seems to work in other flash movies that i have created, but not on this one. i've even re-built it from scratch, and still nada.

View 4 Replies

ActionScript 2.0 :: Mouse Events For _parent And Child Clips?

Dec 8, 2007

I have a _parent movieclip that receives mouse events and I want the clips inside the _parent clip (child clips) to receive mouse events also, but because of the _parent's mouse event handlers, the child clips are "interfered" with, or not received....how do I make it so both the _parent and the child clips can receive mouse events?

View 1 Replies

ActionScript 3.0 :: Making A "_Parent" Hyperlink?

Apr 9, 2009

Does anyone know the Actionscript 3.0 code for displaying a hyperlink in the "_parent" browser window?
 
{    navigateToURL(new URLRequest("link.html"));}

View 9 Replies

ActionScript 1/2 :: What Does It Mean _root ?

Jul 6, 2009

what does it mean _root and how to convert in AS3 for _root. Is  _root supportable in AS3 ?

View 4 Replies

IDE :: Getting The _root Via JSFL?

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

IDE :: Using _root In External Swf?

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

ActionScript 2.0 :: What _root And This. Do

Oct 27, 2004

explain to me what _root and this. do

View 5 Replies

ActionScript 2.0 :: CS3 Get Array Value From _root?

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

ActionScript 2.0 :: _root And Swf Loaders

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

ActionScript 2.0 :: Shapeflag Within Two Non _root Mcs?

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

ActionScript 2.0 :: Have The _root Fade Out?

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

ActionScript 2.0 :: Change The Fps For Only One Mc And Not The Whole _root?

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

ActionScript 2.0 :: Different Between _root And _global?

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

ActionScript 2.0 :: _root.mc._alpha == 100?

Feb 13, 2004

I have this code. It works fine when i press a button.

if (_root.mc._alpha == 100) {
this.onEnterFrame = function() {
speed = 50;[code]....

I need to know how can I trace the _alpha value of the mc and when the value is 0 a movie clip is loading in the same mc.

View 3 Replies







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