Solved

How To Adapt FlashJunkie's Vertical Scoll menu to read items from an external .txt

Posted on 2002-07-29
5
171 Views
Last Modified: 2010-04-03
I want to use Flash Junkie's Vertical Scroll Menu (http://www.flashjunkie.50megs.com), but I need it to make a number of items and have names in the menu, depending on variables in an external .txt file.
I've looked into the script, but I'm not really an actionscript die-hard (understatement), and I have no idea how to change the code...
So, here's what I need it to do; I have a text file which says:
Variable 1;
Name=Link 1
URL=URL1
Variable 2;
Name=Link2
URL=URL2
etc. etc. this doesn't need to be the exact format of the txt file, it's just as an example. Now I need the menu to read these variables, and make it generate 2 menu-items (in this case), stating the 'Name' as a title, and 'URL' as the actual link when I click the item.

Please help me out... :(
0
Comment
Question by:Melle081800
  • 2
5 Comments
 
LVL 6

Expert Comment

by:rootdir
ID: 7185544
In above example you need to pull all variables from text file using 'loadVariables' funaction.

loadVariables ("menu.txt", "", "POST");

there is tons of info ava. on net about how to load variables from text file.


Go to frame 2 of 'dragcontrol2' movie, replace 'gotoAndPlay' function with 'getURL' function and pass proper value.

Check this example for more help

http://builder.cnet.com/webbuilding/pages/Graphics/FlashPoint/111999/?tag=st.bl.FlashPoint.txt

Cheers,
RootDir
0
 
LVL 6

Expert Comment

by:rootdir
ID: 7185563
0
 

Author Comment

by:Melle081800
ID: 7272739
I solved the problem...the reason the thing didn't work was simply because of a wrong format of my text file loading the data...I had linebreaks between the different values...yeah...real smart...
I simply replaced the script in frame one (which initialised the total menu items as well as the menu titles) with:
loadVariables("menu.txt", "_root");
which contains:
&tmi=8&Menu0=title1&Menu2=title2 etc.
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 11298029
PAQed, with points refunded (200)

GhostMod
Community Support Moderator
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Stop Ads in Browser Google Chrome 3 541
playing flash video on kiosk at startup 6 409
Array is not working ( AS2 ) 4 152
Youtube video error 30 773
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question