?
Solved

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

Posted on 2002-07-29
5
Medium Priority
?
175 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

764 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