[flexcoders] send data from dragdrop target component.

2007-09-18 Thread Ary
Hi Guys,

i have a tileList as dragsource...and i have a
component that can accept this tileList dragdrop
operation, i catch the value of dragged element (of
one tileList data avalue)from component and display it
inside the component, now i want to share/send it back
to main app(parent) how can i do this

i try using eventListener but not succeed, using
metadata also can put to much parameter as the
tileList data array that i want to passed :(

Thanks in advance

ary.



  

Luggage? GPS? Comic books? 
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz


Re: [flexcoders] nulling primitive data types

2007-09-18 Thread EECOLOR
If you want to set values to NULL in your database you could make a simple
method on the server side with a signature like this:

setValueToNull(table, column, primaryKeyColumn, primaryKeyValue)

You could get the primaryKeyColumn from the database metadata.


Greetz Erik


On 9/19/07, EECOLOR <[EMAIL PROTECTED]> wrote:
>
> These are the simple types and their default values:
>
> uint - 0
> int - 0
> Number - NaN
> String - null
> Boolean - false
>
> I still do
> not get your problem. In your database a representation of a boolean would be 
> a bit type. Which means that it's either true or false. You could
> look at your problem in antother way. A boolean should have two values, 
> that's what the term suggests. Your database however adds
> another value: NULL. This is kinda strange. You could set the field in your 
> database to NOT NULLABLE and declare a default value. The field
> in the database should represent something that is either true or false.
>
> I hope this last bit makes any sense, quite hard to tell in a language
> which is not your own.
>
>
> Greetz Erik
>
>


Re: [flexcoders] nulling primitive data types

2007-09-18 Thread EECOLOR
These are the simple types and their default values:

uint - 0
int - 0
Number - NaN
String - null
Boolean - false

I still do
not get your problem. In your database a representation of a boolean
would be a bit type. Which means that it's either true or false. You
could
look at your problem in antother way. A boolean should have two
values, that's what the term suggests. Your database however adds
another value: NULL. This is kinda strange. You could set the field in
your database to NOT NULLABLE and declare a default value. The field
in the database should represent something that is either true or false.

I hope this last bit makes any sense, quite hard to tell in a language which
is not your own.


Greetz Erik


Re: [flexcoders] nulling primitive data types

2007-09-18 Thread Arpit Mathur
I forget the case for boolean but the null equivalent (ie declared but no
value) of Number is NaN. Wouldnt that work for you ?



On 9/18/07, Samuel R. Neff <[EMAIL PROTECTED]> wrote:
>
>
> We use xxx.MIN_VALUE to represent null on both client and server (.NET).
> We've been doing it in .NET for several years and now with Flex
> integration
> it works very well. Of course everyone needs to recognize that MIN_VALUE
> is
> being used this way and if you actually had to store MIN_VALUE then you
> have
> a problem, but we've never had the need.
>
> Of course this doesn't work for Boolean, so for Boolean if you need
> nullable
> then declare as int instead and use int.MIN_VALUE for null, 0 for false,
> everything else for true.
>
> .NET itself now has nullable types which would be more elegant but they
> have
> performance implications and would not provide as good interoperability
> with
> Flex.
>
> HTH,
>
> Sam
>
> ---
> We're Hiring! Seeking a passionate developer to join our team building
> Flex
> based products. Position is in the Washington D.C. metro area. If
> interested
> contact [EMAIL PROTECTED] 
>
> -Original Message-
> From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On
> Behalf Of merelypixels
> Sent: Tuesday, September 18, 2007 1:16 PM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] nulling primitive data types
>
> Hello All,
> I've been running into a rather frustrating issue with flex: namely
> that although data types are supposedly implemented as AS classes, you
> cannot null variables of primitive data types e.g.
>
> var blah:int = null; //blah == 0
> var blah:Number = null; //blah == 0
> var blah:Boolean = null; //blah == false
>
> admittedly we can define -1 as null for non-Boolean types, but what if
> a negative number becomes a logical value in some case?
>
> now this wouldn't be a problem if we didn't have to communicate with a
> SQL back-end, but sometimes I need to be able to pass a null value to
> the db either to signify that the current value shouldn't be changed
> or to specify that information is not currently known for the value.
>
> ...
>
> Thanks for your time,
> Pixels
>
> 
>



-- 
Arpit Mathur
Lead Software Engineer,
Comcast Interactive Media
---
post your flex tips on
http://flextips.corank.com


[flexcoders] navigateToURL() GET method works fine, but POST doesn't work.

2007-09-18 Thread Manu Dhanda

Hii

On the click of a button, am calling following method:

 public function openNewWindow(event:MouseEvent):void {
var url:URLRequest = new
URLRequest("http://cco061-03:8088/openreports/executeReport.action";);
var uv:URLVariables = new URLVariables();
url.method = "POST";
uv.reportId="76";
uv.userName="admin";
uv.password="admin";
uv.exportType="2";
uv.displayInline="true";
uv.promptForParameters="false";
uv.ttSearchCasesParam="lbl_list like '2%CRUD_CR%ISGcq00370199%'";
url.data = uv;
navigateToURL(url,"_blank");
 }

if I 'll change the url.method = "GET", it is working fine.. but not with
POST. WHY???

Anyone have reasons and solutions for that???

Thanks.
-- 
View this message in context: 
http://www.nabble.com/navigateToURL%28%29--GET-method-works-fine%2C-but-POST-doesn%27t-work.-tf4478874.html#a12771012
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders]SWFLoader not sizing loaded swf

2007-09-18 Thread Alex Harui
A flex swf has two frames, the preloader frame followed by the app
frame.

 

In theory, the chat.swf should be sized by SWFLoader while it is in the
first frame, which should dictate the size for the rest of the app.  If
you run chat.swf in the standalone player what size is it?  What does
the mx:Application tag look like in chat.swf?  If you resize the
browser, does chat.swf respond?

 

It might be that the app frame has a bigger measured size than expected.

 

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of chatopica
Sent: Tuesday, September 18, 2007 2:27 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]SWFLoader not sizing loaded swf

 

Hi Alex,

chat.swf is a Flex swf and there's no resizing code in the app. Do I
need to add some? I 
assumed it would automatically respect the size of the SWFLoader.

Thanks,

Tom Bray
www.chatopica.com/topics/flex

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Is chat.swf a Flex swf? Does chat.swf have code that resizes to the
> stage?
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of dorkie dork from dorktown
> Sent: Tuesday, September 18, 2007 12:21 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders]SWFLoader not sizing loaded swf
> 
> 
> 
> I am using a swf loader to load a chat swf. Unfortunately, I cannot
get
> the content to stay inside of the swfloader. Here is an example
> application. Notice I have the width and height set to 500. In my test
> the content is sized to the width and height of the browser. You can
> test this code: 
> 
> 
> http://www.adobe.com/2006/mxml
 
>  > "
layout="absolute"
> creationComplete="{Security.allowDomain('static.chatopica.com
>  > ')}">
> 
>  height="500" source=" http://static.chatopica.com/chat.swf?room=flex
 
>  > "/>
> 
> 
>

 



[flexcoders] help

2007-09-18 Thread grimmwerks
I'm very tired and have been struggling with poor documentation  
regarding the transitions and addChild stuff. I've been doing my fair  
share of google searches.

I'm having a love/hate relationship with flash. Today it hates me,  
and I it.

I've got a component that I'm trying to do a hide effect where it  
fades and blurs out. Great. The problem is, upon going back to that  
state where that component should be shown, it's in the blurred state.

How do I reset it at either then end of the transition that causes  
it, or at the state where this is 'inited'?

Please help.


[flexcoders] Anybody Out there Please! Re: Flex Builder/Webapp/Flex

2007-09-18 Thread simonjpalmer
I have exactly this set up with a J2EE servlet project using the WTP
Eclipse plug-in and a Flex Builder project in the wame Eclipse workspace.

It is best to start from the server project and create a Dynamic Web
Project first.  Get your servlet compiling and deploying into your app
server even if it is empty.  Create a Java package for your domain
model if you feel you need to start from having code.

Next create a Flex Builder project and use the server project you just
created as the context root.  I deploy my swf's into a folder at the
same level as WEB-INF which has the name of my app, therefore my URL
is of the form...

https://server:port/servletname/appname/projectname.html

e.g.

https://localhost:8443/pmco-spring-server/spm/spm.html in my case

pmco-spring-server is my WAR/EAR deployment name, spm is my app's
generic name and the name of the Flex project and spm is also the name
of my SWF root Application, so I have spm.html which embeds my spm.swf.

My folders look like this...

in the Java project...
C:\development\coral\eclipse\pmco-spring-server\src
C:\development\coral\eclipse\pmco-spring-server\src\pmco\pojos (my
domain model)
C:\development\coral\eclipse\pmco-spring-server\WebContent\spm this is
the output folder of my Flex project
C:\development\coral\eclipse\pmco-spring-server\WebContent\WEB-INF

on the flex side...

C:\development\coral\eclipse\spm this is my root app folder
C:\development\coral\eclipse\spm\pmco\pojos this is my domain model

"coral" is the release branch we are currently working on.

The steps to build and deploy (which we automate in production builds
using ANT) are to build the Flex project which has the output folder
set to the spm folder under WebContent in the Java project, and
therefore puts the swf's, html's etc into the deployment domain of the
Java app, and then to export the whole of the app from the Java side
as a WAR file.  That then gets copied into the deploy folder of the
servlet container, in our case JBoss, and the servlet is visible
through the web server.

You can actually start from flex or Java, it is just simpler to
configure the Flex project once you already have a server environment
set up and a server to talk to.

We have completely separate folders for each of the projects, Java and
Flex and the only link is that the code lived in the same SVN
repository and the Flex project builds into the Java project folder
for ease of deployment.

This has worked well for us and we are a multi-developer, multi-site
team.  We don't strictly partition responsibilities between server and
client code, but expertise tends to divide naturally along those lines.

I know it is a pain to get started and I hope this helps.  You'll
probably find a variant of this which will work for you and the
situation may be different for different app servers, but the J2EE
deployment model makes the structures similar in any case and don;t
worry, as long as you keep your code safe, restructuring when you
realise you have a better way of organising your activity is not the
end of the world.

Best of luck
Simon
--- In flexcoders@yahoogroups.com, "Leif Wells" <[EMAIL PROTECTED]> wrote:
>
> Matt,
> 
> At my workplace, we normally have a team working on the front-end and
> another working on the Java back-end.
> 
> Although we share the same Subversion repository, we place our code in
> separate folders. The front-end team uses the root of the "flex"
folder as
> the base of our Flex Builder project.
> 
> For compiling, assembling and deploying we use Ant. Seriously, Ant is
> awesome. Check out the Flex Ant Tasks found on Adobe Labs (
> http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks) for some
examples of
> the tasks.
> 
> To generally describe this to you, we have two build.xml files, one
in the
> Java folder and one in the Flex folder. The Java file will call to
the Flex
> build file, compile the Flex files and assemble them, then compile
the Java,
> move the Flex files into the Java deploy folder and then create the War
> file. When I come in to the office in the morning, I update my
Subversion
> repository, run the build process, start Tomcat and load up Flex
Builder.
> 
> I can't share the Ant files with you today, but they honestly are fairly
> easy to put together. That is one of the great things about Ant --- it's
> fairly easy to use.
> 
> I hope this helps you.
> 
> Leif
> 
> 
> On 9/18/07, mattmadhavan <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > mattmadhavan wrote:
> > >
> > > Hi,
> > > I would like the have the best practice to set up a webapp in my
> > Eclipse.
> > > What are the recommended directory structure for java/flex source
> > folders?
> > > Do I first create a webproject in eclipse, then place my flex binary
> > > folders in the webroot/WEB-INF folder? Do I keep my flex src
code under
> > > webroot or at the project folder?
> > >
> > > If some one can give me a step by step instruction on doing this
I would
> > > appreciate it. I need to work with both Java(se

Re: [flexcoders] Adding buttons to an Accordion header

2007-09-18 Thread Doug McCune
Yeah, you need to download flexlib. I just updated the zip file to include
the CanvasButtonAccordionHeader component. Download it here:
http://code.google.com/p/flexlib/downloads/list

unzip that zip file, grab the flexlib.swc file out of the bin directory that
gets unzipped. Add that into your project directory and set the project
preferences panel to reference that SWC file.

Doug

On 9/18/07, Steve Hueners <[EMAIL PROTECTED]> wrote:
>
>   I seem to be missing a step in configuring my project's implementation
> of this [to Peter Griffinize my adulation] freak'n awesome component.
>
> Am told:
> Could not resolve  to a component
> implementation. HeaderRenderer.mxml CanvasButtonAccodionHeader
>
> I've set a sourcepath but with no import being declared it isn't clear
> how/where sourcepath is referenced. given the http in the namespace is
> everything coming from flexlib?
>
> utmost thx
> --steve...
>
>
> On 9/18/07, Doug McCune <[EMAIL PROTECTED] >
> wrote:
> >
> >
> >
> >
> >
> >
> > Aight, check this out:
> >
> >
> http://dougmccune.com/blog/2007/09/18/using-complex-headers-with-the-flex-accordion/
> >
> > Doug
> >
> >
> >
> > On 9/17/07, Doug McCune <[EMAIL PROTECTED] >
> wrote:
> > > I might try to do a full post about this soon, but you can try
> checking out the CanvasButton component in FlexLib. Basically this is a
> subclass of Button that works like Canvas, so you can easily add whatever
> children to it that you want. So you would use that to create your header
> renderer, which you can set as a header renderer because it actually
> subclasses Button. You can get the FlexLib components here:
> http://code.google.com/p/flexlib/
> > >
> > > Hopefully that makes some sense. I'll try to write up a post soon
> since I've seen this question asked multiple times.
> > >
> > > Doug
> > >
> > >
> > > On 9/17/07, Alex Harui < [EMAIL PROTECTED] > wrote:
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Yes, but you have to float buttons over the header. Someone may have
> done this already.
> > > >
> > > >
> > > >
> > > > 
>
> > > >
> > > > From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@
> yahoogroups.com] On Behalf Of kundigee
> > > >
> > > > Sent: Monday, September 17, 2007 8:27 PM
> > > > To: flexcoders@yahoogroups.com 
> > > > Subject: [flexcoders] Adding buttons to an Accordion header
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > I am dynamically creating an Accordion at run time. I place a new
> > > > panel in the Accordion which generates a new Accordion header that I
> > > > attribute an icon to. All good so far. I need to dynamically place
> +/-
> > > > buttons on the right side of each header to give the user the
> ability
> > > > to replicate, or delete the panel/Accordion component. I can't seem
> to
> > > > addChild to the header with a child button. The Accordion header is
> a
> > > > button itself and not a container. I started to create a custom MXML
> > > > module extending Button, which I intended to substitute via the
> > > > headerRenderer if I could work something out, but that also will not
> > > > allow me to drop anything onto the component, as it is not a
> container.
> > > >
> > > > Is there any way to do what I am trying to accomplish?
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
> >
> >
> >
>
>  
>


[flexcoders] Redirect to login page

2007-09-18 Thread Manu Dhanda

Hii

Can someone tell me how do i unload flex and load/redirect to login page,
once the session is over.

Currently, when the session is over. Obviously I cannot access any data from
the server side. But my flex GUI will still remain there and it doesn't
unload from the screen.

Can anyone guide me in the right direction.

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Redirect-to-login-page-tf4478453.html#a12769927
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] nulling primitive data types

2007-09-18 Thread Samuel R. Neff

We use xxx.MIN_VALUE to represent null on both client and server (.NET).
We've been doing it in .NET for several years and now with Flex integration
it works very well.  Of course everyone needs to recognize that MIN_VALUE is
being used this way and if you actually had to store MIN_VALUE then you have
a problem, but we've never had the need.

Of course this doesn't work for Boolean, so for Boolean if you need nullable
then declare as int instead and use int.MIN_VALUE for null, 0 for false,
everything else for true. 

.NET itself now has nullable types which would be more elegant but they have
performance implications and would not provide as good interoperability with
Flex.

HTH,

Sam


---
We're Hiring! Seeking a passionate developer to join our team building Flex
based products. Position is in the Washington D.C. metro area. If interested
contact [EMAIL PROTECTED]
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of merelypixels
Sent: Tuesday, September 18, 2007 1:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] nulling primitive data types

Hello All,
  I've been running into a rather frustrating issue with flex: namely
that although data types are supposedly implemented as AS classes, you
cannot null variables of primitive data types e.g.

var blah:int =  null;   //blah == 0
var blah:Number = null; //blah == 0
var blah:Boolean = null;//blah == false

admittedly we can define -1 as null for non-Boolean types, but what if
a negative number becomes a logical value in some case?

now this wouldn't be a problem if we didn't have to communicate with a
SQL back-end, but sometimes I need to be able to pass a null value to
the db either to signify that the current value shouldn't be changed
or to specify that information is not currently known for the value.

...

Thanks for your time,
Pixels




Re: [flexcoders] Adding buttons to an Accordion header

2007-09-18 Thread Steve Hueners
I seem to be missing a step in configuring my project's implementation
of this [to Peter Griffinize my adulation] freak'n awesome component.

Am told:
Could not resolve  to a component
implementation. HeaderRenderer.mxml CanvasButtonAccodionHeader

I've set a sourcepath but with no import being declared it isn't clear
how/where sourcepath is referenced. given the http in the namespace is
everything coming from flexlib?

utmost thx
--steve...

On 9/18/07, Doug McCune <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> Aight, check this out:
>
> http://dougmccune.com/blog/2007/09/18/using-complex-headers-with-the-flex-accordion/
>
>  Doug
>
>
>
> On 9/17/07, Doug McCune <[EMAIL PROTECTED]> wrote:
> >  I might try to do a full post about this soon, but you can try checking 
> > out the CanvasButton component in FlexLib. Basically this is a subclass of 
> > Button that works like Canvas, so you can easily add whatever children to 
> > it that you want. So you would use that to create your header renderer, 
> > which you can set as a header renderer because it actually subclasses 
> > Button. You can get the FlexLib components here:  
> > http://code.google.com/p/flexlib/
> >
> > Hopefully that makes some sense. I'll try to write up a post soon since 
> > I've seen this question asked multiple times.
> >
> >  Doug
> >
> >
> > On 9/17/07, Alex Harui < [EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Yes, but you have to float buttons over the header.  Someone may have 
> > > done this already.
> > >
> > >
> > >
> > >   

> > >
> > > From: [EMAIL PROTECTED]  ups.com [mailto:flexcoders@ yahoogroups.com] On 
> > > Behalf Of kundigee
> > >
> > >  Sent: Monday, September 17, 2007 8:27 PM
> > >  To: flexcoders@yahoogroups.com
> > >  Subject: [flexcoders] Adding buttons to an Accordion header
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > I am dynamically creating an Accordion at run time. I place a new
> > >  panel in the Accordion which generates a new Accordion header that I
> > >  attribute an icon to. All good so far. I need to dynamically place +/-
> > >  buttons on the right side of each header to give the user the ability
> > >  to replicate, or delete the panel/Accordion component. I can't seem to
> > >  addChild to the header with a child button. The Accordion header is a
> > >  button itself and not a container. I started to create a custom MXML
> > >  module extending Button, which I intended to substitute via the
> > >  headerRenderer if I could work something out, but that also will not
> > >  allow me to drop anything onto the component, as it is not a container.
> > >
> > >  Is there any way to do what I am trying to accomplish?
> > >
> > >
> > >
> > >
> > >
> >
> >
>
>
>
>
>  


[flexcoders] Enhanced auto complete

2007-09-18 Thread Emmanuel Potvin
I'm looking for a text input component like this :
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail
 &loc=en_us&extid=1047291  with autocomplete feature, but
whose data provider would be a remote component with many records, like a
1 employees list . I don't want the complete list to be loaded on the
client side. I found some auto complete text input or combobox but none of
them works that way. Do that exists?



Re: [flexcoders] Alignment of SWF in HTML output

2007-09-18 Thread Michael Baird
Thanks again Alex. I will give it a shot. =)

On 9/18/07, Alex Harui <[EMAIL PROTECTED]> wrote:
>
>I just looked at our default template.  I think you have to modify
> AC_Generateobj in AC_OETags.js.  Someone else may have a better solution.
>
>
>
> You could add tags to the string or change from writing the document to
> writing to something else.
>
>
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Michael Baird
> *Sent:* Tuesday, September 18, 2007 10:14 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Alignment of SWF in HTML output
>
>
>
> Thanks Alex. I've tried wrapping different parts of the html in a
> table/table row and divs, but neither have effects. Do you happen to know
> which part *should* work to be centered in the whole page?
>
> On 9/17/07, *Alex Harui* <[EMAIL PROTECTED]> wrote:
>
> Make sure you're wrapping the right thing.  The object/embed tags are not
> used by most browsers.  Also make sure your app appears centered at that
> size.
>
>
>  --
>
> *From:* [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Michael Baird
> *Sent:* Sunday, September 16, 2007 11:56 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Alignment of SWF in HTML output
>
>
>
> I have a Flex app with a defined size of 1024x768. I'd like to be able to
> center this in the HTML page that it gets embedded in. I've tried editing
> the FlexBuilder-generated html index page to include a div, table, etc to
> try to get the SWF centered, but nothing seems to have any effect.
> What am I missing? Is there an easier way?
>
>
>
>  
>


[flexcoders] Running AIR alpha apps... after the alpha cutoff

2007-09-18 Thread Trevor.Peace
Many of you, like me, may have been inconvenienced by the sudden demise
of all AIR apps built by Flex Builder 2.0.1 about an hour and a half
ago.

 

This may sound obvious, but you can continue to export and run alpha AIR
apps by setting the date on your computer backwards to a time before 5pm
on 9/18.  I've had no luck building or debugging Apollo apps via
FB-2.0.1, but I can still export and run them.

 

That realization (literally) saved me from having to stay up all night
tonight re-writing a demo application, and I wanted to save someone else
a sleepless night too...

 

 

Peace out,

- - - - - - - - - - - - - - - - - - - -
Trevor Peace
Admios
880 Harrison St. Suite 201
San Francisco, CA 94107
www.admios.com 



[flexcoders] nulling primitive data types

2007-09-18 Thread merelypixels
Hello All,
  I've been running into a rather frustrating issue with flex: namely
that although data types are supposedly implemented as AS classes, you
cannot null variables of primitive data types e.g.

var blah:int =  null;   //blah == 0
var blah:Number = null; //blah == 0
var blah:Boolean = null;//blah == false

admittedly we can define -1 as null for non-Boolean types, but what if
a negative number becomes a logical value in some case?

now this wouldn't be a problem if we didn't have to communicate with a
SQL back-end, but sometimes I need to be able to pass a null value to
the db either to signify that the current value shouldn't be changed
or to specify that information is not currently known for the value.

my initial solution was going to be extending the String class to
create classes like NullableBoolean, which would check for a valid
boolean value and failing that accept null and nothing else, then
override the toString() function. Unfortunately, the String class is
declared final and cannot be extended. Even if this were not true,
it's not apparent how I could catch an assignment event and process
it, since there are no public get/set functions in the String class.

so now I'm leaning toward using dynamic Object properties that have no
explicit type, and I find this extremely unfortunate because I lose
both error checking and auto-completion features in FlexBuilder.

does anyone have a solution to this that doesn't involve some crazily
far-out hack? Seems to me that the flex data types are a far cry from
being robust.

Thanks for your time,
Pixels



[flexcoders] Building ant scripts for flex projects

2007-09-18 Thread kgfsatish
Hi Friends, Iam working in flex technology , i am in the process of
writing ant scripts for the project ,i have completed the script it is
running , but an runtime error comes when i run the application ,
security error Error # 2060 , i think the problem is with the
cross-domain.xml , i dont know how to include this file while writing
script, please any guys can help me in the regard.



[flexcoders] A file found in a source-path must have the same package structure

2007-09-18 Thread droponrcll
Hi, all;

I'm working through the tutorial in the Flex Builder 2 Training from 
the Source book, using Flex Builder 3 beta.  I accidentally called my 
events folder "Events", and now when I renamed it I get "A file found 
in a source-path must have the same package structure 'Events', as the 
definition's package, 'events'."  I have changed the package name to 
events from Events, and I've even tried deleting the file and 
recreating it from scratch, but I still get the error.  I had similar 
problems when I accidentally set the transparency of an AIR app without 
turning off its SystemChrome.  No matter WHAT I did to that file, I 
still got errors.  Unfortunately, I don't remember the fix to that.  If 
anyone could give me a suggestion or two, I'd appreciate it.

Thanks



Re: [flexcoders] Re: How to see if method is implemented in class

2007-09-18 Thread George
I think you could only check public(or else depends on namespace) 
properties(include methods) for classes.

George

j_lentzz wrote:
> What is the syntax to do this?  Just using validate in myObject
> returns an error about validate being an undefined property.
>
> John
> --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>   
>> If ("validate in someObject)
>>
>>  
>>
>> 
>>
>> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
>> Behalf Of j_lentzz
>> Sent: Tuesday, September 18, 2007 7:26 AM
>> To: flexcoders@yahoogroups.com
>> Subject: [flexcoders] How to see if method is implemented in class
>>
>>  
>>
>> Hi,
>>
>> I've got a problem I'm trying to resolve concerning validating a page
>> before submitting it to the server. I have a way to recursively get
>> each child on the page. However, I can't figure out a way to see if
>> the child has the validate() method implemented. Most of the
>> components are extended from TextInputs, ComboBox, etc, where I've
>> integrated a validator into each one that is custom for that type. So
>> my custom components will have a validate method, however, other
>> components - like Images, Buttons, etc - on the page don't have a
>> validate method. Is there a way to test that a method exists, before
>> trying to call it and causing an exception?
>>
>> Thanks,
>>
>> John
>>
>> 


Re: [flexcoders] Re: Loading code from swf (instantiating classes from external swf)

2007-09-18 Thread Steve Mathews
Well using the non-module approach (again, I haven't used modules so I
can't speak for that method), you at least need to know what class to
instantiate.

It sounds like you are doing something very similar in concept to what
I am. So I provide an API (interface) that an external developer
builds their class to. All I need to know from them is what the fully
qualified class path is.

Steve

On 9/18/07, b_alen <[EMAIL PROTECTED]> wrote:
> Cheers guys, just one quick check, is it possible with these two methods:
>
> 1. I make an application and deploy it on the web.
> 2. You, knowing nothing about the application except the API I provide
> you, write the extension and submit it in form of swf on my server.
> 3. My application recognizes that the new extension has been
> submitted, it downloads it and uses the code from there.
>
> Let's say I have an employee management system, where different
> operations can be made on the employee. You write an extension where
> user can for example use their web cam in order to save a pic in the
> database. Now application is already up and running, and you submit
> this to the server, I don't have to recompile and know nothing about
> your part and all you need to know is my API.
>
> It's purely a hypothetical example but for the case above I would
> provide something like that probably:
>
> ModelLocator.empDataManager.addEmployeeDetail(id:String, name:String);
> ModelLocator.empDataManager.editEmployeeDetail(id:String, value:Object);
>
> you would call this from your swf like this:
>
> ModelLocator.empDataManager.addEmployeeDetail("webcam_pic", "Webcam pic");
> ModelLocator.empDataManager.editEmployeeDetail("webcam_pic", picData);
>
>
>
>
> What do you think?
>
>
>
>
>
> --- In flexcoders@yahoogroups.com, "Steve Mathews" <[EMAIL PROTECTED]> wrote:
> >
> > You can use LoadModule, which might be the best way to go. But I am
> > doing a AS3 only project (no flex framework) and am doing this using
> > applicationDomain.getDefinition which works great.
> >
> > On 9/17/07, Tom Chiverton <[EMAIL PROTECTED]> wrote:
> > > On Monday 17 Sep 2007, [EMAIL PROTECTED] wrote:
> > > > I tried Google but I couldn't find anything, maybe it's pretty easy
> > > > and maybe it's impossible. Anyone has any ideas?
> > >
> > > LoadModule
> > >
> > > --
> > > Tom Chiverton
> > > Helping to continuously bully cross-media mindshares
> > > on: http://thefalken.livejournal.com
> > >
> > > 
> > >
> > > This email is sent for and on behalf of Halliwells LLP.
> > >
> > > Halliwells LLP is a limited liability partnership registered in
> England and Wales under registered number OC307980 whose registered
> office address is at St James's Court Brown Street Manchester M2 2JF.
>  A list of members is available for inspection at the registered
> office. Any reference to a partner in relation to Halliwells LLP means
> a member of Halliwells LLP. Regulated by the Law Society.
> > >
> > > CONFIDENTIALITY
> > >
> > > This email is intended only for the use of the addressee named
> above and may be confidential or legally privileged.  If you are not
> the addressee you must not read it and must not use any information
> contained in nor copy it nor inform any person other than Halliwells
> LLP or the addressee of its existence or contents.  If you have
> received this email in error please delete it and notify Halliwells
> LLP IT Department on 0870 365 8008.
> > >
> > > For more information about Halliwells LLP visit www.halliwells.com.
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> >
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>


Re: [flexcoders]SWFLoader not sizing loaded swf

2007-09-18 Thread chatopica
Hi Alex,

chat.swf is a Flex swf and there's no resizing code in the app.  Do I need to 
add some?  I 
assumed it would automatically respect the size of the SWFLoader.

Thanks,

Tom Bray
www.chatopica.com/topics/flex

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Is chat.swf a Flex swf?  Does chat.swf have code that resizes to the
> stage?
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of dorkie dork from dorktown
> Sent: Tuesday, September 18, 2007 12:21 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders]SWFLoader not sizing loaded swf
> 
>  
> 
> I am using a swf loader to load a chat swf. Unfortunately, I cannot get
> the content to stay inside of the swfloader. Here is an example
> application. Notice I have the width and height set to 500. In my test
> the content is sized to the width and height of the browser. You can
> test this code: 
> 
> 
> http://www.adobe.com/2006/mxml
>  " layout="absolute"
> creationComplete="{Security.allowDomain('static.chatopica.com
>  ')}">
> 
>  height="500" source=" http://static.chatopica.com/chat.swf?room=flex
>  "/>
> 
> 
>



[flexcoders] Flex Builder/Webapp/Flex

2007-09-18 Thread mattmadhavan

Hi, 
I would like the have the best practice to set up a webapp in my Eclipse.
What are the recommended directory structure for java/flex source folders?
Do I first create a webproject in eclipse, then place my flex binary folders
in the webroot/WEB-INF folder? Do I keep my flex src code under webroot or
at the project folder?

If some one can give me a step by step instruction on doing this I would
appreciate it. I need to work with both Java(server side-J2EE) and flex
client in the same project.

Most flex app I see do not even have  a webroot folder. They just have
WEB-INF folder in the root folder.

Please, any ideas will be very appreciated.

Thanks
Matt
-- 
View this message in context: 
http://www.nabble.com/Flex-Builder-Webapp-Flex-tf4476764.html#a12764911
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: How to see if method is implemented in class

2007-09-18 Thread merelypixels
Alex left out the right double quotes. Since your function is a
property of your class like any global variable you can access it with:

if("validate" in myObject) {}

-or-

if(myObject["validate"])

-or-

if(myObject.hasOwnProperty("validate")) {}
--- In flexcoders@yahoogroups.com, "j_lentzz" <[EMAIL PROTECTED]> wrote:
>
> What is the syntax to do this?  Just using validate in myObject
> returns an error about validate being an undefined property.
> 
> John
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > If ("validate in someObject)
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of j_lentzz
> > Sent: Tuesday, September 18, 2007 7:26 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] How to see if method is implemented in class
> > 
> >  
> > 
> > Hi,
> > 
> > I've got a problem I'm trying to resolve concerning validating a page
> > before submitting it to the server. I have a way to recursively get
> > each child on the page. However, I can't figure out a way to see if
> > the child has the validate() method implemented. Most of the
> > components are extended from TextInputs, ComboBox, etc, where I've
> > integrated a validator into each one that is custom for that type. So
> > my custom components will have a validate method, however, other
> > components - like Images, Buttons, etc - on the page don't have a
> > validate method. Is there a way to test that a method exists, before
> > trying to call it and causing an exception?
> > 
> > Thanks,
> > 
> > John
> >
>




[flexcoders] File upload compression (esp. gzip)?

2007-09-18 Thread fgamador
Is it possible to write a Flash/Flex/AIR app that compresses large
files during upload (ideally using gzip)?  As far as I can tell,
FileReference (and URLRequest) do not support this.  Is there any
other way?

Thanks in advance for any tips.



Re: [flexcoders] Anybody Out there Please! Re: Flex Builder/Webapp/Flex

2007-09-18 Thread Leif Wells
Matt,

At my workplace, we normally have a team working on the front-end and
another working on the Java back-end.

Although we share the same Subversion repository, we place our code in
separate folders. The front-end team uses the root of the "flex" folder as
the base of our Flex Builder project.

For compiling, assembling and deploying we use Ant. Seriously, Ant is
awesome. Check out the Flex Ant Tasks found on Adobe Labs (
http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks) for some examples of
the tasks.

To generally describe this to you, we have two build.xml files, one in the
Java folder and one in the Flex folder. The Java file will call to the Flex
build file, compile the Flex files and assemble them, then compile the Java,
move the Flex files into the Java deploy folder and then create the War
file. When I come in to the office in the morning, I update my Subversion
repository, run the build process, start Tomcat and load up Flex Builder.

I can't share the Ant files with you today, but they honestly are fairly
easy to put together. That is one of the great things about Ant --- it's
fairly easy to use.

I hope this helps you.

Leif


On 9/18/07, mattmadhavan <[EMAIL PROTECTED]> wrote:
>
>
>
> mattmadhavan wrote:
> >
> > Hi,
> > I would like the have the best practice to set up a webapp in my
> Eclipse.
> > What are the recommended directory structure for java/flex source
> folders?
> > Do I first create a webproject in eclipse, then place my flex binary
> > folders in the webroot/WEB-INF folder? Do I keep my flex src code under
> > webroot or at the project folder?
> >
> > If some one can give me a step by step instruction on doing this I would
> > appreciate it. I need to work with both Java(server side-J2EE) and flex
> > client in the same project.
> >
> > Most flex app I see do not even have a webroot folder. They just have
> > WEB-INF folder in the root folder.
> >
> > Please, any ideas will be very appreciated.
> >
> > Thanks
> > Matt
> >
>
> --
> View this message in context:
> http://www.nabble.com/Flex-Builder-Webapp-Flex-tf4476764.html#a12767245
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>  
>


[flexcoders] Anybody Out there Please! Re: Flex Builder/Webapp/Flex

2007-09-18 Thread mattmadhavan



mattmadhavan wrote:
> 
> Hi, 
> I would like the have the best practice to set up a webapp in my Eclipse.
> What are the recommended directory structure for java/flex source folders?
> Do I first create a webproject in eclipse, then place my flex binary
> folders in the webroot/WEB-INF folder? Do I keep my flex src code under
> webroot or at the project folder?
> 
> If some one can give me a step by step instruction on doing this I would
> appreciate it. I need to work with both Java(server side-J2EE) and flex
> client in the same project.
> 
> Most flex app I see do not even have  a webroot folder. They just have
> WEB-INF folder in the root folder.
> 
> Please, any ideas will be very appreciated.
> 
> Thanks
> Matt
> 

-- 
View this message in context: 
http://www.nabble.com/Flex-Builder-Webapp-Flex-tf4476764.html#a12767245
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] please: addChildAction examples

2007-09-18 Thread grimmwerks

I'm really confused as to how to make a vibrant, animated interface.

I've been told by the list that you can have addChild within a  
transition - seems not to be true, but you've got addChildAction and  
removeChildActions; trouble is, I can't figure out how they work.


The examples I've seen on the web only have a non-target, ie










But what does this mean? Does it mean that each of the sequence  
targets are instructed to do ANY addChild actions at that time?


If say I have a state with box1, box2, and box3; and I want to  
animate n box1 and box2, and, upon finishing, add box3, how would one  
do that? This doesn't seem to work:









alphaTo="1"/>







Can someone please show me how exactly this addChildAction works - I  
thought you could target specific addChild targets?

RE: [flexcoders] Re: Removing children when they have no id

2007-09-18 Thread Alex Harui
As I mentioned, you are not resetting labelCollection, or calling
removeItemAt from labelCollection as you call removeChild().

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of donvoltz
Sent: Tuesday, September 18, 2007 3:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Removing children when they have no id

 

Hi Alex,

You were correct in your question, this does not happen after the
first click, but after the second one.

See what I am doing is first establish the labels as listed above,
Then call a function on the click event to remove the labels, and
rebuild them with a different data set. (I would think this should
work like it did on the first go round).

Does this shed any additional light on why I am receiving this error

Thanks

Don

 



[flexcoders] Re: Removing children when they have no id

2007-09-18 Thread donvoltz
Hi Alex,

You were correct in your question, this does not happen after the
first click, but after the second one.

See what I am doing is first establish the labels as listed above,
Then call a function on the click event to remove the labels, and
rebuild them with a different data set. (I would think this should
work like it did on the first go round).

Does this shed any additional light on why I am receiving this error

Thanks

Don



RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Changing the image in a custom component item renderer

2007-09-18 Thread Paul Steven
Alex - you star!! That works perfectly!

 

Thank you so much!!

 

Paul

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 18 September 2007 21:37
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders]
Changing the image in a custom component item renderer

 

OK, so if dataField is "status' and data["status"] is "submitted" then we
need 

  

 

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: Tuesday, September 18, 2007 6:55 AM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders]
Changing the image in a custom component item renderer

 

If I hard code in my setter as follows then the image appears.

 

public function set listData( value : BaseListData ) : void

{



_listData = value;


icon3.source=submitted

}

 

I just need to work out how to dynamically get the value of data.status to
assign the symbol class to the icon. Don't understand why I can set the text
to this value using  whereas I can't just
set icon3.source  ="{data.status}"

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: 18 September 2007 08:49
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Changing
the image in a custom component item renderer

 

I also tried setting the source in the setter function as follows but still
only a broken image

 

public function set listData( value : BaseListData ) : void

{



_listData = value;


 
icon3.source="this{data[(DataGridListData(listData).dataField)]}";

 


}

 

In another part of the app I successfully display the image in a repeated
custom component as follows. 

 

public function set imagePath(value:String):void {



icon2.source=this[value]; 

 

}

 

Is there a way I can do something similar in the getter function for this
datagrid item renderer?

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 18 September 2007 07:45
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Changing the image in
a custom component item renderer

 

Hmm, didn't see that last time.  Try this:

 



 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: Monday, September 17, 2007 11:32 PM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [SPAM] RE: [flexcoders] Changing the image in a
custom component item renderer

 

Thanks for the reply Alex. I do still have those 3 class vars but something
still is not quite working. See my code listing below and you will see the 3
class vars

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 18 September 2007 07:14
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [flexcoders] Changing the image in a custom
component item renderer

 

In the original post, you had 3 class vars  You still need those.  @Embed is
compile time, so you have to embed the 3 images like you had it at first,
then the code I showed will choose one of the three variables.

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: Monday, September 17, 2007 10:53 PM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [flexcoders] Changing the image in a custom
component item renderer

 

Thanks Alex

 

I have tried what you suggested but the image is not displaying. I have
added a text field into the custom component - this is displaying the
correct value. But it is not displaying any image - just a broken image
icon.

 

Here is the code for my custom component:

 



http://www.adobe.com/2006/mxml"; width="100"
height="30">

















 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 17 September 2007 19:12
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [flexcoders] Changing the image in a custom component
item renderer

 

Something like:

 

imagePath="{data[DataGridListData(listData).dataField]}"

 

You'll need to add a listData getter/setter and implement
IDropInListItemRenderer.  Copy the listData get/set from Label or TextInput

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: Monday, September 17, 2007 10:32 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Changing the image in a custom component item renderer

 

I am creating a datagrid that uses a custom component

RE: [flexcoders] Re: Removing children when they have no id

2007-09-18 Thread Alex Harui
Is it possible that you are not removing from the container you added
to?  Is this on the first reset or subsequent?  If not the first, then
the prob might be that you aren't resetting the labelCollection.

 

FWIW, it is probably  overkill to use AC instead of an array here.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of donvoltz
Sent: Tuesday, September 18, 2007 2:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Removing children when they have no id

 

Thanks to all for the help but I am still seeing some issues I do not
understand

I have done the following

private var labelCollection:ArrayCollection = new ArrayCollection();
//place to hold the label instances

private function makeLabelHandler(event:ResultEvent):void {

...process data and construct new labels

labelCollection.addItem(newLabel);
this.addChild(newLabel);
}
}

On a button click I call the following function

private function resetCallLocations():void {

for each (var someLabel:Label in labelCollection){

removeChild(ff);
}

This returns the following error

ArgumentError: Error #2025: The supplied DisplayObject must be a child
of the caller.

Am I setting this up correctly or is this not the way to instantiate
many labels

Thanks for the help

Don

 



[flexcoders] Re: Removing children when they have no id

2007-09-18 Thread donvoltz
Thanks to all for the help but I am still seeing some issues I do not
understand

I have done the following

private var labelCollection:ArrayCollection = new ArrayCollection();
//place to hold the label instances

private function makeLabelHandler(event:ResultEvent):void {

...process data and construct new labels

labelCollection.addItem(newLabel);
this.addChild(newLabel);
}
}

On a button click I call the following function

private function resetCallLocations():void {

for each (var someLabel:Label in labelCollection){

removeChild(ff);
}

This returns the following error

ArgumentError: Error #2025: The supplied DisplayObject must be a child
of the caller.

Am I setting this up correctly or is this not the way to instantiate
many labels

Thanks for the help

Don





RE: [flexcoders] How to change positions of Alert popups in SHOW_ALL mode

2007-09-18 Thread Alex Harui
Feel free to file a bug, but last time I investigated an issue like this
it had to do with matching up application size to application content.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of George
Sent: Tuesday, September 18, 2007 7:15 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to change positions of Alert popups in
SHOW_ALL mode

 

Thanks Alex.

I found a method to fix the issue after scanning Flex SDK source code 
and a few experiments myself. Should be a bug inside Adobe codes that 
not function centerPopup correctly.

I'm not sure customize HTML wrapper could work right or not (I'm using 
the Flash CS3 HTML wrapper). As far as I know a few coders in this list 
had tested before also myself I didn't find it could work perfectly.

George

Alex Harui wrote:
> If I remember correctly, to get the scaling stage modes to work, you
> have to make sure the application lays out at the same size as the
> original stage. I think you have to specify the size in the
> mx:Appication tag, customize the HTML wrapper so it doesn't fix the
> size, then make sure your layout fits in the size you specified.
> Otherwise, things get out of whack.
>
> 
>
> 
>
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of george_w_canada
> Sent: Monday, September 17, 2007 6:55 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] How to change positions of Alert popups in
> SHOW_ALL mode
>
> 
>
> In Flex the SHOW_ALL mode couldn't function correctly for default
> popups, like Alert. I didn't find a way to fit them in center of
> browser screen automatically. Occasional Alert popups (usually server
> side errors) not belong to any views so to make an customized version
> of Alert class will cost lots of time to dig. Any suggestions?
>
> Thanks a lot!
> George
> 

 



RE: [flexcoders] Alignment of SWF in HTML output

2007-09-18 Thread Alex Harui
I just looked at our default template.  I think you have to modify
AC_Generateobj in AC_OETags.js.  Someone else may have a better
solution.

 

You could add tags to the string or change from writing the document to
writing to something else.

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Baird
Sent: Tuesday, September 18, 2007 10:14 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Alignment of SWF in HTML output

 

Thanks Alex. I've tried wrapping different parts of the html in a
table/table row and divs, but neither have effects. Do you happen to
know which part should work to be centered in the whole page? 

On 9/17/07, Alex Harui <[EMAIL PROTECTED]  >
wrote:

Make sure you're wrapping the right thing.  The object/embed tags are
not used by most browsers.  Also make sure your app appears centered at
that size.

 



From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@yahoogroups.com
 ] On Behalf Of Michael Baird
Sent: Sunday, September 16, 2007 11:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Alignment of SWF in HTML output

 

I have a Flex app with a defined size of 1024x768. I'd like to be able
to center this in the HTML page that it gets embedded in. I've tried
editing the FlexBuilder-generated html index page to include a div,
table, etc to try to get the SWF centered, but nothing seems to have any
effect. 
What am I missing? Is there an easier way?

 

 



Re: [flexcoders] Re: Adding buttons to an Accordion header

2007-09-18 Thread Doug McCune
I'm using Flex Builder 3 and the example I posted seems to work for me.
Yeah, you might not get to use Design View, but then just don't use Design
View :) I didn't even realize this since I rarely ever use DV, but yeah, it
won't let you drop stuff on the CanvasButton. I have no problems adding via
MXML though. You're saying that if you add children in the MXML file then
FB3 won't compile that?

BTW, you should get the latest flexlib source code to use the
CanvasButtonAccordionHeader that I just added.

Doug

On 9/18/07, kundigee <[EMAIL PROTECTED]> wrote:
>
>   Thanks guys for the great advise, although I'm still kinda stuck
>
> 1) Floating the buttons won't really work as the Accordions are
> dynamically created and the number of headers and panels can become
> very large requiring the headers to scroll on and off of the screen,
> sometime 1/2 off. This would be dificult for me to keep up with, not
> immpossible, but a lot of work..
> 2) Tried the CanvasButton and I thought that this would work, but I
> can't seem to get it to work (I am using Flex 3 BETA). The internal
> ActionScript adds the canvas to the button, as a child, but the
> Canvas never shows up and the IDE won't allow anything to be dropped
> on the Button/Canvas or manually inserted via MXML. I get the
> warning message Design Mode: Cannot create Button because Button is
> not a vallid parent for that kind of item.
>
> Am I doing something wrong, or does it just not work in Flex 3?
>
> --- In flexcoders@yahoogroups.com , "Doug
> McCune" <[EMAIL PROTECTED]> wrote:
> >
> > I might try to do a full post about this soon, but you can try
> checking out
> > the CanvasButton component in FlexLib. Basically this is a subclass
> of
> > Button that works like Canvas, so you can easily add whatever
> children to it
> > that you want. So you would use that to create your header
> renderer, which
> > you can set as a header renderer because it actually subclasses
> Button. You
> > can get the FlexLib components here:
> http://code.google.com/p/flexlib/
> >
> > Hopefully that makes some sense. I'll try to write up a post soon
> since I've
> > seen this question asked multiple times.
> >
> > Doug
> >
> > On 9/17/07, Alex Harui <[EMAIL PROTECTED]> wrote:
> > >
> > > Yes, but you have to float buttons over the header. Someone
> may have
> > > done this already.
> > >
> > >
> > > --
> > >
> > > *From:* flexcoders@yahoogroups.com 
>
> [mailto:flexcoders@yahoogroups.com ] *On
> > > Behalf Of *kundigee
> > > *Sent:* Monday, September 17, 2007 8:27 PM
> > > *To:* flexcoders@yahoogroups.com 
> > > *Subject:* [flexcoders] Adding buttons to an Accordion header
> > >
> > >
> > >
> > > I am dynamically creating an Accordion at run time. I place a new
> > > panel in the Accordion which generates a new Accordion header
> that I
> > > attribute an icon to. All good so far. I need to dynamically
> place +/-
> > > buttons on the right side of each header to give the user the
> ability
> > > to replicate, or delete the panel/Accordion component. I can't
> seem to
> > > addChild to the header with a child button. The Accordion header
> is a
> > > button itself and not a container. I started to create a custom
> MXML
> > > module extending Button, which I intended to substitute via the
> > > headerRenderer if I could work something out, but that also will
> not
> > > allow me to drop anything onto the component, as it is not a
> container.
> > >
> > > Is there any way to do what I am trying to accomplish?
> > >
> > >
> > >
> >
>
>  
>


[flexcoders] Re: Reduce size of my module! Really boring....

2007-09-18 Thread danielvlopes
Thanks again Alex, one of the things make more enthusiastic in flex
developing is the activity of the community and mainly of the members
of the Adobe ,as you, that always help to much.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I would recommend dumping link reports from the modules and examining
> them to see what they share.  If there's a significant amount of stuff
> or there are singleton managers or styles, they should go in the
> sharedcode module pretty much like the version you've showed herer.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of danielvlopes
> Sent: Tuesday, September 18, 2007 9:49 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Reduce size of my module! Really boring
> 
>  
> 
> Ola Alex,
> I obtained to compile using ant with using link-report and load-extern
> together with rsl.
> 
> My buidl.xml is this:
> 
> 
> 
> 
> 
> 
> 
> 
>  failifexecutionfails="no">
> 
> 
>  failifexecutionfails="no">
> 
> 
>  failifexecutionfails="no">
> 
> 
>  failifexecutionfails="no">
> 
> 
>  
> 
>  
> 
> But i'm still want to know need do this, like you made in you example
> for Flex360 presentation:
> 
> I should create a class with all this components? like this:
> 
> package 
> {
> import mx.modules.ModuleBase;
> import mx.rpc.events.ResultEvent;
> import mx.rpc.events.FaultEvent;
> import mx.controls.DataGrid;
> import mx.containers.Panel;
> import mx.controls.Button;
> 
> public class SharedCode extends ModuleBase
> {
> private var dragManager:DragManager;
> private var dataGrid:DataGrid;
> private var panel:Panel;
> private var button:Button;
> private var resultEvent:ResultEvent;
> private var faultEvent:FaultEvent;
> }
> 
> }
> 
> --- In flexcoders@yahoogroups.com 
> , "danielvlopes" 
> wrote:
> >
> > Hello Alex, i read your presentation and try find ant in your blog and
> > i found only this
> >
> (http://blogs.adobe.com/flexdoc/2007/01/two_new_tools_flex_ant_tasks_a.h
> tml
>  tml> ).
> > 
> > In examples used in your application you share code between modules
> > using a external AS class called SharedCode extends ModuleBase ... in
> > my case i don't had any dragManager or popupManager, just some
> > Datagrids, buttons, panels, rpc for amfphp and other commons
> > components. I should create a class with all this components? like
> this:
> > 
> > package 
> > {
> > import mx.modules.ModuleBase;
> > import mx.rpc.events.ResultEvent;
> > import mx.rpc.events.FaultEvent;
> > import mx.controls.DataGrid;
> > import mx.containers.Panel;
> > import mx.controls.Button;
> > 
> > public class SharedCode extends ModuleBase
> > {
> > private var dragManager:DragManager;
> > private var dataGrid:DataGrid;
> > private var panel:Panel;
> > private var button:Button;
> > private var resultEvent:ResultEvent;
> > private var faultEvent:FaultEvent;
> > }
> > 
> > }
> > 
> > In your example you load your SharedCode.swf in MyApp.mxml, even i use
> > load externs in my module pointing to shrclasses.rpt should i must
> > load SharedCode.swf in my main app?
> > 
> > In your examples for Flex360 you don't show how use RSL together
> > --link-report and --load-exeterns modules.
> > In my project i'm using like teached in video on adobelabs, not using
> > any line comand compiler. 
> > 
> > I will use ant to compile because i'm using windows and cygwin don't
> > work for windows.
> > 
> > I try use ant following this tutorial:
> > http://howtoforge.com/amfphp_adobe_flex2_sdk
>  
> > 
> > Thanks, and sorry for disturb.
> > 
> > --- In flexcoders@yahoogroups.com
>  , "Alex Harui"  wrote:
> > >
> > > The host generates a link-report that the modules load-extern so
> that no
> > > classes in the host are in the modules.
> > > 
> > > 
> > > 
> > > If you use the framework as an RSL, then compiling with that option
> on
> > > should flush all of those classes as well. If you generate
> link-reports
> > > from your modules, you can see if everything that should be
> removed got
> > > removed.
> > > 
> > > 
> > > 
> > > The shared code example on my blog also addresses how to deal with
> a set
> > > of modules that share code among themselves.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
>  
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > > Behalf Of danielvlopes
> > > Sent: Monday, September 17, 2007 1:28 PM
> > > To: flexcoders@yahoogroups.com 
> 
> > > Subject: [flexcoders] Re: Reduce size of my module! Really
> boring
> > > 
> > > 
> > > 
> > > Hum... i will take a look in you blog. In my case application is
> only
> > > "m

Re: [flexcoders] How to change positions of Alert popups in SHOW_ALL mode

2007-09-18 Thread George
Thanks Alex.

I found a method to fix the issue after scanning Flex SDK source code 
and a few experiments myself. Should be a bug inside Adobe codes that 
not function centerPopup correctly.

I'm not sure customize HTML wrapper could work right or not (I'm using 
the Flash CS3 HTML wrapper). As far as I know a few coders in this list 
had tested before also myself I didn't find it could work perfectly.

George

Alex Harui wrote:
> If I remember correctly, to get the scaling stage modes to work, you
> have to make sure the application lays out at the same size as the
> original stage.  I think you have to specify the size in the
> mx:Appication tag, customize the HTML wrapper so it doesn't fix the
> size, then make sure your layout fits in the size you specified.
> Otherwise, things get out of whack.
>
>  
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of george_w_canada
> Sent: Monday, September 17, 2007 6:55 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How to change positions of Alert popups in
> SHOW_ALL mode
>
>  
>
> In Flex the SHOW_ALL mode couldn't function correctly for default
> popups, like Alert. I didn't find a way to fit them in center of
> browser screen automatically. Occasional Alert popups (usually server
> side errors) not belong to any views so to make an customized version
> of Alert class will cost lots of time to dig. Any suggestions?
>
> Thanks a lot!
> George
>   



[flexcoders] Re: Validating items in DataGrids

2007-09-18 Thread merelypixels
seems to me that no mucking about with itemEditors is necessary...
extract the data you need from your dataProvider and then validate
that data directly before sending it on. If you want the little red
validation things, you should probably validate on a field by field
basis using the dataGrids itemEditEnd event, validating using
dg.itemEditorInstance and doing e.preventDefault() if the field is
invalid.

Hope that helps!
-Pixels

--- In flexcoders@yahoogroups.com, "j_lentzz" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I'm now trying to validating the contents of a datagrid and I was
> wondering if there is an established way to do this.  It seems like I
> would need to get an instance of the itemEditor and somehow pass it
> the value on that row.  Then I would either call a validator against
> that editor, or call a method contained in the itemEditor to do the
> validation.  I can get the itemEditor to do validation when the user
> is entering data, but I need to be able to do validation on all the
> entries in the datagrid when the save button is pressed - to handle
> the cases of missing data in required datagrid fields.  I've found
> some examples of how to validate when the user is entering data for
> that field, but not for validating the complete datagrid.  Any help or
> ideas would be greatly appreciated.
> 
> John
>




[flexcoders] Re: Adding buttons to an Accordion header

2007-09-18 Thread kundigee
Thanks guys for the great advise, although I'm still kinda stuck

1) Floating the buttons won't really work as the Accordions are 
dynamically created and the number of headers and panels can become 
very large requiring the headers to scroll on and off of the screen, 
sometime 1/2 off.  This would be dificult for me to keep up with, not 
immpossible, but a lot of work..
2) Tried the CanvasButton and I thought that this would work, but I 
can't seem to get it to work (I am using Flex 3 BETA).  The internal 
ActionScript adds the canvas to the button, as a child, but the 
Canvas never shows up and the IDE won't allow anything to be dropped 
on the Button/Canvas or manually inserted via MXML.  I get the 
warning message Design Mode: Cannot create Button because Button is 
not a vallid parent for that kind of item.

Am I doing something wrong, or does it just not work in Flex 3?

--- In flexcoders@yahoogroups.com, "Doug McCune" <[EMAIL PROTECTED]> wrote:
>
> I might try to do a full post about this soon, but you can try 
checking out
> the CanvasButton component in FlexLib. Basically this is a subclass 
of
> Button that works like Canvas, so you can easily add whatever 
children to it
> that you want. So you would use that to create your header 
renderer, which
> you can set as a header renderer because it actually subclasses 
Button. You
> can get the FlexLib components here: 
http://code.google.com/p/flexlib/
> 
> Hopefully that makes some sense. I'll try to write up a post soon 
since I've
> seen this question asked multiple times.
> 
> Doug
> 
> On 9/17/07, Alex Harui <[EMAIL PROTECTED]> wrote:
> >
> >Yes, but you have to float buttons over the header.  Someone 
may have
> > done this already.
> >
> >
> >  --
> >
> > *From:* flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] *On
> > Behalf Of *kundigee
> > *Sent:* Monday, September 17, 2007 8:27 PM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] Adding buttons to an Accordion header
> >
> >
> >
> > I am dynamically creating an Accordion at run time. I place a new
> > panel in the Accordion which generates a new Accordion header 
that I
> > attribute an icon to. All good so far. I need to dynamically 
place +/-
> > buttons on the right side of each header to give the user the 
ability
> > to replicate, or delete the panel/Accordion component. I can't 
seem to
> > addChild to the header with a child button. The Accordion header 
is a
> > button itself and not a container. I started to create a custom 
MXML
> > module extending Button, which I intended to substitute via the
> > headerRenderer if I could work something out, but that also will 
not
> > allow me to drop anything onto the component, as it is not a 
container.
> >
> > Is there any way to do what I am trying to accomplish?
> >
> >  
> >
>




Re: [flexcoders] Alignment of SWF in HTML output

2007-09-18 Thread Michael Baird
Thanks Alex. I've tried wrapping different parts of the html in a
table/table row and divs, but neither have effects. Do you happen to know
which part should work to be centered in the whole page?

On 9/17/07, Alex Harui <[EMAIL PROTECTED]> wrote:
>
>Make sure you're wrapping the right thing.  The object/embed tags are
> not used by most browsers.  Also make sure your app appears centered at that
> size.
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Michael Baird
> *Sent:* Sunday, September 16, 2007 11:56 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Alignment of SWF in HTML output
>
>
>
> I have a Flex app with a defined size of 1024x768. I'd like to be able to
> center this in the HTML page that it gets embedded in. I've tried editing
> the FlexBuilder-generated html index page to include a div, table, etc to
> try to get the SWF centered, but nothing seems to have any effect.
> What am I missing? Is there an easier way?
>
>  
>


RE: [flexcoders]SWFLoader not sizing loaded swf

2007-09-18 Thread Alex Harui
Is chat.swf a Flex swf?  Does chat.swf have code that resizes to the
stage?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dorkie dork from dorktown
Sent: Tuesday, September 18, 2007 12:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]SWFLoader not sizing loaded swf

 

I am using a swf loader to load a chat swf. Unfortunately, I cannot get
the content to stay inside of the swfloader. Here is an example
application. Notice I have the width and height set to 500. In my test
the content is sized to the width and height of the browser. You can
test this code: 


http://www.adobe.com/2006/mxml
 " layout="absolute"
creationComplete="{Security.allowDomain('static.chatopica.com
 ')}">

http://static.chatopica.com/chat.swf?room=flex
 "/>





 



Re: [flexcoders] dynamic title of a panel

2007-09-18 Thread Sheriff
u should use a titleWindow instead and then just bind to the this.title

- Original Message 
From: Gustavo Duenas <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, September 18, 2007 2:03:41 PM
Subject: [flexcoders] dynamic title of a panel









  








Hi coders I have an app I've been doing and something is out of my league now, 
well I have a mx:model its id is portafolio and it load an external  xml 
file.well one of its part is  name of the client


and I'm using the pop up manager in order to create a pop up panel the code is.












The panel opens when the tile is clicked and everything is ok, but I need the 
name of the  in the title of each panel any ideas?




Regards




Gustavo Duenas





  
























   

Building a website is a piece of cake. Yahoo! Small Business gives you all the 
tools to get online.
http://smallbusiness.yahoo.com/webhosting 

[flexcoders] ok then - addChildAction

2007-09-18 Thread grimmwerks
If I have something with 3 elements in a state, how do I use  
AddChildAction? Does an AddChildAction make ALL the 'addChild'  
elements come on, or can you target specific elements to be added?


RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Changing the image in a custom component item renderer

2007-09-18 Thread Paul Steven
If I hard code in my setter as follows then the image appears.

 

public function set listData( value : BaseListData ) : void

{



_listData = value;


icon3.source=submitted

}

 

I just need to work out how to dynamically get the value of data.status to
assign the symbol class to the icon. Don't understand why I can set the text
to this value using  whereas I can't just
set icon3.source  ="{data.status}"

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: 18 September 2007 08:49
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Changing
the image in a custom component item renderer

 

I also tried setting the source in the setter function as follows but still
only a broken image

 

public function set listData( value : BaseListData ) : void

{



_listData = value;


 
icon3.source="this{data[(DataGridListData(listData).dataField)]}";

 


}

 

In another part of the app I successfully display the image in a repeated
custom component as follows. 

 

public function set imagePath(value:String):void {



icon2.source=this[value]; 

 

}

 

Is there a way I can do something similar in the getter function for this
datagrid item renderer?

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 18 September 2007 07:45
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Changing the image in
a custom component item renderer

 

Hmm, didn't see that last time.  Try this:

 



 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: Monday, September 17, 2007 11:32 PM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [SPAM] RE: [flexcoders] Changing the image in a
custom component item renderer

 

Thanks for the reply Alex. I do still have those 3 class vars but something
still is not quite working. See my code listing below and you will see the 3
class vars

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 18 September 2007 07:14
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [flexcoders] Changing the image in a custom
component item renderer

 

In the original post, you had 3 class vars  You still need those.  @Embed is
compile time, so you have to embed the 3 images like you had it at first,
then the code I showed will choose one of the three variables.

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: Monday, September 17, 2007 10:53 PM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [flexcoders] Changing the image in a custom
component item renderer

 

Thanks Alex

 

I have tried what you suggested but the image is not displaying. I have
added a text field into the custom component - this is displaying the
correct value. But it is not displaying any image - just a broken image
icon.

 

Here is the code for my custom component:

 



http://www.adobe.com/2006/mxml"; width="100"
height="30">

















 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 17 September 2007 19:12
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [flexcoders] Changing the image in a custom component
item renderer

 

Something like:

 

imagePath="{data[DataGridListData(listData).dataField]}"

 

You'll need to add a listData getter/setter and implement
IDropInListItemRenderer.  Copy the listData get/set from Label or TextInput

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: Monday, September 17, 2007 10:32 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Changing the image in a custom component item renderer

 

I am creating a datagrid that uses a custom component in an item renderer to
display one of 3 images (symbols of an embedded swf)

 

The data grid columns are created dynamically. I can't figure out how to set
the value of imagePath inside this custom component. 

 

The symbol names are the same as the value for xmlColumn.localName();

 

Any help really appreciated!!

 

 

e.g

 

dgc = new DataGridColumn();

dgc.headerText = xmlColumn.localName();
dgc.itemRenderer=new ClassFactory(statusComponent); 
dgc.dataField = xmlColumn.localName();

 

My custom component is as follows:

 


http://www.adobe.com/2006/mxml"; width="100"
height="30">







 

 



[flexcoders]SWFLoader not sizing loaded swf

2007-09-18 Thread dorkie dork from dorktown
I am using a swf loader to load a chat swf. Unfortunately, I cannot get the
content to stay inside of the swfloader. Here is an example application.
Notice I have the width and height set to 500. In my test the content is
sized to the width and height of the browser. You can test this code:


http://www.adobe.com/2006/mxml"; layout="absolute"
creationComplete="{Security.allowDomain('static.chatopica.com')}">

http://static.chatopica.com/chat.swf?room=flex"/>




[flexcoders] Re: Can't style a cursor with CSS, can you?

2007-09-18 Thread ben.clinkinbeard
Got it, thanks.


--- In flexcoders@yahoogroups.com, "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Ben,
> 
> moveCursorSkin:Embed(source="moveCursor.png");
> 
> Embed creates a class. You could also use setStyle("moveCursorSkin",
> MyCursorClass);
> 
> or;
> 
> moveCursorSkin:ClassReference("my.package.cursors.MyCursorClass");
> 
> bottom line is my manager calls basically,
> 
> var cls:Class = styleName.getStyle(cursorSkinName + "Skin");
> if (cls)
> {
>CursorManager.setCursor(cls, 0, offsetX, offsetY);
> }
> 
> Peace, Mike
> 
> 
> On 9/18/07, ben.clinkinbeard <[EMAIL PROTECTED]> wrote:
> >
> >   Not sure I follow you. How do you glean a class from those styles?
> >
> > --- In flexcoders@yahoogroups.com ,
"Michael
> > Schmalle"
> >  wrote:
> > >
> > > Thats why for all of my custom components and managers I created
a new
> > > CursorManager that wraps the mx one.
> > >
> > > In each of the managers or components I have;
> > >
> > > /*
> > > * The move cursor skin for the MoveManagerFX.
> > > */
> > > moveCursorSkin:Embed(source="moveCursor.png");
> > > /*
> > > * The move cursor's x offset.
> > > */
> > > moveCursorXOffset:-10;
> > > /*
> > > * The move cursor's y offset.
> > > */
> > > moveCursorYOffset:-10;
> > >
> > >
> > > styles.
> > >
> > > Where the styles names are organized by;
> > >
> > > cursorName + "Skin";
> > > cusrorName + "XOffset";
> > > cursorName + "YOffset";
> > >
> > > The custom cursor manager then uses the styleName of the client to
> > get what
> > > ever cursor is needed. There then can easily be set in styles
anywhere.
> > >
> > > Peace, Mike
> > >
> > > On 9/18/07, ben.clinkinbeard  wrote:
> > > >
> > > > Pretty sure its not possible but just looking for confirmation.
> > Since
> > > > CursorManager.setCursor() expects a class I assume thats the
only way.
> > > > Correct?
> > > >
> > > > Thanks,
> > > > Ben
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Teoti Graphix
> > > http://www.teotigraphix.com
> > >
> > > Blog - Flex2Components
> > > http://www.flex2components.com
> > >
> > > You can find more by solving the problem then by 'asking the
question'.
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> Teoti Graphix
> http://www.teotigraphix.com
> 
> Blog - Flex2Components
> http://www.flex2components.com
> 
> You can find more by solving the problem then by 'asking the question'.
>




Re: [flexcoders] Re: Multiple Axis in Flex 3 FLEX CHART

2007-09-18 Thread M Faisal
One more thing Sunil: where do I go to file for an
enhancement? Could you please send me the
link?

Thanks

Faisal



On 9/17/07, Sunil Bannur <[EMAIL PROTECTED]> wrote:
>
>The Multiple Axis feature in Flex 3 provides the following
>
>
>
>1. Each series can have its own axis and in turn a separate
>transform which provides the capability to render the different series in
>different scales
>2. Ability to render multiple axis graphically using multiple
>AxisRenderers which can map to any specified Axis
>3. Also, ability for any chartelement (annotation or background) to
>have its own transform so that they can write in their own scales
>
>
>
> The attached example gives a simple overview of this feature, where in
> three series could be compared against totally different axes. It could be
> found on
> http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions#Charting_Enhancementsas
>  well.
>
>
>
> The feature to stack multiple axes (example
> http://processtrends.com/toc_panel_charts.htm ), was a B feature and was
> not considered for this release, however you could go ahead and file an
> enhancement request if you want these kinds of charts.
>
>
>
> Thanks
>
> -Sunil
>
>
>
>
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *reflexactions
> *Sent:* Monday, September 17, 2007 6:37 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Re: Multiple Axis in Flex 3 FLEX CHART
>
>
>
> The example you give is not what is usually meant by a "multiple axis"
> chart it is more a "multiple chart" chart!
>
> Multiple Axes refers to displaying several overlayed data series that
> use more than one axis in the same position i.e. two overlayed lines
> charts which have different scales shown with two Y Axis placed on the
> left of the chart.
>
> You want to have several different charts stacked above each other
> sharing a common X axis.
>
> With Flex Charts there is no built in way to achieve that but you can
> create more than one chart, place them in a VBox to stack vertically.
> You would then need to customise the charts to ensure the X axis scales
> were the same and to hide the XAxis for all but the main chart.
>
> FYI In XPCharting for Flex we have a built in SubChart that
> automatically does exactly this, it allows you to add multiple sub
> charts which are displayed stacked underneath the main chart sharing a
> common XAxis and only one chart displays the shared XAxis. You can see
> an example here
> http://www.xpcomponents.com/flex/examples/StockChartExample2/StockChartE
> xample2.html where we use the subcharts to display volume and RSI below
> the main stock chart. You can control the heights of the various
> subcharts individually.
>
> --- In flexcoders@yahoogroups.com , "hworke"
> <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Hello!! I can see that Flax 3 charting now has multi axis ability. The
> > examples I got from the web has all the Y axis "side by side"!!! Is it
> > possible to stack up Y axis? I kind of want to STAKC up like 10 area
> > graphs with 10 multi Y axis so that I can view all of them at the same
> > time in one chart with one background. Please take a look at this
> > link, I need somthing like this:
> >
> >
> http://www.visualmining.com/developers/examples/lines/linemultiaxes.htm
> >
> > Thanks
> >
>
>  
>
>


[flexcoders] Re: Removing children when they have no id

2007-09-18 Thread Sandeep Malik
Cant you use removeAllChildren()?

Regards,
Sandeep

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I'd keep an array of labels.
> 
>  
> 
> But you can search as well by testing if getChildAt(i) is Label
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of donvoltz
> Sent: Tuesday, September 18, 2007 10:21 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Removing children when they have no id
> 
>  
> 
> Hi everyone,
> 
> I am using the following code to dynamically add a number of labels to 
> a panal.
> 
> for each (var item:XML in dataStream){
> var someLabel:Label = new Label();
> someLabel.text = item..title;
> addChild(someLabel);
> }
> 
> This works well, however, I am now up against a problem. Each of these 
> labels does not have an id so I have no way to access them individually.
> 
> What I need to do is remove all of the labels when a user clicks a 
> button, however, I can not use removeChild() since I do not have an id 
> to each label, and infact, may not even know programatically how many 
> labels are in the panal since it depends on what was returned from a 
> database.
> 
> Any help on how I can "reset" this panal by removing the labels when a 
> button click event occurs would be appreciated
> 
> Thanks 
> 
> Don
>




Re: [flexcoders] Re: Can't style a cursor with CSS, can you?

2007-09-18 Thread Michael Schmalle
Ben,

moveCursorSkin:Embed(source="moveCursor.png");

Embed creates a class. You could also use setStyle("moveCursorSkin",
MyCursorClass);

or;

moveCursorSkin:ClassReference("my.package.cursors.MyCursorClass");

bottom line is my manager calls basically,

var cls:Class = styleName.getStyle(cursorSkinName + "Skin");
if (cls)
{
   CursorManager.setCursor(cls, 0, offsetX, offsetY);
}

Peace, Mike


On 9/18/07, ben.clinkinbeard <[EMAIL PROTECTED]> wrote:
>
>   Not sure I follow you. How do you glean a class from those styles?
>
> --- In flexcoders@yahoogroups.com , "Michael
> Schmalle"
> <[EMAIL PROTECTED]> wrote:
> >
> > Thats why for all of my custom components and managers I created a new
> > CursorManager that wraps the mx one.
> >
> > In each of the managers or components I have;
> >
> > /*
> > * The move cursor skin for the MoveManagerFX.
> > */
> > moveCursorSkin:Embed(source="moveCursor.png");
> > /*
> > * The move cursor's x offset.
> > */
> > moveCursorXOffset:-10;
> > /*
> > * The move cursor's y offset.
> > */
> > moveCursorYOffset:-10;
> >
> >
> > styles.
> >
> > Where the styles names are organized by;
> >
> > cursorName + "Skin";
> > cusrorName + "XOffset";
> > cursorName + "YOffset";
> >
> > The custom cursor manager then uses the styleName of the client to
> get what
> > ever cursor is needed. There then can easily be set in styles anywhere.
> >
> > Peace, Mike
> >
> > On 9/18/07, ben.clinkinbeard <[EMAIL PROTECTED]> wrote:
> > >
> > > Pretty sure its not possible but just looking for confirmation.
> Since
> > > CursorManager.setCursor() expects a class I assume thats the only way.
> > > Correct?
> > >
> > > Thanks,
> > > Ben
> > >
> > >
> > >
> >
> >
> >
> > --
> > Teoti Graphix
> > http://www.teotigraphix.com
> >
> > Blog - Flex2Components
> > http://www.flex2components.com
> >
> > You can find more by solving the problem then by 'asking the question'.
> >
>
>  
>



-- 
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] dynamic title of a panel

2007-09-18 Thread Gustavo Duenas




Hi coders I have an app I've been doing and something is out of my  
league now, well I have a mx:model its id is portafolio and it load  
an external  xml file.

well one of its part is  name of the client

and I'm using the pop up manager in order to create a pop up panel  
the code is.









The panel opens when the tile is clicked and everything is ok, but I  
need the name of the  in the title of each panel any ideas?



Regards


Gustavo Duenas



Re: [flexcoders] Adding buttons to an Accordion header

2007-09-18 Thread Doug McCune
Aight, check this out:

http://dougmccune.com/blog/2007/09/18/using-complex-headers-with-the-flex-accordion/

Doug

On 9/17/07, Doug McCune <[EMAIL PROTECTED]> wrote:
>
> I might try to do a full post about this soon, but you can try checking
> out the CanvasButton component in FlexLib. Basically this is a subclass of
> Button that works like Canvas, so you can easily add whatever children to it
> that you want. So you would use that to create your header renderer, which
> you can set as a header renderer because it actually subclasses Button. You
> can get the FlexLib components here: http://code.google.com/p/flexlib/
>
> Hopefully that makes some sense. I'll try to write up a post soon since
> I've seen this question asked multiple times.
>
> Doug
>
> On 9/17/07, Alex Harui <[EMAIL PROTECTED]> wrote:
> >
> >Yes, but you have to float buttons over the header.  Someone may have
> > done this already.
> >
> >
> >  --
> >
> > *From:* [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED]
> > *On Behalf Of *kundigee
> > *Sent:* Monday, September 17, 2007 8:27 PM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] Adding buttons to an Accordion header
> >
> >
> >
> > I am dynamically creating an Accordion at run time. I place a new
> > panel in the Accordion which generates a new Accordion header that I
> > attribute an icon to. All good so far. I need to dynamically place +/-
> > buttons on the right side of each header to give the user the ability
> > to replicate, or delete the panel/Accordion component. I can't seem to
> > addChild to the header with a child button. The Accordion header is a
> > button itself and not a container. I started to create a custom MXML
> > module extending Button, which I intended to substitute via the
> > headerRenderer if I could work something out, but that also will not
> > allow me to drop anything onto the component, as it is not a container.
> >
> > Is there any way to do what I am trying to accomplish?
> >
> >  
> >
>
>


[flexcoders] Re: Can't style a cursor with CSS, can you?

2007-09-18 Thread ben.clinkinbeard
Not sure I follow you. How do you glean a class from those styles?


--- In flexcoders@yahoogroups.com, "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Thats why for all of my custom components and managers I created a new
> CursorManager that wraps the mx one.
> 
> In each of the managers or components I have;
> 
> /*
>  * The move cursor skin for the MoveManagerFX.
>  */
> moveCursorSkin:Embed(source="moveCursor.png");
> /*
>  * The move cursor's x offset.
>  */
> moveCursorXOffset:-10;
> /*
>  * The move cursor's y offset.
>  */
> moveCursorYOffset:-10;
> 
> 
> styles.
> 
> Where the styles names are organized by;
> 
> cursorName + "Skin";
> cusrorName + "XOffset";
> cursorName + "YOffset";
> 
> The custom cursor manager then uses the styleName of the client to
get what
> ever cursor is needed. There then can easily be set in styles anywhere.
> 
> Peace, Mike
> 
> On 9/18/07, ben.clinkinbeard <[EMAIL PROTECTED]> wrote:
> >
> >   Pretty sure its not possible but just looking for confirmation.
Since
> > CursorManager.setCursor() expects a class I assume thats the only way.
> > Correct?
> >
> > Thanks,
> > Ben
> >
> >  
> >
> 
> 
> 
> -- 
> Teoti Graphix
> http://www.teotigraphix.com
> 
> Blog - Flex2Components
> http://www.flex2components.com
> 
> You can find more by solving the problem then by 'asking the question'.
>




RE: [flexcoders] Removing children when they have no id

2007-09-18 Thread Alex Harui
I'd keep an array of labels.

 

But you can search as well by testing if getChildAt(i) is Label

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of donvoltz
Sent: Tuesday, September 18, 2007 10:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Removing children when they have no id

 

Hi everyone,

I am using the following code to dynamically add a number of labels to 
a panal.

for each (var item:XML in dataStream){
var someLabel:Label = new Label();
someLabel.text = item..title;
addChild(someLabel);
}

This works well, however, I am now up against a problem. Each of these 
labels does not have an id so I have no way to access them individually.

What I need to do is remove all of the labels when a user clicks a 
button, however, I can not use removeChild() since I do not have an id 
to each label, and infact, may not even know programatically how many 
labels are in the panal since it depends on what was returned from a 
database.

Any help on how I can "reset" this panal by removing the labels when a 
button click event occurs would be appreciated

Thanks 

Don

 



RE: [flexcoders] Removing children when they have no id

2007-09-18 Thread Gordon Smith
Make someLabel an instance var of your component or application rather
than a local var inside a method. An MXML tag declared with an id causes
simply such an instance var to be autogenerated by the MXML compiler.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of donvoltz
Sent: Tuesday, September 18, 2007 10:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Removing children when they have no id



Hi everyone,

I am using the following code to dynamically add a number of labels to 
a panal.

for each (var item:XML in dataStream){
var someLabel:Label = new Label();
someLabel.text = item..title;
addChild(someLabel);
}

This works well, however, I am now up against a problem. Each of these 
labels does not have an id so I have no way to access them individually.

What I need to do is remove all of the labels when a user clicks a 
button, however, I can not use removeChild() since I do not have an id 
to each label, and infact, may not even know programatically how many 
labels are in the panal since it depends on what was returned from a 
database.

Any help on how I can "reset" this panal by removing the labels when a 
button click event occurs would be appreciated

Thanks 

Don



 


[flexcoders] Re: Buttons in Flex !

2007-09-18 Thread scalenine
Like Alex mentioned, this will be something you'll be able to do in
Flex 3. I've done it using the Flex Component Kit, Flash CS3 and Flex
3 to replicate what George Comninos demoed at 360Flex:

http://www.colettas.org/?p=150
http://cruxy.com/stores/pubstoreDetailVideo.jsp?id=11450

It was pretty easy to do.

Also, I hate to keep blowing smoke, but Degrafa will eventually have
the ability to do that pretty easily. We'll see if it gets into the
initial beta launch in the next couple months. Here's some info:

http://www.degrafa.com/

If you find a solution beyond these, I'd like to hear.

Juan
scalenine.com
degrafa.com


--- In flexcoders@yahoogroups.com, "Troy Gilbert" <[EMAIL PROTECTED]>
wrote:
>
> > What if the transition is just a simple fade from one skin to the
> > next. Does that make things any easier? The Button class has a
> > transitions property, so why can't that be leveraged?
> 
> As Alex mentioned, the transitions property won't help you.
> 
> But, if all you want is a simple fade from one skin to the next that
> *does* make things a bit easier to implement. You still have to
> implement a custom skin, one in which you have the giant switch
> statement selecting the skin based on whether its "up" "down" "over"
> etc. Just google some tutorials on programmatic skins and you should
> find some good examples (one in particular uses a radial gauge as an
> example).
> 
> Once you have your programmatic skin doing basic switching between
> states, you then just modify your giant switch statement so that when
> the skin changes you start a timer that fades out the current skin and
> fades in the new skin (or use an animation library).
> 
> Troy.
>




Re: [flexcoders] Can't style a cursor with CSS, can you?

2007-09-18 Thread Michael Schmalle
Thats why for all of my custom components and managers I created a new
CursorManager that wraps the mx one.

In each of the managers or components I have;

/*
 * The move cursor skin for the MoveManagerFX.
 */
moveCursorSkin:Embed(source="moveCursor.png");
/*
 * The move cursor's x offset.
 */
moveCursorXOffset:-10;
/*
 * The move cursor's y offset.
 */
moveCursorYOffset:-10;


styles.

Where the styles names are organized by;

cursorName + "Skin";
cusrorName + "XOffset";
cursorName + "YOffset";

The custom cursor manager then uses the styleName of the client to get what
ever cursor is needed. There then can easily be set in styles anywhere.

Peace, Mike

On 9/18/07, ben.clinkinbeard <[EMAIL PROTECTED]> wrote:
>
>   Pretty sure its not possible but just looking for confirmation. Since
> CursorManager.setCursor() expects a class I assume thats the only way.
> Correct?
>
> Thanks,
> Ben
>
>  
>



-- 
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Re: Loading code from swf (instantiating classes from external swf)

2007-09-18 Thread b_alen
Wow, that certainly seems exciting then. Though the examples I've seen
briefly deal mostly with the graphical side of it. If you happen to
know any good resource I'd be very thankful.

Cheers all!

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> That's the goal of modules.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of b_alen
> Sent: Tuesday, September 18, 2007 1:24 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Loading code from swf (instantiating classes
> from external swf)
> 
>  
> 
> Cheers guys, just one quick check, is it possible with these two
> methods:
> 
> 1. I make an application and deploy it on the web.
> 2. You, knowing nothing about the application except the API I provide
> you, write the extension and submit it in form of swf on my server.
> 3. My application recognizes that the new extension has been
> submitted, it downloads it and uses the code from there.
> 
> Let's say I have an employee management system, where different
> operations can be made on the employee. You write an extension where
> user can for example use their web cam in order to save a pic in the
> database. Now application is already up and running, and you submit
> this to the server, I don't have to recompile and know nothing about
> your part and all you need to know is my API. 
> 
> It's purely a hypothetical example but for the case above I would
> provide something like that probably:
> 
> ModelLocator.empDataManager.addEmployeeDetail(id:String, name:String);
> ModelLocator.empDataManager.editEmployeeDetail(id:String, value:Object);
> 
> you would call this from your swf like this:
> 
> ModelLocator.empDataManager.addEmployeeDetail("webcam_pic", "Webcam
> pic");
> ModelLocator.empDataManager.editEmployeeDetail("webcam_pic", picData);
> 
> What do you think?
> 
> --- In flexcoders@yahoogroups.com 
> , "Steve Mathews"  wrote:
> >
> > You can use LoadModule, which might be the best way to go. But I am
> > doing a AS3 only project (no flex framework) and am doing this using
> > applicationDomain.getDefinition which works great.
> > 
> > On 9/17/07, Tom Chiverton  wrote:
> > > On Monday 17 Sep 2007, alen.balja@ wrote:
> > > > I tried Google but I couldn't find anything, maybe it's pretty
> easy
> > > > and maybe it's impossible. Anyone has any ideas?
> > >
> > > LoadModule
> > >
> > > --
> > > Tom Chiverton
> > > Helping to continuously bully cross-media mindshares
> > > on: http://thefalken.livejournal.com
>  
> > >
> > > 
> > >
> > > This email is sent for and on behalf of Halliwells LLP.
> > >
> > > Halliwells LLP is a limited liability partnership registered in
> England and Wales under registered number OC307980 whose registered
> office address is at St James's Court Brown Street Manchester M2 2JF.
> A list of members is available for inspection at the registered
> office. Any reference to a partner in relation to Halliwells LLP means
> a member of Halliwells LLP. Regulated by the Law Society.
> > >
> > > CONFIDENTIALITY
> > >
> > > This email is intended only for the use of the addressee named
> above and may be confidential or legally privileged. If you are not
> the addressee you must not read it and must not use any information
> contained in nor copy it nor inform any person other than Halliwells
> LLP or the addressee of its existence or contents. If you have
> received this email in error please delete it and notify Halliwells
> LLP IT Department on 0870 365 8008.
> > >
> > > For more information about Halliwells LLP visit www.halliwells.com.
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>  
> > > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
>  
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> >
>




[flexcoders] multiple effects in one state transition

2007-09-18 Thread grimmwerks

I thought I could do this, but now it's throwing errors:



			




blurYTo="0" />







Basically I want one transition for a state where different elements  
move in different ways -- no?

[flexcoders] Can't style a cursor with CSS, can you?

2007-09-18 Thread ben.clinkinbeard
Pretty sure its not possible but just looking for confirmation. Since
CursorManager.setCursor() expects a class I assume thats the only way.
Correct?

Thanks,
Ben



[flexcoders] Removing children when they have no id

2007-09-18 Thread donvoltz
Hi everyone,

I am using the following code to dynamically add a number of labels to 
a panal.

for each (var item:XML in dataStream){
var someLabel:Label = new Label();
someLabel.text = item..title;
addChild(someLabel);
}

This works well, however, I am now up against a problem. Each of these 
labels does not have an id so I have no way to access them individually.

What I need to do is remove all of the labels when a user clicks a 
button, however, I can not use removeChild() since I do not have an id 
to each label, and infact, may not even know programatically how many 
labels are in the panal since it depends on what was returned from a 
database.

Any help on how I can "reset" this panal by removing the labels when a 
button click event occurs would be appreciated

Thanks 

Don



[flexcoders] Re: How to see if method is implemented in class

2007-09-18 Thread Doug Lowder
Technically, if you plan to call the method wouldn't you also want to 
verify that it's a function?  Something like:

 if ("validate" in someObject && someObject["validate"] is Function) 

I suppose it might depend on the possible instance types of 
someObject.

--- In flexcoders@yahoogroups.com, "j_lentzz" <[EMAIL PROTECTED]> wrote:
>
> Ok.  I see now.  Very nice.  Thanks a bunch.
> 
> John
> --- In flexcoders@yahoogroups.com, "Gordon Smith"  wrote:
> >
> > if ("validate" in someObject)
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> > Behalf Of Alex Harui
> > Sent: Tuesday, September 18, 2007 8:10 AM
> > To: flexcoders@yahoogroups.com
> > Subject: RE: [flexcoders] How to see if method is implemented in 
class
> > 
> > 
> > 
> > If ("validate in someObject)
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> > Behalf Of j_lentzz
> > Sent: Tuesday, September 18, 2007 7:26 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] How to see if method is implemented in class
> > 
> > Hi,
> > 
> > I've got a problem I'm trying to resolve concerning validating a 
page
> > before submitting it to the server. I have a way to recursively 
get
> > each child on the page. However, I can't figure out a way to see 
if
> > the child has the validate() method implemented. Most of the
> > components are extended from TextInputs, ComboBox, etc, where I've
> > integrated a validator into each one that is custom for that 
type. So
> > my custom components will have a validate method, however, other
> > components - like Images, Buttons, etc - on the page don't have a
> > validate method. Is there a way to test that a method exists, 
before
> > trying to call it and causing an exception?
> > 
> > Thanks,
> > 
> > John
> >
>




RE: [flexcoders] Listening for all creationComplete() events

2007-09-18 Thread Alex Harui
systemManager will pick up app children plus popups and their children.
Not sure why initialize handler wasn't soon enough

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brian Holmes
Sent: Tuesday, September 18, 2007 8:29 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Listening for all creationComplete() events

 

Gordon, application's initialize handler didn't work the way I hoped.
There were still components being created that I was definitely not
picking up when the application was starting. I was able to pick them up
with an ADD_TO_STAGE capture listener from the systemManager and after
words the creation complete event worked great, which seemed odd.

 

 One of the things I was wondering is, should I try to listen to the
application instance for creation events or is listening on the system
manager just the same thing?

 

thanks for your help,

brian.. 

 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Monday, September 17, 2007 12:21 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Listening for all creationComplete() events

 

In the Application's initialize handler, use addEventListener() to
register on the Application instance for creationComplete events in
their capture phase.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Monday, September 17, 2007 9:08 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Listening for all creationComplete() events

Capture phase



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brian Holmes
Sent: Monday, September 17, 2007 8:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Listening for all creationComplete() events

Is there a way to listen for all creationComplete events across an
application?

Brian..



***
The information in this e-mail is confidential and intended solely for
the individual or entity to whom it is addressed. If you have received
this e-mail in error please notify the sender by return e-mail delete
this e-mail and refrain from any disclosure or action based on the
information.
*** 



***
The information in this e-mail is confidential and intended solely for
the individual or entity to whom it is addressed. If you have received
this e-mail in error please notify the sender by return e-mail delete
this e-mail and refrain from any disclosure or action based on the
information.
*** 

 



RE: [flexcoders] Re: mouseDownOutside

2007-09-18 Thread Alex Harui
Probably need to show some code or a test case.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of joaopccoelho
Sent: Tuesday, September 18, 2007 9:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: mouseDownOutside

 

Sorry forgot to explain that part, both components created with
PopUpManager.createPopUp() but are not modal.

--- In flexcoders@yahoogroups.com 
, "Roman Protsiuk"
<[EMAIL PROTECTED]> wrote:
>
> What do you mean "popped up"? Is it modal pop up? Or what?
> 
> R.
> 
> On 9/18/07, joaopccoelho <[EMAIL PROTECTED]> wrote:
> >
> > I'm trying to get mouseDownOutside to work but to no avail.
> > It does get triggered if there is only a component poped up but as
> > soon as I pop up another one, it doesn't get triggered anymore,
i.e.,
> > if I click on the first component the second should detect a click
> > outside of it and vice-versa, but it does not.
> > Is this normal behaviour or a bug?
> > TIA
> > Joao Coelho
> >
> > 
> >
>

 



[flexcoders] Re: How to see if method is implemented in class

2007-09-18 Thread j_lentzz
Ok.  I see now.  Very nice.  Thanks a bunch.

John
--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> if ("validate" in someObject)
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Alex Harui
> Sent: Tuesday, September 18, 2007 8:10 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] How to see if method is implemented in class
> 
> 
> 
> If ("validate in someObject)
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of j_lentzz
> Sent: Tuesday, September 18, 2007 7:26 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How to see if method is implemented in class
> 
> Hi,
> 
> I've got a problem I'm trying to resolve concerning validating a page
> before submitting it to the server. I have a way to recursively get
> each child on the page. However, I can't figure out a way to see if
> the child has the validate() method implemented. Most of the
> components are extended from TextInputs, ComboBox, etc, where I've
> integrated a validator into each one that is custom for that type. So
> my custom components will have a validate method, however, other
> components - like Images, Buttons, etc - on the page don't have a
> validate method. Is there a way to test that a method exists, before
> trying to call it and causing an exception?
> 
> Thanks,
> 
> John
>




RE: [flexcoders] Re: Reduce size of my module! Really boring....

2007-09-18 Thread Alex Harui
I would recommend dumping link reports from the modules and examining
them to see what they share.  If there's a significant amount of stuff
or there are singleton managers or styles, they should go in the
sharedcode module pretty much like the version you've showed herer.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of danielvlopes
Sent: Tuesday, September 18, 2007 9:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Reduce size of my module! Really boring

 

Ola Alex,
I obtained to compile using ant with using link-report and load-extern
together with rsl.

My buidl.xml is this:




















 

 

But i'm still want to know need do this, like you made in you example
for Flex360 presentation:

I should create a class with all this components? like this:

package 
{
import mx.modules.ModuleBase;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import mx.controls.DataGrid;
import mx.containers.Panel;
import mx.controls.Button;

public class SharedCode extends ModuleBase
{
private var dragManager:DragManager;
private var dataGrid:DataGrid;
private var panel:Panel;
private var button:Button;
private var resultEvent:ResultEvent;
private var faultEvent:FaultEvent;
}

}

--- In flexcoders@yahoogroups.com 
, "danielvlopes" <[EMAIL PROTECTED]>
wrote:
>
> Hello Alex, i read your presentation and try find ant in your blog and
> i found only this
>
(http://blogs.adobe.com/flexdoc/2007/01/two_new_tools_flex_ant_tasks_a.h
tml
 ).
> 
> In examples used in your application you share code between modules
> using a external AS class called SharedCode extends ModuleBase ... in
> my case i don't had any dragManager or popupManager, just some
> Datagrids, buttons, panels, rpc for amfphp and other commons
> components. I should create a class with all this components? like
this:
> 
> package 
> {
> import mx.modules.ModuleBase;
> import mx.rpc.events.ResultEvent;
> import mx.rpc.events.FaultEvent;
> import mx.controls.DataGrid;
> import mx.containers.Panel;
> import mx.controls.Button;
> 
> public class SharedCode extends ModuleBase
> {
> private var dragManager:DragManager;
> private var dataGrid:DataGrid;
> private var panel:Panel;
> private var button:Button;
> private var resultEvent:ResultEvent;
> private var faultEvent:FaultEvent;
> }
> 
> }
> 
> In your example you load your SharedCode.swf in MyApp.mxml, even i use
> load externs in my module pointing to shrclasses.rpt should i must
> load SharedCode.swf in my main app?
> 
> In your examples for Flex360 you don't show how use RSL together
> --link-report and --load-exeterns modules.
> In my project i'm using like teached in video on adobelabs, not using
> any line comand compiler. 
> 
> I will use ant to compile because i'm using windows and cygwin don't
> work for windows.
> 
> I try use ant following this tutorial:
> http://howtoforge.com/amfphp_adobe_flex2_sdk
 
> 
> Thanks, and sorry for disturb.
> 
> --- In flexcoders@yahoogroups.com
 , "Alex Harui"  wrote:
> >
> > The host generates a link-report that the modules load-extern so
that no
> > classes in the host are in the modules.
> > 
> > 
> > 
> > If you use the framework as an RSL, then compiling with that option
on
> > should flush all of those classes as well. If you generate
link-reports
> > from your modules, you can see if everything that should be
removed got
> > removed.
> > 
> > 
> > 
> > The shared code example on my blog also addresses how to deal with
a set
> > of modules that share code among themselves.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
 
[mailto:flexcoders@yahoogroups.com 
] On
> > Behalf Of danielvlopes
> > Sent: Monday, September 17, 2007 1:28 PM
> > To: flexcoders@yahoogroups.com 

> > Subject: [flexcoders] Re: Reduce size of my module! Really
boring
> > 
> > 
> > 
> > Hum... i will take a look in you blog. In my case application is
only
> > "module caller" (don't had any component beyond viewstack and
> > moduleloader), and every components and codes is inside of my
modules
> > (all modules is very similar).
> > Should use link-report in one module and load-externs in other
modules
> > or i should still using link-report in application and load-externs
in
> > modules?
> > 
> > In your first answer you said "Take a peek at the .xml to see if it
> > has everything it should. ", it is for looking at if all the
> > components that use are in xml?
> > 
> > --- In flexcoders@yahoogroups.com
 

> > , "Alex Harui"  wrote:
> > >
> > > I would recommend making your 

Re: [flexcoders] Getting error string in FaultEvent passed from Server side

2007-09-18 Thread Muzak
Dump the FaultEvent to the console to see what's in it.

trace(mx.utils.ObjectUtil.toString(event));


- Original Message - 
From: "Manu Dhanda" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, September 18, 2007 11:07 AM
Subject: [flexcoders] Getting error string in FaultEvent passed from Server side


>
> Hii
>
> I am unable to receive the error string passed from the Server side in the
> FaultEvent object.
> Am using HttpService.
>
> From Server side, am throwing an error string like:
> throw new ServletException("Some error string");
>
> Now, how can I receive it in the Flex
> private function faultHandler(event:FaultEvent){
> event.fault.???;
> }
>
> Can anyone guide me please.
>
> Thanks.
> -- 




RE: [flexcoders] How to see if method is implemented in class

2007-09-18 Thread Gordon Smith
if ("validate" in someObject)



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Tuesday, September 18, 2007 8:10 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to see if method is implemented in class



If ("validate in someObject)



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of j_lentzz
Sent: Tuesday, September 18, 2007 7:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to see if method is implemented in class

Hi,

I've got a problem I'm trying to resolve concerning validating a page
before submitting it to the server. I have a way to recursively get
each child on the page. However, I can't figure out a way to see if
the child has the validate() method implemented. Most of the
components are extended from TextInputs, ComboBox, etc, where I've
integrated a validator into each one that is custom for that type. So
my custom components will have a validate method, however, other
components - like Images, Buttons, etc - on the page don't have a
validate method. Is there a way to test that a method exists, before
trying to call it and causing an exception?

Thanks,

John

 


[flexcoders] Re: Reduce size of my module! Really boring....

2007-09-18 Thread danielvlopes
Ola Alex,
I obtained to compile using ant with using link-report and load-extern
together with rsl.

My buidl.xml is this:




















   
   
  

But i'm still want to know need do this, like you made in you example
for Flex360 presentation:

I should create a class with all this components? like this:
 
 package 
 {
 import mx.modules.ModuleBase;
 import mx.rpc.events.ResultEvent;
 import mx.rpc.events.FaultEvent;
 import mx.controls.DataGrid;
 import mx.containers.Panel;
 import mx.controls.Button;
 
 public class SharedCode extends ModuleBase
 {
private var dragManager:DragManager;
private var dataGrid:DataGrid;
private var panel:Panel;
private var button:Button;
private var resultEvent:ResultEvent;
private var faultEvent:FaultEvent;
 }
 
 }


--- In flexcoders@yahoogroups.com, "danielvlopes" <[EMAIL PROTECTED]>
wrote:
>
> Hello Alex, i read your presentation and try find ant in your blog and
> i found only this
>
(http://blogs.adobe.com/flexdoc/2007/01/two_new_tools_flex_ant_tasks_a.html).
> 
> In examples used in your application you share code between modules
> using a external AS class called SharedCode extends ModuleBase ... in
> my case i don't had any dragManager or popupManager, just some
> Datagrids, buttons, panels, rpc for amfphp and other commons
> components. I should create a class with all this components? like this:
> 
> package 
> {
> import mx.modules.ModuleBase;
> import mx.rpc.events.ResultEvent;
> import mx.rpc.events.FaultEvent;
> import mx.controls.DataGrid;
> import mx.containers.Panel;
> import mx.controls.Button;
> 
> public class SharedCode extends ModuleBase
> {
>   private var dragManager:DragManager;
>   private var dataGrid:DataGrid;
>   private var panel:Panel;
>   private var button:Button;
>   private var resultEvent:ResultEvent;
>   private var faultEvent:FaultEvent;
> }
> 
> }
> 
> In your example you load your SharedCode.swf in MyApp.mxml, even i use
> load externs in my module pointing to shrclasses.rpt should i must
> load SharedCode.swf in my main app?
> 
> In your examples for Flex360 you don't show how use RSL together
> --link-report and --load-exeterns modules.
> In my project i'm using like teached in video on adobelabs, not using
> any line comand compiler. 
> 
> I will use ant to compile because i'm using windows and cygwin don't
> work for windows.
> 
> I try use ant following this tutorial:
> http://howtoforge.com/amfphp_adobe_flex2_sdk
> 
> Thanks, and sorry for disturb.
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > The host generates a link-report that the modules load-extern so
that no
> > classes in the host are in the modules.
> > 
> >  
> > 
> > If you use the framework as an RSL, then compiling with that option on
> > should flush all of those classes as well.  If you generate
link-reports
> > from your modules, you can see if everything that should be
removed got
> > removed.
> > 
> >  
> > 
> > The shared code example on my blog also addresses how to deal with
a set
> > of modules that share code among themselves.
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of danielvlopes
> > Sent: Monday, September 17, 2007 1:28 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Reduce size of my module! Really boring
> > 
> >  
> > 
> > Hum... i will take a look in you blog. In my case application is only
> > "module caller" (don't had any component beyond viewstack and
> > moduleloader), and every components and codes is inside of my modules
> > (all modules is very similar).
> > Should use link-report in one module and load-externs in other modules
> > or i should still using link-report in application and load-externs in
> > modules?
> > 
> > In your first answer you said "Take a peek at the .xml to see if it
> > has everything it should. ", it is for looking at if all the
> > components that use are in xml?
> > 
> > --- In flexcoders@yahoogroups.com

> > , "Alex Harui"  wrote:
> > >
> > > I would recommend making your module project think it is using the
> > > shared framework RSL.
> > > 
> > > 
> > > 
> > > ANT is its own thing and does not need FB or eclipse, although I
think
> > > there is eclipse integration. You can also just use shell scripts in
> > > cygwin. That's what I did on my blog.
> > > 
> > > 
> > > 
> > > The goal is to use load-extern enough times with enough stuff in it
> > that
> > > everything in the main app and the framework RSL is not in the
module.
> > > 
> > > 
> > > 
> > > 
> > > 
> >

RE: [flexcoders] Add methods to RemoteObjects with ActionScript

2007-09-18 Thread Brian Holmes
var ro : RemoteObject = new RemoteObject();



var op:Operation = ro.getOperation("myOperationName");



var token : AsyncToken = op.send();

 

I don't think you create them, once you create a remote object in action
script you can just an operation by name from which to send. If the
method doesn't exist on the server I think this throws an error, but am
not sure exactly. 

 

 

Brian..

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rleuthold
Sent: Tuesday, September 18, 2007 10:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Add methods to RemoteObjects with ActionScript

 

Hi there,

Does somebody know how to create and add methods to RemoteObjects in
ActionScript ?

In mxml i do it like this.
 

... must be possible to do it in AS ... 

I couldn't find something in the doc's ... 

With best thanks for every bit of information ...

_rico

 



***
The information in this e-mail is confidential and intended solely for the 
individual or entity to whom it is addressed.  If you have received this e-mail 
in error please notify the sender by return e-mail delete this e-mail and 
refrain from any disclosure or action based on the information.
***


Re: [flexcoders] Re: Buttons in Flex !

2007-09-18 Thread Troy Gilbert
> What if the transition is just a simple fade from one skin to the
> next. Does that make things any easier? The Button class has a
> transitions property, so why can't that be leveraged?

As Alex mentioned, the transitions property won't help you.

But, if all you want is a simple fade from one skin to the next that
*does* make things a bit easier to implement. You still have to
implement a custom skin, one in which you have the giant switch
statement selecting the skin based on whether its "up" "down" "over"
etc. Just google some tutorials on programmatic skins and you should
find some good examples (one in particular uses a radial gauge as an
example).

Once you have your programmatic skin doing basic switching between
states, you then just modify your giant switch statement so that when
the skin changes you start a timer that fades out the current skin and
fades in the new skin (or use an animation library).

Troy.


[flexcoders] Validating items in DataGrids

2007-09-18 Thread j_lentzz
Hi,

I'm now trying to validating the contents of a datagrid and I was
wondering if there is an established way to do this.  It seems like I
would need to get an instance of the itemEditor and somehow pass it
the value on that row.  Then I would either call a validator against
that editor, or call a method contained in the itemEditor to do the
validation.  I can get the itemEditor to do validation when the user
is entering data, but I need to be able to do validation on all the
entries in the datagrid when the save button is pressed - to handle
the cases of missing data in required datagrid fields.  I've found
some examples of how to validate when the user is entering data for
that field, but not for validating the complete datagrid.  Any help or
ideas would be greatly appreciated.

John



[flexcoders] How could I access a component from a skin

2007-09-18 Thread Carlos Rovira
Hi,

I'm trying to change the focusSkin based in some variables in my custom
component. The problem is how could I access from the updateDisplayList
method to the component instance to retrieve the values in the variables.

I was searching a way , and I don't get it.

Anyone knows how could I do it?

Thanks in advance.


-- 
::| Carlos Rovira
::| http://www.carlosrovira.com
::| http://www.madeinflex.com


[flexcoders] Add methods to RemoteObjects with ActionScript

2007-09-18 Thread rleuthold
Hi there,

Does somebody know how to create and add methods to RemoteObjects in 
ActionScript ?

In mxml i do it like this.
 

... must be possible to do it in AS ... 

I couldn't find something in the doc's ... 

With best thanks for every bit of information ...

_rico



[flexcoders] Re: mouseDownOutside

2007-09-18 Thread joaopccoelho
Sorry forgot to explain that part, both components created with
PopUpManager.createPopUp() but are not modal.

--- In flexcoders@yahoogroups.com, "Roman Protsiuk"
<[EMAIL PROTECTED]> wrote:
>
> What do you mean "popped up"? Is it modal pop up? Or what?
> 
> R.
> 
> On 9/18/07, joaopccoelho <[EMAIL PROTECTED]> wrote:
> >
> >   I'm trying to get mouseDownOutside to work but to no avail.
> > It does get triggered if there is only a component poped up but as
> > soon as I pop up another one, it doesn't get triggered anymore, i.e.,
> > if I click on the first component the second should detect a click
> > outside of it and vice-versa, but it does not.
> > Is this normal behaviour or a bug?
> > TIA
> > Joao Coelho
> >
> >  
> >
>




[flexcoders] Re: How to see if method is implemented in class

2007-09-18 Thread j_lentzz
What is the syntax to do this?  Just using validate in myObject
returns an error about validate being an undefined property.

John
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> If ("validate in someObject)
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of j_lentzz
> Sent: Tuesday, September 18, 2007 7:26 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How to see if method is implemented in class
> 
>  
> 
> Hi,
> 
> I've got a problem I'm trying to resolve concerning validating a page
> before submitting it to the server. I have a way to recursively get
> each child on the page. However, I can't figure out a way to see if
> the child has the validate() method implemented. Most of the
> components are extended from TextInputs, ComboBox, etc, where I've
> integrated a validator into each one that is custom for that type. So
> my custom components will have a validate method, however, other
> components - like Images, Buttons, etc - on the page don't have a
> validate method. Is there a way to test that a method exists, before
> trying to call it and causing an exception?
> 
> Thanks,
> 
> John
>




RE: [flexcoders] Listening for all creationComplete() events

2007-09-18 Thread Brian Holmes
Gordon, application's initialize handler didn't work the way I hoped.
There were still components being created that I was definitely not
picking up when the application was starting. I was able to pick them up
with an ADD_TO_STAGE capture listener from the systemManager and after
words the creation complete event worked great, which seemed odd.

 

 One of the things I was wondering is, should I try to listen to the
application instance for creation events or is listening on the system
manager just the same thing?

 

thanks for your help,

brian.. 

 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Monday, September 17, 2007 12:21 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Listening for all creationComplete() events

 

In the Application's initialize handler, use addEventListener() to
register on the Application instance for creationComplete events in
their capture phase.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Monday, September 17, 2007 9:08 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Listening for all creationComplete() events

Capture phase



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brian Holmes
Sent: Monday, September 17, 2007 8:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Listening for all creationComplete() events

Is there a way to listen for all creationComplete events across an
application?

Brian..



***
The information in this e-mail is confidential and intended solely for
the individual or entity to whom it is addressed. If you have received
this e-mail in error please notify the sender by return e-mail delete
this e-mail and refrain from any disclosure or action based on the
information.
*** 

 



***
The information in this e-mail is confidential and intended solely for the 
individual or entity to whom it is addressed.  If you have received this e-mail 
in error please notify the sender by return e-mail delete this e-mail and 
refrain from any disclosure or action based on the information.
***


RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Changing the image in a custom component item renderer

2007-09-18 Thread Alex Harui
I've lost track.  Can I see the whole source and what your data objects
look like?  Dump out what is in data, dataField, etc.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: Tuesday, September 18, 2007 12:49 AM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Changing the
image in a custom component item renderer

 

I also tried setting the source in the setter function as follows but
still only a broken image

 

public function set listData( value : BaseListData ) : void

{



_listData = value;


 
icon3.source="this{data[(DataGridListData(listData).dataField)]}";

 


}

 

In another part of the app I successfully display the image in a
repeated custom component as follows. 

 

public function set imagePath(value:String):void {



icon2.source=this[value]; 

 

}

 

Is there a way I can do something similar in the getter function for
this datagrid item renderer?

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 18 September 2007 07:45
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Changing the
image in a custom component item renderer

 

Hmm, didn't see that last time.  Try this:

 



 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: Monday, September 17, 2007 11:32 PM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [SPAM] RE: [flexcoders] Changing the image in a
custom component item renderer

 

Thanks for the reply Alex. I do still have those 3 class vars but
something still is not quite working. See my code listing below and you
will see the 3 class vars

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 18 September 2007 07:14
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [flexcoders] Changing the image in a
custom component item renderer

 

In the original post, you had 3 class vars  You still need those.
@Embed is compile time, so you have to embed the 3 images like you had
it at first, then the code I showed will choose one of the three
variables.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: Monday, September 17, 2007 10:53 PM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [flexcoders] Changing the image in a custom
component item renderer

 

Thanks Alex

 

I have tried what you suggested but the image is not displaying. I have
added a text field into the custom component - this is displaying the
correct value. But it is not displaying any image - just a broken image
icon.

 

Here is the code for my custom component:

 



http://www.adobe.com/2006/mxml
 " width="100" height="30">

















 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 17 September 2007 19:12
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [flexcoders] Changing the image in a custom
component item renderer

 

Something like:

 

imagePath="{data[DataGridListData(listData).dataField]}"

 

You'll need to add a listData getter/setter and implement
IDropInListItemRenderer.  Copy the listData get/set from Label or
TextInput

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: Monday, September 17, 2007 10:32 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Changing the image in a custom component item
renderer

 

I am creating a datagrid that uses a custom component in an item
renderer to display one of 3 images (symbols of an embedded swf)

 

The data grid columns are created dynamically. I can't figure out how to
set the value of imagePath inside this custom component. 

 

The symbol names are the same as the value for xmlColumn.localName();

 

Any help really appreciated!!

 

 

e.g

 

dgc = new DataGridColumn();

dgc.headerText = xmlColumn.localName();
dgc.itemRenderer=new ClassFactory(statusComponent); 
dgc.dataField = xmlColumn.localName();

 

My custom component is as follows:

 


http://www.adobe.com/2006/mxml";
  width="100" height="30">







 

 



[flexcoders] embedded swf and button press?

2007-09-18 Thread grimmwerks
How can a flex app get an event from a swf?  Is it like the old  
Director way of getURL?


Re: [flexcoders] Can I use Flex to create flash widgets? that are embedded in HTML/JS web-app?

2007-09-18 Thread Tony Alves

Try this article by Ted Patrick:
http://www.onflex.org/ted/2007/08/fxwidget-flex-swf-swfobject-custom-html.php

Satish Kumar.M wrote:


I want to use Flex for creating chart widgets. and embed those widgets
in another HTML/JS web-app. Can I use Flex for that? I dont want to
create a full-blown Flex application.

The whole app is HTML/JS with embedded Flash widgets for charting..

Can some one point me to any example please, which show embedded Flex
in HTML/JS dominant app?

 


RE: [flexcoders] Re: Loading code from swf (instantiating classes from external swf)

2007-09-18 Thread Alex Harui
That's the goal of modules.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of b_alen
Sent: Tuesday, September 18, 2007 1:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Loading code from swf (instantiating classes
from external swf)

 

Cheers guys, just one quick check, is it possible with these two
methods:

1. I make an application and deploy it on the web.
2. You, knowing nothing about the application except the API I provide
you, write the extension and submit it in form of swf on my server.
3. My application recognizes that the new extension has been
submitted, it downloads it and uses the code from there.

Let's say I have an employee management system, where different
operations can be made on the employee. You write an extension where
user can for example use their web cam in order to save a pic in the
database. Now application is already up and running, and you submit
this to the server, I don't have to recompile and know nothing about
your part and all you need to know is my API. 

It's purely a hypothetical example but for the case above I would
provide something like that probably:

ModelLocator.empDataManager.addEmployeeDetail(id:String, name:String);
ModelLocator.empDataManager.editEmployeeDetail(id:String, value:Object);

you would call this from your swf like this:

ModelLocator.empDataManager.addEmployeeDetail("webcam_pic", "Webcam
pic");
ModelLocator.empDataManager.editEmployeeDetail("webcam_pic", picData);

What do you think?

--- In flexcoders@yahoogroups.com 
, "Steve Mathews" <[EMAIL PROTECTED]> wrote:
>
> You can use LoadModule, which might be the best way to go. But I am
> doing a AS3 only project (no flex framework) and am doing this using
> applicationDomain.getDefinition which works great.
> 
> On 9/17/07, Tom Chiverton <[EMAIL PROTECTED]> wrote:
> > On Monday 17 Sep 2007, [EMAIL PROTECTED] wrote:
> > > I tried Google but I couldn't find anything, maybe it's pretty
easy
> > > and maybe it's impossible. Anyone has any ideas?
> >
> > LoadModule
> >
> > --
> > Tom Chiverton
> > Helping to continuously bully cross-media mindshares
> > on: http://thefalken.livejournal.com
 
> >
> > 
> >
> > This email is sent for and on behalf of Halliwells LLP.
> >
> > Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
> >
> > CONFIDENTIALITY
> >
> > This email is intended only for the use of the addressee named
above and may be confidential or legally privileged. If you are not
the addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents. If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
> >
> > For more information about Halliwells LLP visit www.halliwells.com.
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
> > Yahoo! Groups Links
> >
> >
> >
> >
>

 



[flexcoders] Get data from dragDrop repeater component.

2007-09-18 Thread Ary
Hi Guys,

i have a component that accept dragDrop(trashBin)
operation, and i put this component inside a repeater
component (repetition for certain amount of existing
data)
along with the dragdrop operation,
dragsource(FileData) has some value from an Array, i
manage to get the value from the dragsource, but its
on the dragtarget(trashBin)  component.

how do i pass this array value back to main apps?

thanks in advance.
zack





  

Tonight's top picks. What will you watch tonight? Preview the hottest shows on 
Yahoo! TV.
http://tv.yahoo.com/ 



RE: [flexcoders] image / png -- roll on alpha?

2007-09-18 Thread Alex Harui
Can we see the image?  I'm not sure I understand.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of grimmwerks
Sent: Tuesday, September 18, 2007 5:35 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] image / png -- roll on alpha?

 

I've got an image I'd like to function almost as a button - 
rollovers would trigger an effect, and clicking would trigger a 
function.

Trouble is, it's a rotated image; if I bring it in unrotated, it's 
got an alpha that seems to trigger both the rolls and the clicks; is 
there a way NOT having the alpha trigger it? Maybe bring the image 
into flash?

 



RE: [flexcoders] Sandbox/Crossdomain problem on connecting Socket with webserver on port 6680

2007-09-18 Thread Alex Harui
So, where can we go to see the crossdomain.xml file?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rogerio 
Gonzalez
Sent: Tuesday, September 18, 2007 5:42 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Sandbox/Crossdomain problem on connecting Socket with 
webserver on port 6680

 

In my case, I opened 6680 and 6677 for use 6680 to the webserver, and 6677 to 
the Telnet server.

For connect, I am using:
var mySocket:Socket = new Socket("subdomain.domain.com 
 ",6677)


Regards,

Rogério



On 9/18/07, Alex Harui <[EMAIL PROTECTED]  > wrote: 

Hmm, maybe I missed something here...

 

Port 6680 is generally open?  What does the crossdomain.xml file look like on 
the server at that port?

What url are you using to open the socket?

 



From: flexcoders@yahoogroups.com [mailto: flexcoders@  
yahoogroups.com  ] On Behalf Of Rogerio Gonzalez
Sent: Monday, September 17, 2007 3:06 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Sandbox/Crossdomain problem on connecting Socket with 
webserver on port 6680

 

Yes, if I have access to the port 80. But in my case, I don´t have, because of 
that, I try to use the xmlsocket protocol, but it don´t work.


Regards,

Rogério



On 9/17/07, Alex Harui <[EMAIL PROTECTED]  > wrote:

I think you want to load the policy file w/o a port so it uses a simple HTTP 
fetch.

 

Security.loadPolicyFile(" http://servico.servidor.com/crossdomain.xml 
 ");

The policy file should then allow access to port 6680

 

 


 

 



From: flexcoders@yahoogroups.com [mailto: flexcoders@   
yahoogroups.com  ] On Behalf Of Rogerio Gonzalez
Sent: Monday, September 17, 2007 10:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Sandbox/Crossdomain problem on connecting Socket with 
webserver on port 6680

 

Hello everybody.

I am developing a system for use of sockets to a telnet server on port 6677.
Locally, everything goes fine, even creating a projector(exe).

But when it goes online, it don´t connect because some kind of
crossdomain error.

The problem is that I don´t have access to the 80 port of the server,
so my webserver is on 6680 port.

I try use:
Security.loadPolicyFile("http://servico.servidor.com:6680/crossdomain.xml 
 "); 

And also:
Security.loadPolicyFile("xmlsocket://servico.servidor.com:6680/crossdomain.xml");

But, for some reason, he keeps giving me the sandbox error.

I did several alterations like:
Security.allowDomain(host +":6680")
Security.allowInsecureDomain(host +":6680");
Security.loadPolicyFile("xmlsocket://"+ host
+":6680/crossdomain.xml");
Security.loadPolicyFile("http://"+ host +":6680/crossdomain.xml");

But still, nothing.

Somebody have any idea?

Regards!

Rogério Gonzalez

 

 

 



RE: [flexcoders] Re: Reduce size of my module! Really boring....

2007-09-18 Thread Alex Harui
On my blog I used batch.scripts for Unix shells like CygWin, which does
in fact work on Windows  I don't have any ANT examples, but you can
certainly use Ant Tasks.

 

Your SharedCode module looks fine.

 

Good luck,

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of danielvlopes
Sent: Tuesday, September 18, 2007 7:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Reduce size of my module! Really boring

 

Hello Alex, i read your presentation and try find ant in your blog and
i found only this
(http://blogs.adobe.com/flexdoc/2007/01/two_new_tools_flex_ant_tasks_a.h
tml
 ).

In examples used in your application you share code between modules
using a external AS class called SharedCode extends ModuleBase ... in
my case i don't had any dragManager or popupManager, just some
Datagrids, buttons, panels, rpc for amfphp and other commons
components. I should create a class with all this components? like this:

package 
{
import mx.modules.ModuleBase;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import mx.controls.DataGrid;
import mx.containers.Panel;
import mx.controls.Button;

public class SharedCode extends ModuleBase
{
private var dragManager:DragManager;
private var dataGrid:DataGrid;
private var panel:Panel;
private var button:Button;
private var resultEvent:ResultEvent;
private var faultEvent:FaultEvent;
}

}

In your example you load your SharedCode.swf in MyApp.mxml, even i use
load externs in my module pointing to shrclasses.rpt should i must
load SharedCode.swf in my main app?

In your examples for Flex360 you don't show how use RSL together
--link-report and --load-exeterns modules.
In my project i'm using like teached in video on adobelabs, not using
any line comand compiler. 

I will use ant to compile because i'm using windows and cygwin don't
work for windows.

I try use ant following this tutorial:
http://howtoforge.com/amfphp_adobe_flex2_sdk
 

Thanks, and sorry for disturb.

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> The host generates a link-report that the modules load-extern so that
no
> classes in the host are in the modules.
> 
> 
> 
> If you use the framework as an RSL, then compiling with that option on
> should flush all of those classes as well. If you generate
link-reports
> from your modules, you can see if everything that should be removed
got
> removed.
> 
> 
> 
> The shared code example on my blog also addresses how to deal with a
set
> of modules that share code among themselves.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of danielvlopes
> Sent: Monday, September 17, 2007 1:28 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Reduce size of my module! Really boring
> 
> 
> 
> Hum... i will take a look in you blog. In my case application is only
> "module caller" (don't had any component beyond viewstack and
> moduleloader), and every components and codes is inside of my modules
> (all modules is very similar).
> Should use link-report in one module and load-externs in other modules
> or i should still using link-report in application and load-externs in
> modules?
> 
> In your first answer you said "Take a peek at the .xml to see if it
> has everything it should. ", it is for looking at if all the
> components that use are in xml?
> 
> --- In flexcoders@yahoogroups.com


> , "Alex Harui"  wrote:
> >
> > I would recommend making your module project think it is using the
> > shared framework RSL.
> > 
> > 
> > 
> > ANT is its own thing and does not need FB or eclipse, although I
think
> > there is eclipse integration. You can also just use shell scripts in
> > cygwin. That's what I did on my blog.
> > 
> > 
> > 
> > The goal is to use load-extern enough times with enough stuff in it
> that
> > everything in the main app and the framework RSL is not in the
module.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com


> [mailto:flexcoders@yahoogroups.com


> ] On
> > Behalf Of danielvlopes
> > Sent: Monday, September 17, 2007 5:23 AM
> > To: flexcoders@yahoogroups.com 
 
> > Subject: [flexcoders] Re: Reduce size of my module! Really
boring
> > 
> > 
> > 
> > I try use ant but don't find material necessary to know how use or
how
> > 

[flexcoders] Get data from dragDrop repeater component.

2007-09-18 Thread Ary
Hi Guys,

i have a component that accept dragDrop(trashBin)
operation, and i put this component inside a repeater
component (repetition for certain amount of existing
data)
along with the dragdrop operation,
dragsource(FileData) has some value from an Array, i
manage to get the value from the dragsource, but its
on the dragtarget(trashBin)  component.

how do i pass this array value back to main apps?

thanks in advance.
zack


   

Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
 


[flexcoders] Re: How to see if method is implemented in class

2007-09-18 Thread j_lentzz
What is the syntax to do this?  Just using validate in myObject
returns an error about validate being an undefined property.

John
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> If ("validate in someObject)
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of j_lentzz
> Sent: Tuesday, September 18, 2007 7:26 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How to see if method is implemented in class
> 
>  
> 
> Hi,
> 
> I've got a problem I'm trying to resolve concerning validating a page
> before submitting it to the server. I have a way to recursively get
> each child on the page. However, I can't figure out a way to see if
> the child has the validate() method implemented. Most of the
> components are extended from TextInputs, ComboBox, etc, where I've
> integrated a validator into each one that is custom for that type. So
> my custom components will have a validate method, however, other
> components - like Images, Buttons, etc - on the page don't have a
> validate method. Is there a way to test that a method exists, before
> trying to call it and causing an exception?
> 
> Thanks,
> 
> John
>




[flexcoders] Embedded font thing...

2007-09-18 Thread Ed Capistrano
Ideas? Got one! 
is there any substitute or alternative to webdings font?
Second embed the whole characters!

Ed
proud & happy member

Send instant messages to your online friends http://uk.messenger.yahoo.com 


RE: [flexcoders] Launch links in different windoe from TextArea?

2007-09-18 Thread Alex Harui
See the doc for flash.text.TextField#htmlText

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of arpan srivastava
Sent: Tuesday, September 18, 2007 7:00 AM
To: Flex Coders
Subject: [flexcoders] Launch links in different windoe from TextArea?

 

Hi All,

I have a textArea which shows some html content like an image and
some text. There are some hyperlinks in the html content and when i
click any of the link it jumps to that link but in the same browser
window. How can make it appear in some other browser window. I know
about textarea's TextLink event but that requires you to change the
links to and I don't want to change this. Is there any way i can launch
the links in different page?
http://something%27%3Ehttp:/
/something%3C/a%3E> 

Thanks
arpan

 



Catch up on fall's hot new shows
  on Yahoo! TV. Watch previews, get
listings, and more! 

 



[flexcoders] Re: How to see if method is implemented in class

2007-09-18 Thread j_lentzz
Thanks for all the ideas!  I'll see which one works best for my app.  

Thanks again,

John
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> If ("validate in someObject)
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of j_lentzz
> Sent: Tuesday, September 18, 2007 7:26 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How to see if method is implemented in class
> 
>  
> 
> Hi,
> 
> I've got a problem I'm trying to resolve concerning validating a page
> before submitting it to the server. I have a way to recursively get
> each child on the page. However, I can't figure out a way to see if
> the child has the validate() method implemented. Most of the
> components are extended from TextInputs, ComboBox, etc, where I've
> integrated a validator into each one that is custom for that type. So
> my custom components will have a validate method, however, other
> components - like Images, Buttons, etc - on the page don't have a
> validate method. Is there a way to test that a method exists, before
> trying to call it and causing an exception?
> 
> Thanks,
> 
> John
>




RE: [flexcoders] How to see if method is implemented in class

2007-09-18 Thread Alex Harui
If ("validate in someObject)

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of j_lentzz
Sent: Tuesday, September 18, 2007 7:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to see if method is implemented in class

 

Hi,

I've got a problem I'm trying to resolve concerning validating a page
before submitting it to the server. I have a way to recursively get
each child on the page. However, I can't figure out a way to see if
the child has the validate() method implemented. Most of the
components are extended from TextInputs, ComboBox, etc, where I've
integrated a validator into each one that is custom for that type. So
my custom components will have a validate method, however, other
components - like Images, Buttons, etc - on the page don't have a
validate method. Is there a way to test that a method exists, before
trying to call it and causing an exception?

Thanks,

John

 



[flexcoders] Re: How to see if method is implemented in class

2007-09-18 Thread ben.clinkinbeard
someComponent.validate == null

Remember, methods are properties too.


--- In flexcoders@yahoogroups.com, "j_lentzz" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I've got a problem I'm trying to resolve concerning validating a page
> before submitting it to the server.  I have a way to recursively get
> each child on the page.  However, I can't figure out a way to see if
> the child has the validate() method implemented.  Most of the
> components are extended from TextInputs, ComboBox, etc, where I've
> integrated a validator into each one that is custom for that type.  So
> my custom components will have a validate method, however, other
> components - like Images, Buttons, etc - on the page don't have a
> validate method.  Is there a way to test that a method exists, before
> trying to call it and causing an exception?
> 
> Thanks,
> 
> John
>




Re: [flexcoders] How to see if method is implemented in class

2007-09-18 Thread Michael Schmalle
Hi,

Put your calling code in a try{} catch{} block, then you will not get the
RTE.

try {
   someObject.validate();
}
catche (e:Error)
{
   trace(someObject.className, "Has no validate() method");
}

There are a couple other ways but, this is pretty clean and gets the job
done.

Peace, Mike


On 9/18/07, j_lentzz <[EMAIL PROTECTED]> wrote:
>
>   Hi,
>
> I've got a problem I'm trying to resolve concerning validating a page
> before submitting it to the server. I have a way to recursively get
> each child on the page. However, I can't figure out a way to see if
> the child has the validate() method implemented. Most of the
> components are extended from TextInputs, ComboBox, etc, where I've
> integrated a validator into each one that is custom for that type. So
> my custom components will have a validate method, however, other
> components - like Images, Buttons, etc - on the page don't have a
> validate method. Is there a way to test that a method exists, before
> trying to call it and causing an exception?
>
> Thanks,
>
> John
>
>  
>



-- 
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Multiple operations on a webservice

2007-09-18 Thread quantum_ohm
Hello everybody !

I've been struggling with this for two days so if anybody would have
any idea...

I'm tryin' to convert a date with this format: 2007-09-06T10:00:00 to
: 2007,09,06
the problem I have is not about the formatting (I can do it), but
where/how to put the function which does it ???
the code below works fine, but as soon as I modify it to put my
formatting function (I tried several solutions), the "lst" component
send me back unexpected datas...

to clarify things :

- getEntriesForUser : returns some agenda entries for the running date.
- getDaysWithEntries : returns all the dates from the running month
where some agenda entries exist. 
Then I have to format these dates to display them in a dateChooser,
from which when I click one of these dates, I will display the
corresponding entry from the agenda.



http://www.adobe.com/2006/mxml";
xmlns:com="com.*" layout="absolute" width="220" 
height="450" backgroundGradientColors="[#FF, #FF]"
initialize="initApp()" 
creationComplete="ws.getEntriesForUser.send();
ws.getDaysWithEntries.send()">




{user}
{LtpaToken}
{formatDate(dc.selectedDate)}






{user}
{LtpaToken}
{formatDate(dc.selectedDate)}














a little bit of help (even a big help) would be really appreciated

THx for your attention :-)



RE: [flexcoders] How to see if method is implemented in class

2007-09-18 Thread Mike Krotscheck
You could have your custom components implement a custom interface like
IValidatable that requires the validate() function, and then check
whether the class implements that interface by using the following:

 

if( yourComponent is IValidatable)

{

// Your code here

}

 

Michael Krotscheck

Senior Developer

 


RESOURCE INTERACTIVE

 www.resource.com  

614 621 2888  main

 

  
614 410 3195  direct

412 726 8087  mobile

[EMAIL PROTECTED]  



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of j_lentzz
Sent: Tuesday, September 18, 2007 10:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to see if method is implemented in class

 

Hi,

I've got a problem I'm trying to resolve concerning validating a page
before submitting it to the server. I have a way to recursively get
each child on the page. However, I can't figure out a way to see if
the child has the validate() method implemented. Most of the
components are extended from TextInputs, ComboBox, etc, where I've
integrated a validator into each one that is custom for that type. So
my custom components will have a validate method, however, other
components - like Images, Buttons, etc - on the page don't have a
validate method. Is there a way to test that a method exists, before
trying to call it and causing an exception?

Thanks,

John

 



[flexcoders] Vector graphics serialization format?

2007-09-18 Thread Borek
Hi all, is there some Flex-supported format for vector graphics
serialization? I mean, I can use something like

graphics.drawRect(1,2,3,4);
graphics.drawEllipse(...);
// etc.

while I would appreciate something like

 etc.

It would seems logical to me to have this kind of declarative
description rather than imperative method calls when the task -
creating user interface - is practically the same as when creating
containers and controls.

Thanks,
Borek



[flexcoders] How to see if method is implemented in class

2007-09-18 Thread j_lentzz
Hi,

I've got a problem I'm trying to resolve concerning validating a page
before submitting it to the server.  I have a way to recursively get
each child on the page.  However, I can't figure out a way to see if
the child has the validate() method implemented.  Most of the
components are extended from TextInputs, ComboBox, etc, where I've
integrated a validator into each one that is custom for that type.  So
my custom components will have a validate method, however, other
components - like Images, Buttons, etc - on the page don't have a
validate method.  Is there a way to test that a method exists, before
trying to call it and causing an exception?

Thanks,

John



[flexcoders] Embedded font not showing correctly

2007-09-18 Thread candysmate
I have embedded TTF Wingdings (although Windows has it named as
WINGDING.TTF) with:

@font-face {

src:url("/assets/WINGDING.TTF");

fontFamily: "Wingdings";
font-weight:normal;
unicodeRange: U+2717-U+2717;
}

I wish to display the cross shown in this font chart as character 251:
http://www.zakie.fsnet.co.uk/ChatRoomsStuff/Help/wingdingsfontchart.htm
(the cross above the tick)

in my mxml I have a label:



what is displayed is the capital U with the circumflex accent as shown
in the WEBdings chart. 

Any ideas please?

Previously I'd tried to use a Flash swf as my font source and got the
same result. I'm doing something wrong somewhere, but can't seem to
figure it.



[flexcoders] Re: Reduce size of my module! Really boring....

2007-09-18 Thread danielvlopes
Hello Alex, i read your presentation and try find ant in your blog and
i found only this
(http://blogs.adobe.com/flexdoc/2007/01/two_new_tools_flex_ant_tasks_a.html).

In examples used in your application you share code between modules
using a external AS class called SharedCode extends ModuleBase ... in
my case i don't had any dragManager or popupManager, just some
Datagrids, buttons, panels, rpc for amfphp and other commons
components. I should create a class with all this components? like this:

package 
{
import mx.modules.ModuleBase;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import mx.controls.DataGrid;
import mx.containers.Panel;
import mx.controls.Button;

public class SharedCode extends ModuleBase
{
private var dragManager:DragManager;
private var dataGrid:DataGrid;
private var panel:Panel;
private var button:Button;
private var resultEvent:ResultEvent;
private var faultEvent:FaultEvent;
}

}

In your example you load your SharedCode.swf in MyApp.mxml, even i use
load externs in my module pointing to shrclasses.rpt should i must
load SharedCode.swf in my main app?

In your examples for Flex360 you don't show how use RSL together
--link-report and --load-exeterns modules.
In my project i'm using like teached in video on adobelabs, not using
any line comand compiler. 

I will use ant to compile because i'm using windows and cygwin don't
work for windows.

I try use ant following this tutorial:
http://howtoforge.com/amfphp_adobe_flex2_sdk

Thanks, and sorry for disturb.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> The host generates a link-report that the modules load-extern so that no
> classes in the host are in the modules.
> 
>  
> 
> If you use the framework as an RSL, then compiling with that option on
> should flush all of those classes as well.  If you generate link-reports
> from your modules, you can see if everything that should be removed got
> removed.
> 
>  
> 
> The shared code example on my blog also addresses how to deal with a set
> of modules that share code among themselves.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of danielvlopes
> Sent: Monday, September 17, 2007 1:28 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Reduce size of my module! Really boring
> 
>  
> 
> Hum... i will take a look in you blog. In my case application is only
> "module caller" (don't had any component beyond viewstack and
> moduleloader), and every components and codes is inside of my modules
> (all modules is very similar).
> Should use link-report in one module and load-externs in other modules
> or i should still using link-report in application and load-externs in
> modules?
> 
> In your first answer you said "Take a peek at the .xml to see if it
> has everything it should. ", it is for looking at if all the
> components that use are in xml?
> 
> --- In flexcoders@yahoogroups.com 
> , "Alex Harui"  wrote:
> >
> > I would recommend making your module project think it is using the
> > shared framework RSL.
> > 
> > 
> > 
> > ANT is its own thing and does not need FB or eclipse, although I think
> > there is eclipse integration. You can also just use shell scripts in
> > cygwin. That's what I did on my blog.
> > 
> > 
> > 
> > The goal is to use load-extern enough times with enough stuff in it
> that
> > everything in the main app and the framework RSL is not in the module.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of danielvlopes
> > Sent: Monday, September 17, 2007 5:23 AM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] Re: Reduce size of my module! Really boring
> > 
> > 
> > 
> > I try use ant but don't find material necessary to know how use or how
> > install... I can use ant in FB or i need to use eclipse with pluggin
> > for Flex? Do know one site with tutorial about ant? 
> > 
> > When i use RSL for separete framework i still can use load extern
> > whitout RSL in project of my module or i need to make module project
> > with RSL to?
> > 
> > Thanks Alex.
> > 
> > --- In flexcoders@yahoogroups.com
> 
> 
> > , "Alex Harui"  wrote:
> > >
> > > I haven't use FB to do this. I use ANT or batch scripts. Take a peek
> > > at the .xml to see if it has everything it should. 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
> 
> 
> > [mailto:flexcoders@yahoogroups.com
> 
> 

[flexcoders] Launch links in different windoe from TextArea?

2007-09-18 Thread arpan srivastava
Hi All,

I have a textArea which shows some html content like an image and some 
text. There are some hyperlinks in the html content and when i click any of the 
link it jumps to that link but in the same browser window. How can make it 
appear in some other browser window. I know about textarea's TextLink event but 
that requires you to change the links to  and I don't want to change this. Is 
there any way i can launch the links in different page?

Thanks
arpan




  

Luggage? GPS? Comic books? 
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz

[flexcoders] Re: Need ideas on how to load and save room descriptions in xml

2007-09-18 Thread oneproofdk
I like the idea on describing where a wall "anchors"!

The task is to make some preconfigured templates, where the user will
be able to see a drawing of the template with each wall identified by
A B C... and then a corresponding text input box, where they can input
the length of that wall.
Obviously some of the walls must be calculated from other walls.

Thanks for your input so far. 

If you come up with more please dont hesitate to email it. :-)

Thanks,
Mark

--- In flexcoders@yahoogroups.com, "Giles Roadnight" <[EMAIL PROTECTED]> wrote:
>
> How about a list of coordinates and  alist of walls?
> 
> 
> 
> 
> 
>  (The angled wall)
> 
> 
> 
> 
> ect
> 



  1   2   >