Old 09-16-2008, 07:30 PM   #1 (permalink)
Junior Member
 
Join Date: Sep 2008
Posts: 2
Default proceed directly to thumbnails

Is there any way to force the flash file to go directly to thumbnail views upon opening. I would leave the back to root structure the same, I just want to skip the clicking on a gallery to get to the thumbnails of the first gallery on initializiation.

Thanks.
macbiocom is offline   Reply With Quote
Old 09-22-2008, 10:05 PM   #2 (permalink)
OYXLUSFlash.com Staff Member
 
Adrian's Avatar
 
Join Date: May 2008
Posts: 1,969
Send a message via Yahoo to Adrian Send a message via Skype™ to Adrian
Default

That depends on the xml structure. For a 2 levels structure, first level - folders, seconds - images, you could try this:

Open Actions.as file, at line 19:

Code:
function UpdateStage(node, p) {
node = node.firstChild;//add this line
Republish the swf (open the main fla file)
Adrian is offline   Reply With Quote
Old 10-02-2008, 08:33 PM   #3 (permalink)
Junior Member
 
Join Date: Sep 2008
Posts: 2
Default

Thanks for the input.
It didn't exactly work, but it put me in the right direction.

The following code did work:
I added 1 variable (inserted at line 9 of Actions.as

var counter:Number = 1;

After line 19 "function UpdateStage(node, p) {"
I added:

if (counter == 1) {
node = node.firstChild;
counter=2;
displayAlbum(node);}


I am a total newbie (though I do have some programming background from 20 years ago), so there might be a better way to code this, but it woks.

Vince
macbiocom is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:06 AM.