[flexcoders] Re: createChild dynamically via DB arguments..

2005-04-06 Thread Scott Barnes

better yet:

say you have a situation like this

var x = com[str1][str2][str3];

container.createChild(x);

that works ok.

but...

if if i try [com][str1][str2][str3] it doesn't. My question
is, how does com come into the equation, is it some kind of FLEX
mapping?

dir structure is
/com/
/com/SynerygFLEX/
etc..

I'm trying to have it so that i can instantiate a dynamic class path
on the fly.

It works if i prefix it with some base root level dirs

eg:
/com/
/blah/
/de/
/au/

these would work:

com[str1][str2][str3];
blah[str1][str2][str3];
de[str1][str2][str3];
etc
...
but i kind of need to go 

_whateverThisObjectIs[com][str1][str2][str3] 
or
_whateverThisObjectIs[blah][str1][str2][str3] 

Any help? 


On Apr 6, 2005 3:36 PM, Scott Barnes [EMAIL PROTECTED] wrote:
 Can I quickly confirm something?
 
 In order to use createChild(classPath) that initial classPath has to
 be included before runtime correct? in that you cannot instantiate a
 custom MXML component unless you either xmlns: / import it?
 
 In saying that, if you have a situation where you want to via an
 onClick instantiate a MXML component thats path came from a DB, its
 not dooable as the FLEX server will need to know about this class
 upfront...that or you have to use attachMovie(your.mxmlFile.mxml.swf)
 
 ?
 
 
 --
 Regards,
 Scott Barnes
 http://www.mossyblog.com
 http://www.flexcoder.com (Coming Soon)
 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Re: createChild dynamically via DB arguments..

2005-04-06 Thread Abdul Qabiz

Hi,

I think, if you prefix with base level dir, Flex compiler resolves the
reference and compile the class into main swf

I remember, there was a way to dynamically load an AS2 class in Flash. You
compile the stub class in your main app and on runtime load the a swf into
main app, this swf contains the complete implementation of the class. Once
swf is loaded, you create object of the class...

Makes sense?

I guess, something similar might be helpful in your case

Not able to find that thread, even forgot which mailing list it was
discussed

-abdul
 

-Original Message-
From: Scott Barnes [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 12:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: createChild dynamically via DB arguments..


better yet:

say you have a situation like this

var x = com[str1][str2][str3];

container.createChild(x);

that works ok.

but...

if if i try [com][str1][str2][str3] it doesn't. My question
is, how does com come into the equation, is it some kind of FLEX
mapping?

dir structure is
/com/
/com/SynerygFLEX/
etc..

I'm trying to have it so that i can instantiate a dynamic class path
on the fly.

It works if i prefix it with some base root level dirs

eg:
/com/
/blah/
/de/
/au/

these would work:

com[str1][str2][str3];
blah[str1][str2][str3];
de[str1][str2][str3];
etc
...
but i kind of need to go 

_whateverThisObjectIs[com][str1][str2][str3] 
or
_whateverThisObjectIs[blah][str1][str2][str3] 

Any help? 


On Apr 6, 2005 3:36 PM, Scott Barnes [EMAIL PROTECTED] wrote:
 Can I quickly confirm something?
 
 In order to use createChild(classPath) that initial classPath has to
 be included before runtime correct? in that you cannot instantiate a
 custom MXML component unless you either xmlns: / import it?
 
 In saying that, if you have a situation where you want to via an
 onClick instantiate a MXML component thats path came from a DB, its
 not dooable as the FLEX server will need to know about this class
 upfront...that or you have to use attachMovie(your.mxmlFile.mxml.swf)
 
 ?
 
 
 --
 Regards,
 Scott Barnes
 http://www.mossyblog.com
 http://www.flexcoder.com (Coming Soon)
 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Re: createChild dynamically via DB arguments..

2005-04-06 Thread Gordon Smith

You should be using

public static function findClass(className:String):Function

in class mx.utils.ClassUtil.

- Gordon

-Original Message-
From: Chafic Kazoun [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 12:44 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: createChild dynamically via DB arguments..



Did you try using eval()?

Thanks

Chafic

-Original Message-
From: Scott Barnes [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 3:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: createChild dynamically via DB arguments..


better yet:

say you have a situation like this

var x = com[str1][str2][str3];

container.createChild(x);

that works ok.

but...

if if i try [com][str1][str2][str3] it doesn't. My question
is, how does com come into the equation, is it some kind of FLEX
mapping?

dir structure is
/com/
/com/SynerygFLEX/
etc..

I'm trying to have it so that i can instantiate a dynamic class path
on the fly.

It works if i prefix it with some base root level dirs

eg:
/com/
/blah/
/de/
/au/

these would work:

com[str1][str2][str3];
blah[str1][str2][str3];
de[str1][str2][str3];
etc
...
but i kind of need to go 

_whateverThisObjectIs[com][str1][str2][str3] 
or
_whateverThisObjectIs[blah][str1][str2][str3] 

Any help? 


On Apr 6, 2005 3:36 PM, Scott Barnes [EMAIL PROTECTED] wrote:
 Can I quickly confirm something?
 
 In order to use createChild(classPath) that initial classPath has to
 be included before runtime correct? in that you cannot instantiate a
 custom MXML component unless you either xmlns: / import it?
 
 In saying that, if you have a situation where you want to via an
 onClick instantiate a MXML component thats path came from a DB, its
 not dooable as the FLEX server will need to know about this class
 upfront...that or you have to use attachMovie(your.mxmlFile.mxml.swf)
 
 ?
 
 
 --
 Regards,
 Scott Barnes
 http://www.mossyblog.com
 http://www.flexcoder.com (Coming Soon)
 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links



 






 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Re: createChild dynamically via DB arguments..

2005-04-06 Thread Abdul Qabiz

I am not sure, if either of these method going to work, if your class is not
compiled in main app...

I think, Scott is more asking about dynamic loading of class/component when
required on runtime

I think, mx.utils.ClassUtil.findClass() would only work when class
definition is present in app...

Scott, if you are ok to keep all components in main app, above things going
to work. But it might increase the swf size...If you are sure that all
components are going to be used in application life cycle at some point of
time, then this approach is ok...

-abdul

-Original Message-
From: Dirk Eismann [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 1:18 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: createChild dynamically via DB arguments..


Try putting _global in front of your first package, i.e.

  var x = _global[com][str1][str2][str3];

or, if you know the full class path (fully qualified class name) then try

  var x = mx.utils.ClassUtil.findClass(com.str1.str2.str3);

Dirk.

 -Original Message-
 From: Scott Barnes [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 06, 2005 9:10 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: createChild dynamically via DB arguments..
 
 
 
 better yet:
 
 say you have a situation like this
 
 var x = com[str1][str2][str3];
 
 container.createChild(x);
 
 that works ok.
 
 but...
 
 if if i try [com][str1][str2][str3] it doesn't. My question
 is, how does com come into the equation, is it some kind of FLEX
 mapping?
 
 dir structure is
 /com/
 /com/SynerygFLEX/
 etc..
 
 I'm trying to have it so that i can instantiate a dynamic class path
 on the fly.
 
 It works if i prefix it with some base root level dirs
 
 eg:
 /com/
 /blah/
 /de/
 /au/
 
 these would work:
 
 com[str1][str2][str3];
 blah[str1][str2][str3];
 de[str1][str2][str3];
 etc
 ...
 but i kind of need to go 
 
 _whateverThisObjectIs[com][str1][str2][str3] 
 or
 _whateverThisObjectIs[blah][str1][str2][str3] 
 
 Any help? 
 
 
 On Apr 6, 2005 3:36 PM, Scott Barnes [EMAIL PROTECTED] wrote:
  Can I quickly confirm something?
  
  In order to use createChild(classPath) that initial classPath has to
  be included before runtime correct? in that you cannot instantiate a
  custom MXML component unless you either xmlns: / import it?
  
  In saying that, if you have a situation where you want to via an
  onClick instantiate a MXML component thats path came from a DB, its
  not dooable as the FLEX server will need to know about this class
  upfront...that or you have to use 
 attachMovie(your.mxmlFile.mxml.swf)
  
  ?
  
  
  --
  Regards,
  Scott Barnes
  http://www.mossyblog.com
  http://www.flexcoder.com (Coming Soon)
  
 
 
 -- 
 Regards,
 Scott Barnes
 http://www.mossyblog.com
 http://www.flexcoder.com (Coming Soon)
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 
 


 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Re: createChild dynamically via DB arguments..

2005-04-06 Thread Dirk Eismann

Hi Abdul,

 I think, mx.utils.ClassUtil.findClass() would only work when class
 definition is present in app...

yeah, that's right. I think Scott's code snippet implies that he has the 
classes compiled into the SWF file - otherwise it wouldn't work for him :)

  say you have a situation like this
  
  var x = com[str1][str2][str3];
  
  container.createChild(x);
  
  that works ok.

Dirk.


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] JavaDoc style docs for Flex PLUS Actionscript 2

2005-04-06 Thread Seth Voltz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello List,

When developing with Flex I have a tab open in my browser to the Flex 
JavaDoc style docs of all the MXML classes. I also have Flex and 
Actionscript LiveDocs for their searching capabilities. My question is 
if there is something like the MXML docs for all of Actionscript2 
including Flex's additions (or even just AS2)

Having a classpath view of everything was a great help when I was just 
starting to learn Flex and I keep seeing new classes on here I'd never 
seen before. Any ideas?

Thanks,
 Seth
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCU6bEsnBTlzgQQ28RArYDAKCD/87pazHAwNCh2AvtcMhnjwXbpgCaAhsi
MSDMPPfxdphS5NUKMflt50k=
=51/y
-END PGP SIGNATURE-



 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Re: PrintJob()

2005-04-06 Thread Abdul Qabiz
Hi Rich,

Try this



##PrinJobExample.mxml###

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=*

mx:Script
![CDATA[
  
import Help;
   
var helpRef;

public function testPrintJob():Void 
{   
helpRef= createChild(Help, help);

//wait untill help is created  rendered
completely...
helpRef.addEventListener(creationComplete,
mx.utils.Delegate.create(this, printHelp));
 }

function printHelp()
{
 var printJob:PrintJob= new PrintJob();
 printJob.start();
 printJob.addPage(helpRef);
 
 printJob.send();
 delete printJob;
 destroyChild(helpRef);
}   
]]
/mx:Script

mx:Button label=print click=testPrintJob();/

/mx:Application


##Help.mxml###

mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml;
mx:Label id=_lbl text=Hello I am Help/
mx:Button label=Button in Help.../
/mx:VBox



Hope that helps...


-abdul

-Original Message-
From: Rich Tretola [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 5:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: PrintJob()


Does anyone have any ideas about this ?



On Mar 31, 2005 3:06 PM, Rich Tretola [EMAIL PROTECTED] wrote:
 I am trying to print an mlmx file at the same level as the one calling
 the printjob.  Here is my code:
 public function testPrintJob():Void {
 var printJob:PrintJob = new PrintJob();
 var help:Help = new Help();
 mx.core.Application.alert(testProperty : + help.testProperty);
 printJob.start();
 printJob.addPage(0);
 printJob.addPage(help);
 printJob.send();
 delete printJob;
 }
 
 Help.mxml is the object being created in the 2nd lineof the method and
 it is being created correctly as I can read the properties of the file
 through an alert on the next line, bit I am only getting the 1st page
 which is using 0 as the object path (_root).  I have tried using help
 with and without the quotes and can never get it added as a page.
 Anyone have any ideas ?
 
 Rich



 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Help.mxml
Description: Binary data


Main.mxml
Description: Binary data


RE: [flexcoders] Re: createChild dynamically via DB arguments..

2005-04-06 Thread Erik Westra

Agreed,

We use a similair system to create instances from strings at runtime. In
our main class we have this line of code:

Components;

The class components look like this:

class Components
{
public function Components()
{
package.Component1;
package.Component2;
};
};

This way, we are able to instantiate the classes inside Components.as at
runtime via a string. Eventually Components.as will be generated by
ColdFusion before the Flex application is loaded.


Greetz Erik


-Original Message-
From: Dirk Eismann [mailto:[EMAIL PROTECTED] 
Sent: woensdag 6 april 2005 11:04
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: createChild dynamically via DB arguments..


Hi Abdul,

 I think, mx.utils.ClassUtil.findClass() would only work when class 
 definition is present in app...

yeah, that's right. I think Scott's code snippet implies that he has the
classes compiled into the SWF file - otherwise it wouldn't work for him
:)

  say you have a situation like this
  
  var x = com[str1][str2][str3];
  
  container.createChild(x);
  
  that works ok.

Dirk.


 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Re: createChild dynamically via DB arguments..

2005-04-06 Thread Dirk Eismann

 Eventually Components.as will be generated by
 ColdFusion before the Flex application is loaded.

one word: nifty :)

Dirk.


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: createChild dynamically via DB arguments..

2005-04-06 Thread Scott Barnes

heh heres the concept (haven't tried the above approaches yet *waits
for his $4,500 AUD alienware laptop to boot that weighs 12lbs and has 
keyboard that heats up*. btw i hate alienware.

Ok, the *REASON* why I wanted to approach this dynamic class creation
at runtime, is that i'm using an XML configuration (as most of you may
of read in the past) for my framework. Inside this XML Configuration
you can specify various paths for certain elements (ie templates,
view-pods, presenters etc). So the initial base class loaded is
realitively small in size.

What happens is a class i wrote traverses this configuration file,
breaks it up into various managers (ViewPodManager, ScreenManager,
TemplateManager) etc and then once ready, I fired off a defaultScreen
event (showMainScreen).

This then on a per screen basis, gathers all the requirements for
presenting that screen and part of that process is it needs to
instantiate certain MXML/ASCLasses on the fly based on arguments you
previously specificed inside your config.xml

The weird part - which is what prompted me to send of this orginal
post is - that the entire first pass doesn't know anything about the
mxml/asclasses inside the main directory structure - in that i have no
XMLNS or IMPORT declartions anywhere. I found that if i:

var a = SynergyFlex;
var b = framework;
var c = templates;
var d = mail;
var e = defaultLayout;

var oTemplate:Function =  com[a][b][c][d][e];
ScreenContainer.createChild(oTemplate);

it works, it creates the child. Of course, i use an iteration string
solution (ie break the path up via split and piece it together,
growing the object as i iterate.

The catch22 i found though was you had prefix it correctly, in that
com[etc..] or org[etc..] which made me think that com/org/de/blah/mx
etc could be like J2EE mappings or something, and needed a way to just
jump up the heirachy just one more step (ie i'm hoping _level0 or
_global maybe that point).

Its just weird how it lets me create stuff on the fly like that, and
the only thing i can guess is that some how if its not asked/stored in
the code up front it talks to the server and says gimme that object
- that or - it must in some small way include the entire
/yourFlexApp/* somehow??? clueless as to whats going on here.

I say that as I first thought no way will this work, and i'll have to
use a loadMoview(myviewpods.mxml) approach - that or - do a
embed/#include style concept of some sort...

*shrug*... had me baffled.

Let ya know how i go ;)

On Apr 6, 2005 7:25 PM, Dirk Eismann [EMAIL PROTECTED] wrote:
 
  Eventually Components.as will be generated by
  ColdFusion before the Flex application is loaded.
 
 one word: nifty :)
 
 Dirk.
 
 
 Yahoo! Groups Links
 
 
 
 
 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Re: createChild dynamically via DB arguments..

2005-04-06 Thread Dirk Eismann

Hi,

in general: the compiler includes all classes into the resulting SWF if there's 
at least *one* reference to it.  There's no class loader as in Java.

If your 

 var a = SynergyFlex;
 var b = framework;
 var c = templates;
 var d = mail;
 var e = defaultLayout;
 var oTemplate:Function =  com[a][b][c][d][e];
 ScreenContainer.createChild(oTemplate);

works, then *only* because the class 
SynergyFlex.framework.templates.mail.defaultLayout was refered to already in 
any of your files. Using an 

  import SynergyFlex.framework.templates.mail.defaultLayout

is not enough to get the file compiled in! As Erik mentioned you need a 
reference to it - you don't need to instantiate the class, a reference is just 
fine.

So in your special case defining classes as strings inside an external XML file 
that gets read in during runtime does not ensure that the (custom) classes get 
compiled in - and that's because the compiler does not know about them during 
compile time.

If you want to include files into your SWF then the best is to use the approach 
Erik posted: have on file that contains just the references to the classes that 
should get compiled in. Don't know if that fits to the idea of your framework - 
as far as I understand you really want to have it as flexible as possible but 
maybe it's a workaround for you.

Makes sense?

Dirk.

 -Original Message-
 From: Scott Barnes [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 06, 2005 11:46 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: createChild dynamically via DB 
 arguments..
 
 
 
 heh heres the concept (haven't tried the above approaches yet *waits
 for his $4,500 AUD alienware laptop to boot that weighs 12lbs and has 
 keyboard that heats up*. btw i hate alienware.
 
 Ok, the *REASON* why I wanted to approach this dynamic class creation
 at runtime, is that i'm using an XML configuration (as most of you may
 of read in the past) for my framework. Inside this XML Configuration
 you can specify various paths for certain elements (ie templates,
 view-pods, presenters etc). So the initial base class loaded is
 realitively small in size.
 
 What happens is a class i wrote traverses this configuration file,
 breaks it up into various managers (ViewPodManager, ScreenManager,
 TemplateManager) etc and then once ready, I fired off a defaultScreen
 event (showMainScreen).
 
 This then on a per screen basis, gathers all the requirements for
 presenting that screen and part of that process is it needs to
 instantiate certain MXML/ASCLasses on the fly based on arguments you
 previously specificed inside your config.xml
 
 The weird part - which is what prompted me to send of this orginal
 post is - that the entire first pass doesn't know anything about the
 mxml/asclasses inside the main directory structure - in that i have no
 XMLNS or IMPORT declartions anywhere. I found that if i:
 
 var a = SynergyFlex;
 var b = framework;
 var c = templates;
 var d = mail;
 var e = defaultLayout;
 
 var oTemplate:Function =  com[a][b][c][d][e];
 ScreenContainer.createChild(oTemplate);
 
 it works, it creates the child. Of course, i use an iteration string
 solution (ie break the path up via split and piece it together,
 growing the object as i iterate.
 
 The catch22 i found though was you had prefix it correctly, in that
 com[etc..] or org[etc..] which made me think that com/org/de/blah/mx
 etc could be like J2EE mappings or something, and needed a way to just
 jump up the heirachy just one more step (ie i'm hoping _level0 or
 _global maybe that point).
 
 Its just weird how it lets me create stuff on the fly like that, and
 the only thing i can guess is that some how if its not asked/stored in
 the code up front it talks to the server and says gimme that object
 - that or - it must in some small way include the entire
 /yourFlexApp/* somehow??? clueless as to whats going on here.
 
 I say that as I first thought no way will this work, and i'll have to
 use a loadMoview(myviewpods.mxml) approach - that or - do a
 embed/#include style concept of some sort...
 
 *shrug*... had me baffled.
 
 Let ya know how i go ;)
 
 On Apr 6, 2005 7:25 PM, Dirk Eismann 
 [EMAIL PROTECTED] wrote:
  
   Eventually Components.as will be generated by
   ColdFusion before the Flex application is loaded.
  
  one word: nifty :)
  
  Dirk.
  
  
  Yahoo! Groups Links
  
  
  
  
  
 
 
 -- 
 Regards,
 Scott Barnes
 http://www.mossyblog.com
 http://www.flexcoder.com (Coming Soon)
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 
 


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Re: createChild dynamically via DB arguments..

2005-04-06 Thread Dirk Eismann

sorry, should read

in general: the compiler includes a class into the 
resulting SWF if there's at least *one* reference to it.

instead of

 in general: the compiler includes all classes into the 
 resulting SWF if there's at least *one* reference to it.  
 There's no class loader as in Java.

Dirk.


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Problem with showBusyCursor on a popupWindow

2005-04-06 Thread joao_m_fernandes


Well Matt,

I'm the only one developping with flex here and no one else works with
it (or coldfusion).

My remoteObject doesn't have this substring function anywhere I even
searched in all site for that string and none was found.

On the webbrowser everything works fine without showbusycursor.
Under FB (debugging mode), I got that call each time i close the
popupwindow and FB take too long to close the window, I got a black
window and I'm forced to return to code view.

I have an event handler and I commented all my code and just left the
deletePopUp() method to see if any of my code was executing this
misterious call and no luck.

João Fernandes 

--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 Well it looks like something is trying to call substr on your
RemoteObject
 and I'm not sure why because I don't think any of our code should be
doing
 it on random components.  Do you have calls to substr in your code?
 Do you
 have any event handlers calling your RemoteObject that may be
executing an
 extra time?  Maybe someone set a reference to the RemoteObject
elsewhere in
 your application?
 
  
 
 Matt
 
  
 
   _  
 
 From: joao_m_fernandes [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, April 05, 2005 3:29 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Problem with showBusyCursor on a popupWindow
 
  
 
 
 Matt,
 
 With FB debugger I can catch this each time I try to close the
 titleWindow. The problem is that the method in question does not exist
 in my component.
 
 Remote Object 
 Method: cfcs.core.tab_suport.substr
 
 Parameter 1: 
 name : param1
 type : number
 value : 0
 
 Parameter 2: 
 name : param2
 type : number
 value : 2
 
 Message Target : cfcs.core.tab_suport.substr
 
 data[array] : 
 
 length[Number] : 2
 [0][Number] : 0
 [1][Number] : 2
 
 Regards,
 
 João Fernandes
 
 In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
  Do you know what method it's trying to call?  I suppose the window
 could be
  introspecting the contained objects but that would be weird.  A
 workaround
  would maybe be to move the RemoteObject outside the TitleWindow into
 another
  class and simply have your functions call the outside remote object.
  
   
  
  Matt
  
   
  
_  
  
  From: joao_m_fernandes [mailto:[EMAIL PROTECTED] 
  Sent: Monday, April 04, 2005 6:27 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Problem with showBusyCursor on a popupWindow
  
   
  
  
  Hi there,
  
  I'm calling a RemoteObject method inside a popup with showbusycursor
  enabled.
  
  The problem is when I call click function to delete the popup, the
  busy cursor shows up calling some remote meth
 
 od that I don't use
  anywhere (got that from FB network debugger). If I remove
  showbusycursor property it works just fine.
  
  Is this an known issue? 
  
  ?xml version=1.0 encoding=utf-8?
  mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml
 http://www.macromedia.com/2003/mxml 
  http://www.macromedia.com/2003/mxml
http://www.macromedia.com/2003/mxml
  
  title=Adicionar Contacto  xmlns=* initialize=initApli()
  click=this.deletePopUp()
  
mx:RemoteObject id=tab_ro
  endpoint=/cfusion/flashservices/gateway
  source=cfcs.core.tab_suport showBusyCursor=true
  mx:method name=GetPais result=setDefaultPais()/
mx:method name=GetHabilitacao/
/mx:RemoteObject
  ...
  
  João Fernandes
  
  
  
  
  
  
  
_  
  
  Yahoo! Groups Links
  
  *  To visit your group on the web, go to:
  http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/ 
  http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/  

  *  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] 

  *  Your use of Yahoo! Groups is subject to the Yahoo!
  http://docs.yahoo.com/info/terms/
http://docs.yahoo.com/info/terms/ 
 Terms of Service.
 
 
 
 
 
 
   _  
 
 Yahoo! Groups Links
 
 * To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/ 
   
 * To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] 
   
 * Your use of Yahoo! Groups is subject to the Yahoo!
 http://docs.yahoo.com/info/terms/  Terms of Service.





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Re: createChild dynamically via DB arguments..

2005-04-06 Thread Erik Westra

The framework we now use in flex was different than the one we used with
Flash on one crucial point. With the Flash version every class (or
actually module, a set of classes) was loaded in at runtime and had its
own swf, wich contained only one line of code:

package.ClassName;

When u needed a class, the swf was loaded in and as soon as it finished
loading the class would be available.

The problem with flex is that u also use mxml classes, wich is something
the Flash Compiler cannot compile. U might want to investigate this
approach using the flex compiler and create swf's of all classes. It
wouldn't be to hard to write a piece of software that loops recursively
through a given directory compiling classes. A problem here might be
classes referencing another class, resulting in an swf with more than
just one class.

Hope this helps your thinking..

Greetz Erik


-Original Message-
From: Dirk Eismann [mailto:[EMAIL PROTECTED] 
Sent: woensdag 6 april 2005 12:06
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: createChild dynamically via DB arguments..


sorry, should read

in general: the compiler includes a class into the resulting SWF if
there's at least *one* reference to it.

instead of

 in general: the compiler includes all classes into the resulting SWF 
 if there's at least *one* reference to it.
 There's no class loader as in Java.

Dirk.



 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Data Grid event-Need help

2005-04-06 Thread ibibas


Hi again!

I would like the selected file in a datagrid changes when the user
navigates to a new line via TAB/INTRO keys. As this is not the default
behavior, anyone knows how to overwrite it?

More info:

In my code:

mx:DataGrid id=dgProjectList .. keyDown=checkKey(event); .. 

where:

function checkKey(evt){

  if(evt.code=Key.ENTER){
trace(ENTER);
  }
  if(evt.code=Key.TAB){
trace(TAB);
  }
  else trace(KEY);
}

This code works for ENTER key only is no cell is focused. Otherwise it´s
ignored. For TAB key the code is ignored anyway.


Isaac Bibás




 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Control the placement of a combobox drop down list

2005-04-06 Thread greenfishinwater


With a combobox drop down list, it seems to default to appearing below
the combo box, and sometimes depending on the size of the list and
other factors, it may appear above the list. 

Is it possible to change this default so that it appears above the
combo box?

Andrew






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Inserting a blank row in the middle of a datagrid.

2005-04-06 Thread greenfishinwater


I have a datagrid, populated via a dataprovider from a remote object.
The grid has 3 columns, the first of which is a type description. In
my application there are only 2 different types (Full Price and
Discount Price). I would like to have a blank row between the rows of
the first type and the rows of the second type.This would help
differentiate the 2 groups of data.

Anybody have any ideas on anyway to do this?

Andrew





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Animating data points on a graph

2005-04-06 Thread Geoff Bowers

On Apr 6, 2005 10:21 PM, Dirk Eismann [EMAIL PROTECTED] wrote:
  the Flex Charts Explorer provides an example: choose Misc Techniques and
 Examples -- Real Time Data
 http://flexapps.macromedia.com/flex15/chartexplorer/explorer.mxml

Funny I've never found this explorer before :)  Can't seem to find the
link on the Macromedia site -- but thanks it's just the start I
needed.

-- geoff
On the road via GMail.


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Re: createChild dynamically via DB arguments..

2005-04-06 Thread Erik Westra

Im sure we can lay out allot of possibilities, but that's not what u
want.

There are two possible reasons for the fact that u would like to
instantiate a class runtime (via createChild):

1. U want your main application to be as light as possible.
2. U don't know (at compile time) which class will represent the child.


My guess is that number 2 is the one u are after. To achieve that goal
take the following steps.


A.
Place the following code inside your initialize function in your main
application:

Components;

B.
Create (in the same dir as the main application) a 'Components.as' file,
this file contains the following code:

class Components
{
public function Components()
{
//put all possible children inhere
com.myProject.MyClass;
};
};


The above two steps make sure the possible childs are included in the
flex application (they are compiled in the resulting swf).


C.
Create a function in your application that looks like this:

public function getClassRef(classPath_str:String):Object
{
var classRef_obj:Object = _global;
var class_array:Array = classPath_str.split(.);

for (var i = 0; i  class_array.length; i++)
{
classRef_obj = classRef_obj[class_array[i]];
};

return classRef_obj;
};

D.
In the initialize function u can create a child like this:

baseContainer.createChild(getClassRef(com.myProject.MyClass));


I hope this helps :)

Greetz Erik



-Original Message-
From: Scott Barnes [mailto:[EMAIL PROTECTED] 
Sent: woensdag 6 april 2005 13:55
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: createChild dynamically via DB arguments..


Heres a test for yas:

Inside a new FLEX app directory (ie start fresh), create a dir, then
inside that dir, create another and another (go as deep as ya want),
then finally create a mxml file.

Then create an simple class file, and instantiate it via initialize() on
mx.Application, then inside this class, do the same as you did (make as
many nested ones as you want if need be) then at some point, simply do
this

mx.core.Application.application.baseContainer.createChild(blah[arg1][arg
2]
etc..)

Then explain if you can / want to, how the hell that works. As I must be
dumber then originally thought as i can't seem to connect the dots on
how the hell that works? hell i'm struggling to even explain it
(also i put another sequence of the above inside the
unknown-loaded-at-runtime-class and they came up aswell heh).

imho its as if at compile time, the entire app is packaged together, and
seperated into whats FLASH code and whats other, if other do i embed it
inside the swf and all that... i''ll pop the hood a later day (if i can
figure it out) but *shrug* my level of FLEX expertises ends here hehehe.

_level0[com] or _global[com] etc  won't work. As well as
findClass();

On a side note/question. I am also unsure if (hell i have no idea to
test) whether or not if you have assets embedded inside the mxml files
in question (even declared as RSL) will they request a new asset per
instantiation...

Any input / help is most welcomed heh.





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: createChild dynamically via DB arguments..

2005-04-06 Thread Scott Barnes

Doh, just realised... .

if i have
com[SynergyFLEX][templates][mail][defaultLayout]
at the end of the day the compiler evaluates that accordingly and that
becomes my reference point..

as i had something like this

var pathToTemplate = oTemplate.path.split(.);
var prfx = com;
var path = ;
for(var i=1; i  pathToTemplate.length; i++) {

Dumper.info(com[SynergyFLEX][templates][mail][defaultLayout]);
// Test... heh.
var obj = prfx;
var itm = pathToTemplate[i];
var prfx = obj[itm];

}
oScreenContainer.createChild(prfx);

Now at first glance i was thinking but i'm doing it a dynamic
iteration wtf! - then i realised ohthe Dumper.info is infact
creating a reference.

I iz dumb ;) thanks for yall patience in this little learning curve.
;) - it did have me thinking that MM did something really cool with
FLASH + Server-side compiler..oh well ;)

my bad 
*embrassed look* :)


On Apr 6, 2005 10:22 PM, Abdul Qabiz [EMAIL PROTECTED] wrote:
 
 Hi Scott,
 
 As I(and someone else) mentioned earlier, if you refer a class in your
 app.mxml, it would be compiled with rest of code in your app.mxml and
 embedded in your app.swf.
 
 I think, all the code and assets are embedded in your swf, unless you choose
 to use RSL(for assets) in your application
 
 -abdul
 
 
 -Original Message-
 From: Scott Barnes [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 06, 2005 5:25 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: createChild dynamically via DB arguments..
 
 Heres a test for yas:
 
 Inside a new FLEX app directory (ie start fresh), create a dir, then
 inside that dir, create another and another (go as deep as ya want),
 then finally create a mxml file.
 
 Then create an simple class file, and instantiate it via initialize()
 on mx.Application, then inside this class, do the same as you did
 (make as many nested ones as you want if need be) then at some point,
 simply do this
 
 mx.core.Application.application.baseContainer.createChild(blah[arg1][arg2]
 etc..)
 
 Then explain if you can / want to, how the hell that works. As I must
 be dumber then originally thought as i can't seem to connect the dots
 on how the hell that works? hell i'm struggling to even explain it
 (also i put another sequence of the above inside the
 unknown-loaded-at-runtime-class and they came up aswell heh).
 
 imho its as if at compile time, the entire app is packaged together,
 and seperated into whats FLASH code and whats other, if other do i
 embed it inside the swf and all that... i''ll pop the hood a later day
 (if i can figure it out) but *shrug* my level of FLEX expertises ends
 here hehehe.
 
 _level0[com] or _global[com] etc  won't work. As well as findClass();
 
 On a side note/question. I am also unsure if (hell i have no idea to
 test) whether or not if you have assets embedded inside the mxml files
 in question (even declared as RSL) will they request a new asset per
 instantiation...
 
 Any input / help is most welcomed heh.
 
 --
 Regards,
 Scott Barnes
 http://www.mossyblog.com
 http://www.flexcoder.com (Coming Soon)
 
 Yahoo! Groups Links
 
 
 Yahoo! Groups Links
 
 
 
 
 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Remote object that returns an array of objects

2005-04-06 Thread Jeff Krueger

Peter,

I think we could assume that Simon Fifield from the news group is
having the same problem as well.  Would you be able to maybe do a simple POC
to prove if this is an issue I am only having or something that is
repeatable and maybe reportable as a bug.  As I mentioned I currently have a
work around with the extra class, but it would be nice to not have to do
that.

Thanks

Jeff


-Original Message-
From: Peter Farland [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 05, 2005 3:57 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Remote object that returns an array of objects



Perhaps there's something going wrong when casting to Array (or UserVO,
though that doesn't effect the second test)? However, I've not heard of
this issue before... has anyone else?


 

-Original Message-
From: Jeff Krueger [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 05, 2005 5:56 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Remote object that returns an array of objects


Hm, that worked!

Here is the log, not sure if it shows anything.  Any idea how I can get
that
to an object?

Jeff


Info: Completed 'net.crownmedia.flex.user.FlexUserDelegate.getAll' with
reply me
thod 'onResult' in 156ms
Info: Serializing response
  (Message #0 targetURI=/2/onResult, responseURI=null)
(Array #0)
  [0] = (Typed Object #1 'net.crownmedia.flex.user.vo.UserVO')
password = secret
timeZone = (Typed Object #2
'net.crownmedia.flex.common.vo.TimeZoneVO')
  timeZoneCode = MST
  timeZoneDescription = Mountain Standard Time
  dateUpdated = Thu Mar 31 07:43:20 MST 2005
  gmtOffset = -2.52E7
  _remoteClass = net.crownmedia.flex.common.vo.TimeZoneVO
  updatedByUserProfileId = null
  createdByUserProfileId = null
  dateCreated = Thu Mar 31 07:43:20 MST 2005
userName = cmi
dateUpdated = null
_remoteClass = net.crownmedia.flex.user.vo.UserVO
person = (Typed Object #3
'net.crownmedia.flex.user.vo.PersonVO')
  jobTitle = null
  occupation = null
  dateUpdated = Thu Mar 31 07:43:20 MST 2005
  _remoteClass = net.crownmedia.flex.user.vo.PersonVO
  updatedByUserProfileId = null
  createdByUserProfileId = null
  middleName = Media
  dateCreated = Thu Mar 31 07:43:20 MST 2005
  firstName = Crown
  nickName = CMI
  lastName = International
  titlePrefix = null
updatedByUserProfileId = null
securityKeys = (Array #4)
  [0] = (Typed Object #5
'net.crownmedia.flex.security.vo.SecurityKeyVO'
)
keyDescription = Insert folder
dateUpdated = Thu Mar 31 07:43:20 MST 2005
_remoteClass =
net.crownmedia.flex.security.vo.SecurityKeyVO
keyName = Folder.insert
updatedByUserProfileId = null
createdByUserProfileId = null
dateCreated = Thu Mar 31 07:43:20 MST 2005
  [1] = (Typed Object #6
'net.crownmedia.flex.security.vo.SecurityKeyVO'
)
keyDescription = View folder
dateUpdated = Thu Mar 31 07:43:20 MST 2005
_remoteClass =
net.crownmedia.flex.security.vo.SecurityKeyVO
keyName = Folder.view
updatedByUserProfileId = null
createdByUserProfileId = null
dateCreated = Thu Mar 31 07:43:20 MST 2005
  [2] = (Typed Object #7
'net.crownmedia.flex.security.vo.SecurityKeyVO'
)
keyDescription = Update folder
dateUpdated = Thu Mar 31 07:43:20 MST 2005
_remoteClass =
net.crownmedia.flex.security.vo.SecurityKeyVO
keyName = Folder.update
updatedByUserProfileId = null
createdByUserProfileId = null
dateCreated = Thu Mar 31 07:43:20 MST 2005
  [3] = (Typed Object #8
'net.crownmedia.flex.security.vo.SecurityKeyVO'
)
keyDescription = Delete folder
dateUpdated = Thu Mar 31 07:43:20 MST 2005
_remoteClass =
net.crownmedia.flex.security.vo.SecurityKeyVO
keyName = Folder.delete
updatedByUserProfileId = null
createdByUserProfileId = null
dateCreated = Thu Mar 31 07:43:20 MST 2005
  [4] = (Typed Object #9
'net.crownmedia.flex.security.vo.SecurityKeyVO'
)
keyDescription = View user
dateUpdated = Thu Mar 31 07:43:20 MST 2005
_remoteClass =
net.crownmedia.flex.security.vo.SecurityKeyVO
keyName = User.view
updatedByUserProfileId = null
createdByUserProfileId = null
dateCreated = Thu Mar 31 07:43:20 MST 2005
createdByUserProfileId = null
status = APPROVED
dateCreated = null
application = (Typed Object #10
'net.crownmedia.flex.common.vo.Applicati
onVO')
  applicationName = CMI
  dateUpdated = Thu Mar 31 07:43:20 MST 2005
  

[flexcoders] Passing an array to titlewindow

2005-04-06 Thread Jeroen De Vos
Title: Passing an array to titlewindow








Hi all,


I need to pass an array, containing data to fill up a combobox, to a titlewindow (created by the popupmanager).


How do I do this?


Thanks,

Jeroen.





Jeroen De Vos

Gemeentelijk Havenbedrijf Antwerpen

C/ICT - AMARIS




Deze e-mail en alle gekoppelde bestanden zijn officiele documenten van het Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of persoonlijke informatie bevatten. Gelieve de afzender onmiddellijk via e-mail of telefonisch te verwittigen als u deze e-mail per vergissing heeft ontvangen en verwijder vervolgens de e-mail zonder deze te lezen, te reproduceren, te verspreiden of te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf Antwerpen is op geen enkele manier verantwoordelijk voor fouten of onnauwkeurigheden in de inhoud van deze e-mail. Het Gemeentelijk Havenbedrijf Antwerpen kan niet aansprakelijk gesteld worden voor directe of indirecte schade, verlies of ongemak veroorzaakt als gevolg van een onnauwkeurigheid of fout in deze e-mail. English Translation: This e-mail and all attached files are official documents of Antwerp Port Authority and may contain confidential or personal information. If you have received this e-mail in error, you are asked to inform the sender by e-mail or telephone immediately, and to remove it from your system without reading or reproducing it or passing it on to other parties. Antwerp Port Authority is in no way responsible for any errors or inaccuracies in the contents of this e-mail, nor can it be held liable for any direct or indirect loss, damage or inconvenience arising from any such errors or inaccuracies.[GHA#Disclaimer]







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] Passing an array to titlewindow

2005-04-06 Thread Omar Ramos
Title: Passing an array to titlewindow





Hi jeroen,

You can use the init obj of the title window to set any 
variables on you component.

Omar Ramos
Itacon Corporation
Technology Manager


From: Jeroen De Vos 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 
2005 10:29 AMTo: flexcoders@yahoogroups.comSubject: 
[flexcoders] Passing an array to titlewindow

Hi all, 
I need to pass an array, containing data to fill up a 
combobox, to a titlewindow (created by the popupmanager). 
How do I do this? 
Thanks, Jeroen. 
 
Jeroen De Vos Gemeentelijk Havenbedrijf Antwerpen 
C/ICT - AMARIS  
Deze e-mail en alle gekoppelde bestanden zijn officiele 
documenten van het Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke 
of persoonlijke informatie bevatten. Gelieve de afzender onmiddellijk via e-mail 
of telefonisch te verwittigen als u deze e-mail per vergissing heeft ontvangen 
en verwijder vervolgens de e-mail zonder deze te lezen, te reproduceren, te 
verspreiden of te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf 
Antwerpen is op geen enkele manier verantwoordelijk voor fouten of 
onnauwkeurigheden in de inhoud van deze e-mail. Het Gemeentelijk Havenbedrijf 
Antwerpen kan niet aansprakelijk gesteld worden voor directe of indirecte 
schade, verlies of ongemak veroorzaakt als gevolg van een onnauwkeurigheid of 
fout in deze e-mail. English Translation: This e-mail and all attached 
files are official documents of Antwerp Port Authority and may contain 
confidential or personal information. If you have received this e-mail in error, 
you are asked to inform the sender by e-mail or telephone immediately, and to 
remove it from your system without reading or reproducing it or passing it on to 
other parties. Antwerp Port Authority is in no way responsible for any errors or 
inaccuracies in the contents of this e-mail, nor can it be held liable for any 
direct or indirect loss, damage or inconvenience arising from any such errors or 
inaccuracies.[GHA#Disclaimer]







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] Passing an array to titlewindow

2005-04-06 Thread Andy Rayne
Hi Jeroen,
 
Don't you just pass the array in as part of the initObject? Like this.
 
var parentToPopUpOver = this;

var isModal : Boolean = true;

var initObj = { stuff: yourArray  };

var titleWindowComp = mx.managers.PopUpManager.createPopUp( parentToPopUpOver, 
TitleWindowComp, isModal, initObj ); 

cheers
 
Andy

-- 
Andy Rayne
Development Consultant 
iteration::two
[EMAIL PROTECTED] 
Office: +44 (0)131 338 6902

This e-mail and any associated attachments transmitted with it may contain 
confidential information and must not be copied, or disclosed, or used by 
anyone other than the intended recipient(s). If you are not the intended 
recipient(s) please destroy this e-mail, and any copies of it, immediately.

Please also note that while software systems have been used to try to ensure 
that this e-mail has been swept for viruses, iteration::two do not accept 
responsibility for any damage or loss caused in respect of any viruses 
transmitted by the e-mail. Please ensure your own checks are carried out before 
any attachments are opened.

-Original Message-
From: Jeroen De Vos [mailto:[EMAIL PROTECTED]
Sent: 06 April 2005 15:30
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Passing an array to titlewindow



Hi all, 

I need to pass an array, containing data to fill up a combobox, to a 
titlewindow (created by the popupmanager). 

How do I do this? 

Thanks, 
Jeroen. 

 

Jeroen De Vos 
Gemeentelijk Havenbedrijf Antwerpen 
C/ICT - AMARIS 
 

Deze e-mail en alle gekoppelde bestanden zijn officiele documenten van het 
Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of persoonlijke 
informatie bevatten. Gelieve de afzender onmiddellijk via e-mail of telefonisch 
te verwittigen als u deze e-mail per vergissing heeft ontvangen en verwijder 
vervolgens de e-mail zonder deze te lezen, te reproduceren, te verspreiden of 
te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf Antwerpen is op geen 
enkele manier verantwoordelijk voor fouten of onnauwkeurigheden in de inhoud 
van deze e-mail. Het Gemeentelijk Havenbedrijf Antwerpen kan niet aansprakelijk 
gesteld worden voor directe of indirecte schade, verlies of ongemak veroorzaakt 
als gevolg van een onnauwkeurigheid of fout in deze e-mail. 

English Translation: This e-mail and all attached files are official documents 
of Antwerp Port Authority and may contain confidential or personal information. 
If you have received this e-mail in error, y! ou are asked to inform the sender 
by e-mail or telephone immediately, and to remove it from your system without 
reading or reproducing it or passing it on to other parties. Antwerp Port 
Authority is in no way responsible for any errors or inaccuracies in the 
contents of this e-mail, nor can it be held liable for any direct or indirect 
loss, damage or inconvenience arising from any such errors or inaccuracies. 
[GHA#Disclaimer]



   _  

Yahoo! Groups Links


*   To visit your group on the web, go to:
HYPERLINK 
http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group/flexcoders/
  

*   To unsubscribe from this group, send an email to:
HYPERLINK mailto:[EMAIL PROTECTED][EMAIL PROTECTED]
  

*   Your use of Yahoo! Groups is subject to the HYPERLINK 
http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. 



--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 05/04/2005



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 05/04/2005
 


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 
winmail.dat

RE: [flexcoders] Passing an array to titlewindow

2005-04-06 Thread Jeroen De Vos
Title: Passing an array to titlewindow





Omar,

Thanks for your answer.

I createthe popuplike this:

var doctypes:Array;
//here is some code to fill up the doctypes 
array

PopUpManager.createPopUp(app, CreateFileWindow, true, 
{deferred: true , filetypes: doctypes});


How can I access the 'filetypes' variable in the title 
window?
Can someone give me an example?

Jeroen.



Van: Omar Ramos [mailto:[EMAIL PROTECTED] 
Verzonden: woensdag 6 april 2005 16:33Aan: 
flexcoders@yahoogroups.comOnderwerp: RE: [flexcoders] Passing an 
array to titlewindow

Hi jeroen,

You can use the init obj of the title window to set any 
variables on you component.

Omar Ramos
Itacon Corporation
Technology Manager


From: Jeroen De Vos 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 
2005 10:29 AMTo: flexcoders@yahoogroups.comSubject: 
[flexcoders] Passing an array to titlewindow

Hi all, 
I need to pass an array, containing data to fill up a 
combobox, to a titlewindow (created by the popupmanager). 
How do I do this? 
Thanks, Jeroen. 
 
Jeroen De Vos Gemeentelijk Havenbedrijf Antwerpen 
C/ICT - AMARIS  
Deze e-mail en alle gekoppelde bestanden zijn officiele 
documenten van het Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke 
of persoonlijke informatie bevatten. Gelieve de afzender onmiddellijk via e-mail 
of telefonisch te verwittigen als u deze e-mail per vergissing heeft ontvangen 
en verwijder vervolgens de e-mail zonder deze te lezen, te reproduceren, te 
verspreiden of te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf 
Antwerpen is op geen enkele manier verantwoordelijk voor fouten of 
onnauwkeurigheden in de inhoud van deze e-mail. Het Gemeentelijk Havenbedrijf 
Antwerpen kan niet aansprakelijk gesteld worden voor directe of indirecte 
schade, verlies of ongemak veroorzaakt als gevolg van een onnauwkeurigheid of 
fout in deze e-mail. English Translation: This e-mail and all attached 
files are official documents of Antwerp Port Authority and may contain 
confidential or personal information. If you have received this e-mail in error, 
you are asked to inform the sender by e-mail or telephone immediately, and to 
remove it from your system without reading or reproducing it or passing it on to 
other parties. Antwerp Port Authority is in no way responsible for any errors or 
inaccuracies in the contents of this e-mail, nor can it be held liable for any 
direct or indirect loss, damage or inconvenience arising from any such errors or 
inaccuracies.[GHA#Disclaimer]







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Passing an array to titlewindow

2005-04-06 Thread Manish Jethani

On Apr 6, 2005 7:59 PM, Jeroen De Vos [EMAIL PROTECTED] wrote:

 I need to pass an array, containing data to fill up a combobox, to a
 titlewindow (created by the popupmanager). 

Pass the array in the initialization object for the TitleWindow.

var initObj = {arrayNeededByComboBox: myArray};
var popUp = mx.managers.PopUpManager.createPopUp( parentToPopUpOver,
MyTitleWindow, isModal, initObj );

MyTitleWindow would set the ComboBox's dataProvider to the value of
arrayNeededByComboBox.

Manish


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Passing an array to titlewindow

2005-04-06 Thread Manish Jethani

On Apr 6, 2005 8:12 PM, Jeroen De Vos [EMAIL PROTECTED] wrote:

 PopUpManager.createPopUp(app, CreateFileWindow, true, {deferred: true ,
 filetypes: doctypes}); 

   
 How can I access the 'filetypes' variable in the title window? 
 Can someone give me an example? 

!-- filename: CreateFileWindow.mxml --
mx:TitleWindow ...
  mx:Script
public var filetypes:Array; // set by caller
  /mx:Script
  mx:ComboBox dataProvider={filetypes} /
/mx:TitleWindow

Manish


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Passing an array to titlewindow

2005-04-06 Thread Jeroen De Vos





Works perfectly.

Thanks all!
Jeroen.


Van: Manish Jethani 
[mailto:[EMAIL PROTECTED] Verzonden: woensdag 6 april 2005 
16:51Aan: flexcoders@yahoogroups.comOnderwerp: Re: 
[flexcoders] Passing an array to titlewindow
On Apr 6, 2005 8:12 PM, Jeroen De Vos 
[EMAIL PROTECTED] wrote: 
PopUpManager.createPopUp(app, CreateFileWindow, true, {deferred: true , 
filetypes: doctypes});   How can I access the 
'filetypes' variable in the title window?  Can someone give me an 
example? !-- filename: CreateFileWindow.mxml 
--mx:TitleWindow ... 
mx:Script public var filetypes:Array; // set by 
caller /mx:Script mx:ComboBox 
dataProvider="{filetypes}" 
//mx:TitleWindowManishDeze e-mail en alle gekoppelde bestanden zijn officiele documenten van het Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of persoonlijke informatie bevatten. Gelieve de afzender onmiddellijk via e-mail of telefonisch te verwittigen als u deze e-mail per vergissing heeft ontvangen en verwijder vervolgens de e-mail zonder deze te lezen, te reproduceren, te verspreiden of te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf Antwerpen is op geen enkele manier verantwoordelijk voor fouten of onnauwkeurigheden in de inhoud van deze e-mail. Het Gemeentelijk Havenbedrijf Antwerpen kan niet aansprakelijk gesteld worden voor directe of indirecte schade, verlies of ongemak veroorzaakt als gevolg van een onnauwkeurigheid of fout in deze e-mail. English Translation: This e-mail and all attached files are official documents of Antwerp Port Authority and may contain confidential or personal information. If you have received this e-mail in error, you are asked to inform the sender by e-mail or telephone immediately, and to remove it from your system without reading or reproducing it or passing it on to other parties. Antwerp Port Authority is in no way responsible for any errors or inaccuracies in the contents of this e-mail, nor can it be held liable for any direct or indirect loss, damage or inconvenience arising from any such errors or inaccuracies.[GHA#Disclaimer]







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] Passing an array to titlewindow

2005-04-06 Thread Andy Rayne
Have a variable in your titleWindow called fileTypes when the window loads it 
will be populated with what you set in your initobj
 
cheers
 
Andy
 

-- 
Andy Rayne
Development Consultant 
iteration::two
[EMAIL PROTECTED] 
Office: +44 (0)131 338 6902

This e-mail and any associated attachments transmitted with it may contain 
confidential information and must not be copied, or disclosed, or used by 
anyone other than the intended recipient(s). If you are not the intended 
recipient(s) please destroy this e-mail, and any copies of it, immediately.

Please also note that while software systems have been used to try to ensure 
that this e-mail has been swept for viruses, iteration::two do not accept 
responsibility for any damage or loss caused in respect of any viruses 
transmitted by the e-mail. Please ensure your own checks are carried out before 
any attachments are opened.

-Original Message-
From: Jeroen De Vos [mailto:[EMAIL PROTECTED]
Sent: 06 April 2005 15:43
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Passing an array to titlewindow


Omar,
 
Thanks for your answer.
 
I create the popup like this:
 
var doctypes:Array;
//here is some code to fill up the doctypes array
 
PopUpManager.createPopUp(app, CreateFileWindow, true, {deferred: true , 
filetypes: doctypes});
 
 
How can I access the 'filetypes' variable in the title window?
Can someone give me an example?
 
Jeroen.
 

   _  

Van: Omar Ramos [mailto:[EMAIL PROTECTED] 
Verzonden: woensdag 6 april 2005 16:33
Aan: flexcoders@yahoogroups.com
Onderwerp: RE: [flexcoders] Passing an array to titlewindow


Hi jeroen,
 
You can use the init obj of the title window to set any variables on you 
component.
 
Omar Ramos
Itacon Corporation
Technology Manager

   _  

From: Jeroen De Vos [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 10:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Passing an array to titlewindow



Hi all, 

I need to pass an array, containing data to fill up a combobox, to a 
titlewindow (created by the popupmanager). 

How do I do this? 

Thanks, 
Jeroen. 

 

Jeroen De Vos 
Gemeentelijk Havenbedrijf Antwerpen 
C/ICT - AMARIS 
 

Deze e-mail en alle gekoppelde bestanden zijn officiele documenten van het 
Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of persoonlijke 
informatie bevatten. Gelieve de afzender onmiddellijk via e-mail of telefonisch 
te verwittigen als u deze e-mail per vergissing heeft ontvangen en verwijder 
vervolgens de e-mail zonder deze te lezen, te reproduceren, te verspreiden of 
te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf Antwerpen is op geen 
enkele manier verantwoordelijk voor fouten of onnauwkeurigheden in de inhoud 
van deze e-mail. Het Gemeentelijk Havenbedrijf Antwerpen kan niet aansprakelijk 
gesteld worden voor directe of indirecte schade, verlies of ongemak veroorzaakt 
als gevolg van een onnauwkeurigheid of fout in deze e-mail. 

English Translation: This e-mail and all attached files are official documents 
of Antwerp Port Authority and may contain confidential or personal information. 
If you have received this e-mail in error, you are asked to inform the sender 
by e-mail or telephone immediately, and to remove it from your system without 
reading or reproducing it or passing it on to other parties. Antwerp Port 
Authority is in no way responsible for any errors or inaccuracies in the 
contents of this e-mail, nor can it be held liable for any direct or indirect 
loss, damage or inconvenience arising from any such errors or inaccuracies. 
[GHA#Disclaimer]



   _  

Yahoo! Groups Links


*   To visit your group on the web, go to:
HYPERLINK 
http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group/flexcoders/
  

*   To unsubscribe from this group, send an email to:
HYPERLINK mailto:[EMAIL PROTECTED][EMAIL PROTECTED]
  

*   Your use of Yahoo! Groups is subject to the HYPERLINK 
http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. 



--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 05/04/2005



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 05/04/2005
 


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 
winmail.dat

[flexcoders] Weird behavior with Internet Explorer

2005-04-06 Thread joao_m_fernandes


Hi there,

does anyone know any kind of limitation with Internet Explorer
(possibly SP2 problem)?

My application works just fine with Firefox but the same application
under IE doesn't work properly.
My menu isn't getting populated from a remoteObject call that returns
a xmlObject.

No result of fault event is dispatched.

Known issue?

João Fernandes





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] ActionScript Components

2005-04-06 Thread Stephen Gilson





There are articles on the Macromedia web site that you can 
use:

Creating Advanced Components: http://www.macromedia.com/support/documentation/en/flex/1_5/createcomponents/index.html

Flex Component Basics -two part 
article 
 Part 1: http://www.macromedia.com/devnet/flex/articles/creating_comp.html
 Part 2: http://www.macromedia.com/devnet/flex/articles/creating_comp_pt2.html

Stephen 



From: Matthew Shirey [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 05, 2005 8:09 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] ActionScript 
Components

Might someone point me in the direction of some good 
docs/examples of creating components using ActionScript. I have the RIA 
book and chapter 10 has some information, but its disappointingly sparse. 
Mostly I am interested in how to create a composite component. A component 
containing many other components. The examples I have seen so far simply 
extend a given component and alter its behavior.Right now I am 
creating all of my components in MXML with a separate file for their 
ActionScript. It's starting to get a bit messy for complex 
components. Any kind of a boot in the right direction would 
be helpful. Thanks!

-- 
Matthew







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] JavaDoc style docs for Flex PLUS Actionscript 2

2005-04-06 Thread Stephen Gilson

The 'Flex ActionScript Language Reference Version 1.5' book is included
with Flex and is available in LiveDocs with all of the other Flex doc
at:

http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/ht
ml/wwhelp.htm

Unfortunately, that content is not available in the JavaDoc format. We
will be making it available in that format for the next release.

Stephen
 



-Original Message-
From: Seth Voltz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 5:07 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] JavaDoc style docs for Flex PLUS Actionscript 2


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello List,

When developing with Flex I have a tab open in my browser to the Flex
JavaDoc style docs of all the MXML classes. I also have Flex and
Actionscript LiveDocs for their searching capabilities. My question is
if there is something like the MXML docs for all of Actionscript2
including Flex's additions (or even just AS2)

Having a classpath view of everything was a great help when I was just
starting to learn Flex and I keep seeing new classes on here I'd never
seen before. Any ideas?

Thanks,
 Seth
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCU6bEsnBTlzgQQ28RArYDAKCD/87pazHAwNCh2AvtcMhnjwXbpgCaAhsi
MSDMPPfxdphS5NUKMflt50k=
=51/y
-END PGP SIGNATURE-



 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] DataGrid events

2005-04-06 Thread viraf_bankwalla


Hi,

I have a datagrid in which columns have the sortCompareFunction 
defined.  When the method is called this appears to refer to the 
DataGrid as expected (event).

The problem that I am having is that the compiler complains if I try 
to call any of the methods on the datagrid, as the class in which the 
handler is defined is not a DataGrid.  For example, I have the 
columnIndex and would like to get the column, so I do 

this.getColumnAt(columnIndex)

I tried casting this to DataGrid - this did not work either.

Any suggestions on I could access the methods the DataGrid, or in the 
more general case whichever object this referes to.

Thanks.





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Development Environment Setup Q's

2005-04-06 Thread temporal_illusion


Wow, thanks for the in depth replies Chafic and Jester!!  I really do
apprecaite them.

Being a fairly young developer and having a boss that is gung-ho about
OO and Agile methodologies means I'm motivated towards the elegant
solutions, but it's nice to see that these real world problems aren't
hard only for me :-)

So far our apps have been small sample type deals, but we do have some
larger ones in the pipe.  I just want to, as you say, avoid any
potential problems down the road when we move into something complicated.

--- In flexcoders@yahoogroups.com, Chafic Kazoun [EMAIL PROTECTED] wrote:
 lots of good stuff





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: Development Environment Setup Q's

2005-04-06 Thread JesterXL

The only time things get bleh is when you and your fellow developers don't 
communicate.  As long as communication is continous, and people have good 
attitudes, it usually works out.

- Original Message - 
From: temporal_illusion [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, April 06, 2005 12:00 PM
Subject: [flexcoders] Re: Development Environment Setup Q's




Wow, thanks for the in depth replies Chafic and Jester!!  I really do
apprecaite them.

Being a fairly young developer and having a boss that is gung-ho about
OO and Agile methodologies means I'm motivated towards the elegant
solutions, but it's nice to see that these real world problems aren't
hard only for me :-)

So far our apps have been small sample type deals, but we do have some
larger ones in the pipe.  I just want to, as you say, avoid any
potential problems down the road when we move into something complicated.

--- In flexcoders@yahoogroups.com, Chafic Kazoun [EMAIL PROTECTED] wrote:
 lots of good stuff






Yahoo! Groups Links








 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: Development Environment Setup Q's

2005-04-06 Thread Matthew Shirey



Is there any way to integrate Flex Builder and Subversion or is the process more manual?

-- Matthew
On Apr 6, 2005 9:04 AM, JesterXL [EMAIL PROTECTED] wrote:
The only time things get bleh is when you and your fellow developers don'tcommunicate.As long as communication is continous, and people have goodattitudes, it usually works out.- Original Message -From: temporal_illusion [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Wednesday, April 06, 2005 12:00 PMSubject: [flexcoders] Re: Development Environment Setup Q'sWow, thanks for the in depth replies Chafic and Jester!!I really doapprecaite them.Being a fairly young developer and having a boss that is gung-ho aboutOO and Agile methodologies means I'm motivated towards the elegantsolutions, but it's nice to see that these real world problems aren'thard only for me :-)So far our apps have been small sample type deals, but we do have somelarger ones in the pipe.I just want to, as you say, avoid anypotential problems down the road when we move into something complicated.--- In flexcoders@yahoogroups.com, Chafic Kazoun [EMAIL PROTECTED] wrote: lots of good stuffYahoo! Groups LinksYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Re: Development Environment Setup Q's

2005-04-06 Thread JesterXL





Well, keep in mind I'm a front end guy who likes 
GUI's, so you'll need to temper my methodology with those [EMAIL PROTECTED] like Manish who use Vim and 
stuff.

I installed Tortoise SVN so I can have my Windows 
Explorer  Subversion be as one. Typically, I'd point my FlexBuilder 
site that I setup to have it's base directory point towards the SVN 
repository. The LocalSite, naturally would be my local install, or if 
remote was an only option, I'd point that to a Flex server that was setup with a 
directory for me somewhere. Unfortunately, you cannot use Tortoise SVN's 
context menu usage inside of FlexBuilder since the Files Panel uses it's own 
file management functionality.

In my case, updating and checkout for Subversion is 
manual; meaning, I have to physically right click on the directory/folder in 
Explorer, and go SVN  Update or SVN  Commit. It's not bad since I 
have an SSH key cached and don't have to log in or anything; just write my 
comments when checking in files.

Granted, I'm sure there may be a way to write a js 
script using FlexBuilder's _javascript_ API, map it to a keyboard shortcut, and 
have that run like a script (Perl/bat) that uses Cygwin instead of Subversion to 
commit and update, but I dig my GUI.


- Original Message - 
From: Matthew Shirey 

To: flexcoders@yahoogroups.com 
Sent: Wednesday, April 06, 2005 12:08 PM
Subject: Re: [flexcoders] Re: Development Environment Setup 
Q's

Is there any way to integrate Flex Builder and Subversion or is the process 
more manual?

-- Matthew
On Apr 6, 2005 9:04 AM, JesterXL [EMAIL PROTECTED] 
wrote: 
The 
  only time things get bleh is when you and your fellow developers 
  don'tcommunicate.As long as communication is continous, and 
  people have goodattitudes, it usually works out.- Original 
  Message -From: "temporal_illusion" [EMAIL PROTECTED]To: 
  flexcoders@yahoogroups.comSent: 
  Wednesday, April 06, 2005 12:00 PMSubject: [flexcoders] Re: Development 
  Environment Setup Q'sWow, thanks for the in depth replies Chafic and 
  Jester!!I really doapprecaite them.Being a fairly 
  young developer and having a boss that is gung-ho aboutOO and Agile 
  methodologies means I'm motivated towards the elegantsolutions, but it's 
  nice to see that these real worl! d problems aren'thard only for me 
  :-)So far our apps have been small sample type deals, but we do have 
  somelarger ones in the pipe.I just want to, as you say, avoid 
  anypotential problems down the road when we move into something 
  complicated.--- In flexcoders@yahoogroups.com, 
  "Chafic Kazoun" [EMAIL PROTECTED] wrote: lots of good 
  stuffYahoo! Groups LinksYahoo! Groups Links* 
  To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* 
  To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* 
  Your use of Yahoo! Groups is subject to: http://docs.yahoo.com! 
  /info/terms/







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Changing focus on the 'change' event in an Accordion

2005-04-06 Thread Andrea Veggiani

Hi all,

i'm not able to change correctly the child container of an Accordion using 
the
event 'change'.

my accordion:

mx:Accordion styleName=testo id=idMainAccordion width=100% 
height=100% change=verificaAccordion()
  destinazione  id=idDestinazione root={this} 
listaDestinazioni={listaDestinazioni} /
  listaservizi  id=idListaservizi root={this} Mesi={Mesi} 
Giorni={Giorni} /
  nomipax   id=idNomipax  root={this} Mesi={Mesi} 
Giorni={Giorni} /
  intestazione  id=idIntestazione root={this} /
/mx:Accordion

my function:

  function verificaAccordion()
   {

if  (!idDestinazione.step())
 {
  idMainAccordion.selectedIndex=0;
 }

   }

Well, the view change and i'm able to view the correct child, however this 
child seems not to be correctly focused
so i see the correct child container but the older one appears as selected 
(the header).

It's possible to change childs container in the accordion as i try to do?

Thanks
Andrea Veggiani



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 05/04/2005



 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Dynamically Changing an entire CSS

2005-04-06 Thread Matthew Shirey



After searching the mailing list archives I cannot seem to find a good answer for this question so I thought I'd re-ask it and see if it could get some additional feedback.

We have multiple VERY extensive CSS files. We'd like to be able to dynamically switch between the CSS files at run time. So far the only solution that I have been able to come up with is to use the JSP Flex tag library to generate the main mxml application file and dynamically set the CSS file there. I only need to set this once, during the application initialization. If the CSS preference is changed, it is acceptable to restart the application. I saw some rather hackish ways of programmatically going through and resetting the style on individual items in the application, but this is very large application and that's just impractical. Ideally we just need to change the CSS. Is there no way to do this in MXML/ActionScript? Is this just a missing feature that we might expectfixed/added in a future version?

Thank you,

-- Matthew







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] Re: PopUp Help!

2005-04-06 Thread Tracy Spratt

An there is a very simple example in the Panels and Windows folder of
the Flex Explorer.
Tracy

-Original Message-
From: Jeff [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 05, 2005 6:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: PopUp Help!



THANKS!!
--- In flexcoders@yahoogroups.com, Manish Jethani
[EMAIL PROTECTED] wrote:
 On Apr 6, 2005 1:53 AM, Jeff [EMAIL PROTECTED] wrote:
 
  Sure, although there is not much to my code in terms of what I want
to
  do with a popup.
 
 You want to use a TitleWindow.  Search the arcihved for TitleWindow...
 there's tons of code examples:

http://www.mail-archive.com/cgi-bin/htsearch?config=flexcoders_yahoogrou
ps_comwords=titlewindow
 
 Manish





 
Yahoo! Groups Links



 







 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Remote object that returns an array of objects

2005-04-06 Thread Tracy Spratt

I've only partly understood this thread, but I do know you can't really
cast to an Array using the ordinary syntax: Array(object).  You can
use untyped objects to do it like this:

function castToArray(o):Array{
Return o;
}

Tracy

-Original Message-
From: Peter Farland [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 05, 2005 5:57 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Remote object that returns an array of objects



Perhaps there's something going wrong when casting to Array (or UserVO,
though that doesn't effect the second test)? However, I've not heard of
this issue before... has anyone else?


 

-Original Message-
From: Jeff Krueger [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 05, 2005 5:56 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Remote object that returns an array of objects


Hm, that worked!

Here is the log, not sure if it shows anything.  Any idea how I can get
that
to an object?

Jeff


Info: Completed 'net.crownmedia.flex.user.FlexUserDelegate.getAll' with
reply me
thod 'onResult' in 156ms
Info: Serializing response
  (Message #0 targetURI=/2/onResult, responseURI=null)
(Array #0)
  [0] = (Typed Object #1 'net.crownmedia.flex.user.vo.UserVO')
password = secret
timeZone = (Typed Object #2
'net.crownmedia.flex.common.vo.TimeZoneVO')
  timeZoneCode = MST
  timeZoneDescription = Mountain Standard Time
  dateUpdated = Thu Mar 31 07:43:20 MST 2005
  gmtOffset = -2.52E7
  _remoteClass = net.crownmedia.flex.common.vo.TimeZoneVO
  updatedByUserProfileId = null
  createdByUserProfileId = null
  dateCreated = Thu Mar 31 07:43:20 MST 2005
userName = cmi
dateUpdated = null
_remoteClass = net.crownmedia.flex.user.vo.UserVO
person = (Typed Object #3
'net.crownmedia.flex.user.vo.PersonVO')
  jobTitle = null
  occupation = null
  dateUpdated = Thu Mar 31 07:43:20 MST 2005
  _remoteClass = net.crownmedia.flex.user.vo.PersonVO
  updatedByUserProfileId = null
  createdByUserProfileId = null
  middleName = Media
  dateCreated = Thu Mar 31 07:43:20 MST 2005
  firstName = Crown
  nickName = CMI
  lastName = International
  titlePrefix = null
updatedByUserProfileId = null
securityKeys = (Array #4)
  [0] = (Typed Object #5
'net.crownmedia.flex.security.vo.SecurityKeyVO'
)
keyDescription = Insert folder
dateUpdated = Thu Mar 31 07:43:20 MST 2005
_remoteClass =
net.crownmedia.flex.security.vo.SecurityKeyVO
keyName = Folder.insert
updatedByUserProfileId = null
createdByUserProfileId = null
dateCreated = Thu Mar 31 07:43:20 MST 2005
  [1] = (Typed Object #6
'net.crownmedia.flex.security.vo.SecurityKeyVO'
)
keyDescription = View folder
dateUpdated = Thu Mar 31 07:43:20 MST 2005
_remoteClass =
net.crownmedia.flex.security.vo.SecurityKeyVO
keyName = Folder.view
updatedByUserProfileId = null
createdByUserProfileId = null
dateCreated = Thu Mar 31 07:43:20 MST 2005
  [2] = (Typed Object #7
'net.crownmedia.flex.security.vo.SecurityKeyVO'
)
keyDescription = Update folder
dateUpdated = Thu Mar 31 07:43:20 MST 2005
_remoteClass =
net.crownmedia.flex.security.vo.SecurityKeyVO
keyName = Folder.update
updatedByUserProfileId = null
createdByUserProfileId = null
dateCreated = Thu Mar 31 07:43:20 MST 2005
  [3] = (Typed Object #8
'net.crownmedia.flex.security.vo.SecurityKeyVO'
)
keyDescription = Delete folder
dateUpdated = Thu Mar 31 07:43:20 MST 2005
_remoteClass =
net.crownmedia.flex.security.vo.SecurityKeyVO
keyName = Folder.delete
updatedByUserProfileId = null
createdByUserProfileId = null
dateCreated = Thu Mar 31 07:43:20 MST 2005
  [4] = (Typed Object #9
'net.crownmedia.flex.security.vo.SecurityKeyVO'
)
keyDescription = View user
dateUpdated = Thu Mar 31 07:43:20 MST 2005
_remoteClass =
net.crownmedia.flex.security.vo.SecurityKeyVO
keyName = User.view
updatedByUserProfileId = null
createdByUserProfileId = null
dateCreated = Thu Mar 31 07:43:20 MST 2005
createdByUserProfileId = null
status = APPROVED
dateCreated = null
application = (Typed Object #10
'net.crownmedia.flex.common.vo.Applicati
onVO')
  applicationName = CMI
  dateUpdated = Thu Mar 31 07:43:20 MST 2005
  _remoteClass = net.crownmedia.flex.common.vo.ApplicationVO
  updatedByUserProfileId = null
  createdByUserProfileId = null
  

[flexcoders] Re: Inserting a blank row in the middle of a datagrid.

2005-04-06 Thread Michael Keirnan


if you have a look at the properties of DataGrid in the docs (like
rowHeight) you'll see various ways to adjust how rows and columns are
displayed, including substituing your own rowRenderer if you
want to get fancy.

generally it is better to adjust properties that control
presentation as opposed to faking data to force presentation, but
if you -really- want a blank row you could try inserting a row
whose values are whitespace strings.

   /mgk


--- In flexcoders@yahoogroups.com, greenfishinwater
[EMAIL PROTECTED] wrote:
 
 I have a datagrid, populated via a dataprovider from a remote
object.
 The grid has 3 columns, the first of which is a type description. In
 my application there are only 2 different types (Full Price and
 Discount Price). I would like to have a blank row between the rows
of
 the first type and the rows of the second type.This would help
 differentiate the 2 groups of data.
 
 Anybody have any ideas on anyway to do this?
 
 Andrew





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Re: PrintJob()

2005-04-06 Thread Tracy Spratt

Of course it will only print what is visible in the VBox...
Tracy

-Original Message-
From: Abdul Qabiz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 5:15 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: PrintJob()

Hi Rich,

Try this



##PrinJobExample.mxml###

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
xmlns=*

mx:Script
![CDATA[
  
import Help;
   
var helpRef;

public function testPrintJob():Void 
{   
helpRef= createChild(Help, help);

//wait untill help is created  rendered
completely...
helpRef.addEventListener(creationComplete,
mx.utils.Delegate.create(this, printHelp));
 }

function printHelp()
{
 var printJob:PrintJob= new PrintJob();
 printJob.start();
 printJob.addPage(helpRef);
 
 printJob.send();
 delete printJob;
 destroyChild(helpRef);
}   
]]
/mx:Script

mx:Button label=print click=testPrintJob();/

/mx:Application


##Help.mxml###

mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml;
mx:Label id=_lbl text=Hello I am Help/
mx:Button label=Button in Help.../
/mx:VBox



Hope that helps...


-abdul

-Original Message-
From: Rich Tretola [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 5:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: PrintJob()


Does anyone have any ideas about this ?



On Mar 31, 2005 3:06 PM, Rich Tretola [EMAIL PROTECTED] wrote:
 I am trying to print an mlmx file at the same level as the one calling
 the printjob.  Here is my code:
 public function testPrintJob():Void {
 var printJob:PrintJob = new PrintJob();
 var help:Help = new Help();
 mx.core.Application.alert(testProperty : +
help.testProperty);
 printJob.start();
 printJob.addPage(0);
 printJob.addPage(help);
 printJob.send();
 delete printJob;
 }
 
 Help.mxml is the object being created in the 2nd lineof the method and
 it is being created correctly as I can read the properties of the file
 through an alert on the next line, bit I am only getting the 1st page
 which is using 0 as the object path (_root).  I have tried using help
 with and without the quotes and can never get it added as a page.
 Anyone have any ideas ?
 
 Rich



 
Yahoo! Groups Links



 






 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Re: Development Environment Setup Q's

2005-04-06 Thread Chafic Kazoun

Flex Builder is built on top of Dreamweaver which support the SCC Microsoft
API for version control, so you can use something like
http://www.pushok.com/soft_svn.php that should allow you to work with
Subversion from within Flexbuild. I don't use it, I use the command line and
TortoiseSVN.  I've tested the software with other development environments
and it seems pretty solid but not with Flex Builder, they have a free trial
so can't hurt to try it out

HTH

Chafic

-Original Message-
From: Matthew Shirey [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 12:09 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Development Environment Setup Q's

Is there any way to integrate Flex Builder and Subversion or is the process
more manual?
 
-- Matthew

 
On Apr 6, 2005 9:04 AM, JesterXL [EMAIL PROTECTED] wrote: 


The only time things get bleh is when you and your fellow developers
don't
communicate.  As long as communication is continous, and people have
good
attitudes, it usually works out.

- Original Message -
From: temporal_illusion [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, April 06, 2005 12:00 PM
Subject: [flexcoders] Re: Development Environment Setup Q's

Wow, thanks for the in depth replies Chafic and Jester!!  I really
do
apprecaite them.

Being a fairly young developer and having a boss that is gung-ho
about
OO and Agile methodologies means I'm motivated towards the elegant
solutions, but it's nice to see that these real worl! d problems
aren't
hard only for me :-)

So far our apps have been small sample type deals, but we do have
some
larger ones in the pipe.  I just want to, as you say, avoid any
potential problems down the road when we move into something
complicated.

--- In flexcoders@yahoogroups.com, Chafic Kazoun [EMAIL PROTECTED]
wrote:
 lots of good stuff

Yahoo! Groups Links

Yahoo! Groups Links



http://docs.yahoo.com/info/terms/ 







Yahoo! Groups Links


*   To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
  
*   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
  
*   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
http://docs.yahoo.com/info/terms/ . 




 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] DataGrid events

2005-04-06 Thread Tracy Spratt

this does not refer to the dataGrid, it refers to the parent document,
like Application, for example.

I see that sortCompareFunction does not take an event argument, so the
only way you will be able to reference the DataGrid is via its id.

Tracy


-Original Message-
From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 11:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid events



Hi,

I have a datagrid in which columns have the sortCompareFunction 
defined.  When the method is called this appears to refer to the 
DataGrid as expected (event).

The problem that I am having is that the compiler complains if I try 
to call any of the methods on the datagrid, as the class in which the 
handler is defined is not a DataGrid.  For example, I have the 
columnIndex and would like to get the column, so I do 

this.getColumnAt(columnIndex)

I tried casting this to DataGrid - this did not work either.

Any suggestions on I could access the methods the DataGrid, or in the 
more general case whichever object this referes to.

Thanks.





 
Yahoo! Groups Links



 







 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Dynamically Changing an entire CSS

2005-04-06 Thread Matthew Shirey



Okay wait, let me get this right... Flex does not compile the css directly into the resulting swf? It reads the css at runtime? If that is true then you could write a jsp file that output the CSS. That css could change based on cookie or session type data. Does that sound like an option that might work?

-- Matthew
On Apr 6, 2005 10:25 AM, JesterXL [EMAIL PROTECTED] wrote:

You cannot change CSS at runtime except via the setting of styles, as you have indicated.

However, if restarting the application is acceptable, simply replace the CSS file on the server, and refresh the browser.


- Original Message - 
From: Matthew Shirey 
To: flexcoders@yahoogroups.com 
Sent: Wednesday, April 06, 2005 1:13 PM
Subject: [flexcoders] Dynamically Changing an entire CSS

After searching the mailing list archives I cannot seem to find a good answer for this question so I thought I'd re-ask it and see if it could get some additional feedback.

We have multiple VERY extensive CSS files. We'd like to be able to dynamically switch between the CSS files at run time. So far the only solution that I have been able to come up with is to use the JSP Flex tag library to generate the main mxml application file and dynamically set the CSS file there. I only need to set this once, during the application initialization. If the CSS preference is changed, it is acceptable to restart the application. I saw some rather hackish ways of programmatically going through and resetting the style on individual items in the application, but this is very large application and that's just impractical. Ideally we just need to change the CSS. Is there no way to do this in MXML/ActionScript? Is this just a missing feature that we might expectfixed/added in a future version?

Thank you,

-- Matthew

Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Dynamically Changing an entire CSS

2005-04-06 Thread JesterXL





Nope, you were right the first time; Flash does 
"compile" the CSS into the SWF; basically hardcodes the CSS value 
settings.

The reason I said upload a new CSS to the server is 
that the Flex server, when a new request comes in for the MXML file, should 
detect the CSS file change, and generate a new SWF for the end user that will 
have the new CSS styles in it.

- Original Message - 
From: Matthew Shirey 

To: flexcoders@yahoogroups.com 
Sent: Wednesday, April 06, 2005 2:34 PM
Subject: Re: [flexcoders] Dynamically Changing an entire 
CSS

Okay wait, let me get this right... Flex does not compile the css directly 
into the resulting swf? It reads the css at runtime? If that is true 
then you could write a jsp file that output the CSS. That css could change 
based on cookie or session type data. Does that sound like an option that 
might work?

-- Matthew
On Apr 6, 2005 10:25 AM, JesterXL [EMAIL PROTECTED] 
wrote: 

  You cannot change CSS at runtime except via the 
  setting of styles, as you have indicated.
  
  However, if restarting the application is 
  acceptable, simply replace the CSS file on the server, and refresh the 
  browser.
  
  
  - Original Message - 
  From: Matthew Shirey 
  To: flexcoders@yahoogroups.com 
  Sent: Wednesday, April 06, 2005 1:13 PM
  Subject: [flexcoders] Dynamically Changing an entire 
  CSS
  
  After searching the mailing list archives I cannot seem to 
  find a good answer for this question so I thought I'd re-ask it and see if it 
  could get some additional feedback.
  
  We have multiple VERY extensive CSS files. We'd like 
  to be able to dynamically switch between the CSS files at run time. So 
  far the only solution that I have been able to come up with is to use the JSP 
  Flex tag library to generate the main mxml application file and dynamically 
  set the CSS file there. I only need to set this once, during the 
  application initialization. If the CSS preference is changed, it is 
  acceptable to restart the application. I saw some rather hackish ways of 
  programmatically going through and resetting the style on individual items in 
  the application, but this is very large application and that's just 
  impractical. Ideally we just need to change the CSS. Is there no 
  way to do this in MXML/ActionScript? Is this just a missing feature that 
  we might expectfixed/added in a future version?
  
  Thank you,
  
  -- Matthew
  
  Yahoo! Groups Links
  
To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service. 







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Error: flashgateway.io.ASObject

2005-04-06 Thread Doodi, Hari - BLS CTR

Hi all,
I am getting Error: flashgateway.io.ASObject error message
displayed on weblogic server console when I try to send data back to java
class to save on to database. Can't I pass Object class object over to java
class thru flashgateway using RemoteObject ? I appreciate any explanation.
Basically I want to pass data back to database. Ant Alternative methods??

Here is snippet of my mxml file .
mx:RemoteObject id=mngScheduleController
source=controllers.MngScheduleController showBusyCursor=true   
mx:method name=saveSchedTerms result=alert('Data Updated')
fault=showError(event.fault.faultString)/mx:method
  /mx:RemoteObject
mx:Button label=Save click=saveData() /

Here is function in my .as file..
function saveData()
{   
var prodObj:Object = new Object();
prodObj.itemsid = 1168960;
prodObj.irm = 200404;
prodObj.typeofsale = typeofsale.selectedItem.value;
prodObj.dfbuyer = dfbuyer.selectedItem.value;
prodObj.buyerbox = buyerbox.selectedItem.value;
prodObj.typeofbuyuerdetail = typeofbuyuerdetail.text;
prodObj.contractterms = contractterms.text;
prodObj.freight = freight.selectedItem.value;
prodObj.freightdetail = freightdetail.text;
prodObj.blscontract = blscontract.text;
prodObj.sizeofshipment = sizeofshipment.text;
prodObj.sizeoforder = sizeoforder.text;

mngScheduleController.saveSchedTerms(prodObj);
}
Thanks!
Hari



 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] For Hire - **Flex** designers developers in NYC area

2005-04-06 Thread bluejeanlifestyles


Does anyone know front end designers and developers in the NYC area 
(prefer Manhattan) who are experienced in Flex?

I have a very large project (125-200) pages for a new online 
subscription based website - with the same application also needing to 
use the same user interface for a PC deployment.

Work available immediately.

Have them contact me at [EMAIL PROTECTED]  Thanks, Michele 





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] ComboBox Tutorial

2005-04-06 Thread charlespaz1


Another quick and dirty beginners tutorial on ComboBox events and
Dynamic ComboBox lists

http://members.cox.net/midian/tutorials/combobox.htm





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Error: flashgateway.io.ASObject

2005-04-06 Thread Peter Farland

You can send an ActionScript Object instance via RemoteObject - the
server side representation will be a flashgateway.io.ASObject instance
which implements java.util.Map (and actually extends java.util.HashMap).



-Original Message-
From: Doodi, Hari - BLS CTR [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 2:54 PM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] Error: flashgateway.io.ASObject


Hi all,
I am getting Error: flashgateway.io.ASObject error message
displayed on weblogic server console when I try to send data back to
java
class to save on to database. Can't I pass Object class object over to
java
class thru flashgateway using RemoteObject ? I appreciate any
explanation.
Basically I want to pass data back to database. Ant Alternative
methods??

Here is snippet of my mxml file .
mx:RemoteObject id=mngScheduleController
source=controllers.MngScheduleController showBusyCursor=true   
mx:method name=saveSchedTerms result=alert('Data Updated')
fault=showError(event.fault.faultString)/mx:method
  /mx:RemoteObject
mx:Button label=Save click=saveData() /

Here is function in my .as file..
function saveData()
{   
var prodObj:Object = new Object();
prodObj.itemsid = 1168960;
prodObj.irm = 200404;
prodObj.typeofsale = typeofsale.selectedItem.value;
prodObj.dfbuyer = dfbuyer.selectedItem.value;
prodObj.buyerbox = buyerbox.selectedItem.value;
prodObj.typeofbuyuerdetail = typeofbuyuerdetail.text;
prodObj.contractterms = contractterms.text;
prodObj.freight = freight.selectedItem.value;
prodObj.freightdetail = freightdetail.text;
prodObj.blscontract = blscontract.text;
prodObj.sizeofshipment = sizeofshipment.text;
prodObj.sizeoforder = sizeoforder.text;

mngScheduleController.saveSchedTerms(prodObj);
}
Thanks!
Hari



 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: createChild dynamically via DB arguments..

2005-04-06 Thread Scott Barnes

heh well, after coming down from about 9 cups of coffee yesterday
(recommend folks not do that, you're brain becomes scattered)

it hit me this morning that I'm going about it wrong. I'm using XML like this

mx:Model id=configXML source=path/myconfig.xml/

I'm then parsing that and what not feeding in nodes into actual
classes and all that sort of thing.

It occured to me why. In that if each element within my config.xml
is supposed to represent something, then why not simply put that
something right then and there..

eg:
view-pod name=blah settingxyz=abc/ etc..

could be:
SynergyFlex:viewpod name=blah settingxyz=abc/ etc

And basically

mx:Model id=configXML source=path/myconfig.xml/

is now

config:MyApp/

That way any classes i need and what not all ok, and none of this
custom-runt-time-style-compiler crap.

Can anyone see any flaws in that approach? Otherwise i'll go with
Erik's #2 to go with fries and a super-sized coke :)


On Apr 6, 2005 11:42 PM, Erik Westra [EMAIL PROTECTED] wrote:
 
 Im sure we can lay out allot of possibilities, but that's not what u
 want.
 
 There are two possible reasons for the fact that u would like to
 instantiate a class runtime (via createChild):
 
 1. U want your main application to be as light as possible.
 2. U don't know (at compile time) which class will represent the child.
 
 My guess is that number 2 is the one u are after. To achieve that goal
 take the following steps.
 
 A.
 Place the following code inside your initialize function in your main
 application:
 
 Components;
 
 B.
 Create (in the same dir as the main application) a 'Components.as' file,
 this file contains the following code:
 
 class Components
 {
 public function Components()
 {
 //put all possible children inhere
 com.myProject.MyClass;
 };
 };
 
 The above two steps make sure the possible childs are included in the
 flex application (they are compiled in the resulting swf).
 
 C.
 Create a function in your application that looks like this:
 
 public function getClassRef(classPath_str:String):Object
 {
 var classRef_obj:Object = _global;
 var class_array:Array = classPath_str.split(.);
 
 for (var i = 0; i  class_array.length; i++)
 {
 classRef_obj = classRef_obj[class_array[i]];
 };
 
 return classRef_obj;
 };
 
 D.
 In the initialize function u can create a child like this:
 
 baseContainer.createChild(getClassRef(com.myProject.MyClass));
 
 I hope this helps :)
 
 Greetz Erik
 
 
 -Original Message-
 From: Scott Barnes [mailto:[EMAIL PROTECTED]
 Sent: woensdag 6 april 2005 13:55
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: createChild dynamically via DB arguments..
 
 Heres a test for yas:
 
 Inside a new FLEX app directory (ie start fresh), create a dir, then
 inside that dir, create another and another (go as deep as ya want),
 then finally create a mxml file.
 
 Then create an simple class file, and instantiate it via initialize() on
 mx.Application, then inside this class, do the same as you did (make as
 many nested ones as you want if need be) then at some point, simply do
 this
 
 mx.core.Application.application.baseContainer.createChild(blah[arg1][arg
 2]
 etc..)
 
 Then explain if you can / want to, how the hell that works. As I must be
 dumber then originally thought as i can't seem to connect the dots on
 how the hell that works? hell i'm struggling to even explain it
 (also i put another sequence of the above inside the
 unknown-loaded-at-runtime-class and they came up aswell heh).
 
 imho its as if at compile time, the entire app is packaged together, and
 seperated into whats FLASH code and whats other, if other do i embed it
 inside the swf and all that... i''ll pop the hood a later day (if i can
 figure it out) but *shrug* my level of FLEX expertises ends here hehehe.
 
 _level0[com] or _global[com] etc  won't work. As well as
 findClass();
 
 On a side note/question. I am also unsure if (hell i have no idea to
 test) whether or not if you have assets embedded inside the mxml files
 in question (even declared as RSL) will they request a new asset per
 instantiation...
 
 Any input / help is most welcomed heh.
 
 Yahoo! Groups Links
 
 
 
 
 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Dynamically Changing an entire CSS

2005-04-06 Thread Matthew Shirey



Right, but what I am trying to do requires the style to be selectable on a per user basis,from a profile setting. I have a workaround I am currently attempting. It's a little hackish, but doesn't require a ton of actionscript. If its successful then I'll share to this list.
-- Matthew

On Apr 6, 2005 11:39 AM, JesterXL [EMAIL PROTECTED] wrote:

Nope, you were right the first time; Flash does compile the CSS into the SWF; basically hardcodes the CSS value settings.

The reason I said upload a new CSS to the server is that the Flex server, when a new request comes in for the MXML file, should detect the CSS file change, and generate a new SWF for the end user that will have the new CSS styles in it.

- Original Message - 
From: Matthew Shirey 
To: flexcoders@yahoogroups.com 

Sent: Wednesday, April 06, 2005 2:34 PM
Subject: Re: [flexcoders] Dynamically Changing an entire CSS


Okay wait, let me get this right... Flex does not compile the css directly into the resulting swf? It reads the css at runtime? If that is true then you could write a jsp file that output the CSS. That css could change based on cookie or session type data. Does that sound like an option that might work?

-- Matthew
On Apr 6, 2005 10:25 AM, JesterXL [EMAIL PROTECTED] wrote: 

You cannot change CSS at runtime except via the setting of styles, as you have indicated.

However, if restarting the application is acceptable, simply replace the CSS file on the server, and refresh the browser.


- Original Message - 
From: Matthew Shirey 
To: flexcoders@yahoogroups.com 
Sent: Wednesday, April 06, 2005 1:13 PM
Subject: [flexcoders] Dynamically Changing an entire CSS

After searching the mailing list archives I cannot seem to find a good answer for this question so I thought I'd re-ask it and see if it could get some additional feedback.

We have multiple VERY extensive CSS files. We'd like to be able to dynamically switch between the CSS files at run time. So far the only solution that I have been able to come up with is to use the JSP Flex tag library to generate the main mxml application file and dynamically set the CSS file there. I only need to set this once, during the application initialization. If the CSS preference is changed, it is acceptable to restart the application. I saw some rather hackish ways of programmatically going through and resetting the style on individual items in the application, but this is very large application and that's just impractical. Ideally we just need to change the CSS. Is there no way to do this in MXML/ActionScript? Is this just a missing feature that we might expectfixed/added in a future version?

Thank you,

-- Matthew

Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 

Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Getting a listener to work in Flex

2005-04-06 Thread kredding.geo


I am trying to use an example from the Flex Help to setup listeners 
for buttons.  I cannot figure out how to get this code to work.  If I 
just use the AS code, I get cannot find this method errors.  If I 
add the buttons to the MXML, then the script runs, but I get two 
buttons.  Plus the canvas piece doesn't work at all.  Here is the 
code Flex provides in the help that I am copying:

Example
The following example attaches three buttons to the Stage, and lets 
the user draw lines in the SWF file at runtime, using the mouse 
pointer. One button clears all of the lines from the SWF file. The 
second button removes the mouse listener so the user cannot draw 
lines. The third button adds the mouse listener after it is removed, 
so the user can draw lines again. Add the following ActionScript:

/* Add an instance of the Button 
   component to be placed in the Library. 
   This example attaches and positions three Button 
   instances on the Stage. */
this.createClassObject(mx.controls.Button, clear_button, 
this.getNextHighestDepth(), {_x:10, _y:10, label:'clear'});
this.createClassObject(mx.controls.Button, stopDrawing_button, 
this.getNextHighestDepth(), {_x:120, _y:10, label:'stop drawing'});
this.createClassObject(mx.controls.Button, startDrawing_button, 
this.getNextHighestDepth(), {_x:230, _y:10, label:'start drawing'});
startDrawing_button.enabled = false;
//
this.createEmptyMovieClip(canvas_mc, this.getNextHighestDepth());
var mouseListener:Object = new Object();
mouseListener.onMouseDown = function() {
this.isDrawing = true;
canvas_mc.lineStyle(2, 0xFF, 100);
canvas_mc.moveTo(_xmouse, _ymouse);
};
mouseListener.onMouseMove = function() {
if (this.isDrawing) {
canvas_mc.lineTo(_xmouse, _ymouse);
}
updateAfterEvent();
};
mouseListener.onMouseUp = function() {
this.isDrawing = false;
};
Mouse.addListener(mouseListener);
var clearListener:Object = new Object();
clearListener.click = function() {
canvas_mc.clear();
};
clear_button.addEventListener(click, clearListener);
//
var stopDrawingListener:Object = new Object();
stopDrawingListener.click = function(evt:Object) {
Mouse.removeListener(mouseListener);
evt.target.enabled = false;
startDrawing_button.enabled = true;
};
stopDrawing_button.addEventListener(click, stopDrawingListener);
var startDrawingListener:Object = new Object();
startDrawingListener.click = function(evt:Object) {
Mouse.addListener(mouseListener);
evt.target.enabled = false;
stopDrawing_button.enabled = true;
};
startDrawing_button.addEventListener(click, startDrawingListener);






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Getting a listener to work in Flex

2005-04-06 Thread Manish Jethani

On Apr 7, 2005 6:18 AM, kredding.geo [EMAIL PROTECTED] wrote:

 I am trying to use an example from the Flex Help to setup listeners
 for buttons.  I cannot figure out how to get this code to work.  If I
 just use the AS code, I get cannot find this method errors.  If I
[snip]

First, declare some variables:

  var clear_button:mx.controls.Button;
  var stopDrawing_button:mx.controls.Button;
  var startDrawing_button:mx.controls.Button;
  var canvas_mc:MovieClip;

Next, you need to take the return value of createClassObject.  For example,

  clear_button = mx.controls.Button(
  this.createClassObject(mx.controls.Button, clear_button,
  this.getNextHighestDepth(), {_x:10, _y:10, label:'clear'}));

The cast to Button is required.

After doing this your code compiles and runs but nothing shows up. :) 
You can figure out that part (I wouldn't know what exactly you're
trying to do).

Manish


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Changing focus on the 'change' event in an Accordion

2005-04-06 Thread Manish Jethani

On Apr 6, 2005 10:28 PM, Andrea Veggiani [EMAIL PROTECTED] wrote:


 mx:Accordion styleName=testo id=idMainAccordion width=100%
 height=100% change=verificaAccordion()
   destinazione  id=idDestinazione root={this}
 listaDestinazioni={listaDestinazioni} /
   listaservizi  id=idListaservizi root={this} Mesi={Mesi}
 Giorni={Giorni} /
   nomipax   id=idNomipax  root={this} Mesi={Mesi}
 Giorni={Giorni} /
   intestazione  id=idIntestazione root={this} /
 /mx:Accordion
 
 my function:
 
   function verificaAccordion()
{
 
 if  (!idDestinazione.step())
  {
   idMainAccordion.selectedIndex=0;
  }
 
}

So in the change event handler you're resetting the selectedIndex to
0.  That might cause problems for the tweening (the transition).  You
could instead wait for the tween to complete and then reset it.  The
amount of time it should take for the tween is
accordion.getStyle(openDuration) or thereabouts.

Manish


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Weird behavior with Internet Explorer

2005-04-06 Thread Manish Jethani

On Apr 6, 2005 8:57 PM, joao_m_fernandes [EMAIL PROTECTED] wrote:

 No result of fault event is dispatched.

How long did you wait?

:P

Okay, seriously, start Flex Builder and see the Network Monitor.

Manish


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Control the placement of a combobox drop down list

2005-04-06 Thread Manish Jethani

On Apr 6, 2005 4:22 PM, greenfishinwater [EMAIL PROTECTED] wrote:

 Is it possible to change this default so that it appears above the
 combo box?

I don't think it's possible and worth trying.  It's pretty much coded
to work just that way.

Manish


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Weird behavior with Internet Explorer

2005-04-06 Thread Matt Chotin










As Manish said you probably want to check
the network monitor.  Is it possible IE is setup differently than Firefox? 
Maybe you have proxy settings or something?  I used SP2 all the time and dont
tend to have problems.



Matt











From: joao_m_fernandes
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005
8:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Weird
behavior with Internet Explorer






Hi there,

does anyone know any kind of limitation with
Internet Explorer
(possibly SP2 problem)?

My application works just fine with Firefox but
the same application
under IE doesn't work properly.
My menu isn't getting populated from a
remoteObject call that returns
a xmlObject.

No result of fault event is dispatched.

Known issue?

João Fernandes















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Control the placement of a combobox drop down list

2005-04-06 Thread Jose Lora










Well, there is probably a way to do this
since the ComboBox will automatically do it if you put it at the bottom of the
application and there is no enough space below the combo box.











From: Manish Jethani
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005
10:07 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Control
the placement of a combobox drop down list





On Apr 6, 2005 4:22 PM, greenfishinwater
[EMAIL PROTECTED] wrote:

 Is it possible to change this default so that
it appears above the
 combo box?

I don't think it's possible and worth
trying. It's pretty much coded
to work just that way.

Manish












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












Re: [flexcoders] Control the placement of a combobox drop down list

2005-04-06 Thread JesterXL

The only time it shows above it is when the ComboBox detects it is close to 
the bottom of the browser window; perhaps if you put them down there, 
they'll pop up instead of down.

- Original Message - 
From: Manish Jethani [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, April 06, 2005 11:07 PM
Subject: Re: [flexcoders] Control the placement of a combobox drop down list



On Apr 6, 2005 4:22 PM, greenfishinwater [EMAIL PROTECTED] 
wrote:

 Is it possible to change this default so that it appears above the
 combo box?

I don't think it's possible and worth trying.  It's pretty much coded
to work just that way.

Manish



Yahoo! Groups Links








 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Re: Problem with showBusyCursor on a popupWindow

2005-04-06 Thread Matt Chotin










Have you tried without FB running and with
showBusyCursor on?  It may be that the ActionScript required to run the Network
Monitor is interfering.



When I asked for substr I meant search
your MXML and AS, not the CFC.  But it sounds like you havent put that
anywhere, so I think the Network Monitor might be the issue.



As I said, a potential workaround is to
move your RemoteObject tag into another component rather than the TitleWindow
that youre popping up.  Not sure if it will make a difference, but worth
a shot.



Matt











From: joao_m_fernandes
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005
3:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Problem
with showBusyCursor on a popupWindow






Well Matt,

I'm the only one developping with flex here and no
one else works with
it (or coldfusion).

My remoteObject doesn't have this substring
function anywhere I even
searched in all site for that string and none was
found.

On the webbrowser everything works fine without
showbusycursor.
Under FB (debugging mode), I got that call each
time i close the
popupwindow and FB take too long to close the
window, I got a black
window and I'm forced to return to code view.

I have an event handler and I commented all my
code and just left the
deletePopUp() method to see if any of my code was
executing this
misterious call and no luck.

João Fernandes 

--- In flexcoders@yahoogroups.com, Matt Chotin
[EMAIL PROTECTED] wrote:
 Well it looks like something is trying to
call substr on your
RemoteObject
 and I'm not sure why because I don't think
any of our code should be
doing
 it on random components. Do you have
calls to substr in your code?
Do you
 have any event handlers calling your RemoteObject
that may be
executing an
 extra time? Maybe someone set a
reference to the RemoteObject
elsewhere in
 your application?
 
 
 
 Matt
 
 
 
 _ 
 
 From: joao_m_fernandes
[mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, April 05, 2005 3:29 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Problem with
showBusyCursor on a popupWindow
 
 
 
 
 Matt,
 
 With FB debugger I can catch this each time I
try to close the
 titleWindow. The problem is that the method
in question does not exist
 in my component.
 
 Remote Object 
 Method: cfcs.core.tab_suport.substr
 
 Parameter 1: 
 name : param1
 type : number
 value : 0
 
 Parameter 2: 
 name : param2
 type : number
 value : 2
 
 Message Target : cfcs.core.tab_suport.substr
 
 data[array] : 
 
 length[Number] : 2
 [0][Number] : 0
 [1][Number] : 2
 
 Regards,
 
 João Fernandes
 
 In flexcoders@yahoogroups.com, Matt Chotin
[EMAIL PROTECTED] wrote:
  Do you know what method it's trying to
call? I suppose the window
 could be
  introspecting the contained objects but
that would be weird. A
 workaround
  would maybe be to move the RemoteObject
outside the TitleWindow into
 another
  class and simply have your functions
call the outside remote object.
  
  
  
  Matt
  
  
  
  _ 
  
  From: joao_m_fernandes
[mailto:[EMAIL PROTECTED] 
  Sent: Monday, April 04, 2005 6:27 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Problem with
showBusyCursor on a popupWindow
  
  
  
  
  Hi there,
  
  I'm calling a RemoteObject method inside
a popup with showbusycursor
  enabled.
  
  The problem is when I call click
function to delete the popup, the
  busy cursor shows up calling some remote
meth
 
 od that I don't use
  anywhere (got that from FB network
debugger). If I remove
  showbusycursor property it works just
fine.
  
  Is this an known issue? 
  
  ?xml version=1.0
encoding=utf-8?
  mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml
 http://www.macromedia.com/2003/mxml

  http://www.macromedia.com/2003/mxml
http://www.macromedia.com/2003/mxml
  
  title=Adicionar
Contacto xmlns=* initialize=initApli()
  click=this.deletePopUp()
  
  mx:RemoteObject
id=tab_ro
 
endpoint=/cfusion/flashservices/gateway
  source=cfcs.core.tab_suport
showBusyCursor=true

 mx:method
name=GetPais result=setDefaultPais()/
 
mx:method name=GetHabilitacao/
 
/mx:RemoteObject
  ...
  
  João Fernandes
  
  
  
  
  
  
  
  _ 
  
  Yahoo! Groups Links
  
  * To visit
your group on the web, go to:
  http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/

  http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/
 
  
  * To
unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
 
mailto:[EMAIL PROTECTED] 
  
  * Your use
of Yahoo! Groups is subject to the Yahoo!
  http://docs.yahoo.com/info/terms/
http://docs.yahoo.com/info/terms/

 Terms of Service.
 
 
 
 
 
 
 _ 
 
 Yahoo! Groups Links
 
 * To visit your
group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/

 
 * To
unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]

mailto:[EMAIL PROTECTED] 
 
 * Your use of
Yahoo! Groups is subject to the 

RE: [flexcoders] dynamic assignment?

2005-04-06 Thread Matt Chotin










Why wouldnt it be
currentModel[changedColumnName] = myItem[changedColumnName]?



Matt











From: Jonathan Hirschi
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005
11:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] dynamic
assignment?





hey guys, I'm trying to figure out how to do some
dynamic assignement to an object... and I'm not
sure
about how to do it...

basically, I have a datagrid that gets information
from a cfc. This datagrid is editable
(several
fields) and I want to track changes on the
datagrid
one row at a time, and I want to commit updates
when
the selection of the row changes. So what I've
done is
to create an object that has names that match the
columns in the datagrid.. then i copy over changes
each time the column changes.

ala:
currentModel = new Object;
currentModel.IROW= 0;
currentModel.ICOLUMN= 0;
currentModel.ICOLSPAN= 0;

function
sendUpdate(event:Object,myItem:Object):Void 
{
 var changedColumnName:String;
 var myCol:Object;

 if (mySelectedIndex !=
event.itemIndex) {
 doUpdate();
 }
//changedColumnName = columnList
event.columnIndex].columnName; // this is the name
of
the column that was edited
// this updates the current model so that it
reflects
the current state of things.

currentModel[myCol.ColumnName] =
myItem[myCol.ColumnName];

the line above is where i'm trying to dynamically
map
the fields from the datagrid to the object.
the
fields have the same name, but this doesn't seem
to
work. 

Anyone have any pointers on how to do it?

Thanks!

  

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around 
http://mail.yahoo.com













Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] How to make a TitleWindow wipeleft onto the screen

2005-04-06 Thread Corey


I have a TitleWindow that pop ups when the user hits the login link.  
Instead of just the TitleWindow showing up on the screen I want it to 
wipeleft onto the screen.  I tried using mx:TitleWindow 
showEffect=WipeLeft But this does not work.  Can anyone tell me 
what I am doing wrong or how I can make the TitleWindow display on the 
screen with an effect?

Thanks,

COREY





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/