all groups > flash actionscript > february 2004 >
You're in the

flash actionscript

group:

Drag & Drop


Drag & Drop jwalds
2/20/2004 11:29:47 PM
flash actionscript:
Hi all, hopefully somebody can help me because I am having nightmares trying to
figure this out.

Ok, so I have a flash file that I got from FlashKit.com. The file is a
turntable, I modified the visual characters a bit but left all the
actionscripting as it was. The exported .swf works perfectly as a standalone
movie, and as a movie object embedded in HTML. However my problem lies here:
when I try to use this .swf as a symbol within another movie I can't pick
up/drag the records, yet the rollover still works. The same is true when I use
the loader component to load the turntables as an external .swf into the main
movie. Does anybody know how to get the turntables working either as a symbol
within the main flash movie, or as an externally loaded .swf?

Below are links to the two items talked about:
[B]Standalone turntable.swf (works fine)[/B] :
][L=http://jesse.gnsdeca.com/7up2/turntable/index.htm]http://jesse.gnsdeca.com/7
up2/turntable/index.htm[/L]
[B]Embedded turntable as a symbol within main movie (doesn't work )[/B] :
[L=http://jesse.gnsdeca.com/7up2/index.htm]http://jesse.gnsdeca.com/7up2/index.h
tm[/L][/q]

Re: Drag & Drop NSurveyor
2/21/2004 4:40:06 AM
Have your version of the file online
Use the loadMovie action to load the file into your moviecliip
Re: Pea
2/21/2004 6:08:43 AM
Your problem is probably that the turntable clip probably wasn't designed to be
nested within other timelines.

My guess is that the turn table clip has actionscript that accesses '_root' or
'_level0', which, when the clip is standalone, is the main timeline of the
turntable clip. However, when the turntable clip is imported into another clip,
these actions will now try to access the main timeline of this 'parent' clip
instead.

Go through the code and try to convert any paths to relative paths (so instead
of starting at '_root', start at the clip 'this').

For example, these clips could be nested:
_root.A.B.C
And code in 'C' might say '_root.A._xscale = 100'.
This can be changed to 'this._parent._parent._xscale=100'

Hope it helps,
Pea
AddThis Social Bookmark Button