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


Similar Posts:


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

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 :: Only Local XML Paths Work?

Oct 21, 2010

Within my swf, I cannot access my xml files via an absolute path, only local paths work.

View 2 Replies

ActionScript 1/2 :: Flash Paths Don't Work Once Uploaded To Server?

Feb 23, 2010

I have a bunch of loadMovie() scripts in my flash files and everything loads fine when I open the flash files from my folder.Once I preview them online on my test server, the loadMovie() scripts no longer work. Has anyone encountered this? Does my paths need to change in order to view the flash files online?Right now, I have everything realitive to the flash file so:My main file is test.swf. that loads in fine in the website.But test.swf loads in test2.swf which is contained in a flash folder so my loadMovie script itloadMovie("flash/test2.swf", 2)

View 1 Replies

ActionScript 2.0 :: Won't Work Unless On _root Timeline?

Feb 26, 2006

I have this actionscript with a MC._root.containerMC.loadMovie(loadswf+".swf");however, it will online work if i put this action on the _root timeline

View 2 Replies

ActionScript 1/2 :: Removing _root Code Does Not Work?

May 5, 2011

I've tried removing or using this and code dose not work.
 
[Code]....

View 2 Replies

ActionScript 2.0 :: CreateTextField() Doesn't Work Anywhere But On _root?

Dec 7, 2005

I feel like I'm missing something obvious here, but I'm unable to add a textfield to any movieclip that I've attached to _root. Here's a generic example:

_root.attachMovie("generic_mc", "clip1", this.getNextHighestDepth());
rect1._x = 200;
rect1._y = 200;

[code].....

View 3 Replies

ActionScript 2.0 :: Convert The XML Paths To Flash Paths

Mar 5, 2007

Does anyone know if there is some kind of program that can convert the XML paths to Flash paths. Hmm...what I'm after is some little program that basically lets me open up an XML file, point on a node or attribute and the program will the flashpath to this node/attribute, where the path is something like: his.firstchild.childnode[2].attribute.jadajada

View 1 Replies

ActionScript 2.0 :: CS4, As2, _root.attachMovie Doesn't Work With Input Text?

Oct 16, 2010

what i need to do is create an instance of an input text box when a button or key is pressed. However as of yet i've been unable to no matter what i try, for some reasons i guess it's properties don't carry over the same way a static object does.

View 1 Replies

ActionScript 2.0 :: Scope - _root In Gallery.swf Doesn't Work Within Index.swf?

Oct 27, 2006

This is a situation: i have a index.swf in which i have holder movieclip in which i load gallery.swf (where i load pictures in it's holder mc). The thing is i used _root in gallery.swf so when i publish it separately it works, but it doesn't work within index.swf. I suppose there is a scope problem where _root adresses _root timeline of index.swf instead of gallery.swf when index.swf is published and gallery.swf loaded inside. I tried to solve this by putting: Code: this._lockroot=true; inside of gallery.swf but now my Flash 8 player just freezes when index.swf is published and gallery.swf loaded into it but i have no idea why? What would be other solution for this problem?

View 3 Replies

ActionScript 2.0 :: AddItem({Windows That Are Currently Open: _root.myinfo}) Won't Work?

Oct 26, 2009

ActionScript 2.0 :: addItem({Windows that are currently open: _root.myinfo}) won't work?

View 2 Replies

ActionScript 2.0 :: Replace _root With _level2 But Doesn't Work On Mouse Button?

Jul 19, 2006

i was doing tutorial from the page [URL]

my problem is that I have in main timeline movie1, who have movie2 in side, and movie2 have movie3 inside it. in movie3 is buttons like in the tutorial. so i try to replace _root with _level2 but doesn't work on mouse button AS.

[Code]....

View 1 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 2.0 :: Goto And Play Scene - _root.gotoandplay And Even Scene1.gotoandplay Won't Work?

Nov 9, 2007

For some reason i'm having problems swapping scenes in my flash movie. At first i put the action in a "actions" named layer and a link to a button. So basicly when scene1 loads the frame 1 action is "stop ();". The viewer clicks on button1 which has a code of;

[Code]...

View 1 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.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







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