Re: valdhor [flexcoders] Re: domain problem in remoteobject application

2009-06-26 Thread Vikram Singh
Yes. You are right. But main problem was that my amfphp code is older.
I have downloaded new code and got globals.php at amfphp/ directory.

Thanks valdhor.





From: valdhor valdhorli...@embarqmail.com
To: flexcoders@yahoogroups.com
Sent: Thursday, 25 June, 2009 6:34:04 PM
Subject: Re:valdhor  [flexcoders] Re: domain problem in remoteobject application





Wrong file (You are looking at amfphp/core/ shared/app/ Globals.php) . The file 
should be in the root directory (amfphp/globals. php) along with the 
gateway.php file amongst others.

HTH

Steve

BTW. I would recommend changing to WebORB for a more robust, well tested and 
reliable remoting experience (www.themidnightcod ers.com)

--- In flexcod...@yahoogro ups.com, Vikram Singh vikisingh169@ ... wrote:

 hello valdhor
 
 in my amfphp directory there is only one globals.php file and it contains 
 these 
 
 ?php
 /**
  * Defines globals used throughout amfphp package for config options
  * 
  * @license http://opensource. org/licenses/ gpl-license. php GNU Public 
 License
  * @copyright (c) 2003 amfphp.org
  * @package flashservices
  * @subpackage app
  */
 
 global $amfphp;
 
 $amfphp = array();
 $amfphp['errorLevel '] = E_ALL ^ E_NOTICE;
 $amfphp['instanceNa me'] = NULL;
 $amfphp['classPath' ] = 'services/';
 $amfphp['customMapp ingsPath' ] = 'services/';
 $amfphp['adapterMap pings'] = array();
 $amfphp['incomingCl assMappings' ] = array();
 $amfphp['outgoingCl assMappings' ] = array();
 $amfphp['webService Method'] = 'php5';
 $amfphp['disableDes cribeService' ] = false;
 $amfphp['disableTra ce'] = false;
 $amfphp['disableDeb ug'] = false;
 $amfphp['lastMethod Call'] = '/1';
 $amfphp['isFlashCom m'] = false;
 $amfphp['classInsta nces'] = array();
 $amfphp['regenerate MethodTable' ] = false;
 $amfphp['amf3Record SetFormat' ] = Array;
 $amfphp['encoding' ] = amf0;
 
 ?
 
 so what should i do? I am confused.
 
 
 
 
  _ _ __
 From: valdhor valdhorlists@ ...
 To: flexcod...@yahoogro ups.com
 Sent: Tuesday, 23 June, 2009 7:19:43 PM
 Subject: [flexcoders] Re: domain problem in remoteobject application
 
 
 
 
 
 Inside your amfphp directory you will find a file globals.php.
 
 Change the $servicesPath variable to the full path to your services directory.
 
 HTH
 
 Steve
 
 --- In flexcod...@yahoogro ups.com, Vikram Singh vikisingh169@ ... wrote:
 
  I am not getting excetly what you are trying to say me.
  Can you please tell me in some detail which/how configure in amfphp?
  I am little bit freshers for this stuff.
  
  
  Thanks.
  
  
   _ _ __
  From: Pedro Sena sena.pedro@ ...
  To: flexcod...@yahoogro ups.com
  Sent: Monday, 22 June, 2009 5:55:51 PM
  Subject: Re: [flexcoders] domain problem in remoteobject application
  
  
  
  
  
  You can configure in amfphp where your 'services' would be.
  
  Take a look at documentation, I think that your idea is to have just one 
  amfphp directory for every project, if so, You can reference external 
  directories in a way that amfphp would search for them.
  
  HTH
  
  
  On Mon, Jun 22, 2009 at 9:07 AM, Vikram Singh vikisingh169@ yahoo.in 
  wrote:
  
  
  
  
  Hello friends,
  I have a query regarding domain problem.
  My database is at primarydomain (www..primarydomain . com)
  I also have subdomain and place all at subdomain directory. like this...
  
  scenario 1:
  Current file arrangement is:
  
  Exported release build flex project at :www.subdomain. com/flexApplicat ion/
  amfphp code placed at :www.subdomain. com/flexApplicat ion/amfphpcode/
  
  this is perfectly working.
  but now... 
  
  scenario 2:
  need to arrange like this
  
  Exported release build flex project at :www.subdomain. com/flexApplicat ion/
  amfphp code placed at :www.subdomain. com/amfphpcode/
  
  amfphpcode is placed outside of flex application directory.
  
  to run perfectly flex application in scenario-2, what changes I have to 
  make with flex application code OR any other.
  OR any other possible idea to implement it in scenario-2.
  Please help me...
  
  Regards,
  Vikram. 
  
   _ _ __
   ICC World Twenty20 England '09 exclusively on YAHOO! CRICKET 
  
  
  -- 
  /**
  * Pedro Sena
  * Systems Architect
  * Sun Certified Java Programmer 
  * Sun Certified Web Component Developer
  */
  
  
  
  
ICC World Twenty20 England #39;09 exclusively on YAHOO! CRICKET 
  http://cricket. yahoo.com
 
 
 
 
 
 
   Cricket on your mind? Visit the ultimate cricket website. Enter 
 http://cricket. yahoo.com



   


  Love Cricket? Check out live scores, photos, video highlights and more. 
Click here http://cricket.yahoo.com

[flexcoders] IE8/Vista exit fullscreen - inputtext locked

2009-06-26 Thread Ward Loockx
Hello,

I have an issue with IE8 and Vista. When you toggle fullscreen and exit 
fullscreen you're unable to use a textinput. Anybody noticed this bug 
before? Any workaround? I attached a small test application to 
illustrate the problem.

Greets,
Ward Loockx



?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
mx:Script
![CDATA[
import mx.events.StateChangeEvent;
private function openFullScreen(e:Event):void
{

//Application.application.stage.addEventListener(FullScreenEvent.FULL_SCREEN,testje);
   
Application.application.verticalScrollPosition = 0;
Application.application.invalidateDisplayList();

Application.application.stage.fullScreenSourceRect = new 
Rectangle(0, 0, 100, 100);
Application.application.stage.scaleMode = 
StageScaleMode.EXACT_FIT;
Application.application.stage.displayState = 
StageDisplayState.FULL_SCREEN;
   
   
}
]]
/mx:Script
mx:VBox
mx:TextInput id=dsdsds /
mx:Button label=fullcreen click=openFullScreen(event) /
/mx:VBox
/mx:Application



[flexcoders] Re: Mate CacheSetter

2009-06-26 Thread Anthony DeBonis
We use static constants for all these properties so we don't end up with simple 
type Os

Example:
static public const PROP_APPLICATION_IS_READY:String = applicationIsReady;
private var _applicationIsReady:Boolean;
+ setter/getter

And in the map

mate:PropertyInjector 
targetKey={DvMainView.PROP_APPLICATION_IS_READY} source={AppState} 
sourceKey={AppState.PROP_APPLICATION_IS_READY}/


Odd to see it trapping the type check on foo... but hope this helps.

Anthony


--- In flexcoders@yahoogroups.com, Richard Rodseth rrods...@... wrote:

 Any Mate users here? The forums are down again.
 
 I'm trying to use the newish CacheSetter tag, as follows:
 
 CacheSetter cache=global cacheKey=legacyModel instance={this.model}/
 
 Elsewhere:
 
 PropertyInjector targetKey=foo source=legacyModel sourceKey=foo/
 
 This gives the error: 1069 Property foo not found on String
 
 If I use the class name instead it complains because the class in
 question has constructor arguments.
 
 What's the correct approach here? Thanks.





[flexcoders] Re: PDF - Text Display

2009-06-26 Thread edmoreyra
vea alivepdf

--- In flexcoders@yahoogroups.com, lrlarsonny lrlar...@... wrote:

 Hello --
 
 Am I correct is gleaning from my google searches that there is no way to 
 display a pdf in Flex? (Not Air). And that flashpaper is no more?
 
 Given that, how do developers show formatted text? 
 
 We are building an app that will show documents within the published flex 
 swf, and I just assumed that there was a way to do this.
 Thanks
 
 lrlarson
 nyc





[flexcoders] Cpool Error

2009-06-26 Thread ag_rcuren
I have a Flex application built on Flex 3.2 recently I have found that on 
certain versions of flash player 9 users receive the following error:

VerifyError: Error #1033: Cpool entry 141 is wrong type.

at flash.display::MovieClip/nextFrame()
at mx.managers::SystemManager/deferredNextFrame()
at mx.managers::SystemManager/preloader_initProgressHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/timerHandler()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

I have searched high and low for what exactly this means and what I usually 
find is people telling me to upgrade my users to flash player 10. This does fix 
the error but I would really like to know what causes such and error any 
insight would be great.



[flexcoders] Selecting top level item in PopUpMenuButton

2009-06-26 Thread Antoine
Hi,
I'm using a popupMenuButton to display hierarchical data in Flex 3. I want to 
enable the selection of a top-menu item, even if it has a submenu attached to 
it.
even if this is a regular question on the web, i can't manage to find a good 
answer.

Is there any custom component, or a simple solution i can use to solve this? Or 
is there any workaround?

Thanks a lot,

Antoine




[flexcoders] itemrenderer in datagrid does not refresh

2009-06-26 Thread kshah0...@ymail.com
I have a external Itemrenderer that I am using in a Datagrid.  Everytime I 
search the datagrid by filterfunction, the itemrenderer does not refresh or 
displays out of order. 

Any ideas on how I can prevent this from happening?





[flexcoders] text input that only accepts numbers

2009-06-26 Thread kshah0...@ymail.com
What type of Flex validator component can I use so a Text Input component can 
only accept numbers?

I've tried the NumberValidator but it does not have character limit.



Re: [flexcoders] itemrenderer in datagrid does not refresh

2009-06-26 Thread Jeffry Houser

 Implement the onDataChange event in your itemRenderer . 

kshah0...@ymail.com wrote:
 I have a external Itemrenderer that I am using in a Datagrid.  Everytime I 
 search the datagrid by filterfunction, the itemrenderer does not refresh or 
 displays out of order. 

 Any ideas on how I can prevent this from happening?





 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links




   

-- 
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust




[flexcoders] Re: text input that only accepts numbers

2009-06-26 Thread Tim Hoff

Look at the restrict property, lest we revert to the stone-ages.

-TH

--- In flexcoders@yahoogroups.com, kshah0...@... kshah0...@...
wrote:

 What type of Flex validator component can I use so a Text Input
component can only accept numbers?

 I've tried the NumberValidator but it does not have character limit.






[flexcoders] Re: [Shared Object] Save XML

2009-06-26 Thread thelordsince1984
I would only know if is possible...

thanks again


--- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote:

 What happens when you try?
 
  
 
 You can always save it as a string then re-parse it when you retrieve it.
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of thelordsince1984
 Sent: Tuesday, June 23, 2009 11:30 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] [Shared Object] Save XML
 
  
 
 
 
 
 
 
 Hi,
 
 i would know if is possible to save xml format into SharedObjects..
 
 thanks
 
 Regard
 Lord





[flexcoders] external itemrenderer: how to refer to main app variables and functions

2009-06-26 Thread kshah0...@ymail.com
I have an external Itemrenderer used for a datagrid.  The function in the 
itemrenderer performs a function when button is clicked.   However I need to 
access the main app's functions.

Do I use events or super.?



Re: [flexcoders] Flex View Stack / Component Life Cycle Best practice

2009-06-26 Thread claudiu ursica
And you probably want to try to catch that change event on it's propagation 
phase instead of bubbling phase.

C





From: Jeffry Houser j...@farcryfly.com
To: flexcoders@yahoogroups.com
Sent: Friday, June 26, 2009 12:08:56 AM
Subject: Re: [flexcoders] Flex View Stack / Component Life Cycle Best practice






You probably want to run code when the viewStack changes.  Look at the 
ViewStack, I bet there is a change event. 

martinosaint wrote:
 Hi there,

 I have built a multiplage application in Flex with different user roles. I 
 use a View Stack with a Menu Bar to navigate between the different pages.

 However - each time a page gets opened, I need to do some database calls, 
 apply User Role settings, etc. in an init() function. This init function may 
 reference some UI elements of this page.

 I tried to load it with the creationComplete event, but this one gets only 
 triggered once (since the page is not rebuilt each them the view stack shows 
 it).

 Now I have put it on the show event, but this seems not to get triggered 
 consistently, or before the page is fully created the first time.

 Whats the best practice for this case?
  * I have to pass in data
  * Call init functions (database calls)
  * Manipulate components

 Ideally I would need a way to call init each time the page is loaded and 
 after all components are created.

 Thanks for your help,
 Martin



  - - --

 --
 Flexcoders Mailing List
 FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
 Alternative FAQ location: https://share. acrobat.com/ adc/document. do?docid= 
 942dbdc8- e469-446f- b4cf-1e62079f684 7
 Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. 
 comYahoo! Groups Links




 

-- 
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl. com/684b5h
http://www.twitter. com/reboog711 | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust


   


  

[flexcoders] Setting up automated testing in Flex SDK 3.3.0

2009-06-26 Thread tgersic
Hi All,

This is just a brief blog post I wrote on setting up automated testing in Flex, 
with SDK 3.3.0, which is missing the .swc files necessary. Hopefully it will be 
helpful to somebody somewhere:

http://www.modelmetrics.com/tomgersic/setting-up-automated-testing-in-flex-sdk-330/

Tom



[flexcoders] Watching a class full of bindable properties

2009-06-26 Thread steve horvath

I have a class marked Bindable with many properties.  The class has a
read-only function which returns come custom XML based on the
properties.  I want to fire a bindable event when any of the properties
change.

So far the ways that I've thought of doing it are:
1) Create a ChangeWatcher that monitors each individual property.  (The
host would be this and the chain would be an array with every single
property listed in it.)
2) Write a setter and a getter for every single property, with the
setter dispatching a custom bindable event.

The problem with the first method is I'd have to list out every
property.  Every time a property was added to this class I'd have to
make sure I updated the chain array.  The problem with the second method
is I'd have to write setters and getters for every single property. 
(The actual class has more than 20 properties.)  It would make the class
harder to read.

Is there a way I could watch the properties for change with just a
couple lines of code?


 [Bindable]
 public class TheProperties
 {
 public var presetName:String=default;
 public var presetThumb:String=;
 public var presentationTitle:String=;
 public var presentationThumb:String=;
 public var presentationLogoURL:String=;
 // many more properties...

 [Bindable(event=propertyChangeEvent)] // necessary to get rid
of binding warnings
 public function get xmlCode():XML {
 // some funky stuff to create XML based on above properties
 }
 }






RE: [flexcoders] external itemrenderer: how to refer to main app variables and functions

2009-06-26 Thread Alex Harui
parentDocument might work.  Some use events.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of kshah0...@ymail.com
Sent: Friday, June 26, 2009 8:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] external itemrenderer: how to refer to main app variables 
and functions





I have an external Itemrenderer used for a datagrid. The function in the 
itemrenderer performs a function when button is clicked. However I need to 
access the main app's functions.

Do I use events or super.?



[flexcoders] Applly Transition in Flex4

2009-06-26 Thread j2me_soul
I got a section of code in Flex3.
How can I achieve the same function in Flex4?
mx:transitions
mx:Transition fromState=* toState=*
mx:Sequence id=t1 targets={[p1,p2,p3]}
mx:Blur duration=100 blurXFrom=0.0 blurXTo=10.0
blurYFrom=0.0 blurYTo=10.0/
mx:Parallel
mx:Move  duration=400/
mx:Resize duration=400/
/mx:Parallel
mx:Blur duration=100 blurXFrom=10.0 blurXTo=0.0
blurYFrom=10.0 blurYTo=0.0/
/mx:Sequence
/mx:Transition
/mx:transitions


!-- Define the Canvas container holding the three Panel containers.--
mx:Canvas id=pm width=100% height=100% 
mx:Panel id=p1 title=One 
x=0 y=0 width=100 height=100
click=currentState='One' 
mx:Label fontSize=24 text=One/
/mx:Panel

mx:Panel id=p2 title=Two 
x=0 y=110 width=100 height=100
click=currentState='Two' 
mx:Label fontSize=24 text=Two/
/mx:Panel

mx:Panel id=p3 title=Three 
x=110 y=0 width=200 height=210 
click=currentState='' 
mx:Label fontSize=24 text=Three/
/mx:Panel
/mx:Canvas




!-- In Flex4, doesn't work --

fx:Declarations
mx:Transition fromState=* toState=*
mx:Sequence id=t1 targets={[panel1, panel2]}
mx:Blur duration=100 blurXFrom=0.0 blurXTo=10.0
blurYFrom=0.0 blurYTo=10.0/
mx:Parallel
mx:Move  duration=400 xTo=0 yTo=428/
mx:Resize duration=400 widthTo=106 heightTo=52/
/mx:Parallel
mx:Blur duration=100 blurXFrom=10.0 blurXTo=0.0
blurYFrom=10.0 blurYTo=0.0/
/mx:Sequence
/mx:Transition
/fx:Declarations


s:Panel id=panel1 title=Panel Horizontal 
x.premiere=0 y.premiere=313.1 width.premiere=1021 height.premiere=167  
x.secondary=0 y.secondary=426
s:HGroup
s:Button label=Up label.secondary=Up 
 click.premiere=currentState='secondary' 
click.secondary=currentState='premiere' 
 label.premiere=Down/
/s:HGroup
/s:Panel
s:Panel id=panel2 title=Panel vertical width=300 height=100% 
x.premiere=794.4 y.premiere=0 x.secondary=931.95 y.secondary=0 
height.secondary=57 width.secondary=90 
width.premiere=230 height.premiere=480
s:HGroup
s:Button label=Up label.secondary=Up 
 click.premiere=currentState='secondary' 
click.secondary=currentState='premiere' 
 label.premiere=Down/
/s:HGroup
/s:Panel

[flexcoders] Save the display the destination folder to save a file

2009-06-26 Thread reversible_82
I guys, I need to select a destination folder to save a file that's
ok with the FileReference Class but I need to represent the path in a
read only text input component, here is the path example of the text
that I want to display
C:\Pictures\etc

is there any way to accomplish this action??.

Thanks



[flexcoders] Re: Flex Browse File

2009-06-26 Thread reversible_82
No, it seem like this class do not exist in flex, should be a way to do
this on flex, does anyone have an Idea?

--- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote:


 Not sure if this available for flex, but for air:

 var file:File = new File();
 file.addEventListener(Event.SELECT, dirSelected);
 file.browseForDirectory(Select a directory);
 function dirSelected(e:Event):void {
 trace(file.nativePath);
 }

 -TH

 --- In flexcoders@yahoogroups.com, reversible_82 reversible_82@
 wrote:
 
  Hi guys,
 
  I'm trying to browse and select a folder from the local file
system,i
 was reading about the FileReferenceList class to browse a file, but
that
 does not let me select a folder, just a file, do you know how can I
get
 Around this, or some source to read. I need to select a folder from
the
 local system not a file.
 
  Thanks
 





[flexcoders] Memory Leak in DataServices based App ??

2009-06-26 Thread Dharmendra Chauhan
Hi All,

  I have  very basic application which uses  DataSerives over RTMP
channel  to populate dataGrid , I have not used any  user defined
component.

This application has got LOAD data and Remove data  Button just to
simulate the actual application

What happens , when I click on LOAD data , It  loads the data from
server(JBOSS) then I Remove all the data and force the GC to run

If I continuously keep loading and removing the  data ,  memory goes up
every time and after some times It reaches to threshold and  finally
crashes the Browser.

In actual application as soon as user logs in a dedicated DS destination
is created..

  private function createDestination(destName:String):void{
 var remoteService:RemoteObject = new
RemoteObject(DestinationManager);
 remoteService.addEventListener(ResultEvent.RESULT,
resultHandler,false,0,true);
 var operation:AbstractOperation =
remoteService.getOperation(createDestination);
 operation.send(destName);
 var cs:ChannelSet = new ChannelSet();
 var rtmpChannel:RTMPChannel =
ServerConfig.getChannel(my-rtmp) as  RTMPChannel;
 cs.addChannel(rtmpChannel);
 tradeService = new DataService() ;
 tradeService.destination=destName;
 tradeService.channelSet = cs;
 }


Now when user hits on Load data button to load the trade data ...

public function loadData():void
 {
 var remoteService:RemoteObject  = new
RemoteObject(filterRemoteVO);
 var operation:AbstractOperation =
remoteService.getOperation(loadData);
 tradeService.fill(tradeCollection);
 operation.send(rowData.text ,GUIID);
 tradeList.dataProvider = tradeCollection;

 }


Remove Data  hit I clean all the resource and released collection :-

  public  function  removeAll():void{
 if(tradeList.dataProvider){
  tradeCollection.source = new Array();
  tradeList.dataProvider.source = new Array();
  tradeList.dataProvider = null;
 }
tradeService.release();
   tradeService.releaseCollection(tradeCollection);
  tradeService.channelSet.disconnectAll();
  tradeService.disconnect();
   tradeService.logout();
   System.gc();
 }

Except these 3 function I don't have any code which could cause memory
leak.

I m using

* LCDS 2.5

* Flex 3.0
* JBoss4.2

Please see the mxml file below   , If  possible please have a look at it
, I might  not be using dataSerice API correctly.

I have been trying to solve this leak for last two week , I really need
help from you guys.
My client has already evaluating other contemporary technology because
of this memory issue.

I have also created scalled down war file which can be deployed on any 
java application server.Just provide your emial Id , Iwill send that to
you.

Any help will greatly be appreciated

Regards,

Dam
 MXML##


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
  creationComplete=init(); height=100% width=100%
 
 mx:Script 
 ![CDATA[
 import mx.containers.GridRow;
   import mx.utils.Base64Decoder;
 import mx.utils.StringUtil;
import mx.events.CollectionEvent;
 import mx.formatters.Formatter;
 import mx.events.ResizeEvent;
 import mx.controls.DataGrid;
 import mx.effects.Fade;
 import mx.events.DataGridEvent;
 import mx.utils.ObjectUtil;
 import mx.events.ScrollEvent;
   import mx.formatters.DateFormatter;
   import mx.events.ListEvent;
   import mx.data.mxml.DataService;
   import mx.messaging.config.ServerConfig;
   import mx.messaging.channels.RTMPChannel;
   import mx.messaging.ChannelSet;
   import mx.rpc.AbstractOperation;
   import mx.rpc.remoting.RemoteObject;
   import mx.collections.ArrayCollection;
   import mx.controls.Alert;
   import mx.rpc.events.ResultEvent;
   import mx.messaging.messages.*;
   import mx.messaging.events.*;
   import mx.controls.Alert;



private var GUIID:String;
private var lastRollOverIndex:Number;

public var tradeService:DataService=null;
public var tradeCollection:ArrayCollection = new
ArrayCollection();

   public var flag:Boolean = false;


private function init():void {
   var guiId:String =TEST;
createDestination(GUIID);

   }

public function getData():void{

 // memory.text =+ ((System.totalMemory / 1024)/1024);

}
public function releaseDataServices():void {
   //  tradeService.fill(null);
tradeService.release();
   // tradeService.releaseCollection(tradeCollection);