• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Can I dress up a StageWebView window? borders etc

Explorer ,
Sep 05, 2011 Sep 05, 2011

Copy link to clipboard

Copied

Is it possible to dress up a StageWebView window with borders etc?

As it is, I just get this raw picture on the app screen. Could use a border...

thanks

RC

TOPICS
ActionScript

Views

1.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 06, 2011 Sep 06, 2011

Copy link to clipboard

Copied

StageWebView is not a DisplayObject and you cannot draw anything onto it. However you can for example place a Shape underneath to create a border effect.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 18, 2011 Sep 18, 2011

Copy link to clipboard

Copied

Hi, Thanks.

That sounds interesting - but I'm struggling to work out just how to do that. In my app anyway,

I have the startup stage - well the only one actually.With an image scene on it.

Opening a stagewebview in say 300 x 330 pretty much covers what's there (iPhone 320x480) and it masks everything under it.

I am putting buttons on the stage below the stagewebview window - but can't see how I'd put an image over the top - or "underneath" that stagewebview.

I'm programming this app in Adobe Flash Pro CS5.5 for the IOS/iPhone

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 19, 2011 Sep 19, 2011

Copy link to clipboard

Copied

It's quite simple - if you add, say, a Shape of 300 x 330px, then add a StageWebView of 298 x 228px at (1, 1) you'll get an 1px "border" around the StageWebView

--

Kenneth Kawamoto

http://www.materiaprima.co.uk/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 19, 2011 Sep 19, 2011

Copy link to clipboard

Copied

I see that, however, it still leaves you with a plain square cornered stage because the stage is sitting ontop of the image.

What I would like is the image ontop of the stagewebview ... which is probably impossible

But thanks for the idea, because that is quite useful as well.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 20, 2011 Sep 20, 2011

Copy link to clipboard

Copied

LATEST

> it still leaves you with a plain square cornered stage

Not necessary - you can dress up this graphic underneath anyway you like

> What I would like is the image ontop of the stagewebview ... which is probably impossible

You are right, StageWebView will always come on top of everything on the stage.

--

Kenneth Kawamoto

http://www.materiaprima.co.uk/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines