Knowledge Base |
Accordion Panel V3
(views: 14895)
Accordion Panel V3 is a professional accordion component that loads movies and movieclips and supports both horizontal and vertical orientation, it supports customized tweens, states and visual styles. Here are all known issues for Accordion Panel V3. If you have any questions that you think we should discuss here please let us know.
Auto open a panel on startup
(2008-02-12 - views: 4851)
Q: How can I open a panel when the swf is loaded?
A: You can do this using the expand(id) method of the component. The example here, shows how to transmit such an index from the HTML page, using FlashVars, and open the specified panel after the component has finished initializing. This happens right after the component dispatches the onDrawComplete event and the expand method should be called half a second later.
Files: AccPanel_AutoExpandOnStart.zip
Files: AccPanel_AutoExpandOnStart.zip
User Comments
You can use loadMovie()
posted by negush on 2008-04-17
If you load a .swf file containing an accordion panel, you can access it inside the container clip and call directly the component's expand method to expand the panel you want.
Example?
Thanks!
posted by janericster on 2008-04-17
OK -- since I know nothing about scripting, can you give us an example of what to do? If we have the panel showing 6 external JPGs and want the first one to automatically open, what code do we use, and where does it go?Thanks!
Example? Please?
Thanks.
posted by janericster on 2008-04-28
Would really like to see example for the coding required to do this (for a simple loaded SWF within another SWF). Again, I'm not good with AS so need all the help possible and have no idea how to edit the HTML/FlashVars sample to make it work with a loaded MC.Thanks.
Example for loadMovie
posted by negush on 2008-04-30
We have a knowledge base item that shows you how to access the accordion panel from a .swf file loaded with loadMovie() inside a container clip: http://www.jumpeyecomponents.com/knowledgebase/Accordion-Panel-V3/Access-accordion-panel-loaded-with-loadMovie-inside-container-clip~621/.
Re: Auto open a panel on startup
Secondly, actionscript commenting in examples should be written, not for those fluent in actionscript, but for those who might need the layman's guidance. For example, no where in the commenting did it state: "Change this value to "xxxx" to auto open the first panel", or anything like that. Since the example isn't working for me, it's hard to know what needs to be changed.
Don't get me wrong, I'm not angry, but would like to be able to find the answers in the examples or the knowledge base provided. Can anyone help me with this?
Thank you!
posted by BriRedd on 2008-08-25
I don't know about anyone else, but the "Auto Open Panel On Startup" example I downloaded from here doesn't work. When I preview it in Flash, none of the panels were open. As if the actionscript wasn't there.Secondly, actionscript commenting in examples should be written, not for those fluent in actionscript, but for those who might need the layman's guidance. For example, no where in the commenting did it state: "Change this value to "xxxx" to auto open the first panel", or anything like that. Since the example isn't working for me, it's hard to know what needs to be changed.
Don't get me wrong, I'm not angry, but would like to be able to find the answers in the examples or the knowledge base provided. Can anyone help me with this?
Thank you!
Re: Auto open a panel on startup
Also, you would have to replace the trial version component with the full version one, otherwise the page won't work in the browser. This example is only so you can see how to set up the component and write the ActionScript and HTML code to open the menu item automatically.
posted by negush on 2008-08-26
Sorry if the example seems too advanced for you. We tried to explain it the best we could. The panels do not open automatically when tested in Flash because the id of the panel that should open is received through FlashVars from the HTML page. So you should test this with the HTML page.Also, you would have to replace the trial version component with the full version one, otherwise the page won't work in the browser. This example is only so you can see how to set up the component and write the ActionScript and HTML code to open the menu item automatically.
Re: Auto open a panel on startup
Once you said the FlashVars are in the HTML, it all became clear. My bad! Love the component!
Thanks again!!
posted by BriRedd on 2008-08-26
Thank you for your swift help!Once you said the FlashVars are in the HTML, it all became clear. My bad! Love the component!
Thanks again!!
Auto open first panel on startup
thank
posted by rahulkumar12334 on 2008-08-27
hello sir, i am facing some problem, actually i want when start file which have accordion v3, automatic open my first panel,thank
Comments modified
I hope this clears up some things for you :)
posted by negush on 2008-08-28
Just added a comment in the .fla file saying that the panel that opens in the beginning is actually declared in the HTML file and passed through FlashVars to the Flash clip.I hope this clears up some things for you :)
Auto open first panel on startup
posted by Charlmagne on 2008-09-04
I just wanted open the first panel on startup. I downloaded the AccPanel_AutoExpandOnStart.zip but i could not get anything for my issue. Also the your solution is advanced and using html and setInterval. I creating an interactive cd so i can't use HTML. Please answer, thanks!
Auto open first panel on startup
posted by negush on 2008-09-05
The idea is that the panels open using code (the component's expand(itemId) or click(itemId) methods). When using HTML, that item id is passed from the html page, through FlashVars. In case of a stand-alone Flash clip you can directly specify the id of the panel like this: accordionInstance.expand(2);
Auto open any pannel at startup
i Wanted to open the my first pannel automatically in swf file.
i tried lot of using script but it didnt work.(expand method)
the file of example auto expand on start dosent work.
can u please send me the example file of that.
posted by freeroz on 2008-10-17
hi,i Wanted to open the my first pannel automatically in swf file.
i tried lot of using script but it didnt work.(expand method)
the file of example auto expand on start dosent work.
can u please send me the example file of that.
Auto open any pannel at startup
posted by negush on 2008-10-20
The example works only if you change the trial component with the full version. It is made to work with data received through FlashVars from the browser, but the trial version does not work in the browser, only in the Flash IDE.
Auto Open Panel on start
The auto expand works when I test the file directly from flash but does not work when I publish to exe. I am using the full version of the component. Please advise...
posted by tlc01 on 2008-10-21
I'm creating a standalone exe file and want one of the panels to open on startup. I've downloaded the Acc_panel_AutoExpandOnStart.zip and changed the last line of script to accordianinstance.expand(4);The auto expand works when I test the file directly from flash but does not work when I publish to exe. I am using the full version of the component. Please advise...
Auto Open Panel on start
By the way, your email address is not working. Please write an email to the support team (support [at] jumpeyecomponents [dot] com).
posted by negush on 2008-10-22
We tested the auto expand functionality in a projector exe file and it seemed to be working just fine.By the way, your email address is not working. Please write an email to the support team (support [at] jumpeyecomponents [dot] com).
Auto Open Panel on start
fscommand ("fullscreen", "true");
When I comment out that piece of script, the panel opens automatically. Any way to have both of these items function?
Sorry about the email issue, I sent this post to support@jumpeyecomponents.com as well.
posted by tlc01 on 2008-10-22
I have isolated the issue in my EXE file. It does not work when I also have the following script for FullScreen active:fscommand ("fullscreen", "true");
When I comment out that piece of script, the panel opens automatically. Any way to have both of these items function?
Sorry about the email issue, I sent this post to support@jumpeyecomponents.com as well.
Auto Open sticks on page load
have set up Accordion Panel V3 using the AS2 version, and have used the AccPanel_AutoExpand OnStart files to get things working.
Have set FlashVar to 0 to get initial panel to be open at page load.
The problem I have is the page news to reload to get this to work. The first time I visit the page with the Accordion on, everything is closed. Once I refresh the page, my selected panel opens as the default panel, and continues to work, but seems to need the page refresh to kick it into life.
What's happening here?
Thanks, and great component by the way.
posted by AntonyHarrington on 2009-09-03
Hi,have set up Accordion Panel V3 using the AS2 version, and have used the AccPanel_AutoExpand OnStart files to get things working.
Have set FlashVar to 0 to get initial panel to be open at page load.
The problem I have is the page news to reload to get this to work. The first time I visit the page with the Accordion on, everything is closed. Once I refresh the page, my selected panel opens as the default panel, and continues to work, but seems to need the page refresh to kick it into life.
What's happening here?
Thanks, and great component by the way.
How to use this code
posted by user421409 on 2010-08-20
i am download AccPanel_AutoExpandOnStart.zip file and use this code..............but this code is not work for me.........and inside panel i am using the swf files.............and how to start loading swf files when panel open
RE:How to use this code
Anyway if you didn't solve the problem and it persist, I suggest that you open a ticket and attach the file and of course give us the order id for this product.
Thank you.
posted by kneo on 2010-08-31
I'm not quite sure what you are trying to do but I assure you that the code is working.Anyway if you didn't solve the problem and it persist, I suggest that you open a ticket and attach the file and of course give us the order id for this product.
Thank you.
Login to post your comment




Can this still be done?