Scale to stage width

  • Hi,

    I am trying to create my first plugin based on an swf and I am having trouble from the outset.

    What I am initially trying to do is make a menu bar at the bottom of the screen and I want its width to scale to the size of the stage so that no matter what width the pano is viewed in (including full screen) it will always be the full width of the pano.

    I have created a basic swf with a grey square 80 x 80.
    I have applied the following code:

    It sort of works but it does not seem to go 100% across and I am also finding it difficult to position it using the xml, see below:

    I can tweak it using the x and y values but that would change when I scale the pano, wouldn't it?

    I think I'm going to have a lot more questions around this but if anyone can help with this one I'd appreciate it.

    Thanks.

    T12

    Liverpool based panoramic photography, virtual tour and
    web media organisation specialising in high quality web experiences.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!