automating a tedius navigational task

This is a discussion on "automating a tedius navigational task" within the Flash & Multimedia Forum section. This forum, and the thread "automating a tedius navigational task are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 22nd, 2007, 10:57
Up'n'Coming Member
Join Date: May 2007
Location: northern nsw, au
Age: 27
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
automating a tedius navigational task

i have a navigation bar that has different tabs. these tabs when rolled over have a nice 9px cornered box around them with 3px padding between the text and outside of the box.

for each tab, i have a completely new symbol. quite often, i'm updating these symbols because the clients have changes to the names of the pages and so forth and it seems like i have to go to all this trouble to readjust everything on the page because its all done visually in the scene layout, and not dynamically via code.

i'd love to be able to create a complex rollover button and tell my flash to create those buttons based on an array of names and urls I give it. is this possible? ideally then when updating the flash file i just need to update the actionscript with the new names and urls and it does it all.

Am I expecting too much to be able to design like this in flash?

fingers crossed
Reply With Quote

  #2 (permalink)  
Old May 22nd, 2007, 14:51
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: automating a tedius navigational task

Nope, this is definately possible.

The same way I would build an MP3 player with a playlist(using xml) is possible with other thing like .txt files you can embed in your flash project. You could also use an XML file that populates the names of each button and all you have to do is update the xml file and voila!

This will get you started.

http://www.actionscript.org/resource...101/Page1.html
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #3 (permalink)  
Old May 22nd, 2007, 15:10
Up'n'Coming Member
Join Date: May 2007
Location: northern nsw, au
Age: 27
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Re: automating a tedius navigational task

cosmicbdog thanks sgaspar11.

i am bringing data in via amfphp and mysql currently.

once I have the data or array available in the flash file how do I tell it to place each variable into a symbol and onto the stage relative to the other symbols its laying out?

i think i sound like a complete idiot right now.

b's tail goes down in a humble silence of contemplation. you may not need to answer... i might work this out
Reply With Quote
  #4 (permalink)  
Old May 22nd, 2007, 15:28
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: automating a tedius navigational task

Hey, well - not a stupid question....and not sure I know the answer from that standpoint but I can tell you how I do it with an XML file to maybe spark your thoughts...

I set my array in flash and a few other variables I needed for the player:

Code: Select all
//Currently Playing Song
var cps:Number = -1; //sets up songs to play in order starting with  first
//Position of Music
var pos:Number;
//array of Songs
var sa:Array = new Array();
I load in the XML file: songs.xml

Code: Select all
 
//Load the songs XML
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function()
{
 var nodes:Array = this.firstChild.childNodes; //puts the xml file into the array
 for(var i=0;i<nodes.length;i++); //starts first song and itterates from there
 {
  sa.push(nodes[i].attributes.url); //grabs the url of the song
 }
 playSong(); //function to play the songs
}
xml.load("songs.xml");
And the playSong(); function that plays each song.

Code: Select all
function playSong():Void
{
 s = new Sound();
 if(cps == sa.length -1)
 {
  cps = 0;
  s.loadSound(sa[cps], true);
 }
 else
 {
  s.loadSound(sa[++cps], true);
 }
 playPause.gotoAndStop("pause");
}
This is the concept. Then in the XML file I could give each song a name and telll it to play the specifc song from the xml file on the click of the name of the song from the playlist.

This would be the same with your buttons I would think. Then you would maybe need to give each symbol a name(or number) and then tell you array to place them in the specific order listed (1,2,3,4)? I don't know...

Not sure if this helps, but there ya have it.
Last Blog Entry: Yay!? (Oct 8th, 2007)

Last edited by Sgaspar11; May 22nd, 2007 at 15:31.
Reply With Quote
  #5 (permalink)  
Old May 22nd, 2007, 15:35
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: automating a tedius navigational task

P.S. I am trying to find the file, but I've done this before when I created a matching game in flash.

Using say 10 symbols all with the same name...I load an array from an xml file with data and images. I randomize the array(so each time they play the game the cards are in a different order) and then place them randomly in any symbol with that name.

I think this is sort of what you need, minus the randomizing part. So yes, it is possible. Using amfphp? No idea. Sorry.
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #6 (permalink)  
Old May 22nd, 2007, 16:08
Up'n'Coming Member
Join Date: May 2007
Location: northern nsw, au
Age: 27
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Re: automating a tedius navigational task

it took me a bit to get my head around the xml stuff but i'm pretty sure we're on the same page...

the random thing you're talking about can be used so cooly.. .like at ted.com the way they randomise the links on the frontpage seems very similar to the card layout you have.

pretty much anything you tell me since i know so little will teach me alot. thanks for your time!!

i've got the amfphp stuff going alright mostly... sounds like this file you have is the golden key to be able to put the info into those symbols
Reply With Quote
Reply

Tags
automated, flash navigation, tabs

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automating my site - is it possible? spangle Starting Out 1 May 18th, 2008 15:36
css navigational bar R8515198 Web Page Design 9 May 14th, 2007 21:39
Automating a website pureliving Starting Out 1 Jan 30th, 2007 01:35
Fireworks navigational bar problem Sope Graphics and 3D 0 Aug 4th, 2006 16:26
too many client task Monie Classic ASP 10 Aug 31st, 2004 23:55


All times are GMT. The time now is 07:44.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43