I apologize. This might be a more simpler example of what I’m trying to do. In my main .fla file I have a movie clip onstage called “square”. The movieclip is empty.
Below that are five buttons (black, red, blue, green, remove) which, depending on the color button clicked, would load into the empty “square” clip either a movie called “black_square.swf”, “red_square.swf”, “blue_square.swf” or “green_square.swf”. Only one such movie at a time is loaded into the clip. Clicking the “remove” button empties the clip.
I’ve also got a “submit” button, which, when I click it, I’d want to submit the name of whatever .swf file happens to be loaded to a database. If nothing is loaded I want the record created to show the “square” movieclip was empty.
Any additional suggestions on where I can find some tutorials for this?
(ORIGINAL POST: Hello, all. There’s NO code here and I’d appreciate even being pointed to a tutorial.
I’ve been able to make an application that has a central movie clip containing 20-something other clips. The application lets people create their own design of a particular item, choosing the colors of every component to this item (each of which is loaded into its own component-specific movie clip). One of the movie clips can be populated by a .jpg or .png file a user himself uploads. Once finished, people can print or save this design by choosing the appropriate button on this app.
What I’m trying to do is find a way to also pass this design, created from multiple movie clips into a central clip, into a database as well. The movie clips are “driven” by 21 color chip buttons each which has an instance name of a color, i.e. “black”, “brown”, “dark_green”, etc. By a series of switch/case statements, when one clicks a “component” button (there are approximately 13-15 components) they load into the clips a movie named “(model)(view)(component)_(color (event.target.name)).swf”. There are many “models” to choose from but within the stage only one “model” is selected at a time, so that wouldn’t change here. The design can be viewed from front, back, left or right, so that’s what the “view” is - the colored components that are the same save for the view (i.e., an object which can be seen from either the front or left view) are loaded into movie clips that are either visible or invisible depending on which view one selects.
Is there a way I can attach a variable name to a movie clip which is selected (bearing in mind that the application viewer can change the color of each component (and therefore the clip loaded) at will) to be read by the database? Or would the name of whatever movie clip itself that happens to be loaded be sufficient? Again, even if someone knows a tutorial on “populating a database from contents of a movie clip” I’ll be most grateful.)
God bless.