Solved

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

Posted on 2002-07-29
5
169 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
Comment Utility
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
Comment Utility
0
 

Author Comment

by:Melle081800
Comment Utility
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
Comment Utility
PAQed, with points refunded (200)

GhostMod
Community Support Moderator
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now