[flexcoders] Re: How do we implement pop-up input in Flex?

2008-08-01 Thread kalsi374
Lets say you have two files; base.mxml, and popup.mxml.
You can achieve this using Events. basically you write a function in 
your base.mxml, which is then called when you want to divert 
attention to base.mxml file from popup.xml

In your popup.mxml, you do the following:
1) Register the Event like this:

[Event(name="eventListener_UpdateAvailability", type="Event")]

2) Write a function in popup.mxml, which you can call on any button 
action, or whatever your case maybe:

private function signalUpdate():void {
// create an event to send out to tell the  parent app
// to collect the message.
var outgoingEvent:Event 
= new Event("eventListener_UpdateAvailability",false);
dispatchEvent(outgoingEvent);
}
Hope it helps.

--- In flexcoders@yahoogroups.com, "pbrendanc" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I just created a demo Flex app that uses a popup - see
> myflexapps.appspot.com - check out my demo and if you are stuck I 
can
> pull out the appropriate code for you that shows how this works.
> 
> Patrick
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Joshua Jackson" 
> wrote:
> >
> > Dear all,
> >
> > I want to have a popup input in my flex apps where the values in 
the
> > popup window will be set to the parent window that calls this 
popup
> > window. How do we set the variable chosen to the parent window in
> > Flex? Could anyone give me a hint on these please.
> >
> > Many thanks
> >
> > --
> > Setting a new landmark.
> >
> > Blog: http://joshuajava.wordpress.com/
> >
>




[flexcoders] Re: Integrate flex and Java

2008-08-01 Thread kalsi374
If you are interested in triggering a java application from Flex 
Client side, one way I can think of is making a mini Java project, 
whose only purpose is to trigger a Runtime.exec, from where you can 
initiate whatever java app you want to start via a batch file/shell 
script.
Obviously, it depends upon your exact scenario, and what you are 
trying to achieve. 
Why don't you present your problem scenario, and then may be someone 
will have some ideas.

Cheers.


--- In flexcoders@yahoogroups.com, venkat eswar <[EMAIL PROTECTED]> wrote:
>
> can u provide the code for merapi. i am not getting from that site.
> 
> --- On Fri, 8/1/08, Rick Winscot <[EMAIL PROTECTED]> wrote:
> From: Rick Winscot <[EMAIL PROTECTED]>
> Subject: Re: [flexcoders] Integrate flex and Java
> To: "flexcoders@yahoogroups.com" 
> Date: Friday, August 1, 2008, 3:36 AM
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Check out http://www.merapiproject.net/ for starters... 
I've been messing
> 
> with it for about two weeks and am pleasantly surprised.
> 
> 
> 
> Really... There isn't anything from preventing you from using 
socket servers
> 
> to do all kinds of bridging badness. It's all about what you are 
trying to
> 
> do.
> 
> 
> 
> One thing to add... Is that bridge technologies to Flex by itself 
aren't
> 
> going to buy you much bang for the buck and are going to be 
difficult to
> 
> configure (due to sandbox issues). The most direct route - will 
likely
> 
> involve AIR.
> 
> 
> 
> Rick Winscot
> 
> 
> 
> On 7/31/08 4:38 AM, "Tom Chiverton"  wrote:
> 
> 
> 
> > On Thursday 31 Jul 2008, venkat eswar wrote:
> 
> >> how to integrate flex and java. when i click a button in flex 
the whole
> 
> >> java application is to be loaded.
> 
> > 
> 
> > You can't invoke other executables or shared libraries from plain 
Flex
> 
> > applications.
> 
> > There are frameworks that work as launchers or wrappers around a 
Flex
> 
> > application to allow this though, if that would work.
>




[flexcoders] Re: Integrate flex and Java

2008-07-31 Thread kalsi374
Venkat,
You need to be looking at the middleware which sits between backend 
like Java and Flex Front End.
Here are the few popular ones:
http://opensource.adobe.com/wiki/display/blazeds/BlazeDS
http://www.themidnightcoders.com/weborb/java/

Once you get an understanding of these, you will know better.
Java understands Java Objects, and Flex understand ActionScript 
Objects (and other things). This middleware does the magic of 
converting Java POJOs -> AS Objects and vice versa.

You can integrate these middleware solutions with an existing Java 
webapplication. I wrote this small how-to some time back, 
http://meriyatra-blog.blogspot.com/2008/07/flex-how-do-i-integrate-
blazeflash-with.html
but you will also find loads of material on the web, if you look.

Hope this helps.

Good luck & have fun.
-ramnish

--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Thursday 31 Jul 2008, venkat eswar wrote:
> > how to integrate flex and java. when i click a button in flex the 
whole
> > java application is to be loaded. 
> 
> You can't invoke other executables or shared libraries from plain 
Flex 
> applications.
> There are frameworks that work as launchers or wrappers around a 
Flex 
> application to allow this though, if that would work.
> 
> -- 
> Tom Chiverton
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at Halliwells LLP, 3 Hardman Square, 
Spinningfields, Manchester, M3 3EB.  A list of members is available 
for inspection at the registered office. Any reference to a partner 
in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged.  If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 2500.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>