Hello,
I am trying to make an .swf hotspots. If I do it in Adobe Flash CS3 and export to .sfw, everything works as expected. But if I try creating a hotspot .swf from scratch, I have a very odd behavior. Here's how I am doing it:
1. I have a Test.as file:
Code
package {
import flash.display.Sprite;
public class Test extends Sprite {
public function Test() {
init();
}
private function init():void {
graphics.beginFill(0xff0000);
graphics.drawEllipse(50,50,50,50);
graphics.endFill();
}
}
}
Display More
Basically, it draws a red circle.
2. I am compiling it with mxmlc from free flex_sdk and have my Test.swf, which I use as a hotspot:
3. I can see my red circle in the panorama, but it is positioned not at 0,0 location. And, if I zoom in, this circle has a tendency to move from left to right and a bit down. Zooming out moves it leftwards. Do you guys have a sample .as plugin so I can have a look how it is done? I am not a flash developer per se, but this one should be simple, right?
Thank you.