With our tunes playing and the volume knob to about the 3:00PM position (I
prefer it loud) lets get started. First you need to create some content to
drag. I just made some nice looking mockup boxes for now.
With the content boxes created they need instance names. Anything will work
just give them appropriate and easy to remember names. In my case I gave them
the instance names news and images accordingly.
Ok with the 'design' section out of the way now it's time to get dirty with
some ActionScript. I like to keep everything on a frame in the main timeline.
It allows all my code to be easily accessible and even allows me to shorten
code! We'll get to that later but for now we need to figure out how we're
going to set this up. See Figure 1.
To remember where the objects are dragged to we're going to have to use the
shared object. Shared object is an extremely useful t... (more)