A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Liquid flash layout problem

  1. #1
    Junior Member
    Join Date
    Aug 2005
    Posts
    28

    Liquid flash layout problem

    HI
    I am having trouble with my liquid flash layout.
    I have a movie with 2 scenes, a loading scene and a main scene. THe main scene has buttons that go to different frame numbers within the scene.

    The liquid layout is working fine at first, I can click on different buttons that go to different frame numbers and it will keep the liquid layout. However when i click on the button that goes to frame 1, for some reason the liquid layout script doesn't work and objects go back to their original position.

    Here is the code i have...it's on frame 1 of the main scene.

    Stage.align = "TL";
    Stage.scaleMode = "noScale";
    sizeListener = new Object();
    sizeListener.onResize = function() {
    top._width = Stage.width
    pic_desc_bg._width = Stage.width
    bottom._width = Stage.width
    bottom._y = Stage.height - 150
    tn_area._x = Stage.width / 2 - 475
    tn_area._y = Stage.height - 150
    tn_group._x = Stage.width / 2 - 475
    tn_group._y = Stage.height - 150
    blackfades._y = Stage.height - 150
    blackfades._x = Stage.width / 2 - 475
    pic_area._y = Stage.height / 2
    preloader._y = Stage.height / 2
    preloader._x = Stage.width / 2
    preloader_bg._y = Stage.height / 2
    preloader_bg._x = Stage.width / 2
    loading._y = Stage.height / 2
    loading._x = Stage.width / 2
    contact_form._y = Stage.height / 2
    contact_form._x = Stage.width / 2
    about_text._y = Stage.height / 2
    about_text._x = Stage.width / 2
    };
    Stage.addListener(sizeListener);

  2. #2
    Junior Member
    Join Date
    Aug 2005
    Posts
    28

    help

    Can anyone recommend anything for this problem?
    Do i need to add some kind of global listener?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center