Skip to main content
Inspiring
December 13, 2018
Answered

How to bring stagewebview behind all the objects in the screen

  • December 13, 2018
  • 1 reply
  • 391 views

Dear friends,

Greetings! iam creating an app using stagewebview, I can load my html file in stagewebview. After loading stagewebview, all the objects (movie clips, comboboxes and other objects in the screen are going behind the stagewebview. I tried with setchildindex also its not working. please help me to solve this.;; I want my stagewebview behind all other objects..

Thanks and Regards,

Syed Abdul Rahim

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer JoãoCésar17023019

    Hi.

    The StageWebView class is not a display object.

    The StageWebView class is NOT a display object and cannot be added to the Flash display list. Instead you display a StageWebView object by attaching it directly to a stage using the stage property. The StageWebView instance attached to a stage is displayed on top of any Flash display objects. You control the size and position of the rendering area with the viewPort property. There is no way to control the depth ordering of different StageWebView objects. Overlapping two instances is not recommended.

    StageWebView - Adobe ActionScript® 3 (AS3 ) API Reference

    But if you really need to do this, you can try this trick/workaround here:
    Put something on top of the stagewebview

    Regards,

    JC

    1 reply

    JoãoCésar17023019
    Community Expert
    JoãoCésar17023019Community ExpertCorrect answer
    Community Expert
    December 13, 2018

    Hi.

    The StageWebView class is not a display object.

    The StageWebView class is NOT a display object and cannot be added to the Flash display list. Instead you display a StageWebView object by attaching it directly to a stage using the stage property. The StageWebView instance attached to a stage is displayed on top of any Flash display objects. You control the size and position of the rendering area with the viewPort property. There is no way to control the depth ordering of different StageWebView objects. Overlapping two instances is not recommended.

    StageWebView - Adobe ActionScript® 3 (AS3 ) API Reference

    But if you really need to do this, you can try this trick/workaround here:
    Put something on top of the stagewebview

    Regards,

    JC