"Save As" in flash
Out of context: Reply #18
- Started
- Last post
- 18 Responses
- fugged0
not knowing how you implemented things, it's hard to make suggestions that make sense.
My understanding is that you have a bunch of images that have hires versions that you want the user to be able to download upon selecting a menu item from the contextual menu? So you'll need some method of storing all of the urls for the hi-res versions or at least some way for deriving the url.
There's a million and one different ways of doing this.
Personally, I would probably use a Dictionary object that stores the filename for the images, using the object that is firing the menu selection event as the key.
then when an event is fired, you can use the events target to pull the filename out of the dictionary object and construct your url from there.
I'd place hi res and low res versions in separate folders and use the same file names for the images. That way you can find the path to the image with something like small/[filename] and large/[filename].
not sure if that makes any sense, or if it works with how you have things set up :)