|
|
Is It Possible?
i'm currently working on my first flash game, where the admin can manually modify the settings in a txt file, here's what you can find in the txt file:
prize1=No winner prize2=$0.05 prize3=$0.10 prize4=$0.50 prize5=$1.00 prize6=$5.00 odds_for_prize1=45 odds_for_prize2=25 odds_for_prize3=13 odds_for_prize4=7 odds_for_prize5=6 odds_for_prize6=4 result_url=default.php
a = 0 b = odds_for_prize1 c = b + 1 d = odds_for_prize1 + odds_for_prize2 e = d + 1 f = odds_for_prize1 + odds_for_prize2 + odds_for_prize3 g = f + 1 h = odds_for_prize1 + odds_for_prize2 + odds_for_prize3 + odds_for_prize4 i = h + 1 j = odds_for_prize1 + odds_for_prize2 + odds_for_prize3 + odds_for_prize4 + odds_for_prize5 k = j + 1 l = odds_for_prize1 + odds_for_prize2 + odds_for_prize3 + odds_for_prize4 + odds_for_prize5 + odds_for_prize6
when i tried to load these variable using loadVariables action, all of these words had been imported into a single variable, but what i wanted was, for example: i have two dynamic text field in the main screen and i want them to display prize1 and prize2, instead of the whole "No winner prize2=$0.05 prize3=$0.10 ... etc"
what should i do?
FlashKit > Flash Help > Flash General Help
Posted on: 04-17-2003, 09:03 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
|
|
|