How can I load movie on (onPress) and then check if the invoked has not been called by any other members before? Thx

Hello Everyone,
I would highly appreciate your wisdom and advice on this
functionality. Lets say I have two
movieclips on the stage(ClipA, ClipB). I would like user to
be able to click on any of them and, this click
will invode a createclip function which pretty much creates a
dynamic movieclip and loads
whatever I assign to it such other existing clips within the
library. The only problem I have
makeing the functionality work is that I would like to limit
the function call to one at a time.
So if the user clicks on ClipA, function createclip would get
invoke and will attach the assigned
movie clip. And when user clicks on ClipB, I would like to
end the function call that was invoked
by the ClipA and then then allow ClipB to invoke the
function.
Pretty much it would a logic like:
if(createClip = true)
end it;
else
createClip();
When a movie is attached, can it be unloaded or unattached?
I don't know how to write a function that would check if
function createClip() has
already been invoked. I would highly appreciate any direction
in this.

If the objective is just to get a unique list of authors based on your key, you could use the REPLACE statement in MySQL which functions as an "insert on duplicate key update" type of construct.
[http://dev.mysql.com/doc/refman/5.0/en/replace.html|http://dev.mysql.com/doc/refman/5.0/en/replace.html]
Catching an exception to detect dupes is functional but not very elegant. If you use REPLACE then you know your statements will always work. The drawback is that the statement is not portable across databases.

Similar Messages

Maybe you are looking for

  • Nano no longer works with iTunes, Updater

    I got my nano, hooked it up, put music on it, everything worked fine. I was showing my wife how the photo bit worked and the screen went all black pixels and froze. I did a reset and now I am stuck with what I have on the thing. Windows sees the iPod

  • Help with Reset

    Posted yesterday, no responses. Any idea how to make a 4th generation reset when it won't? Computer no longer recognizes it, can't download new songs, but Ipod playing what's on there just fine, taking and holding a charge.

  • Purchase order number not update in purchase requisition status tab

    Purchase order is created for purchase requisition. The purchase requisition is triggered through process order. When I checked purchase requisition details in ME53N status tab, status is not edited and purchase order number also not present. Kindly

  • Can we block the sales order after creating ?

    Can we block the sales order after creating ? If how to do. Thanks naresh

  • Fixing ID3 tags for mac

    Hey All, Does anyone know of software that will scan the Itunes library and fix any corrupted ID3 tags? About 20% of my songs (and growing) wont import or add to Itunes. I suspect it is because of corrupt Id3 tags??? Anyone else found a solution to t