Hotspots don't move if they inherited from custom class

Specific Q&A about the new Flash export
Locked
Di-man
Posts: 3
Joined: Sun Jun 17, 2007 3:18 pm
Location: Saint-Petersburg, Russia
Contact:

Sun Jun 17, 2007 4:21 pm

I've tried to customize hotspot through action script and if I specify base class for hotspot's movieclip then hotspot will be created but won't move along with pano.

Action Script class:

Code: Select all

class Hotspot extends MovieClip
{
	public function Hotspot()
	{
		trace("Hotspot " + _name + " activated.");
	}
}
The code which creates hotspot:

Code: Select all

var hotSpot: MovieClip = _root.attachMovie("MyHotspot", id, _root.getNextHighestDepth());
m_vr.pano.addHotspot(id, pan, tilt, hotSpot);
Output window
(Note: second line appears after pano.addHotspot invoking):

Code: Select all

Hotspot hs1 activated.
Hotspot undefined activated.

Any suggestions?
Locked