View Full Version : Saving ActionScript generated symbols
erikred
05-03-2004, 01:36 PM
Hi,
I'm using FlashMX, and I'm trying to use ActionScript to save some time generating huge grids (as playing fields for a turn-based game I'm writing). My while loops and duplicateMCs are doing a bang-up job of generating the maps, but they take a long time to do so (and rightly so, since they're building 10,000+ MCs). I'm wondering if there's a way to save the finished result so I don't have to generate from scratch each time.
I hope this is basic enough for the newbie forum! :)
Thanks, Erik
petefs
05-03-2004, 01:44 PM
one acronym: JSFL
search the JSFL forums and join the extendflash mailing list at http://www.flashguru.co.uk
you should be able to recreate your code with just a little bit of syntax and an example of how to write jsfl scripts
cheers!
CyanBlue
05-03-2004, 04:17 PM
Howdy and Welcome, erikred... :)
You cannot do that... If you are doing the static one, just make once from the Flash authoring environment and save it as a JPEG file and load it dynamically... I don't see why it shouldn't be working... 10000 movieClips sound too much to me though... :(
JSFL won't work in FMX, petefs... :(
petefs
05-03-2004, 05:59 PM
boh, I should go to bed every night :b Sorry, Cyan is correct, don't waste all your time learning it quite yet!
erikred
05-03-2004, 06:32 PM
Thanks, petefs and CyanBlue. Those are good welcome replies to a newbie like myself. :)
Well, CyanBlue, what I want is to generate a map that I can then use to track the position of pieces on a board. The pieces will have a move attribute that will limit the number of grids the pieces can move on the X/Y-axis. Since generating a 100x100 square playing field doesn't sound too feasible, I suppose I'll resort to dividing the X/Y difference by fifty (the width/length of each square in the grid) and determing legal moves that way.
Okay, back to the drawing-board. :)
CyanBlue
05-03-2004, 08:31 PM
Yeah... That sounds good to me... Make a small grid plane and generate whatever is necessary to display to reduce the load... :)
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.