Knowledge Base


Important! All new questions are usually answered within the next business day.

Accordion Panel V3

(views: 13021)

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: 4173)

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 


User Comments

What about using loadMovie?
posted by janericster on 2008-04-16

What if we want to load an external SWF that has the component (not using HTML or FlashVars)?

Can this still be done?

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?
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?
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
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
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
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
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
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
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
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
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
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
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.


Login to post your comment login to post your comment

Other questions in this item:

Installing the Accordion Panel V3 Open the accordion panels automatically Vertical title for horizontal accordion panel Use the Accordion Panel without external XML file Accordion Panel communicates with a loader Use HandCursor on Accordion Panel's items the title isn't showing in the horizontal mode Load different kind of data into AccordionPanelV3 Stopping video content when changing the panel Dimensions Open the Accordion Panel upwards Panel opens only after content is loaded, when loadExpandedItemsOnly is true Access header title and panel content Access accordion panel loaded with loadMovie inside container clip Non Latin characters Panel opens only after content is loaded, when loadExpandedItemsOnly is true Get the size of panel's content Rotate the direction of the text on horizontal Accordion TEXTU appears in my file HyperLinking panels Getting accurate accordion height Flv playback inside accordion Open URL from panel content, not from panel header Open URL from panel content, not from panel header Load new content without XML Graphics below the accordion panel Acces accordion panel from content Access header title and panel content Acces accordion panel from content Open panels from bottom to top and left to right Non Latin characters Accordion Panel slide show Accordion Panel communicates with a loader Open panels upward for vertical accoirdion and to the left for horizontal accordion Get selected panel and content Panels with different sizes Load new content without XML Open Accordion panels automatically (slide show)


Back

Knowledge Base Search

Enter keywords below:
Advanced Search
FlashEff 2.0
Create professional flash photo slideshows online

FREE Flash Stuff

Check out these free, fully functional AS3.0 Flash components by Jumpeye:

FlashEff 2.0 Free
(free for non-commercial use)

JC Panorama
(free for non-commercial use)

JC Play List
(fully free)

Basic Menu Pack V3
(free AS3 version)

MCTE V3
(free AS3 version)

JC Player
(free for non-commercial use)

JC Flash Map
(free for non-commercial use)

Flash Bookmarks
(fully free)

ActionScript Bridge AS2-AS3
(fully free)

JS Charts
(free for non-commercial use)

Free Trial Versions

The trial versions do have a major limitation. They will ONLY run into debugger flash player versions, such as the Flash IDE player and the activeX FP used by developers.

Switch from Free Trial version to Full version.

You can switch from Trial to Full versions in a blink of an eye.
See this tutorial in order to find out how.

We accept Google Checkout

Google Checkout Acceptance Mark

Secured by VeriSign