Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-09-2008, 12:09 PM   #1
Registered User
Join Date: Nov 2008
Posts: 1
Default Flex stage overtakes Flash stage

I'm loading a flex swf into a flash swf, and it seems that flex takes over the stage in quadrant 4, if you look at as a grid:

-------------| **********
-------------| *Quadrant*
-------------| ****4*****

And at the origin is the top left corner of the flex swf.

Now since the flex swf only takes up a small amount of Quadrant 4, when an Alert message from the flex swf comes up (from mx library) it looks up professional since it is not placed in the center of the application, but the center of quadrant 4.

Does anyone know, how to restrict stage access to only the predefined application width and height so the Alert message will be centered in the flex swf.

Thanks in advance,
Basil Al-Dajane

PS. worth mentioning, I'm using Flash CS3 and Flex 3.0, both running on ActionScript 3.0

Last edited by basil_ad; 11-09-2008 at 12:10 PM. Reason: didn't display the grid properly
basil_ad is offline   Reply With Quote
Old 11-09-2008, 07:36 PM   #2
Site Contributor
pj-co's Avatar
Join Date: Jun 2008
Location: Brooklyn
Posts: 360

I dont think you can restrict stage access but you could try and see if there is a way to force the alret message to a particular coordinate.
pj-co is offline   Reply With Quote
Old 11-09-2008, 08:35 PM   #3
Holosuit User
wvxvw's Avatar
Join Date: Oct 2006
Location: Tel Aviv
Posts: 4,301
Send a message via ICQ to wvxvw

Flex application is designed in a way it has a sprite of the size of the stage attached to x=0 y=0 coordinates (it uses it to capture mouse events).
I don't think you can help it... unless you make the loading application in Flex too.
The .NET open source editor for Flash and web developers
*This would be my contribution to the project*
couchsurfing if you need it
wvxvw is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Differences from Flash and Flex gus Flex 2, 3 & 4 4 07-17-2008 09:03 AM
Animated tab from flash into flex petay_pan Flex 2, 3 & 4 0 02-14-2008 03:42 PM
Flex 2 page and Flash Player 9 upgrade surfer13 Flex 2, 3 & 4 7 09-20-2006 10:27 AM
Flash Encrypt 1.2 Released. SIntrix General Chat 14 04-21-2005 09:02 PM
scrollBar on Flash Exchange cdeg Components 5 05-03-2004 07:13 PM

All times are GMT. The time now is 04:14 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.