Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-27-2004, 03:13 PM
Junior Member
 
Join Date: Apr 2004
Posts: 9
Default communication between windows?

I am currently building an application that incorporates a glossary. The glossary is implemented as a seperate application launched from a main application. The glossary can be launched two ways:

1. By clicking a glossary button.
2. Or by clicking a specific term in a textfield. [In this instance I need to pass information about what term needs to be displayed.]

When the glossary is not currently open, the launch routine uses Shell.run() to open the application in a seperate window. At this time I can pass the glossary application the information it may need through the cmdline.

My problem arises when the glossary window is already open. I have searched unsuccessfully for a graceful way to pass the required information (i.e. what term to display).

I first tried to simply use Shell.run() again with different cmdline parameters and different show_flag values. However, that resulted in a launch of a seperate glossary window (thus I had 2 glossary windows open).

I then found a really hacky solution where I pass the term information to the glossary window through the "caption" parameter. The glossary app is set to continually query the value in the caption and reacts when it changes. It works but it is definitely not elegant.

Therefore my question is:
Is there an easier to communicate from one application to another in a seperate window?

Any thoughts, ideas, or solutions will be greatly appreciated.
Reply With Quote
  #2 (permalink)  
Old 04-27-2004, 03:49 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:communication between windows?

You can use the LocalConnection object in Flash.
Reply With Quote
  #3 (permalink)  
Old 04-27-2004, 04:43 PM
Junior Member
 
Join Date: Apr 2004
Posts: 9
Default Re:communication between windows?

thanks. I wasn't even thinking in that direction.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:08 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.