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


Similar Posts:


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 :: 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 3.0 :: RemoveChild Not Working - How To Make It Work

Dec 22, 2009

I'm using CS4/AS3 and am swapping out swf files in a single holder from different buttons. The problem is that the child isn't getting removed when switching from button to button.Here's my code:

var Xpos:Number=0;
var Ypos:Number=150;
var swf:MovieClip;
var loader:Loader=new Loader();

[code]...

View 6 Replies

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

May 29, 2010

A loading bar for my portfolio website is not working at all. Although the same loading bar will work on other Flash projects.After doing some research I have found that loading in MovieClips from the library may be the cause of this. So instead of loading them in from the library, i am now loading them in externally but the problem still persists. how can i un-embed the font? [URL]

View 1 Replies

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

Jan 14, 2009

my gotoAndPlay does not seem to be working. On frame 1 I have this for testing purposes:

trace("frame 1")

and on frame 2 I have:

gotoAndPlay(2);

and I get "frame 1" traced out continually. It's going back to frame 1 for some reason.

View 2 Replies

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

May 3, 2010

i am having some issues with the gettotalbytes function as flash wont take it as its function ( which generally show in BLUE COLOR ) so what i am trying to do is not working.

this.createEmptyMovieClip("mymovieclip",this.getNe xtHighestDepth);
this.createTextField("textfield",this.getNextHighe stDepth,10,10,100,10);
if(mymovieclip.getTotalBytes()>0)

[code]....

View 5 Replies

ActionScript 3.0 :: ButtonMode Not Working - How To Make It Work

Jan 19, 2011

what could cause buttonMode to 'not' work properly?? the clip has MouseEvent listeners. I set the buttonMode to true. I have a trace statement inside the roll over event showing that buttonMode is set to true, but for some reason its not showing the hand cursor. the rollover,out, and click events fire as they should too..and i have other objects that work perfectly fine with buttonMode.

View 3 Replies

ActionScript 3.0 :: EventListeners Not Working - How To Make It Work

Feb 11, 2009

rotateToMouse works. Nothing else even gets as far as tracing. What gives?

Code:
package engine
{
import flash.display.MovieClip;
import flash.display.*;

[code]....

View 6 Replies

ActionScript 2.0 :: .swapDepths Not Working - How To Make It Work

Sep 7, 2003

I have a movie clip I am using to display a group of logos i created which are also movie clips. when the user clicks on each logo the logos are supposed to enlarge except, that because of the way the layers are stacked, one of the enlarged logos displays underneath the smaller one. so, someone suggested i use swapDepths. But nothing happens. it won't even enlarge. here's the script:

on (release) {
this.swapDepths("manard");
gotoAndPlay("oataup");
}

"oataup" is a frame label, obviously and "manard" is the name of the movie clip instance I'm trying to swap with. I've never used the swapDepths method before so I'm hoping I screwed something simple up.

View 4 Replies

ActionScript 3.0 :: Functions Aren't Working - How To Make It Work

Jun 25, 2009

I have one function that for some reason, isn't calling the next function. I've been looking over this code all day and I feel like it's probably going to be something really small and stupid but I jsut really need help at this point. The function that isn't working is showUsers().

This is my code:

Code:
import fl.controls.*;
import flash.display.Sprite;
import fl.managers.StyleManager;

[code].....

View 14 Replies

ActionScript 3.0 :: Buttons Stop Working - How To Make Them Work

Feb 19, 2010

I have a container mc called lightBoxCont that I load a class into

Code:
lbx.initLightBox(12, Number(slideIndex), urls, titleText);
lightBoxCont.addChild(lbx);

when the user clicks on a thumbnail the user can close the lightbox by clicking on a button like this

Code:
this.removeChild(lightBoxCont);

This all works (or seems to). If the user then clicks on another thumbnail the light box appears again, but the buttons don't work. These were added in the class lightbox.

Interestingly if I trace teh number of children that lbx has I find that each time the user presses on a thumbnail it goes up. First time its about 30, next time its about 60, next time its 90 and so on.I think this is causing the problem with the buttons not working.

View 5 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 :: _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 3.0 :: Width Doesn't Work - How To Make It Work

Apr 21, 2010

I have a button object that I need to scale to align with the variable width of an array of images.However, when I set the width in code, the button does not actually become that width. Tracing out the width gives me the correct value, but on screen.. it's off.

I've proved it to myself by scaling the same button object manually in the properties pane and visually comparing. Both of the buttons below have a width of 410.

Code:
navigatorDown_btn.width = 410;
navigatorDown_btn.x = (stage.stageWidth/2)-(navigatorDown_btn.width/2);
trace(navigatorDown_btn.width); // output: 410

View 4 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 :: Make A Sprite Button With Graphics And Can't Make It Work?

Aug 22, 2011

* I have a flash project called contact

* The document class is ContactClass

I am trying to make a sprite button with graphics and can't make it work. I have successfully added text fields so I know the path is correct. I suspected my code was correct and confirmed it should be, after reading several tutorials showing the process for creating sprite buttons with graphics. Anyway, I imported nearly every class on Earth, but certainly everything which needs to be. Stage is gray and 800x600.The graphics code by itself with appear, but not when linked to the sprite. Also, the sprite won't appear no matter what. Another interesting piece of the puzzle: nothing will trace, not even objects such as textfields which actually appear and function on the stage when I text the code.

public class ContactClass extends Sprite {
public function ContactClass() {
var home_btn:Sprite = new Sprite();[code]....

View 3 Replies

ActionScript 3.0 :: Buttons Work Then Stop Working

Aug 2, 2010

My site has a thumbnail gallery that loads larger images that then jump to sections containing flash video. Everything works great when I test my movie and all buttons work. But after clicking on one certain button (my "about" button in the header), all of a sudden the large image buttons stop working and won't jump to the sections. Although they do still display correctly when over, down,ect.

View 0 Replies

ActionScript 2.0 :: Flash Portfolio And Working On 'work' Page

Feb 11, 2003

i am making a flash portfolio and am working on the "work" page.i have a bunch of links.i would like each link to open up a seperate window containing a graphic that is already in the library.so basically, what is the script to link to a graphic already in the library and have it open in a seperate window.(i just said the same thing twice.....)and also, is there any way to customize these pop up windows?

View 3 Replies

How Does Working With SQLite Databases Work In Flex 4.5.1 For Mobile Applications

Jun 26, 2011

How does working with SQLite databases work in Flex 4.5.1 for Mobile applications,I'm looking to create a general class that I can reuse. For now I only want it to handle queries and return results or fault events.Also, I am unsure if I should be using Synchronous or Asynchronous connections for mobile devices.

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 3.0 :: MouseEvent.CLICK Not Working But Using MOUSE_OVER Makes Function Work?

Aug 27, 2009

The main AS timeline creates the enemy instance and calls them via the timer class. Inside the instance enemy movie clip there is some script to do a basic tween and there are functions to remove the enemy and to declare you've hit the enemy. The problem I'm having is when I try to call my KillEnemy function with a MouseEvent.CLICK (or MOUSE_DOWN, MOUSE_UP) event, it isn't registering, I realised this after testing the same function to listen for a MOUSE_OVER, MOUSE_OUT, it worked perfectly.

Can anyone explain why this is happening? Not just that the mouse seems to be a little delicate, even with the roll over listener called it isn't registering the event unless it hits a specific part of the movie clip enemy, which leads me to believe the movieclip is somehow built incorrectly? But even when testing the game with extreme settings (i.e. leaving the enemies on screen for a long time) the mouse clicks aren't registering still. Something is broken! Here is some of code inside the enemy movie clip, the problem lies on line 11:

[Code]...

View 6 Replies







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