[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2002-07-29
5
Medium Priority
?
177 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
 

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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

649 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