Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




How Do I CreateEmptyMovieClip And Add It To And Accordion Child?



I create the empty movie clip and populate it with text a field(this is displays on the canvas). I then want to add this MC to a accordion child but I get a “Error opening URL "file:///H|/_level0.form_mc"” error message.


Code:
_root.createEmptyMovieClip("form_mc", 1);
form_mc.createTextField("firstName_txt", 1, 0, 0, 200, 20);
form_mc.firstName_txt.border = true;
form.firstName_txt.type = "input";

//myAcc being the accordion
import mx.transitions.easing.*;
myAcc.createChild(form_mc, "accformMC", {label:"Form MC"});
myAcc.setStyle("openEasing", Bounce.easeOut);
myAcc.setStyle("openDuration", 500);


I want to do this so I can build my accordion up from database information. am I going about this the right way? I’m only a week into action scripting and still very green so if anyone could point me in the right direction.

Thanks in advance.

Andrew the newbe



FlashKit > Flash Help > Flash ActionScript
Posted on: 11-21-2005, 06:25 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Accordion Child
I am putting a movie in an Accordion child that is just text but the child is cutting it off. How can I get the child to expand dynamically to fit the text?

Thank you.

Dave

Accordion Child
When I assign a Class to a movie clip, and then attach it to the Accordion. The problem is when I do this. Nothing shows up inside of the Accordion any more. I don't know why this happens. If I change nothing and just remove the Class to the movie clip, it works. Any suggestions.

Accordion Child
When I assign a Class to a movie clip, and then attach it to the Accordion. The problem is when I do this. Nothing shows up inside of the Accordion any more. I don't know why this happens. If I change nothing and just remove the Class to the movie clip, it works. Any suggestions.

Accordion Child Label
Hi,
I have a requirement in which i need to dynamically change the childlabel of accordion which has a flv playback inside each child node. I am unable to trace the child object of accordion.

Here is the code how i am dynamically adding the flvplayback to accordion.

var childobj:Object = acc_flv.createSegment("FLVPlayback", "childobj"+num);

Can somebody please help me out on this...
Thanks in advance.

Regards,
Sri Krishna Dasu.

Disabling Child In Accordion
how can i disable a child in a accordion component?

Tree As Class For Child Of Accordion
I am trying to import and use the Tree class as a child element of an accordion instance, but it is proving to be problematic. I was using the example found at http://www.design-nation.net/en/archives/000348.php as a reference.

Code:
import mx.controls.Tree
//reference to the accordion instance at '_root'
var a1 = _root.typeList;
//create children
a1.createChild( Tree, "therapist", {icon : "therapistHeading"} );

The error I am receiving is as follows:
Error opening URL "file:///C|/Documents%20and%20Settings/Owner/Desktop/accordianTest/[type Function]"

Please help, this is killin me. Thanks!

Accordion Component - Open At Certain Child
Hi all,

Two scenes...first scene has 4 buttons and based on what button is pushed, I want my movie to go to the next scene and a certain label. In the 2nd scene an accordion component is visible throughout. What I'm trying to figure out is....is it possible to force the accordion component to be open at a certain child (I think the term is child) as all I can seem to get it to do is be open at the first child by default.

So my script would be (in non script terms)...

If button 1, got to Scene two, label "one", open accordion at child 1
If button 2, got to Scene two, label "two", open accordion at child 2
If button 3, got to Scene two, label "three", open accordion at child 3

I've tried looking at "selectedChild" and "selectedIndex" but can't seem to figure out if they are what I would use?

Cheers,

Phil

Scrollbars For Accordion Child Items
Hi,

I'm trying to find a way to display scrollbars when the content within an accordion child (added with createChild in script) exceeds the default displayed height of the child item. The scrollbar would then allow vertical scrolling of the content within the expanded child item.

Does anybody have any ideas or components that can help?

Thanks!

Flex Accordion. No Child Selected
When i create a new Accordion object and add some items to it with a dataProvider The default selected Child is 0. And it's opened ... but i want all the children to be closed ... what can i do?

Tree As Class For Child Of Accordion
I am trying to import and use the Tree class as a child element of an accordion instance, but it is proving to be problematic. I was using the example found at http://www.design-nation.net/en/archives/000348.php as a reference.

Code:
import mx.controls.Tree
//reference to the accordion instance at '_root'
var a1 = _root.typeList;
//create children
a1.createChild( Tree, "therapist", {icon : "therapistHeading"} );
The error I am receiving is as follows:
Error opening URL "file:///C|/Documents%20and%20Settings/Owner/Desktop/accordianTest/[type Function]"

Please help, this is killin me. Thanks!

Trying To Add Listener To Accordion Child's Button
Hi all,

I'm taking my first shot at Flash Remoting using an Accordion to hold a
multi-page form. I've programmatically added labels, text inputs, and
buttons, successfully.

I have added a button to one of the children of the Accordion, but I'm
having trouble attaching an EventListener. I'm using the same method
that the Help section describes for a regular button component.

CODE :: Add button to Accordion child
--


ActionScript Code:
o=myAccordion.webservant.createChild("Button","addWebservant_btn",{label: "Add"});
o.move(5,155);
o.setSize(190,20);


--

CODE :: Attached EventListener to button
--


ActionScript Code:
addWebservantListener=new Object();
addWebservantListener.click=function () {
    trace("clicked add webservant");   
}
myAccordion.webservant.addWebservant_btn.addEventListener("click", addWebservantListener);


--


When I test the movie (CTRL-Enter), the trace function is not executed and I do not see any errors.

Any help would be greatly appreciated.

Thanks,
Andy

Oop Question: A Simple Way To Access Methods In Child Classes From Other Child Class
hi All, I have another oop question.

I'd like to call a method in a child class from another child class.
I'd like to do it without instantiating the other child class...
an example will be easier to see what I mean

document class

ActionScript Code:
package
{
    import flash.display.*
    public class Tester extends MovieClip
    {
        var ch1:Child1;
        var ch2:Child2;
       
        function Tester()
        {
            ch1 = new Child1();
            ch2 = new Child2();
        }
    }
}
child 1

ActionScript Code:
package
{
    class Child1 extends MovieClip
    {
        function Child1()
        {
            trace("Child1 is working");
        }
       
        public function hello()
        {
            trace("Child1 Hello function")
        }
    }
}
child 2

ActionScript Code:
package
{   import flash.display.*
    class Child2 extends MovieClip
    {
        function Child2()
        {
            trace("Child2 is working");
           
            //Tester.ch1.hello();
        }
    }
}

the commented line in Child2 is what I'm asking about. is there any way to do this without defining the Tester class in Child2?

... I mean, without saying : var tstr:Tester = new Tester(); in Child2... and then calling the function via tstr.hello();

thank in advance guys..

Stop FLV Playback In Child When Removing Child (or At Least Silence Audio)
I'm working on a flash site with a number of different "states" (home, features, demo, etc.) each of which is a movie clip with its own actionscript, added as a child when requested, removed when the user chooses a new state.

One of the states plays short FLV videos. The problem is, when switching away from that state to a different state, even though the child is removed, the current video apparently keeps playing as I can hear the audio continuing on.

To demonstrate, the site is here. Click on "Demo", then play one of the videos and switch to a different state (home, features, whatever) while the video plays.

I'm trying to call a function in the child to stop video playback (first checking whether the function exists before trying to call it). The checking part works, but the function call is giving me a "call to possibly undefined method" error when publishing. Probably because I'm calling it the wrong way.

Here's the "remove child" code used after switching to a new state:


Code:
var child:DisplayObject;

while(stateContainer.numChildren > 1)
{
child = stateContainer.getChildAt(0);
if ('stopPlayback' in child)
{
trace('exists');
child.stopPlayback();
}
else
{
trace('does not exist');
}

stateContainer.removeChildAt(0);
}
Can you tell me a better way to do this? I find it strange that it traces "exists" when the function exists, but still complains that child.stopPlayback() (might not) exist.

Variables Of A Child Not Visible To A Function In The Child Called From Its Parent ?
sorry, this is a repeat thread, but couldn't change the title on the old one, someone must know the solution to this problem, I just dont think i worded it correctly enough for someone who knew what i was talking about to notice last time.

Ive got a movieclip that creates and adds a child mc then calls a function in the new mc. the function runs, but the local vars for the new mc aren't visible to the function. Is there a special way to call a function so that its scope is in the child, not in the parent ? ( i assume thats where it is, even though a trace of this returns the correct object type )

ie:

[Parent Clip]
--[child clip: movGraph]
--variable ( var thegraph:MovieClip = this; )
--[function loadMe]
--(trace (theGraph); )

calling movGraph.loadMe spits out undefined or null object error, as opposed to
[object movGraph]

obviously i want to do a whole lot more than trace out the object type, and trace(this) in the function returns [object movGraph]. the variable "theGraph" declared in the child isn't available or its null somehow.

Can anyone tell me where I'm going wrong ? - any help would be appreciated. at the moment I'm having to add all the code in the function instead of the "root" of the child. which really defeats the point.

RemoveChild? I Want To Remove The Previous Child Before Adding A New Child
I tinkered with AS3 a few months back, but don't have ANY of the old scripts and can't remember much.

I'm calling a method to add a new MovieClip to the Stage from the library, I've got that setup and working but each new instance overlay's the old one and doesn't replace.

I clearly need to removeMovieClip() but that is an AS2 function not AS3?

removeChild returns an error:

**
TypeError: Error #2007: Parameter child must be non-null.
at flash.display:isplayObjectContainer/removeChild()
at LukeSturgeon/loadPage()
at LukeSturgeon/navButtonHandler()
**

my two key functions are:

**
/**
* loadPage method
*/
public function loadPage(page_str:String):void {
removeChild(page)
var page:MovieClip = getPage(page_str);
///
page.x = padding_left;
page.y = padding_top;
this.addChild(page);
}
/**
* getPage method
*/
private function getPage(page_str):MovieClip {
var new_page:MovieClip;
///
switch (page_str) {
case "Profile" :
new_page = new Profile();
break;
case "Contact" :
new_page = new Contact();
break;
default :
new_page = new Work();
}
return new_page;
}

this version (minus the removeChild line) is viewable at http://www.lukesturgeon.co.uk/as3

any thoughts? it's probably so simple!!!

Code Problem: Getting A Child Of A Child Using GetChildAt()
Hi Guys,

Need a bit of help here! I'll explain what my set up is first:

In my game, I have a number of level icons set up on the stage (movieclips), each with a padlock symbol on it (a child movieclip). All level icons are placed in a container movieclip call 'container'.

Here's what I'm trying to do:

hide the padlocks on selected level icons from within my code.

To do this, I'm cycling through the children of the container movieclip to get at each level icon as follows:


Code:
for (var n=0; n<container.numChildren; n++) {
var displayItem:DisplayObject = container.getChildAt(n);
//etc.
}


That bit works nicely - I can get at each of the level icons which is now called 'displayItem'.

But now, I want to get at the child of 'displayItem' (ie the padlock, so I can hide it. I was thinking:


Code:
var child:DisplayObject = displayItem.getchildAt(0);


would do it, but I get a 'call to undefined method getChildAt through a reference with static type' error.

This seems to be telling me that 'displayItem' doesn't have that particular method associated with it.

With that attempt failed, I tried instead adding the padlocks to the level icons from within the code:


Code:
for (var n=0; n<container.numChildren; n++) {
var displayItem:DisplayObject = container.getChildAt(n);

var padlock:padlock_mc = new padlock_mc();
container.displayItem.addChild(padlock);
}


.... but that gives the same error. There's something about the display item retrieved from getChildAt that won't let me get at it's methods/properties.

I then tried converting the type from DisplayObejct to MovieClip:


Code:
container.(displayItem as MovieClip).addChild(padlock);


but that threw a 'filter operator not supported' error.


Any ideas how I should be going about this?

Cheers.

Remove Child After Adding Child Issue
OK so here goes. I was helped extremely before on my problem but while testing and checking output window I get the following error:

TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/removeChild()
at final2fla_fla::MainTimeline/reportDownCdRomClick()

This only happens when I click on the reportDownCdRomClick button (button2) not on the other. This is what I am working with:












Attach Code

//variables for buttons
var myLeftRequest:URLRequest;
var myRightRequest:URLRequest;
var myLeftLoader:Loader;
var myRightLoader:Loader;
var myCdRomRequest:URLRequest;
var myCdRomLoader:Loader;


//Web Button Listeners
webwork_mc.addEventListener(MouseEvent.CLICK,reportDownWebClick);
cdrom_mc.addEventListener(MouseEvent.CLICK, reportDownCdRomClick);
//photo_mc.addEventListener(MouseEvent.MOUSE_DOWN, reportDownPhotoClick);
//design_mc.addEventListener(MouseEvent.MOUSE_DOWN, reportDownDesignClick);

//Function for web button

//button one
function reportDownWebClick(myevent:MouseEvent):void {
myLeftRequest = new URLRequest("left-content.swf");
myRightRequest = new URLRequest("right-content.swf");
myLeftLoader= new Loader();
myRightLoader = new Loader();
myLeftLoader.x=70;
myLeftLoader.y=168;
myRightLoader.x=460;
myRightLoader.y=168;
myLeftLoader.load(myLeftRequest);
myRightLoader.load(myRightRequest);
addChild(myLeftLoader);
addChild(myRightLoader);
removeChild(myCdRomLoader);
webwork_mc.removeEventListener(MouseEvent.CLICK, reportDownWebClick);
cdrom_mc.addEventListener(MouseEvent.CLICK,reportDownCdRomClick);
}

//button two

function reportDownCdRomClick(myevent:MouseEvent):void {
myCdRomRequest = new URLRequest("XML2.swf");
myCdRomLoader = new Loader();
myCdRomLoader.load(myCdRomRequest);
myCdRomLoader.y = 140;
addChild(myCdRomLoader);
removeChild(myLeftLoader);
removeChild(myRightLoader);
webwork_mc.addEventListener(MouseEvent.CLICK,reportDownWebClick);
cdrom_mc.removeEventListener(MouseEvent.CLICK, reportDownCdRomClick);
}

Child Swf Load New Child Swf Inot Parent Swf
ok you're all going to think i'm super dense

but i'm also super stressed and fast approaching a deadline

can someone please tell me the simplest way to load a child swf into a parent swf from another child swf

eg. what code do i apply to the button?

i am loading into a container.mc (blank) in the parent swf

Child Swf Load New Child Swf Inot Parent Swf
ok you're all going to think i'm super dense

but i'm also super stressed and fast approaching a deadline

can someone please tell me the simplest way to load a child swf into a parent swf from another child swf

eg. what code do i apply to the button?

i am loading into a container.mc (blank) in the parent swf

Event Triggered From Child's Child
I've searched and search and apparently I'm missing something. I have a function in the main timeline but I want it to trigger from a grandchild event.

Basically I have a loader in the main timeline loading in external SWFs but I can't get them to trigger an event on the main timeline.

Main Timeline

ActionScript Code:
movieClip_mc.addEventListener(Event.COMPLETE, bounceM);
   
function bounceM(event:Event):void
{
    movieClip_mc.y -= 1;
}

Code in child of child


ActionScript Code:
this.parent.parent.movieClip_mc.play();

I only have like 10 good days of AS3 experience and thought I was good but can't get simple paths correct because nothing is happening. I've done tried traces in the child SWF and those don't work, either.

Removing A Child Inside A Child
I have a main swf file that loads and external swf file which loads an additional external swf file. I am using the addChild method to load these swf files. I am able to get the first child to unload using

function goMain(event:MouseEvent):void
{
this.parent.parent.removeChild(this.parent);
}

but I am having trouble getting the child swf inside of the first child swf to unload. Does any one know how to solve this problem. I tried

function goMain(event:MouseEvent):void
{
this.parent.parent.parent.parent.removeChild(this. parent);
}

but it does not work.

Reaching Property Of A Child From Another Child
I am banging my head with this problem. I am fairly new at this and this is my first code that is Object Oriented with ActionScript.

My documentclass Main calls two functions which instantiates two customclasses:


Code:
function addMenuBar():void {
var menuBar:customMenuBar = new customMenuBar();
addChild(menuBar);
menuBar.setYpos(80);
}

public function addContentArea():void {
var ContentArea:contentArea = new contentArea();
addChild(ContentArea);
ContentArea.SetPos((stage.stageWidth / 2),(stage.stageHeight / 1.5));
ContentArea.SetColor(0xFF0000, 0.5);
}
Offcourse these are a menubar with 4 buttons and a sprite marking the content area.


the menuBar code:

Code:
package {
import flash.display.Sprite;
import flash.display.MovieClip;
import flash.events.MouseEvent;
import fl.motion.Color;
import flash.geom.ColorTransform;
import flash.filters.*;
/*import contentArea.**/

public class customMenuBar extends MovieClip {

public var menuBarY:Number;

public function customMenuBar() {
init();
}
public function init():void {



//Instansiate the menu buttons
var zlapshot:BarBtnLL = new BarBtnLL();
addChild(zlapshot);
zlapshot.name = "zlapshot";
zlapshot.x = (167.4-7.4);
zlapshot.y = menuBarY;
trace(zlapshot);
trace(zlapshot.name);



var busPart:BarBtnL = new BarBtnL ();
addChild(busPart);
busPart.name = "busPart";
busPart.x = (327.5-7.4);
busPart.y = menuBarY;

var news:BarBtnR = new BarBtnR ();
addChild(news);
news.name = "news";
news.x = (487.8-7.4);
news.y = menuBarY;

var contact:BarBtnRR = new BarBtnRR ();
addChild(contact);
contact.name = "contact";
contact.x = (647.6-7.4);
contact.y = menuBarY;

//Instansiate the menu border
var menuBarBorder:MenuBarBorder = new MenuBarBorder();
addChild(menuBarBorder);
menuBarBorder.x = (407.4-7.4);
menuBarBorder.y = menuBarY;

// create the array to hold all the names of the buttons
var myButtonsArray:Array = new Array(["zlapshot"],["busPart"],["news"], ["contact"]);

//Eventlisteners for the buttons
for (var i:Number = 0; i< myButtonsArray.length; i++) {
getChildByName(myButtonsArray[i]).addEventListener(MouseEvent.CLICK, clickMenu);
getChildByName(myButtonsArray[i]).addEventListener(MouseEvent.MOUSE_OVER, onOver);
getChildByName(myButtonsArray[i]).addEventListener(MouseEvent.MOUSE_OUT, onOut);
getChildByName(myButtonsArray[i]).addEventListener(MouseEvent.MOUSE_UP, onUp);
}
//Set button modes
zlapshot.buttonMode = true;
busPart.buttonMode = true;
news.buttonMode = true;
contact.buttonMode = true;

//Declare the variable that will hold the name of the last button clicked
var buttonClicked:String;

// Function for dimming the menubuttons upp and down
function alphaDown(arg:MovieClip):void {
arg.alpha = 0.5;
trace("Alpha down arg: " + arg);
}

var count:Number = myButtonsArray.length;
function alphaUp(exc:MovieClip):void {
for (var i:Number = 0; i<count; i++) {
if (exc !== getChildByName(myButtonsArray[i])) {
getChildByName(myButtonsArray[i]).alpha = 1.0;
}
}
}
function clickMenu(event:MouseEvent):void {
buttonClicked = event.target.name;
alphaDown(event.target);
//trace (ContentArea.x);



}
function onOver(event:MouseEvent):void {
if (buttonClicked != event.target.name) {
event.target.alpha = .7;
trace(event.target + " + " + event.target.name);
}
}
function onOut(event:MouseEvent):void {
if (buttonClicked == event.target.name) {
event.target.alpha = 0.5;
} else {
event.target.alpha = 1.0;
}
}
function onUp(event:MouseEvent):void {
alphaUp(event.target);
}
}
public function setYpos(valueY):void {
this.y = valueY;

}
}
}
The problem I have is to reach the contentAre instance ContentArea from within the clickMenu function. I want to change the color of the content area on the first click on one of the menubuttons.

If I "uncomment" the line ://trace (ContentArea.x); in the clickMenu function i get the "1046: Type was not found or was not a compile-time constant: DisplayObject." error.

Can someone help me in the right direction, I would be very thankfull.

/Christian

I Am Adding A Child To The Stage, Adding An Event Listener To The Child. I Then Want
I'm trying to do something that seems like it should be really simple to do.

I am adding a child to the stage, adding an event listener to the child. I then want to remove the child from within the event listener.


ActionScript Code:
var newClip:NewClip = new NewClip();

addChild(newClip);

newClip.addEventListener(Event.ENTER_FRAME, newClipListener);

public function newClipListener(event:Event) {
    trace("test");
}


I've tried quite a few things and nothing seems to work. The only method I know that works looks like this, but it's stupid and cumbersome and i'm sure there is a better way


ActionScript Code:
var newClip:NewClip = new NewClip();

addChild(newClip);

newClipArray.push(newClip);

newClip.myID = newClipArray.length-1;


newClip.addEventListener(Event.ENTER_FRAME, newClipListener);


public function newClipListener(event:Event) {

    removeChild(newClipArray[event.target.myID]);
   
}

A Child Swf Telling Another Child Swf To Do Something
Is this possible and if so how?

I have a child swf with a button. When I click on a button, it tells the parent swf to do 2 things:

Code:
on (release) {
with (_root) {
gotoAndStop("Act2");
}
with (_root.navigation) {
gotoAndStop("DHK");
}
}
Now this works. By the way this child swf is on the MC, “content2”. And when you click on this button, “content2” replaces this child swf with another child swf.

Can the first child swf tell the second swf to “gotoAndStop(3)”? Is this possible while keeping the above code working?

(hope this makes sense)

Accordion And XML
Hi everyone

Just started playing with the 2004 components. I have one question: Does anyone know how or know of any tutorials on building a dynamic menu using the accordion component with XML data?

Accordion And XML
Can anyone give advice on how to populate an accordion with an XML datasource? I tried the xml connector, but with no success. Please help...

Accordion
How do I manipulate the accordion component to load an external movie depending on which tab the user click?

Accordion Help
I had a couple of quick questions about the accordion component. First off is there any way to make the background transparent, this isn't a big deal as its easy enough to work around. Secondly for some reason my fontFamily (which I'm trying to set to "Univers") and fontSize (which I tried to set to "16") didn't work but color and all of the other parameters I set did. And lastly for some reason, whenver I try to change the headerHeight only the last button displays.

Any help would be appreciated...Thanks

Accordion Help
Hi Adobians,
I am Having a problem in changing the Accordian Header's Font color & Size, Is it possible to Change the color & Font of Accordian.

Accordion For AS 3.0?
Hi --

I am eagerly searching for an ActionScript 3.0 compatible Accordion
component to create a menu with. If anyone knows of one or has one (for
sale, for free, whatever!) please let me know!

Thanks

Rich

Accordion
Hello friends,


need you to point me in th e right direction in making accordion. dont want to use flash component because of heavy size.

Accordion
How do i use the Accordian Function in Flash. Or how can i create an accordion like menu. The Documentation online and offline doesnt help at all. Does someone out here know how to use this...
I am going mad

HALP!

gibber gibber

Accordion Behavior
Accordion Behavior
I have an accordion with buttons on different moviclips. These buttons have behaviors attached to them to go to a certain frame in a seperate movieclip. When I select (change) a different menu in the accordion I want the playhead to go to frame 0 of that specific movieclip. I use the following behavior attache to the accordion:

on (change) {

//Movieclip GotoAndStop Behavior
_root.condition.gotoAndStop("0");
//End Behavior

}

But it is not working. What am I doing wrong? Does the accordion need a listener? How do I do that? Please help!

Accordion Issues
Hello all,

Is it possible to have my accordion component, which has multiple dropdowns, start out with all of the dropdowns closed instead of defaulting to the first one open?

If so, can one one help me out.

Thanks-xcaliber

What Happened To Accordion?
Do you have any idea, what might have caused this? It only displays a small part of the first child. It was working without a problem and a second later, screwed up. I even removed the accordion and created another but the result is the same.

Accordion Rotation
when i rotate one accordion the text of the labels disappear. exist some way to make appear the labels?

thanks!

Accordion Component Help
Hello everyone,
I'm trying to figure out how to load external .swfs into the accordion component. Does anyone know how?

Right now, I"m simply setting the child symbols to:

green_mc
brown_mc
blue_mc

I tried substituting green_mc with green.swf but that made the entire component stop working. If anyone can help me with loading external swfs into this component I would really appreciate it.

I'm using Flash MX 2004 Pro.

Thanks!

Accordion Problem
Hi;
I have a fla file with one accordion and that accordion i have 3 movie clip and each movieclip have their own instance name and each movie clip have a input text and one of my movieclip i have a submit button but my problem is when there's a invalid input in their input box how can I go back to that childnames or pane?i'm using Selection.setFocus everytime there's a error in input text but no effect?

Note :
ChildLabels:Login Information;Personal Information;Load Bets
ChildNames:login_mc;personal_mc;loadbets_mc
ChildSymbols: login_mc;personal_mc;loadbets_mc
Selection.setFocus("myaccordion_acc.loadbets_mc.ca rdpin_txt")


Thank you in advance..

Skinning Accordion
I was wondering if there is any way to use multiple headers for the accordion object, for example having a red button for one child element and a blue one for another. I tried using a reference like [0]trueUpSkin = "redButton" but found out that that was wrong because it ended up loading the last header I defined for all of the children.

$50 follow up question...why does the size of my header change between the Up and Over states, is this the default for the accordion and if so how do I change it, I looked for the accordion class in the mx folder but couldn't find it.

Thanks

Accordion Panel Pro V1 / V2
Hi

I just bought the Accordion Panel Pro 1 & 2 from jumpeye. It seems to work really well but I can't figure out how to get my movies to start after the panel has been opened. They just start on load up so are finished by time you open the panel.

If any of you guys could help I would be really grateful.

Thanks

Accordion Component
I'm trying to add more pages to an accordion component. When I get to the forth pages the content from the forth page appears on all the pages. IS there something I'm doing wrong or is iot that you can;t add more than three pages to an accordian component.

Accordion Menu Pro V1
help!!! need example code to load external swf 's using just purchashed accordion menu pro v1. Also how to make menu with 5 title bars with 5 sub menus under each one. Each sub menu button selects and loads a differant external swf or jpg. I want the menus to unfold the way they do at the jumpeye website here http://store.jumpeye.com/accmenu/index.html. Need specifics on how to do it ?

Accordion Menu Pro V1
help!!! need example code to load external swf 's using just purchashed accordion menu pro v1. Also how to make menu with 5 title bars with 5 sub menus under each one. Each sub menu button selects and loads a differant external swf or jpg. I want the menus to unfold the way they do at the jumpeye website here http://store.jumpeye.com/accmenu/index.html. Need specifics on how to do it ?

Accordion Component
Hello,

Does anyone know if there is anyway to have to menus open at the same time?


Thanks.

Help With Accordion Component
Hi,

I am having touble with this and would appreciate it so much if any body can suggest anything.

I am using accordion component in Flash 8. The accordion contains 4 forms, my submit button is on form4 and it's going to validate some data in form1 and form2...etc

do I have to mention where the validate info is? For example


Code:
on(click)
with(_parent){
form1.name.text = something;
}
}
Thank you

Has Anybody Ever Used The Accordion Component?
The way an Accordion component currently functions is, when a user clicks on a segment it slides to display the content.

I would like it to slide and display the content when the user rolls over a segment, but I can't figure out how to detect the index of the segment that the user rolls over.

Also I can't figure out how to align the labels right and change the text to white. My code is below, please help.


import mx.containers.Accordion;

//skinning the segments
Accordion.prototype.falseUpSkin = "falseUpSkin";
Accordion.prototype.falseDownSkin = "falseDownSkin";
Accordion.prototype.falseOverSkin = "falseOverSkin";
Accordion.prototype.falseDisabledSkin = "falseDisabledSkin";
Accordion.prototype.trueDownSkin = "trueDownSkin";
Accordion.prototype.trueUpSkin = "trueUpSkin";
Accordion.prototype.trueOverSkin = "trueOverSkin";
Accordion.prototype.trueDisabledSkin = "trueDisabledSkin";

//creating the segments
var s1 = mainAccordian.createSegment("content1", "s1", "label1");
var s2 = mainAccordian.createSegment("content1", "s2", "label2");
var s3 = mainAccordian.createSegment("content1", "s3", "label3");
var s4 = mainAccordian.createSegment("content1", "s4", "label4");
var s5 = mainAccordian.createSegment("content1", "s5", "label5");
var s6 = mainAccordian.createSegment("content1", "s6", "label6");
var s7 = mainAccordian.createSegment("content1", "s7", "label7");

setAccordionStyle(mainAccordian);

// can't detect when the user rolls over a segment or get the index
// of that segment
s1.onRollOver = function() {

// this only seems to detect when the user rolls over the
// content of the selectedIndex

};

//aligning the text right and changing the font color to white doesn't work
function setAccordionStyle(accordion) {
accordion.setStyle("headerHeight", 31);
accordion.setStyle("fontFamily", "Verdana");
accordion.setStyle("textAlign", "right");
_global.styles.AccordionHeader.setStyle("fontColor ", "white");
_global.styles.AccordionHeader.setStyle("fontSize" , 12);
}

[F8] XMLConnector And The Accordion
has anyone used the XMLConnector to populate an accordion component, can it be done?

rat

[F8] Accordion Menu Help
Hi everyone please look at the following file to help me fix this horizontal accordion menu:
accordion_test.fla

When you first play the movie without rolling the mouse over any of the squares the starting position of all three squares is good. But when you start rolling the mouse over not everything is perfect.

I need help perfecting this please.

If you place the mouse to the right edge of the purple square before touching the blue square it actually opens up the blue square.. I think this is because of the invisible button that is on the blue square over lapping the purple. The same thing happens for the green square when putting the cursor close to the left edge inside the green it triggers the blue to open.

If you roll over and out just on the blue square several times it changes to two different positions. I just want the squares to go back to starting position when rolled out..

I hope this makes sense!

Please can someone advise me on how to get this working?!

Accordion Menus
has anyone seen any free accordion styled menu? been searching all morning with no results...

Copyright © 2005-08 www.BigResource.com, All rights reserved