RE: [Flashcoders] Controlling Accordion using ActionScript

2006-03-29 Thread Peter DeHaan
Mike,

You can use either accordionInstance.getChildAt(index) to get an child
at a specific index, or accordionInstance.selectedChild to get the
currently selected child. Both methods should return a reference to a
movie clip within the accordion.

http://livedocs.macromedia.com/flash/8/main/3088.html
http://livedocs.macromedia.com/flash/8/main/3091.html 

Regards,

Peter deHaan
Adobe Systems Incorporated


On 3/29/06, Mike Anderson [EMAIL PROTECTED] wrote:

 Okay, I am an idiot :)

 selectedIndex - duh!

 For some reason, I was looking for something specific, therefore
 overlooking the obvious.

 Still, how to address a MovieClip that has been instantiated by the
 Accordion Control continues to evade me.  It must be some type of
 child property, but I am still skimming the help docs for the
answer.

 If anybody has a quick answer on this, I'd greatly appreciate it.

 Thanks!

 Mike


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Mike
 Anderson
 Sent: Wednesday, March 29, 2006 2:42 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Controlling Accordion using ActionScript

 Hello All,

 I literally read ALL the posts in the Archives regarding the Accordion
 component, and there was no mention of what I need.

 It seems as if the Accordion is only setup to broadcast certain
events,
 when the Accordion itself is actually clicked on.

 My goal is to remotely control my Accordion control, so that there are
 multiple ways to cause the Sliding Animation.  I have a top MenuBar,
in
 which I want options available, to cause the Accordion Control to
 animate to the proper Child.

 Am I missing something, or is the Accordion simply not designed for
 this?

 Also, how can I communicate with MovieClips contained within the
 Accordion Children?  It seems as if the Accordion Control is acting as
a
 Container - so must I first create a variable that refers to the
 Contents of the Accordion, before I can communicate with the
Children's
 components?  There is no reference to this topic either.

 Kind of like the Window Control - myWindow.content.controls?

 Thanks in advance for all your help,

 Mike

 ___
 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




--
-
Lanny McNie
___
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] Controlling Accordion using ActionScript

2006-03-29 Thread Mike Anderson
Sorry guys, I am totally brain dead today - 

It's so weird, how you get accustom to specific syntax for some V2
controls, and when working with a different one, you expect some type of
consistency - and you get so focused looking for something, that you
flat out overlook the answer.

Sorry to post these questions to the list - if I read the Help Docs
without having my blinders on, I would have found the answer.  In fact,
I did find the answers on my own, shortly after posting my last reply to
the list.

I must say though, after reading every single thread regarding the
Accordion Control, it has plenty of limitations, and has caused many
people lots of headaches.

Thank you again everybody, I am always grateful for your advice.

Mike :)


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lanny
McNie
Sent: Wednesday, March 29, 2006 3:54 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Controlling Accordion using ActionScript

var mc = accordionInstance.getChildAt( index ) ?

On 3/29/06, Mike Anderson [EMAIL PROTECTED] wrote:

 Okay, I am an idiot :)

 selectedIndex - duh!

 For some reason, I was looking for something specific, therefore 
 overlooking the obvious.

 Still, how to address a MovieClip that has been instantiated by the 
 Accordion Control continues to evade me.  It must be some type of 
 child property, but I am still skimming the help docs for the
answer.

 If anybody has a quick answer on this, I'd greatly appreciate it.

 Thanks!

 Mike


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Mike 
 Anderson
 Sent: Wednesday, March 29, 2006 2:42 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Controlling Accordion using ActionScript

 Hello All,

 I literally read ALL the posts in the Archives regarding the Accordion

 component, and there was no mention of what I need.

 It seems as if the Accordion is only setup to broadcast certain 
 events, when the Accordion itself is actually clicked on.

 My goal is to remotely control my Accordion control, so that there are

 multiple ways to cause the Sliding Animation.  I have a top MenuBar, 
 in which I want options available, to cause the Accordion Control to 
 animate to the proper Child.

 Am I missing something, or is the Accordion simply not designed for 
 this?

 Also, how can I communicate with MovieClips contained within the 
 Accordion Children?  It seems as if the Accordion Control is acting as

 a Container - so must I first create a variable that refers to the 
 Contents of the Accordion, before I can communicate with the 
 Children's components?  There is no reference to this topic either.

 Kind of like the Window Control - myWindow.content.controls?

 Thanks in advance for all your help,

 Mike

 ___
 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




--
-
Lanny McNie
___
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