Hide a layer and move another one only for the first scene

  • Outside scenes I have these simplified code:

    The first layer must be visible in all scenes but the first one 'first_scene'.
    The second layer must be present in all scenes but in 'first_scene' it must change its position from x=70 to x=10.
    At bottom the action that onstart in 'first_scene'.
    I guess it is a keep and visible issue but I don't realize how to accomplish that. Thanks in advance.

    Code
    <layer name="logo0"
       type="image"
       url="logo0.png" 
       align="topleft" x="10" y="5" 
       selectable="false" 
       html=""
       visible="true"
       keep="true" 
       ...
    />
    Code
    <layer name="some_text"
       url="%swfpath%/plugins/textfield.swf" 
       keep="true"
       align="topleft" x="70" y="10" 
       html="blah blah hello"
       ...
    />
    Code
    <action name="hide_logo">
        set(layer[logo0].visible,false);
        set(layer[logo0].keep,??);
        set(layer[some_text].x,20);
    </action>
    Code
    <scene name="first_scene" onstart="hide_logo();"  ...>
       ...
    </scene>

Participate now!

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