[flexcoders] Re: popup window send event to main screen

2009-10-19 Thread Netaman
Yes you can, A quick overview - Create an Event meta tag  
create a class for the meta event that extends the Event and 
then dispatch your event that bubbles to the main application 
from your popup.

read here;
http://livedocs.adobe.com/flex/3/html/help.html?content=createevents_3.html

Of course if you are looking to create flex software that incorporates events 
then read the rest of the message.

You might want to look at a framework like puremvc, or a more complex framework 
like cairngorm, these use an more complex event driven model, view, controller, 
I personally keep it simple and apply a easyMVC architecture. "Anyone can make 
it complex, keeping it simple is Genius". By keeping it simple I can apply my 
own algorithms to software development having used for the last 27 plus years 
of on the job training.

read on if you want my candid opinion about frameworks.

So when you look at a programming model and it looks simple then you have the 
freedom to think outside the box, some software industry pundits have placed a 
big giant box in front of you saying learn this to solve the whatever comes up 
in the everyday software development, basically placing you inside a box, just 
a bigger box, saying this will lead you to quicker development, share the same 
core logic between programs, so on and so forth, but if you look closely enough 
and see that all their patterns and verbiage is just the framework a learning 
exercise, nothing wrong with learning, use what you like and discard the rest. 

The biggest pattern to solving the software development algorithms of tomorrow 
and today is on a web search engine page, I have found that by searching the 
web it's the biggest pattern solver of them all, better then any framework. I 
am more a web research software developer then software developer, design and 
function from a web search to figuring out the next software steps. 

The one thing I see the industry doing is following a framework, thinking it to 
be the greatest thing since bytes came in a core, but they miss the point, that 
by making pointless framework constructs/ additions to a software architecture 
they have diluted the meaning of the framework, making it hard to grow, making 
it complex.

No one person or group of persons has the intelligence to lead you down a path 
of programming enlightenment, just a bunch of software developers that dream in 
code. 

Randy





--- In flexcoders@yahoogroups.com, "markflex2007"  wrote:
>
> Hi,
> 
> Do you think if it is possible for popup Flex window to send event to main 
> Application screen?
> 
> Thanks
> 
> Mark
>




[flexcoders] Re: popup window send event to main screen

2009-10-16 Thread valdhor
Yes you can.

Add an event listener to the systemManager of the application. systemManager is 
the owner for popup windows.

--- In flexcoders@yahoogroups.com, "markflex2007"  wrote:
>
> Hi,
> 
> Do you think if it is possible for popup Flex window to send event to main 
> Application screen?
> 
> Thanks
> 
> Mark
>




[flexcoders] Re: popup window

2008-07-31 Thread actionscript_czar
In actionscript use the percentWidth variable.  The MXML compiler is 
just smart enough to know that a width with a percent sign should 
actually be percentWidth.

So try this:
 var text:Text = new Text();
 text.percentWidth = 100;

--- In flexcoders@yahoogroups.com, "Dan Vega" <[EMAIL PROTECTED]> wrote:
>
> I understand the width as a percentage but in as3 you can't do that 
because
> its looking for a number.
> 
> 
> If i do
> 
> var text:Text = new Text();
> text.width = 100%;
> 



[flexcoders] Re: popup window

2008-07-30 Thread Don Kerr
Try Text, not Label.

--- In flexcoders@yahoogroups.com, "Dan Vega" <[EMAIL PROTECTED]> wrote:
>
> I have a popup window (a quick about win) and I am having an issue.
How can
> I add a bunch of text to the title windows content area. If I just
add the
> text it runs off the screen. I can set the width but that seems like
a bit
> of a hack to me. I know im probably just missing something dumb here.
> 
> private function showAbout(event:MouseEvent):void {
> // the popup window
> _popup = new TitleWindow();
> _popup.title = "About this component";
> _popup.width = 400;
> _popup.height = 200;
> _popup.showCloseButton = true;
>
_popup.addEventListener(CloseEvent.CLOSE,closeAboutWindow);
> 
> var label:Label= new Label();
> label.text =
> "*" +
> "*" +
> "*" +
> "*" +
> 
> 
> _popup.addChild(label);
> _popup.autoLayout = true;
> 
> PopUpManager.addPopUp(_popup,container);
> PopUpManager.centerPopUp(_popup);
> }
> 
> 
> Thank You
> Dan Vega
> [EMAIL PROTECTED]
> http://www.danvega.org
>