Re: [Flashcoders] referencing my main movieclip in a movie clip that is above(i think)

2006-03-22 Thread Roman Blöth

Jose Maria Barros schrieb:

Hello Roman.

I tried this in my swf B:

this._parent.animBotoes_mc.gotoAndStop(link);

but...it doesnt work...
so is animBotoes_mc the parent? Then you can't write it like above, 
since animBotoes_mc does not contain animBotoes_mc, I assume...



Regards,
Roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] referencing my main movieclip in a movie clip that is above(i think)

2006-03-22 Thread Jose Maria Barros
I have A.swf that have a movieclip instance named animBotoes_mc in the
root. Inside this instace i have two things: the variable myvar , and the
empty movieclip that haves the B.swf.

I want to access from B.swf the variable myvar..

Sorry if i didnt make you understand..

On 3/22/06, Roman Blöth [EMAIL PROTECTED] wrote:

 Jose Maria Barros schrieb:
  Hello Roman.
 
  I tried this in my swf B:
 
  this._parent.animBotoes_mc.gotoAndStop(link);
 
  but...it doesnt work...
 so is animBotoes_mc the parent? Then you can't write it like above,
 since animBotoes_mc does not contain animBotoes_mc, I assume...


 Regards,
 Roman.

 --

 ---
 gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
 t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
 ---

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] referencing my main movieclip in a movie clip that is above(i think)

2006-03-22 Thread Jose Maria Barros
Ok...i've found it...and happy i did..but it was so basic...
Roman, thanks for your help.

Here it is what i wanted:

this._parent.gotoAndStop(this._parent.link);




On 3/22/06, Jose Maria Barros [EMAIL PROTECTED] wrote:

 I have A.swf that have a movieclip instance named animBotoes_mc in the
 root. Inside this instace i have two things: the variable myvar , and the
 empty movieclip that haves the B.swf.

 I want to access from B.swf the variable myvar..

 Sorry if i didnt make you understand..


 On 3/22/06, Roman Blöth [EMAIL PROTECTED]  wrote:
 
  Jose Maria Barros schrieb:
   Hello Roman.
  
   I tried this in my swf B:
  
   this._parent.animBotoes_mc.gotoAndStop(link);
  
   but...it doesnt work...
  so is animBotoes_mc the parent? Then you can't write it like above,
  since animBotoes_mc does not contain animBotoes_mc, I assume...
 
 
  Regards,
  Roman.
 
  --
 
  ---
  gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
  t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
  ---
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] referencing my main movieclip in a movie clip that is above(i think)

2006-03-21 Thread Jose Maria Barros
Hi...i know that is a newbie question, but..here it goes:

I have a swf A. When i press a button in it, i load an external swf B into
swf A.

When i click a button in swf A , i wanted to swf B reach a variable that is
in an movieclip that is in swf A.


I tried this in the end of the main timeline of swf B:

_level0.movieclip_in_A.myvar;

So, _level0 is supposed to be the main swf A and movieclip_in_A is the movie
clip inside the main swf, that have nested a variable called myvar.

Im wrong?

Oh and the swf B is loaded in a empty movieclip.


Thanks in advance.


 this doesnt work..
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] referencing my main movieclip in a movie clip that is above(i think)

2006-03-21 Thread Roman Blöth

Jose Maria Barros schrieb:

Hi...i know that is a newbie question, but..here it goes:

I have a swf A. When i press a button in it, i load an external swf B into
swf A.

When i click a button in swf A , i wanted to swf B reach a variable that is
in an movieclip that is in swf A.


I tried this in the end of the main timeline of swf B:

_level0.movieclip_in_A.myvar;

So, _level0 is supposed to be the main swf A and movieclip_in_A is the movie
clip inside the main swf, that have nested a variable called myvar.

Im wrong?
Anyway this is bad style: If _root/_level0 changes, then your code will 
cease working as expected. You can evade this situation by simply 
referencing the other way round:


In the timeline of clipB write:

   this._parent.myvar


Regards,
Roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] referencing my main movieclip in a movie clip that is above(i think)

2006-03-21 Thread Jose Maria Barros
Hello Roman.

I tried this in my swf B:

this._parent.animBotoes_mc.gotoAndStop(link);

but...it doesnt work...



On 3/21/06, Roman Blöth [EMAIL PROTECTED] wrote:

 Jose Maria Barros schrieb:
  Hi...i know that is a newbie question, but..here it goes:
 
  I have a swf A. When i press a button in it, i load an external swf B
 into
  swf A.
 
  When i click a button in swf A , i wanted to swf B reach a variable that
 is
  in an movieclip that is in swf A.
 
 
  I tried this in the end of the main timeline of swf B:
 
  _level0.movieclip_in_A.myvar;
 
  So, _level0 is supposed to be the main swf A and movieclip_in_A is the
 movie
  clip inside the main swf, that have nested a variable called myvar.
 
  Im wrong?
 Anyway this is bad style: If _root/_level0 changes, then your code will
 cease working as expected. You can evade this situation by simply
 referencing the other way round:

 In the timeline of clipB write:

 this._parent.myvar


 Regards,
 Roman.

 --

 ---
 gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
 t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
 ---

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com