Re: Extension request: Array with predefined data
I don't think so, cause i have just deleted the file from my computer and it still gets it.
http://dl.dropbox.com/u/14962632/a.swf
Try to download my compiled flash, if it says haa! when you press space then it must read it from inside compiled flash.
Re: Extension request: Array with predefined data
im curious how that works with the .swf sandbox. Is it really unpacking binary data into a temp directory on the users computer and then loading? Because I can't imagine that it is, because that would be a huge breach of security. So is there some sort of special file control structure for the sandbox that emulates the unpacked files? I imagine thats just how flash works, but I'm no expert
Unless its pulling that file off of dropbox of course
Re: Extension request: Array with predefined data
Im not really sure how it does it, but i wish i knew about this before i made my ini+get system, this is so much easier.
Re: Extension request: Array with predefined data
The Flash runtime doesn't use the embedded filename at all. The file gets bundled into the SWF as a binary element, and read directly from there by the Array object.
Re: Extension request: Array with predefined data
If I made an Array object with predefined data, how would you want me to go about allowing you to edit that predefined data? I was originally thinking using properties of the object or a dialog but that seems to be a project in itself and one that I'm not sure I can complete. Would it be possible (fellow extension developers) to load a text file that is formatted a certain way and set the arrays at edittime that way?
If so, could you please point me in the right direction?
Re: Extension request: Array with predefined data
aaahh that's amazing! i had no idea it worked like that, then a new extension is not necessary for my sake.
Re: Extension request: Array with predefined data
Boo!
Well I'm making one anyway! Haha :)
Re: Extension request: Array with predefined data
i will use it if it's useful! hehe
since i am already using some listboxes, how about an object just like the listbox, but that doesn't use any resources on display (doesn't ever display) and have infinite lenght(s).
if it could also store multiple lists (any amount) it would be perfect!
Re: Extension request: Array with predefined data
I agree we need a function in MMF2 to handle this. Flash Exporter is currently crippled because of it's inability to read/write from predefined text-based data. We don't need an interface, we just need something that will autoload a local file into a "string" on compile. After that I'm happy to use string parser to sort through my string array.
My current method is:
Create an editor that saves to the local file data.txt
Manually copy the text in data.txt and paste into an edit box in the .SWF
Have the game read from the edit box.
If anyone can cut out the manual copy and pasting that would be a huge time saver.
Re: Extension request: Array with predefined data
Quote:
Originally Posted by Skyhunter
Try to download my compiled flash, if it says haa! when you press space then it must read it from inside compiled flash.
Just tried and it said "haa!". Now, was this read from a included binary array?