View Single Post
  #8  
Old 04-18-2003, 12:17 AM
traekwon traekwon is offline
 
Join Date: Mar 2002
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

heres some instructions on changing the maps, it's flash MX so it's a little hairy, but here goes:

changing a map:

1. grab an image that you'd like to use for your map - i used screen caps from a shareware program called 'amiglobe'
2. open usermap.fla
3. File > import to library... select your pic
4. CTRL+L brings up the library, find the map that you just imported, and select it (it should have the same name of the file you just imported)
5. rename it if you want.
6. locate the MovieClip of the map you want to replace, it will look like map###, where ### is a number.
7. double click the icon of the movieclip listing in the library to edit it
8. zoom out if you need to see the whole graphic
9. select the graphic so its selected, and right-click it, then click Swap Bitmap...
10. locate the graphic you imported and select it, and then click OK
11. click on "Scene 1" to exit movieclip editing mode

changing a map name:

with usermap.fla open:
1. put the playhead in frame 2
2. click to select the 'worldmap' list box component on the upper right
3. in the properties window (Ctrl+f3 to see it) on the 'parameters' tab, double click the list cooresponding to the 'labels' entry,
4. click on the entry you'd like to change, the numbers for the entries coorespond to the map### movie clips in the library.
5. on the top left, there are four small black squares. One of them is named 'getTG', it's the 4th from the left - click to select it, and then right click, and then click on 'actions'
6. find the code that looks like this:
Code:
_root.worldlist.replaceItemAt(0,"World ("+(worldcount[0] - 1)+")",0);
(assuming that you're renaming map 0, "world"; change "world" to coorespond to the name you changed in the list box.

to add a new map:

1. import a graphic for your map (i.e. Baghdad)
2. CTRL+L opens the library, look at the list of maps and find a free number (i.e. map13)
2. select the graphic, and then Insert > convert to symbol
3. make it a movieclip and name it that free number (i.e. map13)
4. click to select the 'worldmap' list box component on the upper right
5. double click to edit the 'labels' data - and add the map name for your new map in a new row at the end. (i.e. Baghdad)
6. double click the Data list to edit it, and add a numeric entry to coorespond to your new map at the end of the rows. (13)
7. on the top left, there are four small black squares. One of them is named 'getTG', it's the 4th from the left - click to select it, and then right click, and then click on 'actions' to view the code.
8. find the code that looks like this:
Code:
worldcount = [0,0,0,0,0,0,0,0,0,0,0,0,0]
and add another 0 to the end of the list:

Code:
worldcount = [0,0,0,0,0,0,0,0,0,0,0,0,0,0]
at the end of the code, there are lines that look like this:
Code:
_root.worldlist.replaceItemAt(12,"Netherlands ("+worldcount[12]+")",12);
add another entry, and change the numbers and names to coorespond. Using our example:
Code:
_root.worldlist.replaceItemAt(12,"Netherlands ("+worldcount[12]+")",12);
_root.worldlist.replaceItemAt(13,"Baghdad ("+worldcount[13]+")",13);
thats it, it should work - if you edit your maps, the coorseponding data on the server side will be wrong for that map.

Sorry for the complicated procedure, but it's Flash MX..
I've started work on a 2.1 version that will load pictures dynamically from images on the server and a configuration file
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01087 seconds
  • Memory Usage 1,783KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete