HZGN.COM
welcome to my space
X
Welcome to:hzgn.com
Search:  
Feng Shui | Graphic Design | Cosmetics | Causes and Organizations | Regulatory Compliance | Gadgets and Gizmos | Computer Forensics | Tools and Equipment | Related articles
NAVIGATION: Home >>
_parent problem
Published by: webmaster 2008-11-26

Hi guys,

Simple Program Huge Problem::
7 posts - 3 authors - Last post: Nov 5You'll notice that the _parent attribute of the first-level child That makes me far more inclined to try to replicate the problem and
http://www.perlmonks.org/?node_id=721851
HOME

_parent problem.

First I make a emptyMovieClip for using it as an container for my buttons.
Then I attach the movieClip from the library to the container.. Everything good so far.
But now I have 5 buttons. They all have a different intance names.
If I click one of the buttons it have to make that one active and at the same time it have to see that the other ones are inactive (I thought with parent). But you can't _parent in a attached MovieClip....

I hope that you understand what I am trying to explane.
I attached the test fla. Maybe that makes things more clear. And here is the code.
function makeContainer(container, newX, newY) {
var container:MovieClip = this.createEmptyMovieClip(container, this.getNextHighestDepth());
container._x = newX;
container._y = newY;
}
//
makeContainer("XContainer", 112, 35);
//
blaArray = new Array("square1", "square2", "square3", "square4", "square5");
//

XContainer.nextButtonX = 0;
for (i=0; i<=blaArray.length; i++) {
Text 3d space menu Actionscript Problem - FlashDen::
3 posts - 2 authors_parent.z;" The only problem is that he is deactivating each button once you click on it so you can't click on it again after that.
http://www.flashden.net/forums/thread/text-3d-space-menu-actionscript-problem/7436?page=1
HOME
Fullscreen problem - $5 Script Archive Community Forum::
3 posts - Last post: Aug 31, 2007Fullscreen problem YouTube Video Applet. Reload this Page Fullscreen problem var title_ = _parent._parent.movie.getTitle();
http://forum.tufat.com/showthread.php?t=40349
HOME
movieNaam = blaArray[i-1];
button = this.XContainer.attachMovie("mc_square", movieNaam, this.XContainer.buttonCounter);
button._x = this.XContainer.nextButtonX;
this.XContainer.nextButtonX += button._width;
this.XContainer.buttonCounter = i;
//
button.iAmDeactive = function() {
trace(this+" = deactive");
};
//button actions
button.onRollOver = function() {
this._alpha = 80;
};
button.onRollOut = function() {
this._alpha = 100;
};
button.onPress = function() {
this._alpha = 50;
this.active == true;
//trace(this+" = active");
//Here it should give the function to the other "non"active button
if (!_parent.active) {
_parent.iAmDeactive();
}

};
button.onRelease = function() {
this._alpha = 100;
};

}


Thanks in advance,
20rr0 :bandit:


Red Hat's Rough Recovery From CFO Exit
Windows Live Finds a New, Pre-installed Home

PRINT Add to favorites

#If you have any other info about this subject , Please add it free.#
Your name:
E-mail:
Telphone:

Your comments:


If you have any other info about _parent problem , Please add it free.
About us |Contact us |Advertisement |Site map |Exchange links
Copyright© 2008hzgn.com All Rights Reserved