Re: [flexcoders] Return a person's age

2007-10-01 Thread JRBower

Doug,
Thank you. I will give your code a go. :)

Best Regards,
James


Doug Lowder wrote:
> 
> Here's how I would do it:
> 
> var age:Number = todayDate.fullYear - birthDate.fullYear;
> if (todayDate.month < birthDate.month || (todayDate.month == 
> birthDate.month && todayDate.date < birthDate.date)) age--;
> return age;
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Return-a-person%27s-age-tf4545118.html#a12993386
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] strange sandbox issue

2007-10-01 Thread Alex Harui
It has to do with trust files.  FB alters the trust file for you.
You'll have to do it yourself in this case.  Google to find out where to
look for your platform.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of zzwi89
Sent: Monday, October 01, 2007 5:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] strange sandbox issue



My Flex app communicates over HTTP using an HttpService object. The
server has a crossdomain.xml file at its root, and when I run the app
from the workspace it was started in, I have no issues running it.

However, when I switch workspaces and import the project, as soon as
the HTTPService.send() call is made, the following is logged in the
debug console:

*** Security Sandbox Violation ***
Connection to https://path/to/localserver 
halted - not permitted from
file://path/to/workspace/project/bin/app-debug.swf
 

Any suggestions? As I said, the crossdomain.xml DOES EXIST, and this
error only occurs when I recreate the project in a new workspace. If I
import or duplicate it within the original workspace, the application
works without giving me the sandbox violation.



 


RE: [flexcoders] Initial Progress bar appearing late in IE

2007-10-01 Thread Alex Harui
Try a different app and see if you get the same results.  You might have
to stuff it with junk to approximate the swf size.
 
Any custom progress bars, background images?  Any particular browser or
platform?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Russell Munro
Sent: Monday, October 01, 2007 7:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Initial Progress bar appearing late in IE



I have a wierd issue that the first time my application is load the 
initial progress bar doesnt appear until just before its finished, when 
it is at approximately 98%.Until that time I get only the white 
background colour. 

Strangely the progress bar appears fully the next time the application 
is loaded, (even if browser cache cleared) It is just that initial time 
that it does not appear.

Any thoughts as to why this might be and/or how to fix it? 

Thanks in advance.

Russell Munro



 


RE: [flexcoders] Styling richtexteditor subcontrols?

2007-10-01 Thread Alex Harui
Any styles specified in class style selectors or on the object itself
may mask styles set in the type selector.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stephen Roy J. Tang
Sent: Monday, October 01, 2007 9:15 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Styling richtexteditor subcontrols?

 

Hi,

I looked at the RTE source, but I guess I'm not expert enough to
figure it out: how come if I specify a Button style, that style is
inherited by the bold/italic/underline controls, but when I specify a
ComboBox style, it's not inherited by the font family combobox?

I'm using an external CSS file, if that matters.

Thanks,

Roy

 



Re: [flexcoders] How to get the Profiler to work in Beta 2?

2007-10-01 Thread Sheriff
i guess this might help to include
java.net.SocketException: Socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at com.adobe.flash.profiler.internal.Client$2.run(Client.java:190)
at java.lang.Thread.run(Unknown Source)

Socket timeout.
Socket timeout.
java.net.SocketException: Socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at com.adobe.flash.profiler.internal.Client$2.run(Client.java:190)
at java.lang.Thread.run(Unknown Source)

Socket timeout.
Socket timeout.


- Original Message 
From: Sheriff <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Monday, October 1, 2007 10:40:49 PM
Subject: [flexcoders] How to get the Profiler to work in Beta 2?









  





i keep getting socket time out even though my browser isnt tabbed and it opens 
a new one everytime? anyone had success with it?




  Building a website is a piece of cake. 
Yahoo! Small Business gives you all the tools to get online.

  
























  

Check out the hottest 2008 models today at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html

[flexcoders] Styling richtexteditor subcontrols?

2007-10-01 Thread Stephen Roy J. Tang
Hi,

I looked at the RTE source, but I guess I'm not expert enough to
figure it out: how come if I specify a Button style, that style is
inherited by the bold/italic/underline controls, but when I specify a
ComboBox style, it's not inherited by the font family combobox?

I'm using an external CSS file, if that matters.

Thanks,

Roy



[flexcoders] How to get the Profiler to work in Beta 2?

2007-10-01 Thread Sheriff

i keep getting socket time out even though my browser isnt tabbed and it opens 
a new one everytime? anyone had success with it?




  

Check out the hottest 2008 models today at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html

[flexcoders] Initial Progress bar appearing late in IE

2007-10-01 Thread Russell Munro
I have a wierd issue that the first time my application is load the 
initial progress bar doesnt appear until just before its finished, when 
it is at approximately 98%.Until that time I get only the white 
background colour. 

Strangely the progress bar appears fully the next time the application 
is loaded, (even if browser cache cleared) It is just that initial time 
that it does not appear.

Any thoughts as to why this might be and/or how to fix it? 

Thanks in advance.

Russell Munro



Re: [flexcoders] Re: How to get all children in Application?

2007-10-01 Thread Bjorn Schultheiss

http://en.wikipedia.org/wiki/Recursion

On 02/10/2007, at 12:23 PM, flexawesome wrote:


I think so, and I creates function below. but don't know how to
implement and writes the recursive function in this case, would u
please show me an example?

THANKS

--- In flexcoders@yahoogroups.com, Bjorn Schultheiss
<[EMAIL PROTECTED]> wrote:
>
> I dont think there is a built-in function that returns all children.
> It wouldn't be difficult to write a recursive function that recurses
> through the display list and gets all child display objects though.
>
> regards,
> Bjorn
>
> On 02/10/2007, at 12:11 PM, flexawesome wrote:
>
> > Hi there,
> >
> > is there a way to get all children in application? in the  
following

> > code, I can get the button_1, panel_1 only. However, can't get the
> > button_2 inside the panel.
> >
> > can I get all children in whole application without knowing the
> > container structure?
> >
> > THANKS
> >
> > ===
> > 
> > http://www.adobe.com/2006/mxml";
> > creationComplete="init();">
> >
> > 
> > 
> > 
> >
> > 
> >
> > 
> > 
> > 
> >
> > 
> > ===
> >
> >
> >
>







[flexcoders] Re: Flex 3 beta 2 - Black Background on Initialize!?

2007-10-01 Thread herklano
hi thanks,

just found out what it was, it seems this version of Flex does not
accept #FF like this:

http://www.adobe.com/2006/mxml";
layout="absolute"
backgroundColor="#FF">

changed to this:

http://www.adobe.com/2006/mxml";
layout="absolute"
backgroundColor="0xFF">

working fine now :D

cheers,
herculano


--- In flexcoders@yahoogroups.com, Bjorn Schultheiss
<[EMAIL PROTECTED]> wrote:
>
> Use the background-color compiler setting/option
> 
> 
> cheers,
> 
> Bjorn
> 
> On 02/10/2007, at 11:36 AM, herklano wrote:
> 
> > hi,
> >
> > why is the background black on initialize in the Flex 3 Beta 2 ???
> >
> > anyone knows how to get rid of this?
> >
> > cheers,
> > herculano
> >
> >
> >
>




[flexcoders] Re: How to get all children in Application?

2007-10-01 Thread flexawesome
I think so, and I creates function below. but don't know how to
implement and writes the recursive function in this case, would u
please show me an example?

THANKS

--- In flexcoders@yahoogroups.com, Bjorn Schultheiss
<[EMAIL PROTECTED]> wrote:
>
> I dont think there is a built-in function that returns all children.
> It wouldn't be difficult to write a recursive function that recurses  
> through the display list and gets all child display objects though.
> 
> regards,
> Bjorn
> 
> On 02/10/2007, at 12:11 PM, flexawesome wrote:
> 
> > Hi there,
> >
> > is there a way to get all children in application? in the following
> > code, I can get the button_1, panel_1 only. However, can't get the
> > button_2 inside the panel.
> >
> > can I get all children in whole application without knowing the
> > container structure?
> >
> > THANKS
> >
> > ===
> > 
> > http://www.adobe.com/2006/mxml";
> > creationComplete="init();">
> >
> > 
> > 
> > 
> >
> > 
> >
> > 
> > 
> > 
> >
> > 
> > ===
> >
> >
> >
>




Re: [flexcoders] How to get all children in Application?

2007-10-01 Thread Bjorn Schultheiss

I dont think there is a built-in function that returns all children.
It wouldn't be difficult to write a recursive function that recurses  
through the display list and gets all child display objects though.


regards,
Bjorn

On 02/10/2007, at 12:11 PM, flexawesome wrote:


Hi there,

is there a way to get all children in application? in the following
code, I can get the button_1, panel_1 only. However, can't get the
button_2 inside the panel.

can I get all children in whole application without knowing the
container structure?

THANKS

===

http://www.adobe.com/2006/mxml";
creationComplete="init();">












===







[flexcoders] How to get all children in Application?

2007-10-01 Thread flexawesome
Hi there,

is there a way to get all children in application? in the following
code, I can get the button_1, panel_1 only. However, can't get the
button_2 inside the panel.

can I get all children in whole application without knowing the
container structure?

THANKS

===

http://www.adobe.com/2006/mxml";
creationComplete="init();">













===




Re: [flexcoders] Flex 3 beta 2 - Black Background on Initialize!?

2007-10-01 Thread Bjorn Schultheiss

Use the background-color compiler setting/option


cheers,

Bjorn

On 02/10/2007, at 11:36 AM, herklano wrote:


hi,

why is the background black on initialize in the Flex 3 Beta 2 ???

anyone knows how to get rid of this?

cheers,
herculano







[flexcoders] Flex 3 beta 2 - Black Background on Initialize!?

2007-10-01 Thread herklano
hi,

why is the background black on initialize in the Flex 3 Beta 2 ???

anyone knows how to get rid of this?

cheers,
herculano



[flexcoders] Re: Flex Builder 3 Beta2 / Amfphp / services-config.xml

2007-10-01 Thread herklano
hi again,

u have to be carefull to always do variable coercion right,
ResultEvent does not work, u need to know what type of data is coming
from server.

lots of trouble changing from one beta to another :(

still cant figure out what was going on with the services-config.xml!!!

anyone can clarify this?

cheers,
herculano


--- In flexcoders@yahoogroups.com, "herklano" <[EMAIL PROTECTED]> wrote:
>
> hi, 
> 
> i have sorted it out using a class instead of the .xml method.
> 
> RemotingConnection.as
> 
> package connection
> {
>   import flash.net.NetConnection;
>   import flash.net.ObjectEncoding;
>   
>   public class RemotingConnection extends NetConnection
>   {
>   private var sURL:String = "http://xxx";;
>   
>   public function RemotingConnection()
>   {
> objectEncoding = ObjectEncoding.AMF3;
> connect(sURL);
> }
>   }
> }
> 
> and in main app
> 
> //Flash Remote AMFPHP
> import connection.RemotingConnection;
> private var service:RemotingConnection = new RemotingConnection();
> 
> then...
> service.call('service.AMFPHP.toCall', new Responder(resultHendler,
> faultHandler),selectedANPMenu.menu_id, var1, var2, var3);
> 
> cheers,
> herculano
> 
> need to find out how to put the busyCursor, without having to do the:
> CursorManager.setBusyCursor();
> CursorManager.removeBusyCursor();
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Morten Madsen"  wrote:
> >
> > Hi Group!
> > 
> > After installing the new Flex Builder 3 beta2 one of my projects can't
> > compile anymore
> > I use amfphp, described as in this tutorial (
> >
>
http://www.sephiroth.it/tutorials/flashPHP/flex_remoteobject/page001.php)
> > 
> > But when I try to compile I get an error:
> > Invalid endpoint port'' specified for channel definition 'my-amfphp'.
> > 
> > My services-config.xml:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > *
> > 
> > 
> > 
> > 
> > 
> > 
> > http://localhost/gateway/gateway.php";
class="
> > flex.messaging.endpoints.AMFEndpoint" />
> > 
> > 
> > 
> > 
> > Can anybody help me?
> > 
> > It worked in Flex 2, Flex 3 beta1...
> > 
> > 
> > Kind regards
> > Morten
> >
>




[flexcoders] Re: Flex Builder 3 Beta2 / Amfphp / services-config.xml

2007-10-01 Thread herklano
hi, 

i have sorted it out using a class instead of the .xml method.

RemotingConnection.as

package connection
{
import flash.net.NetConnection;
import flash.net.ObjectEncoding;

public class RemotingConnection extends NetConnection
{
private var sURL:String = "http://xxx";;

public function RemotingConnection()
{
objectEncoding = ObjectEncoding.AMF3;
connect(sURL);
}
}
}

and in main app

//Flash Remote AMFPHP
import connection.RemotingConnection;
private var service:RemotingConnection = new RemotingConnection();

then...
service.call('service.AMFPHP.toCall', new Responder(resultHendler,
faultHandler),selectedANPMenu.menu_id, var1, var2, var3);

cheers,
herculano

need to find out how to put the busyCursor, without having to do the:
CursorManager.setBusyCursor();
CursorManager.removeBusyCursor();




--- In flexcoders@yahoogroups.com, "Morten Madsen" <[EMAIL PROTECTED]> wrote:
>
> Hi Group!
> 
> After installing the new Flex Builder 3 beta2 one of my projects can't
> compile anymore
> I use amfphp, described as in this tutorial (
>
http://www.sephiroth.it/tutorials/flashPHP/flex_remoteobject/page001.php)
> 
> But when I try to compile I get an error:
> Invalid endpoint port'' specified for channel definition 'my-amfphp'.
> 
> My services-config.xml:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> *
> 
> 
> 
> 
> 
> 
> http://localhost/gateway/gateway.php"; class="
> flex.messaging.endpoints.AMFEndpoint" />
> 
> 
> 
> 
> Can anybody help me?
> 
> It worked in Flex 2, Flex 3 beta1...
> 
> 
> Kind regards
> Morten
>




[flexcoders] strange sandbox issue

2007-10-01 Thread zzwi89
My Flex app communicates over HTTP using an HttpService object. The
server has a crossdomain.xml file at its root, and when I run the app
from the workspace it was started in, I have no issues running it.

However, when I switch workspaces and import the project, as soon as
the HTTPService.send() call is made, the following is logged in the
debug console:

*** Security Sandbox Violation ***
Connection to https://path/to/localserver halted - not permitted from
file://path/to/workspace/project/bin/app-debug.swf

Any suggestions? As I said, the crossdomain.xml DOES EXIST, and this
error only occurs when I recreate the project in a new workspace. If I
import or duplicate it within the original workspace, the application
works without giving me the sandbox violation.






RE: [flexcoders] My column doesn't sort correctly in Flex 3 Beta 2

2007-10-01 Thread Alex Harui
If your data is 28,000,000, the DG will now sort alphabetically because
that isn't number, but rather a string.  I actually think the old
behavior just chopped off 28, 16, 6 and 4 and sorted by those numbers
such that 28,123,456 and 28,234,567 weren't guaranteed to be ordered.

 

If you want numeric sorting, data should be of type int or Number and a
labelFunction should be used to format what you see.

 

This behavior become more strict in order to fix a bug where there was
no way to specify non-numeric sorts in mixed alpha/number strings.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Nate Pearson
Sent: Monday, October 01, 2007 4:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] My column doesn't sort correctly in Flex 3 Beta 2

 

My column used to sort correctly, IE:
28,000,000
16,000,000
6,000,000
4,000,000

Now in Beta 2 with no code changes I get:
16,000,000
28,000,000
4,000,000
6,000,000

What gives? Is it sorting it alphabetically? If so how do I change
it back to the way it was?

Thanks,

Nate

 



RE: [flexcoders] DataGrid & ArrayCollection numerical sort on multiple columns

2007-10-01 Thread Alex Harui
The datagrid UI does not support multi-column sort.  If you implement
it, you should call preventDefault() on the headerRelease event so it
doesn't attempt to do a single column sort.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rleuthold
Sent: Monday, October 01, 2007 4:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid & ArrayCollection numerical sort on
multiple columns

 

Hi there,

I know, there are tons of posts in the archive about numeric sort with
Data Grids and an Array 
Collection as Data Provider. But I couldn't find an answer to my problem
in any of them.

I'm atttaching a numerical sort to the Data Provider as described in the
help (with sortFields 
and DP.sort an so on). When I specifiy a numerical sort to just one
field of the Array Collection 
the sorting in the Data Grid works very well. 

But when I specify a numerical sort for different fields in the Array
Collection, I see a number 
just next to the sort marker in the Header Column of the Data Grid and
the sorting is just a 
normal text sort. 

Can somebody explain me this phenomenon ? _rico

 



Re: [flexcoders] Dynamically convert a String to a Class?

2007-10-01 Thread keith
Thanks for both of your input on the issue, now I got options.
-- Keith H --



Alex Harui wrote:
>
> You need to declare variables, you don’t have to create instances.
>
> There is also the unofficial [Mixin}
>
> 
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *keith
> *Sent:* Sunday, September 30, 2007 3:13 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Dynamically convert a String to a Class?
>
> Thanks Dave,
> For this code to work, a ComboBox must have already existed or been
> declared as a variable somewhere on the stage.
> Does this mean I have declare instances of all the components I might
> ever use dynamically ahead of time for this to work?
>
> //==
> //So far this is what I got to work after reading the LiveDocs:
> //Works only if an instance of ComboBox has already been
> declared.
> //Does not work just by importing mx.controls.ComboBox alone.
> /
> var ClassReference:Class =
> flash.utils.getDefinitionByName("mx.controls.ComboBox") as Class;
> var instance:Object = new ClassReference();
> addChild(DisplayObject(instance));
> //===
>
> I'm open to more inside details or helpful gotchas on this.
> -- Keith H --
>
> Dave Carabetta wrote:
> >
> > Check out the LiveDocs for getDefinitionByName():
> >
> > http://livedocs.adobe.com/flex/201/langref/flash/utils/package.html 
> 
> >  >
> >
> > Regards,
> > Dave.
> > Cynergy Systems
> >
> > On 9/30/07, *keith* <[EMAIL PROTECTED]  
> >> wrote:
> >
> > I want to convert something like the String "mx.controls.ComboBox"
> > to a
> > Class.
> > I would use this to declare components or other classes at runtime.
> > *Please don't laugh at me*
> >
> > //==
> > //In areas where I CAN do this...
> > //-
> > var testA:* = new mx.controls.ComboBox();
> > addChild(testA);
> > //==
> >
> > //=
> > //I want to DYNAMICALLY do the same...
> > //
> > var classname:Class = Class("mx.controls.ComboBox");
> > var testB:* = new classname();
> > addChild(testB);
> > //=
> >
> > //But get a this type of error---> TypeError: Error #1034: Type
> > Coercion
> > failed: cannot convert "mx.controls.ComboBox" to Class.
> >
> > -- Keith H --
> >
> >
> >
>
>  



--
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

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

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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


[flexcoders] My column doesn't sort correctly in Flex 3 Beta 2

2007-10-01 Thread Nate Pearson
My column used to sort correctly, IE:
28,000,000
16,000,000
6,000,000
4,000,000

Now in Beta 2 with no code changes I get:
16,000,000
28,000,000
4,000,000
6,000,000

What gives?  Is it sorting it alphabetically?  If so how do I change
it back to the way it was?

Thanks,

Nate



RE: [flexcoders] TileList.selectedIndices problem

2007-10-01 Thread Alex Harui
It is a bug that you can have selectedIndices but that selectedIndex =
-1.  Please file a bug for that.

 

Thanks,

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Charles Galpin
Sent: Monday, October 01, 2007 4:24 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] TileList.selectedIndices problem

 

Oh, one more question on this Alex. If you run the test, you'll see the
selectedIndex changes when setting the selectedIndices. I don't show it
in this example but even if I saved it off (-1) and set it, it will
still change to 0. I bothers me that it's not symmetric - not sure if
it's a problem or not.

 

thanks

charles

 

On Oct 1, 2007, at 4:14 PM, Alex Harui wrote:





You fell into a hole created by our attempt to allow you to specify
selectedIndex/Indices on the MXML tag and set the collection later after
a server fetch.  Having a collection of length=0 queues the selection
request so it got applied after you set it later.  A workaround would
be:

 

// simulate delete all
then add back

 
dataCollection.removeAll();

if ( clearData.selected
)

 
list.selectedIndices = new Array();

list.invalidateList();

setData();

if ( clearData.selected
)

 
list.validateNow();

 

 

 



Re: [flexcoders] TileList.selectedIndices problem

2007-10-01 Thread Charles Galpin
Oh, one more question on this Alex. If you run the test, you'll see  
the selectedIndex changes when setting the selectedIndices. I don't  
show it in this example but even if I saved it off (-1) and set it,  
it will still change to 0. I bothers me that it's not symmetric - not  
sure if it's a problem or not.


thanks
charles

On Oct 1, 2007, at 4:14 PM, Alex Harui wrote:

You fell into a hole created by our attempt to allow you to specify  
selectedIndex/Indices on the MXML tag and set the collection later  
after a server fetch.  Having a collection of length=0 queues the  
selection request so it got applied after you set it later.  A  
workaround would be:




// simulate delete  
all then add back


 
dataCollection.removeAll();


if  
( clearData.selected )


 
list.selectedIndices = new Array();


list.invalidateList();

setData();

if  
( clearData.selected )


 
list.validateNow();







RE: [flexcoders] help with swf size problem in windows xp and vista

2007-10-01 Thread Alex Harui
Can you send a picture of when it looks wrong?  Can you enable view
source in the project?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gustavo Duenas
Sent: Monday, October 01, 2007 2:58 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] help with swf size problem in windows xp and
vista

 

yep I have this tested on mac, and no problems, this is the url:

 

http://leftandrightsolutions.com/lrsagency 2/bin/LRSAgency2.html

 

Thanks

 

 

Gustavo

On Oct 1, 2007, at 5:01 PM, Alex Harui wrote:





 

Vista is still relatively new so we keep finding bugs.  However, in your
case you need to prove that the problem is a player bug.  It may just be
a timing problem.  Does your application work on other
platforms/browsers?

 

If you can create a small testcase, please post it and a picture of how
it looks in Vista.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gustavo Duenas
Sent: Monday, October 01, 2007 1:57 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] help with swf size problem in windows xp and
vista

 

Thanks Alex for your answer What you think of this...if I just reset the
swf loader into the app and erase the width and height can make any
difference in?

By the way so you know about some bug between flex and windows systems
(vista and xp)?

 

 

regards

 

 

Gustavo

 

On Oct 1, 2007, at 2:40 PM, Alex Harui wrote:






 

There is no way to prevent asynchronous loading of images, and someday,
you will be glad for it. I also cant guarantee that is your problem as
once the image is loaded it should force a resize, but this is the
second thread claiming this isnt working for them and Im not sure why. I
would recommend adding trace statements to report the
measuredWidth/Height of the images and see if that is making a
difference. Also make sure youve deployed the correct images to your
server and arent serving thumbnails instead.



RE: [flexcoders] Re: Flash CS3 Components - Tweens in Flex

2007-10-01 Thread Alex Harui
I think that's a bug that's been fixed in 3.0

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of byte.sensei
Sent: Monday, October 01, 2007 2:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flash CS3 Components - Tweens in Flex

 

Here's the stack trace:

TypeError: Error #1006: effectStarted is not a function.
at mx.effects::EffectInstance/startEffect()
at mx.effects::Effect/play()
at com.symetri.elf_island.ui.view::room_forest/::moveImage()
at 
com.symetri.elf_island.ui.view::room_forest/::mouse_down_handler()
at 
com.symetri.elf_island.ui.view::room_forest/__myRoom_mouseDown()

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Please compile a debug version and show the whole stack trace.
> 
> 

 



Re: [flexcoders] Re: how to change selection color in textinput?

2007-10-01 Thread Claus Wahlers
Alex Harui wrote:

> They wrote their own text input control

Which only seems to support english/american keyboards. I am on a german 
keyboard and wasn't able to enter the @ which is unfortunate ;) (the @ 
is AltGr-Q on mine).

Cheers,
Claus.


RE: [flexcoders] Datagrid with dynamic columns

2007-10-01 Thread Tracy Spratt
Well, you can do this programatically pretty easily.  I guess you could
encapsulate the logic in an extended DataGrid.

 

Suppose in the "columnConfigs" setter function, you simply build the
columns array?  I suspect you'd need to ensure the columns are built
before the dataProvider is assigned.

 

Have you done a dynamic column datagrid yet? Here is an example.  It
uses logic in the structure of the dataProvider item to build the
columns, but could just as easily  use the data in the columnConfigs
ArrayCollection.

http://www.cflex.net/showFileDetails.cfm?ObjectID=552

 

Tracy

 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of letterpigeon
Sent: Monday, October 01, 2007 3:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid with dynamic columns

 

Hi,

I'm trying to extend to the DataGrid class (call it DynamicDataGrid)
to make it work with dynamic column definition (# of columns and names
of columns will be fetched at runtime) so that I can use this datagrid
by giving it an array collection as dataprovider (this arraycollection
contains only data) and another array for column configuration. 

Following is what I've done: 

I extended DataGrid to contain one more variable "columnConfigs:Array"
(this array contains objects of type ColumnConfig which has headerText
and columnCode as its instance variables).

In the setter of columnConfigs, I set the headerText for each column
of the datagrid. but the DataGridColumn does not have columnCode
field, so I figured I need to extend DataGridColumn as well
(DynamicDataGridColumn). But i can't think of a good way to make
DynamicDataGrid to use an array of DynamicDataGridColumn for its
"columns" attribute without knowing much about the internal
implemenation of DataGrid. 

Could anyone give me any suggestion? Or if you have a better way of
achieving I'm trying to do here, please help. Thanks.

Ban

 



RE: [flexcoders] Forms - best practices

2007-10-01 Thread Tracy Spratt
One clarification, "...a local XML model (mx:Model)...". mx:Model is not
XML.  It converts XML into a nested object structure.  Use mx:XML if you
want an xml-based "model"

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Richard Rodseth
Sent: Monday, October 01, 2007 4:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Forms - best practices

 

I'm starting on my first forms UI, and was thinking of the following,
assuming separate MXML components for each form.

- each form has an associated VO
- the way in: the form has a bindable model property containing an
instance of the vo or something that contains one. The form controls
are bound {} to VO properties
- if the form is in "create" mode, the model may be null
- the way out: as described in the docs the form also has a local XML
model (mx:Model) whose elements are bound to the form controls.
Presumably this is mostly for text controls, not sliders etc.
- after validation, the form dispatches a custom event (eg.
AccountEditEvent) containing an instance of the vo and perhaps a flag
indicating whether it's a "create" or an "update"

Comments?

 



Re: [flexcoders] TileList.selectedIndices problem

2007-10-01 Thread Charles Galpin

Whoohoo, thank you much!

charles

On Oct 1, 2007, at 4:14 PM, Alex Harui wrote:

You fell into a hole created by our attempt to allow you to specify  
selectedIndex/Indices on the MXML tag and set the collection later  
after a server fetch.  Having a collection of length=0 queues the  
selection request so it got applied after you set it later.  A  
workaround would be:




// simulate delete  
all then add back


 
dataCollection.removeAll();


if  
( clearData.selected )


 
list.selectedIndices = new Array();


list.invalidateList();

setData();

if  
( clearData.selected )


 
list.validateNow();




Re: [flexcoders] Strange warning using FB3 beta 2

2007-10-01 Thread João Fernandes
This warning shouldn't exist in my opinion since the app is compiled on 
flex builder, it should really not care about what framework is on the 
server.

This only make sense when compiling at the server-side and you pick a 
different framework than the one the server is using.

-- 
João Fernandes
www.onflexwithcf.org
www.riapt.org


[flexcoders] Re: Return a person's age

2007-10-01 Thread Doug Lowder
Here's how I would do it:

var age:Number = todayDate.fullYear - birthDate.fullYear;
if (todayDate.month < birthDate.month || (todayDate.month == 
birthDate.month && todayDate.date < birthDate.date)) age--;
return age;


--- In flexcoders@yahoogroups.com, JRBower <[EMAIL PROTECTED]> wrote:
>
> 
> I have a form where I request a birthdate. I would like to 
automatically
> calculate a person's age (for another input) from the difference of 
today's
> date and the inputted birthdate. I'm not exactly sure how to write 
the
> function. I the following right?
> 
> public function dateDiff(todayDate:Date, birhtDate:Date):void 
> { 
> var todayDate:Date(); 
> var birthDate:Date;
> var age = birthDate - todayDate;
> } 
> 
> Thanks for your help,
> 
> James
> -- 
> View this message in context: http://www.nabble.com/Return-a-person%
27s-age-tf4545118.html#a12970134
> Sent from the FlexCoders mailing list archive at Nabble.com.
>




[flexcoders] Problem with the Drag 'n' Drop and the FDS..

2007-10-01 Thread Robert Csiki
Helo, here's my little story:

I have a TileList that's powered by an ArrayCollection with data 
obtained from a DataService (via it's "fill" method). For the DS I 
set autoCommit="false".

I enabled the DnD for my TileList (it has built-in DnD support) and 
I also set it to allow item move, not copy.

What I'm trying to do is to re-arrange the items on this managed 
collection. With the mouse, I'm dragging an item into a different 
location on the grid. I wrote an event listener for the 
DragEvent.DRAG_COMPLETE event, where I call DataService.commit() for 
my managed collection.

What happens on the FDS side (it's actually LCDS 2.5.1): the 
destination I wrote is a Java implementation. It's "sync" method 
gets called, and the list of changes contain 2 items: "delete" 
and "create" for the item I previously DnD-ed on the grid. There is 
no indication regarding the new position in the grid for the "new" 
item.

I _do not_ want to delete and create anything. I just weant the FDS 
to do whatever is necessary to update it's managed collection, and 
return the "OK" back to the client. I don't want FDS to call 
the "fill" method again, as there is nothing new to refresh from the 
database (I do not want to persist this item reordeting action for 
now).

I managed to prevent the unnecessary "fill" call from happening, 
using the  configuration in XML, but the end 
result is the FDS does not accept the client's request, deletes the 
item I DnD-ed and therefore makes it dissapearing from my grid.

Here is the log info, from the moment I filled in my grid (with 3 
items) and up until my list has just 2 items, after I tried to move 
the first one via DnD (this first one is the one that got vanished).

I wonder why this behavior? What's missing from what I've done?

Many thanks,
Robert

[Flex] 10/01/2007 17:02:43.781 [DEBUG] [Message.Data.fill] Before 
invoke service: data-service
  incomingMessage: Flex Message (flex.data.messages.DataMessage) 
operation = fill
id = null
clientId = 542BAA04-0291-ECDE-6BD6-5D60A50569DE
correlationId = 
destination = repositoryObjectAssembler
messageId = C81583CC-4942-8A65-11A0-5D60C445D31A
timestamp = 1191272563781
timeToLive = 0
body = 
[
  0be4dc09800040e6,
  false
]
hdr(DSEndpoint) = my-rtmp
hdr(DSId) = 28F8F58F-3E1D-A44B-F8CC-5ECE708E198C

[Flex] 10/01/2007 17:02:43.812 [DEBUG] [Message.Timing] After invoke 
service: data-service; execution time = 31ms
[Flex] 10/01/2007 17:02:43.812 [DEBUG] [Service.Data.Transaction] 
Committed transaction
[Flex] 10/01/2007 17:02:43.812 [DEBUG] [Message.Data.fill] After 
invoke service: data-service
  reply: Flex Message (flex.data.messages.SequencedMessage) 
sequenceId = 1
sequenceSize = 3
dynamicSizing = 0
(no sequence proxies)
clientId = null
correlationId = null
destination = repositoryObjectAssembler
messageId = 28F93F78-240A-A32B-8DE7-A1AFAFD75EAC
timestamp = 1191272563812
timeToLive = 0
body = 
[
  [EMAIL PROTECTED],
  [EMAIL PROTECTED],
  [EMAIL PROTECTED]
]

[Flex] 10/01/2007 17:02:48.031 [DEBUG] [Message.Data.transacted] 
Before invoke service: data-service
  incomingMessage: Flex Message (flex.data.messages.DataMessage) 
operation = transacted
id = null
clientId = 28F92C65-5419-8F1F-963E-FBE7861F4635
correlationId = 
destination = repositoryObjectAssembler
messageId = 3302-3DA7-DCA5-7575-5D60D4DFBE18
timestamp = 1191272568031
timeToLive = 0
body = 
[
  Flex Message (flex.data.messages.DataMessage) 
  operation = delete
  id = ASObject(20624684){objectId=09e4dc09800040f0}
  clientId = 542BAA04-0291-ECDE-6BD6-5D60A50569DE
  correlationId = 3302-3DA7-DCA5-7575-5D60D4DFBE18
  destination = repositoryObjectAssembler
  messageId = 646E01CF-2893-C606-BF70-5D60D4CFFBC9
  timestamp = 0
  timeToLive = 0
  body = [EMAIL PROTECTED],
  Flex Message (flex.data.messages.DataMessage) 
  operation = create
  id = ASObject(21796820){objectId=09e4dc09800040f0}
  clientId = 542BAA04-0291-ECDE-6BD6-5D60A50569DE
  correlationId = 3302-3DA7-DCA5-7575-5D60D4DFBE18
  destination = repositoryObjectAssembler
  messageId = F553034C-BA68-52BF-E798-5D60D4DF8EB4
  timestamp = 0
  timeToLive = 0
  body = [EMAIL PROTECTED],
  Flex Message (flex.data.messages.UpdateCollectionMessage) 
  operation = update_collection
  id = null
  clientId = 542BAA04-0291-ECDE-6BD6-5D60A50569DE
  correlationId = 3302-3DA7-DCA5-7575-5D60D4DFBE18
  destination = repositoryObjectAssembler
  messageId = 4CBE61EB-454F-19EE-F219-5D60D4CF2248
  timestamp = 0
  timeToLive = 0
  body = 
  [
[EMAIL PROTECTED](25432371){objectId=09e4dc09800040f0}],
[EMAIL PROTECTED]

Re: [flexcoders] Flex 3 Beta 2 Expired

2007-10-01 Thread Paul Andrews
Apparently, after the trial expires you need to own Flex 2.0 to continue.

Paul
- Original Message - 
From: "Fabián Brussa" <[EMAIL PROTECTED]>
To: 
Sent: Monday, October 01, 2007 7:05 PM
Subject: [flexcoders] Flex 3 Beta 2 Expired


> Hello,
>
> I have the version Flex 3 Beta 1 that I expire yesterday. Today I
> uninstall it.
>
> Soon I download  Flex 3 Beta 2 and I installed it, and when it
> initiates show that the evaluation version has expired.
>
> As I can solve the problem?
>
>
>
> --
> 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] Re: Flash CS3 Components - Tweens in Flex

2007-10-01 Thread byte.sensei
Here's the stack trace:

TypeError: Error #1006: effectStarted is not a function.
at mx.effects::EffectInstance/startEffect()
at mx.effects::Effect/play()
at com.symetri.elf_island.ui.view::room_forest/::moveImage()
at 
com.symetri.elf_island.ui.view::room_forest/::mouse_down_handler()
at 
com.symetri.elf_island.ui.view::room_forest/__myRoom_mouseDown()


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Please compile a debug version and show the whole stack trace.
> 
>  




RE: [flexcoders] help with swf size problem in windows xp and vista

2007-10-01 Thread Alex Harui
Vista is still relatively new so we keep finding bugs.  However, in your
case you need to prove that the problem is a player bug.  It may just be
a timing problem.  Does your application work on other
platforms/browsers?

 

If you can create a small testcase, please post it and a picture of how
it looks in Vista.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gustavo Duenas
Sent: Monday, October 01, 2007 1:57 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] help with swf size problem in windows xp and
vista

 

Thanks Alex for your answer What you think of this...if I just reset the
swf loader into the app and erase the width and height can make any
difference in?

By the way so you know about some bug between flex and windows systems
(vista and xp)?

 

 

regards

 

 

Gustavo

 

On Oct 1, 2007, at 2:40 PM, Alex Harui wrote:





 

There is no way to prevent asynchronous loading of images, and someday,
you will be glad for it. I also cant guarantee that is your problem as
once the image is loaded it should force a resize, but this is the
second thread claiming this isnt working for them and Im not sure why. I
would recommend adding trace statements to report the
measuredWidth/Height of the images and see if that is making a
difference. Also make sure youve deployed the correct images to your
server and arent serving thumbnails instead.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gustavo Duenas
Sent: Monday, October 01, 2007 9:00 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] help with swf size problem in windows xp and
vista

do you know how can I prevent that?

Regards

Gustavo

On Oct 1, 2007, at 11:53 AM, Alex Harui wrote:






When deployed over the web, image loading can take several frames and
the measured size ill be incorrect until complete event



[flexcoders] Simple RemoteObject call - cannot figure out what is wrong

2007-10-01 Thread George Georgiou
Hi all,

I am trying to switch from httpservice into remoteobject but i m having a
problem in here which i cannot figure out how to solve.

I have managed to read data using a CFC and display them in a grid (I have
really wrote my own component that I can pass SQL there and display data).
However I cannot pass parameters into the CFC and insert or update my
database. Here is my code:



http://www.adobe.com/2006/mxml"; layout="absolute">

 
  
 

 
  
 

 




and here is a VERY simple CFC




insert into tbl_test (firstName)
values ('FlexGeorge')





When I click the button, I getr the following error:



[RPC Fault faultString="Unable to invoke CFC" faultCode="Server.Processing"
faultDetail="For details, turn on Robust Exception Information in the
ColdFusion Administrator"]
 at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler
()
 at mx.rpc::Responder/fault()
 at mx.rpc::AsyncRequest/fault()
 at
::NetConnectionMessageResponder/NetConnectionChannel.as$40:NetConnectionMessageResponder::statusHandler()
 at mx.messaging::MessageResponder/status()



any ideas on how to achieve this simple task that I m trying to do?



thanks,

George


Re: [flexcoders] Re: how to change selection color in textinput?

2007-10-01 Thread Daniel Freiman
I think they draw it manually.  The short version is that they disable the
TextField's selectability, they use their own mouse cursor/graphic, they
detect which characters would be selected based on the coordinates returned
by the mousedown/move/up events in conjunction with some methods of
TextField.  You would probably then use the Graphics class to draw the
selection on a layer/sprite behind the text in conjunction with blendMode if
you want extra effects but other methods might be possible.

- Dan Freiman

On 10/1/07, m40.regs <[EMAIL PROTECTED]> wrote:
>
>   Unfortunately, the Flash Player doesn't support setting the color of
> selected text, or the color of the background of the selected text. You're
> stuck with white on black.
>
> Then how it is done here: http://preview.getbuzzword.com/?s=true ? (try to
> type something in the "your e-mail" field)
>
> I hope someone knows the answer.
>
> Thank you!
>
>
> --- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
> >
> > Unfortunately, the Flash Player doesn't support setting the color of
> > selected text, or the color of the background of the selected text.
> > You're stuck with white on black.
> >
> > - Gordon
> >
> > 
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> > Behalf Of Larry Zhang
> > Sent: Tuesday, September 11, 2007 8:37 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] how to change selection color in textinput?
> >
> >
> >
> > Hello all
> >
> > I want to change the selection color in textinput component in Flex.
> >
> > It seems the default color is black, and there is no such style in the
> > TextInput style list.
> >
> > Can any one help me?
> >
> > Thanks
> >
> > ==
> >
> > Make Every Day Count
> >
> > Larry Zhang
> >
>
>  
>


RE: [flexcoders] Dragging from Datagrid to Tree

2007-10-01 Thread Alex Harui
DataGrids have linear data and place into the dragsource a format called
"items".  A tree takes hierarchical data and expects a format called
"treeItems".  You can customize the drop handling on the tree.  It
requires using preventDefault() to block default tree behavior and
inserting the "items" data yourself.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Luis Torres
Sent: Monday, October 01, 2007 11:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dragging from Datagrid to Tree

 

This has been asked several times, but I haven't seen an answer yet. 
I'm trying to drag an item from a datagrid to a tree. From datagrid
to datagrid works fine, but for some reason, dragging to a tree won't
accept the dragdrop, even when the dragManager is told to accept it. 
I'm sure there's something stupid I'm missing, but I just can't see
it. Here's a simple sample that demonstrates what I'm talking about.


http://www.adobe.com/2006/mxml
 " width="100%"
height="100%" borderStyle="solid" >






































 



RE: [flexcoders] Re: how to change selection color in textinput?

2007-10-01 Thread Alex Harui
They wrote their own text input control

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of m40.regs
Sent: Monday, October 01, 2007 6:01 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: how to change selection color in textinput?

 

Unfortunately, the Flash Player doesn't support setting the color of
selected text, or the color of the background of the selected text.
You're stuck with white on black.

Then how it is done here: http://preview.getbuzzword.com/?s=true ? (try
to type something in the "your e-mail" field)

I hope someone knows the answer.

Thank you!

--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> Unfortunately, the Flash Player doesn't support setting the color of
> selected text, or the color of the background of the selected text.
> You're stuck with white on black.
> 
> - Gordon
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Larry Zhang
> Sent: Tuesday, September 11, 2007 8:37 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] how to change selection color in textinput?
> 
> 
> 
> Hello all
> 
> I want to change t! he selection color in textinput component in Flex.
> 
> It seems the default color is black, and there is no such style in the
> TextInput style list.
> 
> Can any one help me?
> 
> Thanks
> 
> ==
> 
> Make Every Day Count
> 
> Larry Zhang
>

 



RE: [flexcoders] Datagrid with dynamic columns

2007-10-01 Thread Alex Harui
There's a bunch of custom DG/DGColumn examples on my blog
(blogs.adobe.com/aharui)

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of letterpigeon
Sent: Monday, October 01, 2007 12:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid with dynamic columns

 

Hi,

I'm trying to extend to the DataGrid class (call it DynamicDataGrid)
to make it work with dynamic column definition (# of columns and names
of columns will be fetched at runtime) so that I can use this datagrid
by giving it an array collection as dataprovider (this arraycollection
contains only data) and another array for column configuration. 

Following is what I've done: 

I extended DataGrid to contain one more variable "columnConfigs:Array"
(this array contains objects of type ColumnConfig which has headerText
and columnCode as its instance variables).

In the setter of columnConfigs, I set the headerText for each column
of the datagrid. but the DataGridColumn does not have columnCode
field, so I figured I need to extend DataGridColumn as well
(DynamicDataGridColumn). But i can't think of a good way to make
DynamicDataGrid to use an array of DynamicDataGridColumn for its
"columns" attribute without knowing much about the internal
implemenation of DataGrid. 

Could anyone give me any suggestion? Or if you have a better way of
achieving I'm trying to do here, please help. Thanks.

Ban

 



[flexcoders] Dragging from Datagrid to Tree

2007-10-01 Thread Luis Torres
This has been asked several times, but I haven't seen an answer yet. 
I'm trying to drag an item from a datagrid to a tree.  From datagrid
to datagrid works fine, but for some reason, dragging to a tree won't
accept the dragdrop, even when the dragManager is told to accept it. 
I'm sure there's something stupid I'm missing, but I just can't see
it.  Here's a simple sample that demonstrates what I'm talking about.


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























 
















[flexcoders] Flex 3 Beta 2 Expired

2007-10-01 Thread Fabián Brussa
Hello, 

I have the version Flex 3 Beta 1 that I expire yesterday. Today I
uninstall it. 

Soon I download  Flex 3 Beta 2 and I installed it, and when it
initiates show that the evaluation version has expired. 

As I can solve the problem?



[flexcoders] Re: RemoteObject.disconnect does not work

2007-10-01 Thread nxzone
i have the same problem.





remoteTimelineObject.callSomething()

then when i got the busyCursor and when send this:
remoteTimelineObject.disconnect()

But nothing happen.. Why disconnect does not cancel ? How we can
cancel a remoteobject? 

Help please :)







--- In flexcoders@yahoogroups.com, "baardos" <[EMAIL PROTECTED]> wrote:
>
> 
> Hi Tom,
> 
> Thanks for your response. What I am trying to do is to implement
> cancel functionality that will allow the user to cancel a pending
> request. According to the docs the disconnect method should remove all
> resoponders associated with a given RemoteObject instance and it seems
> to be exactly what I need. Do you know any specific conditions that
> must be satisfied for this method to succeed?
> 
> This is what the doc says - from this description it seems to
> beunconditional Any ideas?
> 
> "Disconnects the service's network connection and removes any pending
> request responders. This method does not wait for outstanding network
> operations to complete." 
> 
> Cheers,
> Bartek
> 
> --- In flexcoders@yahoogroups.com, Tom Chiverton 
> wrote:
> >
> > On Thursday 25 January 2007 07:54, baardos wrote:
> > > call but I am still getting the clock cursor and a response. Any
> ideas?
> > 
> > What are you trying to achieve ? Flex maybe seeing you have a
response 
> > outstanding and keeping to connection alive, for instance.
> > 
> > -- 
> > Tom Chiverton
> > Helping to revolutionarily aggregate principle-centered e-tailers
> > 
> > 
> > 
> > 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] Return a person's age

2007-10-01 Thread JRBower

I have a form where I request a birthdate. I would like to automatically
calculate a person's age (for another input) from the difference of today's
date and the inputted birthdate. I'm not exactly sure how to write the
function. I the following right?

public function dateDiff(todayDate:Date, birhtDate:Date):void 
{ 
var todayDate:Date(); 
var birthDate:Date;
var age = birthDate - todayDate;
} 

Thanks for your help,

James
-- 
View this message in context: 
http://www.nabble.com/Return-a-person%27s-age-tf4545118.html#a12970134
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: how to change selection color in textinput?

2007-10-01 Thread m40.regs
Unfortunately, the Flash Player doesn't support setting the color of
selected text, or the color of the background of the selected text.
You're stuck with white on black.

Then how it is done here: http://preview.getbuzzword.com/?s=true ? (try
to type something in the "your e-mail" field)

I hope someone knows the answer.

Thank you!

--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> Unfortunately, the Flash Player doesn't support setting the color of
> selected text, or the color of the background of the selected text.
> You're stuck with white on black.
>
> - Gordon
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Larry Zhang
> Sent: Tuesday, September 11, 2007 8:37 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] how to change selection color in textinput?
>
>
>
> Hello all
>
> I want to change the selection color in textinput component in Flex.
>
> It seems the default color is black, and there is no such style in the
> TextInput style list.
>
> Can any one help me?
>
> Thanks
>
> ==
>
> Make Every Day Count
>
> Larry Zhang
>



[flexcoders] How to tackle a client item reordering with FDS?

2007-10-01 Thread emc_rcsiki
If the client, using DnD, moves the position of an item of a managed 
collection, how to intercept and process this operation 
(flex.data.messages.UpdateCollectionMessage?) with FDS?


Thank you
Robert



[flexcoders] Re: Changing Mouse Cursor in application

2007-10-01 Thread flexawesome
AWESOME!

thanks a million

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> The doc shows how to do all of this.  It should be something like:
> 
>  
> 
> ShowHandButton.as:
> 
> public class ShowHandButton extends Button
> 
> {
> 
> public function ShowHandButton()
> 
> {
> 
> useHandCursor = true;
> 
> buttonMode = true;
> 
> }
> 
> }
> 
>  
> 
> TestApp.mxml
> 
> 
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of flexawesome
> Sent: Monday, October 01, 2007 12:55 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Changing Mouse Cursor in application
> 
>  
> 
> hey Alex, 
> 
> If i creates a subclassing, shall I change all tag of  to
> something like  in my main application (mxml file)?
> 
> also, is there any sample code I can take a look as I am just starting
> the Flex :)
> 
> Cheers
> 
> --- In flexcoders@yahoogroups.com 
> , "Alex Harui"  wrote:
> >
> > You could detect if it is a button, but you're better off subclassing
> > the buttons and turning on buttonMode and useHandCursor there.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of flexawesome
> > Sent: Monday, October 01, 2007 10:28 AM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] Re: Changing Mouse Cursor in application
> > 
> > 
> > 
> > Alex, thanks for the reply. 
> > 
> > The only problem is I don't want to change the mouse cursor to hand
> > completely in my application. I only want to change the mouse cursor
> > to hand once user rollOver to links such as buttons or link buttons.
> > 
> > Huummm... Is there a way to detect the object is a button? if it is,
> > then change the mouse cursor? is that possible?
> > 
> > Cheers
> > 
> > 
> > --- In flexcoders@yahoogroups.com
> 
> 
> > , "Alex Harui"  wrote:
> > >
> > > Make a copy of the hand and use cursor manager?
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
> 
> 
> > [mailto:flexcoders@yahoogroups.com
> 
> 
> > ] On
> > > Behalf Of flexawesome
> > > Sent: Monday, October 01, 2007 9:28 AM
> > > To: flexcoders@yahoogroups.com 
>  
> > > Subject: [flexcoders] Re: Changing Mouse Cursor in application
> > > 
> > > 
> > > 
> > > guys, any suggestions? :)
> > > 
> > > Thanks
> > > 
> > > --- In flexcoders@yahoogroups.com
>  
> > 
> > 
> > > , "flexawesome"  wrote:
> > > >
> > > > Hi there,
> > > > 
> > > > I build a application and would like to change the default mouse
> > > cursor
> > > > from the arrow cursor to a hand? I can reset buttonMode=true for
> all
> > > > components one by one. However, there is too much stuffs and
> > > > "impossible" manually do that.
> > > > 
> > > > Is there a way to apply this for all components(like
> > > > pic,button,link...etc) once user rollOver mouse to the target? Any
> > > > suggestion?
> > > > 
> > > > Thanks
> > > >
> > >
> >
>




[flexcoders] Dynamic data for AdvancedDatagrid in flex 3

2007-10-01 Thread letterpigeon
I'm looking into using the flex 3 AdvancedDataGrid to display 
hierachical data, an example of such hierarchy is: 


private var dpHierarchy:ArrayCollection = new ArrayCollection([
  
{Status:"valid", "Block 
Level":"B", "Reference Number":"1", children: [
{Status:"valid", "Block 
Level":"A", "Reference Number":"1"}
]
}
  
]);

.  The problem I'm facing is that I do not know the number and name 
of the columns at coding time (these configuration will be fetched 
from server).  Any suggestion on how to create such data provider?  
I've looked into creating an object as follow:

package com.ms.pbcustody.fileimport.remote.domain
{
public class FileMetaData
{
public var blockLevel:String;
public var referenceNumber:String;
[ArrayElementType="FileMetaData"]
public var children:Array = new Array;
}
}

but even then, I still need to know the columns at coding time.  Any 
suggestion or example code would be greatly appreicated.  Thanks.

Regards,
Ban



[flexcoders] Datagrid with dynamic columns

2007-10-01 Thread letterpigeon
Hi,
 
I'm trying to extend to the DataGrid class (call it DynamicDataGrid)
to make it work with dynamic column definition (# of columns and names
of columns will be fetched at runtime) so that I can use this datagrid
by giving it an array collection as dataprovider (this arraycollection
 contains only data) and another array for column configuration.  
 
Following is what I've done: 
 
I extended DataGrid to contain one more variable "columnConfigs:Array"
(this array contains objects of type ColumnConfig which has headerText
and columnCode as its instance variables).
 
In the setter of columnConfigs, I set the headerText for each column
of the datagrid.  but the DataGridColumn does not have columnCode
field, so I figured I need to extend DataGridColumn as well
(DynamicDataGridColumn).  But i can't think of a good way to make
DynamicDataGrid to use an array of DynamicDataGridColumn for its
"columns" attribute without knowing much about the internal
implemenation of DataGrid.  
 
Could anyone give me any suggestion?  Or if you have a better way of
achieving I'm trying to do here, please help. Thanks.
 
Ban



RE: [flexcoders] Re: Changing Mouse Cursor in application

2007-10-01 Thread Alex Harui
The doc shows how to do all of this.  It should be something like:

 

ShowHandButton.as:

public class ShowHandButton extends Button

{

public function ShowHandButton()

{

useHandCursor = true;

buttonMode = true;

}

}

 

TestApp.mxml







From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexawesome
Sent: Monday, October 01, 2007 12:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Changing Mouse Cursor in application

 

hey Alex, 

If i creates a subclassing, shall I change all tag of  to
something like  in my main application (mxml file)?

also, is there any sample code I can take a look as I am just starting
the Flex :)

Cheers

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> You could detect if it is a button, but you're better off subclassing
> the buttons and turning on buttonMode and useHandCursor there.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of flexawesome
> Sent: Monday, October 01, 2007 10:28 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Changing Mouse Cursor in application
> 
> 
> 
> Alex, thanks for the reply. 
> 
> The only problem is I don't want to change the mouse cursor to hand
> completely in my application. I only want to change the mouse cursor
> to hand once user rollOver to links such as buttons or link buttons.
> 
> Huummm... Is there a way to detect the object is a button? if it is,
> then change the mouse cursor? is that possible?
> 
> Cheers
> 
> 
> --- In flexcoders@yahoogroups.com


> , "Alex Harui"  wrote:
> >
> > Make a copy of the hand and use cursor manager?
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com


> [mailto:flexcoders@yahoogroups.com


> ] On
> > Behalf Of flexawesome
> > Sent: Monday, October 01, 2007 9:28 AM
> > To: flexcoders@yahoogroups.com 
 
> > Subject: [flexcoders] Re: Changing Mouse Cursor in application
> > 
> > 
> > 
> > guys, any suggestions? :)
> > 
> > Thanks
> > 
> > --- In flexcoders@yahoogroups.com
 
> 
> 
> > , "flexawesome"  wrote:
> > >
> > > Hi there,
> > > 
> > > I build a application and would like to change the default mouse
> > cursor
> > > from the arrow cursor to a hand? I can reset buttonMode=true for
all
> > > components one by one. However, there is too much stuffs and
> > > "impossible" manually do that.
> > > 
> > > Is there a way to apply this for all components(like
> > > pic,button,link...etc) once user rollOver mouse to the target? Any
> > > suggestion?
> > > 
> > > Thanks
> > >
> >
>

 



RE: [flexcoders] fade from tile view to list view not smooth

2007-10-01 Thread Mike Krotscheck
Embed the font. As long as you're using system fonts you are letting the
operating system render your fonts rather than the flash player, and
only the latter will apply fade effects and transitions to text. 

 

Michael Krotscheck

Senior Developer

 
RESOURCE INTERACTIVE

 www.resource.com  

[EMAIL PROTECTED]  



This email and any of its attachments may contain Resource Interactive
proprietary information, which is privileged, confidential and may be
subject to copyright or other intellectual property rights belonging to
Resource Interactive. This email is intended solely for the use of the
individual or entity to which it is addressed. If you are not the
intended recipient of this email, you are hereby notified that any
dissemination, distribution, copying or action taken in relation to the
contents of and attachments to this email is strictly prohibited and may
be unlawful. If you have received this email in error, please notify the
sender immediately and permanently delete the original and any copy of
this email and any printout.




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dbronk
Sent: Monday, October 01, 2007 3:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] fade from tile view to list view not smooth

 

I have a viewstack. One one is a tile, the other a datagrid. Both
have the same dataprovider. I set each in the viewstack with:
showEffect="Fade" hideEffect="Fade". The fade out/in works fine with
everything in the view except the text. How come the text in the tile
and datagrid does not fade with everything else? Kind of ruins the
effect. Suggestions or advice?

Thanks,
Dale

 



[flexcoders] Forms - best practices

2007-10-01 Thread Richard Rodseth
I'm starting on my first forms UI, and was thinking of the following,
assuming separate MXML components for each form.

- each form has an associated VO
- the way in: the form has a bindable model property containing an
instance of the vo or something that contains one. The form controls
are bound {} to VO properties
- if the form is in "create" mode, the model may be null
- the way out: as described in the docs the form also has a local XML
model (mx:Model) whose elements are bound to the form controls.
Presumably this is mostly for text controls, not sliders etc.
- after validation, the form dispatches a custom event (eg.
AccountEditEvent) containing an instance of the vo and perhaps a flag
indicating whether it's a "create" or an "update"

Comments?


[flexcoders] Strange warning using FB3 beta 2

2007-10-01 Thread mariposasw
I finally got beta2 installed and working. I created a new CF project, 
and when I told it to use the default SDK (Flex 3 M3(Beta 2)), I get a 
warning that says:

"Project is being compiled with Flex 3.0, but server has Flex 2.0.1"

at the top of the dialog box. I'm using CF8 with cumulative hotfix 1. 
I've never seen this warning before, either with FB 2.01 or FB3 beta 1.

The project compiled without errors and ran fine. I was just curious 
about the warning message.

~randy



RE: [flexcoders] Re: dataGrid Printing: validNexPage always TRUE

2007-10-01 Thread Alex Harui
Please post a small test case.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hammer995
Sent: Monday, October 01, 2007 12:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: dataGrid Printing: validNexPage always TRUE

 

I have. The grid is a search result. So, if I query for something
that takes up more than two pages then the result is the footer gets
printer on the second page, but a third page prints out with just the
footer.

I've also tried it with just 10 rows of datathe second page in
that case will just be the footer.

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Maybe a bug on a boundary condition. Try changing the size of the PDG
> and see if that makes a difference.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of hammer995
> Sent: Monday, October 01, 2007 10:56 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: dataGrid Printing: validNexPage always TRUE
> 
> 
> 
> I should clarify that I do get a false from validNextPage but it seems
> to be after all the data has been printed. I then get an extra page
> with just the footer.
> 
> --- In flexcoders@yahoogroups.com


> , "hammer995"  wrote:
> >
> > So I followed the example from the docs to print a datagrid. For
some
> > reason I always get validNextPage to be true even when there is not
> > enough data to fill a page. 
> > 
> > The example works fine but I cannot get it to work with my
> application.
> > 
> > Here is the code:
> > private function printExecution():void {
> > var printJob:FlexPrintJob = new FlexPrintJob;
> > 
> > if ( printJob.start() ) {
> > var thePrintView:FormPrintView = new FormPrintView();
> > thePrintView.visible = false;
> > thePrintView.includeInLayout = false;
> > Application.application.addChild(thePrintView);
> > 
> > thePrintView.width = printJob.pageWidth;
> > thePrintView.height = printJob.pageHeight;
> > 
> > thePrintView.acct = acctArray[accts.selectedIndex]; 
> > 
> > thePrintView.fromDate = df.format(fromDate.selectedDate);
> > thePrintView.toDate = df.format(toDate.selectedDate);
> > thePrintView.totalTrades = numFmt.format(totalTrades);
> > thePrintView.totalQty = numFmt.format(totalQty);
> > thePrintView.totalComm = total.format(totalComm);
> > thePrintView.dg_printDG.dataProvider =
> > dg_report.dataProvider; 
> > 
> > thePrintView.showPage("single"); 
> > thePrintView.footer.includeInLayout = true;
> > thePrintView.footer.visible = true; 
> > 
> > trace("VALIDNEXTPAGE1 = " +
> > thePrintView.dg_printDG.validNextPage)
> > if (!thePrintView.dg_printDG.validNextPage) { 
> 
> > printJob.addObject(thePrintView);
> > } else {
> > thePrintView.showPage("first");
> > printJob.addObject(thePrintView);
> > thePrintView.pageNumber++;
> > 
> > while(true) {
> > thePrintView.dg_printDG.nextPage(); 
> > thePrintView.showPage("last");
> > trace("VALIDNEXTPAGE2 = " +
> > thePrintView.dg_printDG.validNextPage)
> > if (!thePrintView.dg_printDG.validNextPage) { 
> > 
> > printJob.addObject(thePrintView);
> > break;
> > } else {
> > thePrintView.showPage("middle");
> > printJob.addObject(thePrintView);
> > thePrintView.pageNumber++;
> > trace("PAGE = " + thePrintView.pageNumber);
> > }
> > }
> > }
> > Application.application.removeChild(thePrintView);
> > }
> > printJob.send();
> > }
> > 
> > 
> > Any help would be appreciated...I've been banging my head for a few
> > days now.
> > 
> > thanks!
> >
>

 



[flexcoders] Re: Changing Mouse Cursor in application

2007-10-01 Thread flexawesome
hey Alex, 

If i creates a subclassing, shall I change all tag of  to
something like  in my main application (mxml file)?

also, is there any sample code I can take a look as I am just starting
the Flex :)

Cheers

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> You could detect if it is a button, but you're better off subclassing
> the buttons and turning on buttonMode and useHandCursor there.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of flexawesome
> Sent: Monday, October 01, 2007 10:28 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Changing Mouse Cursor in application
> 
>  
> 
> Alex, thanks for the reply. 
> 
> The only problem is I don't want to change the mouse cursor to hand
> completely in my application. I only want to change the mouse cursor
> to hand once user rollOver to links such as buttons or link buttons.
> 
> Huummm... Is there a way to detect the object is a button? if it is,
> then change the mouse cursor? is that possible?
> 
> Cheers
> 
> 
> --- In flexcoders@yahoogroups.com 
> , "Alex Harui"  wrote:
> >
> > Make a copy of the hand and use cursor manager?
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of flexawesome
> > Sent: Monday, October 01, 2007 9:28 AM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] Re: Changing Mouse Cursor in application
> > 
> > 
> > 
> > guys, any suggestions? :)
> > 
> > Thanks
> > 
> > --- In flexcoders@yahoogroups.com
> 
> 
> > , "flexawesome"  wrote:
> > >
> > > Hi there,
> > > 
> > > I build a application and would like to change the default mouse
> > cursor
> > > from the arrow cursor to a hand? I can reset buttonMode=true for all
> > > components one by one. However, there is too much stuffs and
> > > "impossible" manually do that.
> > > 
> > > Is there a way to apply this for all components(like
> > > pic,button,link...etc) once user rollOver mouse to the target? Any
> > > suggestion?
> > > 
> > > Thanks
> > >
> >
>




RE: [flexcoders] Detecting component name while rollOver mouse to it

2007-10-01 Thread Alex Harui
getQualifiedClassName()

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexawesome
Sent: Monday, October 01, 2007 12:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Detecting component name while rollOver mouse to
it

 

Hi there,

Is there a way to detect component type name such as
button/panel/CheckBox... while user rollOver it to the component?

Any suggestion? 

THANKS

 



Re: [flexcoders] Re: Placement of Image within Image Control

2007-10-01 Thread Daniel Freiman
No it wouldn't cause a loop because you'd only run that code on the complete
event.  I still confused why the image is coming in at different locations.
Have you looked at the vertical/horizontal alignment styles?  Also, are you
manipulating the contentHolder property (its in the mx_internal namespace)
because that may cause unintended consequences?

- Dan Fremian

On 10/1/07, droponrcll <[EMAIL PROTECTED]> wrote:
>
>   --- In flexcoders@yahoogroups.com ,
> "Daniel Freiman" <[EMAIL PROTECTED]>
> wrote:
> >
> > On inspection it looks like I did what Alex is talking about.
> > I'm a little confused at the sliding image issue. In my experience
> the
> > loaded images are placed in the top left corner of the Image
> control unless
> > you explicitly do something else.
>
> Well, that is what it looked like at first, but what actually seems
> to happen is that the placement is quite arbitrary. The same image
> will always have the same placement, but two images of a similar size
> might have different placements. For instance if I have an image
> that is 300x100 and one that is 275x100, one of them will be at the
> top, the other at the bottom.
>
> I find myself mystified as to why the image control doesn't just have
> properties that let you specify where the content is. In Authorware,
> when you import an image there's a little grid that lets you choose
> one of 9 placements for the image relative to where you imported it.
> This is great when you're replacing imported content dynamically,
> because you can align it how you want.
>
> > You should be able to fit the Image control to the loaded image
> perfectly by
> > doing something like this:
> >
> > image.width = image.content.width;
> > image.height = image.content.height;
> > image.content.x = 0;
> > image.content.y = 0;
>
> Could that potentially make the content rescale again, resulting in
> an endless loop?
>
> Thanks!
>
>  
>


RE: [flexcoders] Re: ResizeEvent.RESIZE Not Very Smart?

2007-10-01 Thread Alex Harui
% doesn't necessarily avoid clipping it just requests to be a percentage
of its parent.  If the parent ends up at a certain size, it sizes the
child and if the child cannot show all of its content in that size, will
bring up scrollbars.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt
Sent: Monday, October 01, 2007 12:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ResizeEvent.RESIZE Not Very Smart?

 

> scrollPolicy="auto" Scrollbars are not factored into the measured size
> and if forced to appear will clip content, except for the list classes
> which will try to resize the width of the content.

That actually isn't always true from what I've seen. If the content is
set to something like 100% width then it doesn't clip but rather
resizes the content. That's actually what I'm experiencing in this
case because obviously if I have it set to be a percentage it
shouldn't ever be clipping.

 



RE: [flexcoders] Re: Placement of Image within Image Control

2007-10-01 Thread Alex Harui
The image content is always at the top-left of the Image.  Based on
scaleContent, the Image will scale the content or try to shrink itself
down.  There are no 9 choices, the image content fully fills the Image
plus/or/minus extra space in order to maintain aspect ratio if
requested.  You use the parent container's layout to further position
the Image.  The VBox wrapper is trying to react to the new measured
sizes by adjusting the size and position of the Image and while it
should just work, sounds like something is off there.  If the image
content is a SWF you further complicate the problem because the SWF can
resize itself, but the Image is only checking the size of the first
frame.  Are your SWFs "well-behaved" in that they appear centered in
their stages and are aligned relative to the top-left and don't go into
negative coordinates?  It might require more code to deal with different
stage alignments.

 

I recommend you go with Canvas because that'll give you the most control
over positioning.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of droponrcll
Sent: Monday, October 01, 2007 12:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Placement of Image within Image Control

 

--- In flexcoders@yahoogroups.com 
, "Daniel Freiman" <[EMAIL PROTECTED]> 
wrote:
>
> On inspection it looks like I did what Alex is talking about.
> I'm a little confused at the sliding image issue. In my experience 
the
> loaded images are placed in the top left corner of the Image 
control unless
> you explicitly do something else.

Well, that is what it looked like at first, but what actually seems 
to happen is that the placement is quite arbitrary. The same image 
will always have the same placement, but two images of a similar size 
might have different placements. For instance if I have an image 
that is 300x100 and one that is 275x100, one of them will be at the 
top, the other at the bottom.

I find myself mystified as to why the image control doesn't just have 
properties that let you specify where the content is. In Authorware, 
when you import an image there's a little grid that lets you choose 
one of 9 placements for the image relative to where you imported it. 
This is great when you're replacing imported content dynamically, 
because you can align it how you want.

> You should be able to fit the Image control to the loaded image 
perfectly by
> doing something like this:
> 
> image.width = image.content.width;
> image.height = image.content.height;
> image.content.x = 0;
> image.content.y = 0;

Could that potentially make the content rescale again, resulting in 
an endless loop?

Thanks!

 



[flexcoders] TileList.selectedIndices problem

2007-10-01 Thread Charles Galpin
Please try this very simple example below and let me know if you get  
the same behavior. Select some or all items in the tile list and  
click the test button. Try the same but with the checkbox selected.  
Do you see the difference?


If you save off a TileList's selectedIndices, clear the data  
provider, clear the selectedIndices, then re-populate the data  
provider and re-apply the same selections, the setting of the  
selectedIndices fails.


Does anyone know a workaround?  Alex?

Can someone with moxie beat2 tell me if it still behaves this way?

thanks
charles



http://www.adobe.com/2006/mxml";  
layout="absolute"

applicationComplete="appInit()">






			


		height="150" >














RE: [flexcoders] Re: MultiPurpose ItemRenderer

2007-10-01 Thread Alex Harui
I see, if mediaObject you want to be your public interface to when you
use it as a component instead of a renderer, then I would set up my
bindings based on mediaObject instead of data.  I'd probably just use a
dataChange="mediaObject = data as MediaElement" in the top level instead
of overriding the getter/setter.

 

In a Canvas there are no layout rules so you can place things on top of
each other and turn one or the other off and on with visibility.  That's
what I would do and I would also calculate the centering solution then
as well.

 

With the advent of Actionscript 3 and the goal of maximized performance,
the Flash Player did not allow interoperability between FlashPlayer9/AS3
SWFs and the ActionScript in older SWFs.  You can use localConnection,
but that's about it.  For those of you trying to integrate older swf
content, it has become much harder to do.  You can use a proxy AS2 swf
to communicate to your older content.  That way you only have to tweak
the one proxy swf instead of rebuild all of your older content.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of droponrcll
Sent: Monday, October 01, 2007 11:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: MultiPurpose ItemRenderer

 

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> This renderer is based on VBox which is a container and is a bit
> "heavy". I'm guessing that since you are showing movies that there
> aren't too many of them, but if there were, you might eventually run
> into performance issues. Lean-and-mean renderers are almost always
> written in Actionscript. On my blog (blogs.adobe.com/aharui) I have
> some examples.
> 
> 
> 
> This renderer also uses states w/o transitions just to switch 
between
> two views. Renderers get recycled as you scroll and the state 
switching
> could be expensive since add/remove is slower than changing the 
visible
> flag.
> 
> 
> 
> Because you used a container and are using databinding to fill out 
the
> fields, you probably don't need to override the data setter at all
> because commitProperties is probably not needed (in fact, you didn't
> implement and override). You also probably do not have to 
implement a
> mapping to your value object. You'll save a few microseconds here 
and
> there by doing so, but may not be worth the effort.
> 
> 
> 
> Thus, in its most reduced form, this renderer could look more like 
this
> (you might need some code for positioning and sizing):
> 
> 
> 
> http://www.adobe.com/2006/mxml
 
>  > "
width="100" 
> height="120" 
> horizontalScrollPolicy="off" verticalScrollPolicy="off" 
> borderStyle="solid" >
> 
> 
> 
>  source="{'images/'+ data.img}" scaleContent="true" height="95%" 
> width="95%" visible="{data.img.length > 0}" x="?" y="?" />
> 
>  textAlign="center"/>
>  source="{'movies/'+data.swf}" maintainAspectRatio="true" 
width="95%" 
> height="95%" scaleContent="true" visible="{data.swf.length > 0}" />
> 

I'm using a mapping to my MediaElement object because that object is 
contained in the source ArrayCollection and is also used to drive 
the "large" image viewer. The stop action doesn't actually work on 
Flash 6 files, which these have to be because they also need to run 
in Authorware, which hasn't had an upgrade to its Flash Xtra in about 
5 years and never will now. It doesn't seem that you can actually 
get older Flash movies to stop from Flex without adding functionality 
and recompiling. I have to say that it seems that silly things like 
effects have been made easy in Flex, yet serious things, like 
controlling older swfs easily, have been made seriously difficult.

You also forget that part of the goal is to be able to use the 
component _not_ as an ItemRenderer, or as an ItemRenderer where it is 
being called from a Repeater component. So while you can just look 
at data directly, what then happens when you go to use it not as an 
itemrenderer?

My understanding is if you set a component's visible property to 
false, it will still take up space on the screen as if it were 
visible, so I'm a bit unsure of what you're doing here.

-Amy

 



[flexcoders] Re: Placement of Image within Image Control

2007-10-01 Thread droponrcll
--- In flexcoders@yahoogroups.com, "Daniel Freiman" <[EMAIL PROTECTED]> 
wrote:
>
> On inspection it looks like I did what Alex is talking about.
> I'm a little confused at the sliding image issue.  In my experience 
the
> loaded images are placed in the top left corner of the Image 
control unless
> you explicitly do something else.

Well, that is what it looked like at first, but what actually seems 
to happen is that the placement is quite arbitrary.  The same image 
will always have the same placement, but two images of a similar size 
might have different placements.  For instance if I have an image 
that is 300x100 and one that is 275x100, one of them will be at the 
top, the other at the bottom.

I find myself mystified as to why the image control doesn't just have 
properties that let you specify where the content is.  In Authorware, 
when you import an image there's a little grid that lets you choose 
one of 9 placements for the image relative to where you imported it.  
This is great when you're replacing imported content dynamically, 
because you can align it how you want.


> You should be able to fit the Image control to the loaded image 
perfectly by
> doing something like this:
> 
> image.width = image.content.width;
> image.height = image.content.height;
> image.content.x = 0;
> image.content.y = 0;

Could that potentially make the content rescale again, resulting in 
an endless loop?

Thanks!



[flexcoders] Detecting component name while rollOver mouse to it

2007-10-01 Thread flexawesome
Hi there,

Is there a way to detect component type name such as
button/panel/CheckBox... while user rollOver it to the component?

Any suggestion? 

THANKS



[flexcoders] Re: ResizeEvent.RESIZE Not Very Smart?

2007-10-01 Thread Matt
> scrollPolicy="auto"  Scrollbars are not factored into the measured size
> and if forced to appear will clip content, except for the list classes
> which will try to resize the width of the content.

That actually isn't always true from what I've seen. If the content is
set to something like 100% width then it doesn't clip but rather
resizes the content. That's actually what I'm experiencing in this
case because obviously if I have it set to be a percentage it
shouldn't ever be clipping.



[flexcoders] Re: Placement of Image within Image Control

2007-10-01 Thread droponrcll
--- In flexcoders@yahoogroups.com, "Mike Krotscheck" <[EMAIL PROTECTED]> 
wrote:
>
> Have you tried scaleContent = true ?

Yes.



Re: [flexcoders] Re: Placement of Image within Image Control

2007-10-01 Thread Daniel Freiman
On inspection it looks like I did what Alex is talking about.
I'm a little confused at the sliding image issue.  In my experience the
loaded images are placed in the top left corner of the Image control unless
you explicitly do something else.
You should be able to fit the Image control to the loaded image perfectly by
doing something like this:

image.width = image.content.width;
image.height = image.content.height;
image.content.x = 0;
image.content.y = 0;

- Dan Freiman

On 10/1/07, droponrcll <[EMAIL PROTECTED]> wrote:
>
>   --- In flexcoders@yahoogroups.com , "Alex
> Harui" <[EMAIL PROTECTED]> wrote:
> >
> > All children are sized and positioned by their parent based on
> explicit
> > or measured width/height. Images are extra tough because their size
> > isn't known at first measure since the bits aren't fully loaded yet.
> > Personally, I would just adjust its position when the "complete' event
> > fires, but I also would expect the Container to handle this
> > automatically. However, I've recommended you use Canvas so then you
> > will have to position manually. If you decide to stick with boxes, we
> > can look into this in more detail.
>
> All I'd be positioning manually inside the canvas would be the image
> control itself, which doesn't help. The image is sliding all over the
> place within the image control as different images are loaded. Some at
> the top, some at the bottom, some at the left, some in the center, etc.
>
> Thanks.
>
>  
>


Re: [Flexcoders]: Flex site not loading in Internet Explorer 6 (IE6)

2007-10-01 Thread kutti kumar
*u have installed activeX player or update the version 9*

*ok

*

On 10/1/07, devenhariyani <[EMAIL PROTECTED]> wrote:
>
>   No, I do not have Real Player installed on my machine.
>
> --- In flexcoders@yahoogroups.com , "Arpit
> Mathur" <[EMAIL PROTECTED]>
> wrote:
> >
> > Do you have real player installed? Real Player sometimes ends up
> breaking
>
> 
>



-- 
V.Kumar
Broadcast Engineering Consultants India Ltd,
New Delhi.
cell no : 09968063987


[flexcoders] Re: dataGrid Printing: validNexPage always TRUE

2007-10-01 Thread hammer995
I have.  The grid is a search result.  So, if I query for something
that takes up more than two pages then the result is the footer gets
printer on the second page, but a third page prints out with just the
footer.

I've also tried it with just 10 rows of datathe second page in
that case will just be the footer.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Maybe a bug on a boundary condition.  Try changing the size of the PDG
> and see if that makes a difference.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of hammer995
> Sent: Monday, October 01, 2007 10:56 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: dataGrid Printing: validNexPage always TRUE
> 
>  
> 
> I should clarify that I do get a false from validNextPage but it seems
> to be after all the data has been printed. I then get an extra page
> with just the footer.
> 
> --- In flexcoders@yahoogroups.com 
> , "hammer995"  wrote:
> >
> > So I followed the example from the docs to print a datagrid. For some
> > reason I always get validNextPage to be true even when there is not
> > enough data to fill a page. 
> > 
> > The example works fine but I cannot get it to work with my
> application.
> > 
> > Here is the code:
> > private function printExecution():void {
> > var printJob:FlexPrintJob = new FlexPrintJob;
> > 
> > if ( printJob.start() ) {
> > var thePrintView:FormPrintView = new FormPrintView();
> > thePrintView.visible = false;
> > thePrintView.includeInLayout = false;
> > Application.application.addChild(thePrintView);
> > 
> > thePrintView.width = printJob.pageWidth;
> > thePrintView.height = printJob.pageHeight;
> > 
> > thePrintView.acct = acctArray[accts.selectedIndex]; 
> > 
> > thePrintView.fromDate = df.format(fromDate.selectedDate);
> > thePrintView.toDate = df.format(toDate.selectedDate);
> > thePrintView.totalTrades = numFmt.format(totalTrades);
> > thePrintView.totalQty = numFmt.format(totalQty);
> > thePrintView.totalComm = total.format(totalComm);
> > thePrintView.dg_printDG.dataProvider =
> > dg_report.dataProvider; 
> > 
> > thePrintView.showPage("single"); 
> > thePrintView.footer.includeInLayout = true;
> > thePrintView.footer.visible = true; 
> > 
> > trace("VALIDNEXTPAGE1 = " +
> > thePrintView.dg_printDG.validNextPage)
> > if (!thePrintView.dg_printDG.validNextPage) { 
> 
> > printJob.addObject(thePrintView);
> > } else {
> > thePrintView.showPage("first");
> > printJob.addObject(thePrintView);
> > thePrintView.pageNumber++;
> > 
> > while(true) {
> > thePrintView.dg_printDG.nextPage(); 
> > thePrintView.showPage("last");
> > trace("VALIDNEXTPAGE2 = " +
> > thePrintView.dg_printDG.validNextPage)
> > if (!thePrintView.dg_printDG.validNextPage) { 
> > 
> > printJob.addObject(thePrintView);
> > break;
> > } else {
> > thePrintView.showPage("middle");
> > printJob.addObject(thePrintView);
> > thePrintView.pageNumber++;
> > trace("PAGE = " + thePrintView.pageNumber);
> > }
> > }
> > }
> > Application.application.removeChild(thePrintView);
> > }
> > printJob.send();
> > }
> > 
> > 
> > Any help would be appreciated...I've been banging my head for a few
> > days now.
> > 
> > thanks!
> >
>




RE: [flexcoders] Re: Placement of Image within Image Control

2007-10-01 Thread Mike Krotscheck
Have you tried scaleContent = true ?

 

Michael Krotscheck

Senior Developer

 
RESOURCE INTERACTIVE

 www.resource.com  

[EMAIL PROTECTED]  



This email and any of its attachments may contain Resource Interactive
proprietary information, which is privileged, confidential and may be
subject to copyright or other intellectual property rights belonging to
Resource Interactive. This email is intended solely for the use of the
individual or entity to which it is addressed. If you are not the
intended recipient of this email, you are hereby notified that any
dissemination, distribution, copying or action taken in relation to the
contents of and attachments to this email is strictly prohibited and may
be unlawful. If you have received this email in error, please notify the
sender immediately and permanently delete the original and any copy of
this email and any printout.




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of droponrcll
Sent: Monday, October 01, 2007 2:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Placement of Image within Image Control

 

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> All children are sized and positioned by their parent based on 
explicit
> or measured width/height. Images are extra tough because their size
> isn't known at first measure since the bits aren't fully loaded yet.
> Personally, I would just adjust its position when the "complete' event
> fires, but I also would expect the Container to handle this
> automatically. However, I've recommended you use Canvas so then you
> will have to position manually. If you decide to stick with boxes, we
> can look into this in more detail.

All I'd be positioning manually inside the canvas would be the image 
control itself, which doesn't help. The image is sliding all over the 
place within the image control as different images are loaded. Some at 
the top, some at the bottom, some at the left, some in the center, etc.

Thanks.

 



[flexcoders] fade from tile view to list view not smooth

2007-10-01 Thread dbronk
I have a viewstack.  One one is a tile, the other a datagrid.  Both
have the same dataprovider.  I set each in the viewstack with:
showEffect="Fade" hideEffect="Fade".  The fade out/in works fine with
everything in the view except the text.  How come the text in the tile
and datagrid does not fade with everything else?  Kind of ruins the
effect.  Suggestions or advice?

Thanks,
Dale



[flexcoders] Re: Placement of Image within Image Control

2007-10-01 Thread droponrcll
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> All children are sized and positioned by their parent based on 
explicit
> or measured width/height.  Images are extra tough because their size
> isn't known at first measure since the bits aren't fully loaded yet.
> Personally, I would just adjust its position when the "complete' event
> fires, but I also would expect the Container to handle this
> automatically.  However, I've recommended you use Canvas so then you
> will have to position manually.  If you decide to stick with boxes, we
> can look into this in more detail.

All I'd be positioning manually inside the canvas would be the image 
control itself, which doesn't help.  The image is sliding all over the 
place within the image control as different images are loaded.  Some at 
the top, some at the bottom, some at the left, some in the center, etc.

Thanks.



[flexcoders] Re: MultiPurpose ItemRenderer

2007-10-01 Thread droponrcll
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> This renderer is based on VBox which is a container and is a bit
> "heavy".  I'm guessing that since you are showing movies that there
> aren't too many of them, but if there were, you might eventually run
> into performance issues.  Lean-and-mean renderers are almost always
> written in Actionscript.  On my blog (blogs.adobe.com/aharui) I have
> some examples.
> 
>  
> 
> This renderer also uses states w/o transitions just to switch 
between
> two views.  Renderers get recycled as you scroll and the state 
switching
> could be expensive since add/remove is slower than changing the 
visible
> flag.
> 
>  
> 
> Because you used a container and are using databinding to fill out 
the
> fields, you probably don't need to override the data setter at all
> because commitProperties is probably not needed (in fact, you didn't
> implement and override).  You also probably do not have to 
implement a
> mapping to your value object.  You'll save a few microseconds here 
and
> there by doing so, but may not be worth the effort.
> 
>  
> 
> Thus, in its most reduced form, this renderer could look more like 
this
> (you might need some code for positioning and sizing):
> 
>  
> 
> http://www.adobe.com/2006/mxml
>  " width="100" 
> height="120" 
> horizontalScrollPolicy="off" verticalScrollPolicy="off" 
> borderStyle="solid" >
> 
> 
> 
>  source="{'images/'+ data.img}" scaleContent="true" height="95%" 
> width="95%" visible="{data.img.length > 0}" x="?" y="?" />
> 
>  textAlign="center"/>
>  source="{'movies/'+data.swf}" maintainAspectRatio="true" 
width="95%" 
> height="95%" scaleContent="true" visible="{data.swf.length > 0}" />
> 

I'm using a mapping to my MediaElement object because that object is 
contained in the source ArrayCollection and is also used to drive 
the "large" image viewer.  The stop action doesn't actually work on 
Flash 6 files, which these have to be because they also need to run 
in Authorware, which hasn't had an upgrade to its Flash Xtra in about 
5 years and never will now.  It doesn't seem that you can actually 
get older Flash movies to stop from Flex without adding functionality 
and recompiling.  I have to say that it seems that silly things like 
effects have been made easy in Flex, yet serious things, like 
controlling older swfs easily, have been made seriously difficult.

You also forget that part of the goal is to be able to use the 
component _not_ as an ItemRenderer, or as an ItemRenderer where it is 
being called from a Repeater component.  So while you can just look 
at data directly, what then happens when you go to use it not as an 
itemrenderer?

My understanding is if you set a component's visible property to 
false, it will still take up space on the screen as if it were 
visible, so I'm a bit unsure of what you're doing here.

-Amy



RE: [flexcoders] Re: Changing Mouse Cursor in application

2007-10-01 Thread Alex Harui
You could detect if it is a button, but you're better off subclassing
the buttons and turning on buttonMode and useHandCursor there.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexawesome
Sent: Monday, October 01, 2007 10:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Changing Mouse Cursor in application

 

Alex, thanks for the reply. 

The only problem is I don't want to change the mouse cursor to hand
completely in my application. I only want to change the mouse cursor
to hand once user rollOver to links such as buttons or link buttons.

Huummm... Is there a way to detect the object is a button? if it is,
then change the mouse cursor? is that possible?

Cheers


--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Make a copy of the hand and use cursor manager?
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of flexawesome
> Sent: Monday, October 01, 2007 9:28 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Changing Mouse Cursor in application
> 
> 
> 
> guys, any suggestions? :)
> 
> Thanks
> 
> --- In flexcoders@yahoogroups.com


> , "flexawesome"  wrote:
> >
> > Hi there,
> > 
> > I build a application and would like to change the default mouse
> cursor
> > from the arrow cursor to a hand? I can reset buttonMode=true for all
> > components one by one. However, there is too much stuffs and
> > "impossible" manually do that.
> > 
> > Is there a way to apply this for all components(like
> > pic,button,link...etc) once user rollOver mouse to the target? Any
> > suggestion?
> > 
> > Thanks
> >
>

 



RE: [flexcoders] Re: dataGrid Printing: validNexPage always TRUE

2007-10-01 Thread Alex Harui
Maybe a bug on a boundary condition.  Try changing the size of the PDG
and see if that makes a difference.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hammer995
Sent: Monday, October 01, 2007 10:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: dataGrid Printing: validNexPage always TRUE

 

I should clarify that I do get a false from validNextPage but it seems
to be after all the data has been printed. I then get an extra page
with just the footer.

--- In flexcoders@yahoogroups.com 
, "hammer995" <[EMAIL PROTECTED]> wrote:
>
> So I followed the example from the docs to print a datagrid. For some
> reason I always get validNextPage to be true even when there is not
> enough data to fill a page. 
> 
> The example works fine but I cannot get it to work with my
application.
> 
> Here is the code:
> private function printExecution():void {
> var printJob:FlexPrintJob = new FlexPrintJob;
> 
> if ( printJob.start() ) {
> var thePrintView:FormPrintView = new FormPrintView();
> thePrintView.visible = false;
> thePrintView.includeInLayout = false;
> Application.application.addChild(thePrintView);
> 
> thePrintView.width = printJob.pageWidth;
> thePrintView.height = printJob.pageHeight;
> 
> thePrintView.acct = acctArray[accts.selectedIndex]; 
> 
> thePrintView.fromDate = df.format(fromDate.selectedDate);
> thePrintView.toDate = df.format(toDate.selectedDate);
> thePrintView.totalTrades = numFmt.format(totalTrades);
> thePrintView.totalQty = numFmt.format(totalQty);
> thePrintView.totalComm = total.format(totalComm);
> thePrintView.dg_printDG.dataProvider =
> dg_report.dataProvider; 
> 
> thePrintView.showPage("single"); 
> thePrintView.footer.includeInLayout = true;
> thePrintView.footer.visible = true; 
> 
> trace("VALIDNEXTPAGE1 = " +
> thePrintView.dg_printDG.validNextPage)
> if (!thePrintView.dg_printDG.validNextPage) { 

> printJob.addObject(thePrintView);
> } else {
> thePrintView.showPage("first");
> printJob.addObject(thePrintView);
> thePrintView.pageNumber++;
> 
> while(true) {
> thePrintView.dg_printDG.nextPage(); 
> thePrintView.showPage("last");
> trace("VALIDNEXTPAGE2 = " +
> thePrintView.dg_printDG.validNextPage)
> if (!thePrintView.dg_printDG.validNextPage) { 
> 
> printJob.addObject(thePrintView);
> break;
> } else {
> thePrintView.showPage("middle");
> printJob.addObject(thePrintView);
> thePrintView.pageNumber++;
> trace("PAGE = " + thePrintView.pageNumber);
> }
> }
> }
> Application.application.removeChild(thePrintView);
> }
> printJob.send();
> }
> 
> 
> Any help would be appreciated...I've been banging my head for a few
> days now.
> 
> thanks!
>

 



RE: [flexcoders] help with swf size problem in windows xp and vista

2007-10-01 Thread Alex Harui
There is no way to prevent asynchronous loading of images, and someday,
you will be glad for it.  I also can't guarantee that is your problem as
once the image is loaded it should force a resize, but this is the
second thread claiming this isn't working for them and I'm not sure why.
I would recommend adding trace statements to report the
measuredWidth/Height of the images and see if that is making a
difference.  Also make sure you've deployed the correct images to your
server and aren't serving thumbnails instead.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gustavo Duenas
Sent: Monday, October 01, 2007 9:00 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] help with swf size problem in windows xp and
vista

 

do you know how can I prevent that?

 

Regards

 

 

Gustavo

On Oct 1, 2007, at 11:53 AM, Alex Harui wrote:





 

When deployed over the web, image loading can take several frames and
the measured size ill be incorrect until complete event



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gustavo Duenas
Sent: Monday, October 01, 2007 7:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] help with swf size problem in windows xp and vista

Hi Friends I have a swf loader with an images as background for the
application, I have it that way because the loader is loading different

images based on the day. But my problems is when I publish my
application and I have this uploaded to the web and I've tried to see it
using windows based computers ( 1 win xp and one vista) the problem
starts with the size of the jpg, it appears to be smaller that it is and
even smaller as the way I set up , in my main application I've tried
setting the width and height to 1024 x 768 , but nothing happens, so
I've tried using percentages in the width and height like 100% and 100%
and everything is the same, I did the same with the swfloader and
nothing happens, so if you come with some idea I'd appreciate a lot.

Regards







Gustavo A. Duenas

 

 

 



RE: [flexcoders] Placement of Image within Image Control

2007-10-01 Thread Alex Harui
All children are sized and positioned by their parent based on explicit
or measured width/height.  Images are extra tough because their size
isn't known at first measure since the bits aren't fully loaded yet.
Personally, I would just adjust its position when the "complete' event
fires, but I also would expect the Container to handle this
automatically.  However, I've recommended you use Canvas so then you
will have to position manually.  If you decide to stick with boxes, we
can look into this in more detail.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of droponrcll
Sent: Monday, October 01, 2007 9:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Placement of Image within Image Control

 

I have an Image control that is supposed to be centered in a VBox. The 
problem is that the image file itself may be of varying dimensions and 
aspect ratios. When the image is smaller than the image control it is 
in, it is always at the top left of the image control container, 
causing it to look off center. Are there any properties on the image 
control itself that say where to position the image within its 
container?

Thanks.

 



RE: [flexcoders] Re: MultiPurpose ItemRenderer

2007-10-01 Thread Alex Harui
This renderer is based on VBox which is a container and is a bit
"heavy".  I'm guessing that since you are showing movies that there
aren't too many of them, but if there were, you might eventually run
into performance issues.  Lean-and-mean renderers are almost always
written in Actionscript.  On my blog (blogs.adobe.com/aharui) I have
some examples.

 

This renderer also uses states w/o transitions just to switch between
two views.  Renderers get recycled as you scroll and the state switching
could be expensive since add/remove is slower than changing the visible
flag.

 

Because you used a container and are using databinding to fill out the
fields, you probably don't need to override the data setter at all
because commitProperties is probably not needed (in fact, you didn't
implement and override).  You also probably do not have to implement a
mapping to your value object.  You'll save a few microseconds here and
there by doing so, but may not be worth the effort.

 

Thus, in its most reduced form, this renderer could look more like this
(you might need some code for positioning and sizing):

 

http://www.adobe.com/2006/mxml
 " width="100" 
height="120" 
horizontalScrollPolicy="off" verticalScrollPolicy="off" 
borderStyle="solid" >









 

HTH,

-Alex



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of droponrcll
Sent: Monday, October 01, 2007 9:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: MultiPurpose ItemRenderer

 

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Like I said, I'm trying to minimize my time per message and 
generally
> give short answers and leave out detail. Sounds like you're on 
your way
> and that's great.
> 
> 
> 
> Normally, though I don't override data getter/setters in my 
renderers.
> I map the data to a type in commitProperties. But there are 
exceptions
> to every rule... Nevertheless, I am concerned you haven't fully
> absorbed the "recipe" and maybe looking at your code will shed some
> light on it for you and others as there are things you can't do in 
the
> setter override that you should only do in commitProperties or 
later and
> thus your current recipe may not be cloneable on your next renderer.

http://www.adobe.com/2006/mxml
 " width="100" 
height="120" 
horizontalAlign="center" verticalAlign="middle" 
horizontalScrollPolicy="off" verticalScrollPolicy="off" 
borderStyle="solid" >


















 



[flexcoders] Re: Placement of Image within Image Control

2007-10-01 Thread droponrcll
--- In flexcoders@yahoogroups.com, "Daniel Freiman" <[EMAIL PROTECTED]> 
wrote:
>
> I think you're looking for the Image.content property (inherited 
from
> SWFLoader).  See the livedocs:
> http://livedocs.adobe.com/flex/201/langref/mx/controls/Image.html.  
The
> content is a child of the Image component (a light 
oversimplification here),
> and you should be able to set the x and y coordinates of the 
content to
> accomplish what you want.  If this doesn't work I'll look closer at 
my code
> to see how I did it.

OK, let me see if I understand what you are saying:

When the content of my image control changes, I capture that event 
and (somehow) reset the x and y of the content based on where it has 
wound up inside its bounding box to center it?  I would be _very_ 
grateful if you would look this up for me, since I've spent _way_ too 
much time on what was supposed to be a quick prototype.

Thanks.



Re: [flexcoders] Placement of Image within Image Control

2007-10-01 Thread Daniel Freiman
I think you're looking for the Image.content property (inherited from
SWFLoader).  See the livedocs:
http://livedocs.adobe.com/flex/201/langref/mx/controls/Image.html.  The
content is a child of the Image component (a light oversimplification here),
and you should be able to set the x and y coordinates of the content to
accomplish what you want.  If this doesn't work I'll look closer at my code
to see how I did it.

- Dan Freiman

On 10/1/07, droponrcll <[EMAIL PROTECTED]> wrote:
>
>   I have an Image control that is supposed to be centered in a VBox. The
> problem is that the image file itself may be of varying dimensions and
> aspect ratios. When the image is smaller than the image control it is
> in, it is always at the top left of the image control container,
> causing it to look off center. Are there any properties on the image
> control itself that say where to position the image within its
> container?
>
> Thanks.
>
>  
>


[flexcoders] Re: dataGrid Printing: validNexPage always TRUE

2007-10-01 Thread hammer995
I should clarify that I do get a false from validNextPage but it seems
to be after all the data has been printed. I then get an extra page
with just the footer.



--- In flexcoders@yahoogroups.com, "hammer995" <[EMAIL PROTECTED]> wrote:
>
> So I followed the example from the docs to print a datagrid.  For some
> reason I always get validNextPage to be true even when there is not
> enough data to fill a page. 
> 
> The example works fine but I cannot get it to work with my application.
> 
> Here is the code:
> private function printExecution():void {
>   var printJob:FlexPrintJob = new FlexPrintJob;
>   
>   if ( printJob.start() ) {
>   var thePrintView:FormPrintView = new FormPrintView();
>   thePrintView.visible = false;
>   thePrintView.includeInLayout = false;
>   Application.application.addChild(thePrintView);
>   
>   thePrintView.width = printJob.pageWidth;
>   thePrintView.height = printJob.pageHeight;
>   
>   thePrintView.acct = acctArray[accts.selectedIndex];
>   
>   thePrintView.fromDate = 
> df.format(fromDate.selectedDate);
>   thePrintView.toDate = df.format(toDate.selectedDate);
>   thePrintView.totalTrades = numFmt.format(totalTrades);
>   thePrintView.totalQty = numFmt.format(totalQty);
>   thePrintView.totalComm = total.format(totalComm);
>   thePrintView.dg_printDG.dataProvider =
> dg_report.dataProvider;  
>   
>   thePrintView.showPage("single");
>   thePrintView.footer.includeInLayout = true;
> thePrintView.footer.visible = true;  
> 
>   trace("VALIDNEXTPAGE1 = " +
> thePrintView.dg_printDG.validNextPage)
>   if (!thePrintView.dg_printDG.validNextPage) {

>   printJob.addObject(thePrintView);
>   } else {
>   thePrintView.showPage("first");
>   printJob.addObject(thePrintView);
>   thePrintView.pageNumber++;
>   
>   while(true) {
>   thePrintView.dg_printDG.nextPage(); 
> 
>   thePrintView.showPage("last");
>   trace("VALIDNEXTPAGE2 = " +
> thePrintView.dg_printDG.validNextPage)
>   if 
> (!thePrintView.dg_printDG.validNextPage) {
>   
>   
> printJob.addObject(thePrintView);
>   break;
>   } else {
>   thePrintView.showPage("middle");
>   
> printJob.addObject(thePrintView);
>   thePrintView.pageNumber++;
>   trace("PAGE = " + 
> thePrintView.pageNumber);
>   }
>   }
>   }
>   Application.application.removeChild(thePrintView);
>   }
>   printJob.send();
> }
> 
> 
> Any help would be appreciated...I've been banging my head for a few
> days now.
> 
> thanks!
>




RE: [flexcoders] Resource help for beginner

2007-10-01 Thread Tracy Spratt
It depends on how you like to learn.  Thre are certainly some excellent
AS3 books out there, anything involving Colin Moock is going to be good.
But I personally would not want to read "Essential Actionscript 3" cover
to cover.

 

I'd say do one or two tutorials, then start your own project.  Just have
the docs handy!

 

If you know any Javascript, Actionscript will be familiar.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Terri Jaskolka
Sent: Monday, October 01, 2007 12:07 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Resource help for beginner

 

Tracy, thanks for the reply. I have familiarized myself with the adobe
resources but appreciate the other links. A few look familiar, but it
would have taken me quite awhile to compile my own list, I'm sure.

 

Thank you also for the assurance that I can be successful without having
to worry about Flash (one thing at a time, lol!). 

 

I guess I really need to know where to get a good foundation in
ActionScript. I've been to actionscript.org 
and a few related sites but things seem to be in bits and pieces there
(or there's just too much to wade through when you don't know what
you're doing) and without the foundation to lay upon, I'm still a bit
lost. Any recommended books or sites? Thanks again. 

 

-Terri J.

 

On 10/1/07, Tracy Spratt <[EMAIL PROTECTED]
 > wrote: 

I am quite successful in Flex and have no Flash background.  Flash WOULD
be helpful if you are going to go deep into complex graphic behaviors, 
but is not at all necessary for creating business applications.

I do not know CF, but understand it integrates very well with Flex, and
there are many people using that configuration, and there are some
sites/blogs that specialize in it. 

Here is a partial list of Flex resources.

Tracy

Flex 2.x Resources

Flex sites/blogs:
Adobe:
http://www.adobe.com/devnet/flex/ 
DEVNET - start here! 
http://www.adobe.com/products/flex/productinfo/faq/
 
http://www.adobe.com/cfusion/communityengine/index.cfm?event=homepage&pr
 
oductId=2
http://blogs.adobe.com/  
http://weblogs.macromedia.com/mxna/
 
http://labs.adobe.com/  
http://labs.adobe.com/community/  
http://www.adobe.com/cfusion/exchange/index.cfm#loc=en_us&view=sn610&vie
 
wName=Adobe%20Exchange&avm=1
http://blogs.adobe.com/flexdoc/  
http://nondocs.blogspot.com/2007/04/metadatapercentproxy.html
 

Other:
http://www.searchcoders.com/flex/  
http://www.flexination.info  
http://flexibleexperiments.wordpress.com/2007/03/14/flex-20-primitive-ex
 
plorer/
http://www.scalenine.com  
http://www.flexcursion.com  
http://www.theflexshow.com  
http://www.JeffryHouser.com  
http://blog.digitalbackcountry.com/
 .
http://code.google.com/p/flexlib/  
http://flexbox.mrinalwadhwa.com/  
http://dougmccune.com/blog/  
http://www.cflex.net/  
http://www.quietlyscheming.com/blog/
 
http://www.everythingflex.com  
http://www.waldosmeets.com/  
http://www.jessewarden.com/  
http://www.cbetta.com/blog/   
http://www.cynergytv.com/  
http://www.flexdaddy.info/  
http://www.richinternet.de/blog/   
http://www.brightworks.com/technology/overview.html
 
http://www.crossdomainxml.org/  
http://flexsearch.org/  
http://labs.flexcoders.nl/  


Flex style Explorer:
http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplo
 
rer.html

Documentation:
http://www.adobe.com/support/documentation/en/flex/
 
http://livedocs.macromedia.com/flex/2/
 
http://www.adobe.com/cfusion/knowledgebase/index.cfm

Re: [flexcoders] Re: looking for a decent throbber

2007-10-01 Thread Troy Gilbert
> Thanks for the suggestion. I pursued this route for a little while
> (that's a neat site) but came up dry because I didn't want to pay for an
> animated GIF component (only one I found was payware) and the GIF to SWF
> converters I tried were all crummy.

Here's a free one: http://www.bytearray.org/?p=95

Troy.


[flexcoders] using "is" in Java getters

2007-10-01 Thread Kevin
Is this possible with Data managed objects?  We are having some  
issues with our data services throwing Hibernate "Property Access  
Exception" errors and one thing common to all these classes is that  
they use isEnabled for the boolean field 'enabled' rather than  
getEnabled.  (We are also using Hibernate with annotations.)

Has anyone has similar problems?  We are trying to isolate this issue.

Thanks, Kevin


[flexcoders] Re: Is it possible to get a list of Shared Local Objects from my domain ?

2007-10-01 Thread Doug Lowder
Assuming you can read directories on the local client system, then 
sure.  Take a look at how Darron Schall's SolVE program does it:

http://solve.sourceforge.net/


--- In flexcoders@yahoogroups.com, "helihobby" <[EMAIL PROTECTED]> wrote:
>
> Hello,
> 
> Is it possible to somehow get a list of all the available Shared 
Local 
> Objects that are saved on disk that belong to my domain ?
> 
> 
> Regards,
> 
> Sean.
> 
> Click below to view my ALON Design Pattern:
> 
> http://www.helihobby.com/html/alon_desingpattern.html
>




[flexcoders] dataGrid Printing: validNexPage always TRUE

2007-10-01 Thread hammer995
So I followed the example from the docs to print a datagrid.  For some
reason I always get validNextPage to be true even when there is not
enough data to fill a page. 

The example works fine but I cannot get it to work with my application.

Here is the code:
private function printExecution():void {
var printJob:FlexPrintJob = new FlexPrintJob;

if ( printJob.start() ) {
var thePrintView:FormPrintView = new FormPrintView();
thePrintView.visible = false;
thePrintView.includeInLayout = false;
Application.application.addChild(thePrintView);

thePrintView.width = printJob.pageWidth;
thePrintView.height = printJob.pageHeight;

thePrintView.acct = acctArray[accts.selectedIndex];

thePrintView.fromDate = 
df.format(fromDate.selectedDate);
thePrintView.toDate = df.format(toDate.selectedDate);
thePrintView.totalTrades = numFmt.format(totalTrades);
thePrintView.totalQty = numFmt.format(totalQty);
thePrintView.totalComm = total.format(totalComm);
thePrintView.dg_printDG.dataProvider =
dg_report.dataProvider;  

thePrintView.showPage("single");
thePrintView.footer.includeInLayout = true;
thePrintView.footer.visible = true;  

trace("VALIDNEXTPAGE1 = " +
thePrintView.dg_printDG.validNextPage)
if (!thePrintView.dg_printDG.validNextPage) {   

printJob.addObject(thePrintView);
} else {
thePrintView.showPage("first");
printJob.addObject(thePrintView);
thePrintView.pageNumber++;

while(true) {
thePrintView.dg_printDG.nextPage(); 

thePrintView.showPage("last");
trace("VALIDNEXTPAGE2 = " +
thePrintView.dg_printDG.validNextPage)
if 
(!thePrintView.dg_printDG.validNextPage) {


printJob.addObject(thePrintView);
break;
} else {
thePrintView.showPage("middle");

printJob.addObject(thePrintView);
thePrintView.pageNumber++;
trace("PAGE = " + 
thePrintView.pageNumber);
}
}
}
Application.application.removeChild(thePrintView);
}
printJob.send();
}


Any help would be appreciated...I've been banging my head for a few
days now.

thanks!



[flexcoders] Re: Changing Mouse Cursor in application

2007-10-01 Thread flexawesome
Alex, thanks for the reply. 

The only problem is I don't want to change the mouse cursor to hand
completely in my application. I only want to change the mouse cursor
to hand once user rollOver to links such as buttons or link buttons.

Huummm... Is there a way to detect the object is a button? if it is,
then change the mouse cursor? is that possible?

Cheers
 

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Make a copy of the hand and use cursor manager?
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of flexawesome
> Sent: Monday, October 01, 2007 9:28 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Changing Mouse Cursor in application
> 
>  
> 
> guys, any suggestions? :)
> 
> Thanks
> 
> --- In flexcoders@yahoogroups.com 
> , "flexawesome"  wrote:
> >
> > Hi there,
> > 
> > I build a application and would like to change the default mouse
> cursor
> > from the arrow cursor to a hand? I can reset buttonMode=true for all
> > components one by one. However, there is too much stuffs and
> > "impossible" manually do that.
> > 
> > Is there a way to apply this for all components(like
> > pic,button,link...etc) once user rollOver mouse to the target? Any
> > suggestion?
> > 
> > Thanks
> >
>




[flexcoders] How to validate multiple FormItems with one validator?

2007-10-01 Thread Mark Ingram
Hi, is it possible to use 1 validator to validate multiple form items? I
have a form with 7 items on it, 5 of which are required. But I don't
want to make 5 validators to check each individual item. Also, is there
a way of doing password validation (i.e. two text boxes equal each
other?)

 

Thanks,

 

Mark

 

 

 



RE: [flexcoders] Re: Changing Mouse Cursor in application

2007-10-01 Thread Alex Harui
Make a copy of the hand and use cursor manager?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexawesome
Sent: Monday, October 01, 2007 9:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Changing Mouse Cursor in application

 

guys, any suggestions? :)

Thanks

--- In flexcoders@yahoogroups.com 
, "flexawesome" <[EMAIL PROTECTED]> wrote:
>
> Hi there,
> 
> I build a application and would like to change the default mouse
cursor
> from the arrow cursor to a hand? I can reset buttonMode=true for all
> components one by one. However, there is too much stuffs and
> "impossible" manually do that.
> 
> Is there a way to apply this for all components(like
> pic,button,link...etc) once user rollOver mouse to the target? Any
> suggestion?
> 
> Thanks
>

 



[flexcoders] Re: run-time filtering on hierarchical AdvancedDataGrid?

2007-10-01 Thread Paul Dale
I was able to work around the missing openItems by listening to the
itemOpen and itemClose events and store the array on my own.
public function listenToOpenings(event:AdvancedDataGridEvent) : void {
openItems.push(event.item);
}
public function listenToClosings(event:AdvancedDataGridEvent) : void {
openItems = openItems.filter(function
filterOpenList(currentElement:*, index:int,arr:Array) : Boolean {
  return currentElement != event.item;
}) as Array;
}

I'm still curious what the logic behind removing it was. Is there a
new/different way to track open nodes now?

...paul

On 10/1/07, Paul Dale <[EMAIL PROTECTED]> wrote:
> I made some progress on my 'filtering hierarchical data' issue.
>
> Using a 'GroupingCollection' and calling 'refresh' on it whenever the
> text in the search box changed I was able to get a properly function
> serarch. However, in the new Beta 2 the 'openItems' property of the
> AdvancedDataGrid is gone.
>
> Can anyone 'in the know' comment on why it was removed? How should one
> keep a tree open after a 'refresh'?
>
> My test code below for anyone who is interested ...
>
> Paul
>
>
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute"
> applicationComplete="init()">
> 
> 
> 
> 
> 
>  change="updateFilter()"/>
> 
>
>  creationComplete="groupedData.refresh()" x=" 29.5" y="26" width="555"
> height="377">
> 
> 
>
> 
> 
> 
> 
> 
>  dataField="Estimate" operation="SUM" label="Budget"/>
>  dataField="Actual" operation="SUM" />
> 
> 
> 
> 
> 
> 
> 
> 
>  "Territory Rep" dataField="Territory_Rep"/>
>  dataField="Budget"/>
>  dataField="Actual"/>
> 
> 
>
> 
>


[flexcoders] Re: Changing Mouse Cursor in application

2007-10-01 Thread flexawesome
guys, any suggestions? :)

Thanks

--- In flexcoders@yahoogroups.com, "flexawesome" <[EMAIL PROTECTED]> wrote:
>
> Hi there,
> 
> I build a application and would like to change the default mouse cursor
> from the arrow cursor to a hand? I can reset buttonMode=true for all
> components one by one. However, there is too much stuffs and
> "impossible" manually do that.
> 
> Is there a way to apply this for all components(like
> pic,button,link...etc) once user rollOver  mouse to the target? Any
> suggestion?
> 
> Thanks
>




Re: [flexcoders] File Upload Error in mozilla

2007-10-01 Thread Kelly Birr
I spent a long time on a very siilar problem in the early days of Flex 
2.  After hours of intercepting and reviewing HTTP(s) requests, the only 
diffrence I've noticed between Mozilla and IE with Flex file uploads is 
that Mozilla does not send *any* cookies to the server on the data 
post.  Therefore you will not be able to use cookie-based authentication 
or session state on the server side.

I worked around this by adding soem values to the querystring of the 
file post url and creating a special server side module to handle this.  
My code is .NET/IIS so i doubt it would help you, but I hope a bit more 
insight into the problem may.

- Kelly

nsmmilind2002 wrote:
> Hi All, 
>
> I am facing issue with Mozilla Firefox browser on https.  
> We have Flex application hosted in tomcat secured mode (https) in 
> which we provide the functionality of upload .csv file. Which works 
> fine in IE but the same is not working in Mozilla it giving me the 
> following error? 
>
> Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O 
> Error. 
> at com.datki.fileio::FileUpload/initBrouseDlg() 
> at UserManagement/::showWarning() 
> at flash.events::EventDispatcher/ 
> flash.events:EventDispatcher::dispatchEventFunction() 
> at flash.events::EventDispatcher/dispatchEvent() 
> at mx.core::UIComponent/dispatchEvent() 
> at mx.controls.alertClasses::AlertForm/::removeAlert() 
> at mx.controls.alertClasses::AlertForm/::clickHandler() 
>
>
> After some investigation I found some information on web which says 
> this is some problem related to browser cookies but even after making 
> the changes suggested over there It still not working in Mozilla and 
> throwing the same error. Please check the following link 
> http://thanksmister.com/?p=59
>  
> As File upload is very common functionality, therefore there should 
> be some solution on it. 
>
> Can anyone help me out to resolve the issue of file uploading in 
> Mozilla browser in security mode (htts). 
>
> - Milind 
>
>
>
>
>
>
> --
> 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] Resource help for beginner

2007-10-01 Thread Terri Jaskolka
Tracy, thanks for the reply. I have familiarized myself with the adobe
resources but appreciate the other links. A few look familiar, but it would
have taken me quite awhile to compile my own list, I'm sure.

Thank you also for the assurance that I can be successful without having to
worry about Flash (one thing at a time, lol!).

I guess I really need to know where to get a good foundation in
ActionScript. I've been to actionscript.org and a few related sites but
things seem to be in bits and pieces there (or there's just too much to wade
through when you don't know what you're doing) and without the foundation to
lay upon, I'm still a bit lost. Any recommended books or sites? Thanks
again.

-Terri J.


On 10/1/07, Tracy Spratt <[EMAIL PROTECTED]> wrote:
>
> I am quite successful in Flex and have no Flash background.  Flash WOULD
> be helpful if you are going to go deep into complex graphic behaviors,
> but is not at all necessary for creating business applications.
>
> I do not know CF, but understand it integrates very well with Flex, and
> there are many people using that configuration, and there are some
> sites/blogs that specialize in it.
>
> Here is a partial list of Flex resources.
>
> Tracy
>
> Flex 2.x Resources
>
> Flex sites/blogs:
> Adobe:
> http://www.adobe.com/devnet/flex/   DEVNET - start here!
> http://www.adobe.com/products/flex/productinfo/faq/
> http://www.adobe.com/cfusion/communityengine/index.cfm?event=homepage&pr
> oductId=2
> http://blogs.adobe.com/
> http://weblogs.macromedia.com/mxna/
> http://labs.adobe.com/
> http://labs.adobe.com/community/
> http://www.adobe.com/cfusion/exchange/index.cfm#loc=en_us&view=sn610&vie
> wName=Adobe%20Exchange&avm=1
> http://blogs.adobe.com/flexdoc/
> http://nondocs.blogspot.com/2007/04/metadatapercentproxy.html
>
> Other:
> http://www.searchcoders.com/flex/
> http://www.flexination.info
> http://flexibleexperiments.wordpress.com/2007/03/14/flex-20-primitive-ex
> plorer/
> http://www.scalenine.com
> http://www.flexcursion.com
> http://www.theflexshow.com
> http://www.JeffryHouser.com
> http://blog.digitalbackcountry.com/ .
> http://code.google.com/p/flexlib/
> http://flexbox.mrinalwadhwa.com/
> http://dougmccune.com/blog/
> http://www.cflex.net/
> http://www.quietlyscheming.com/blog/
> http://www.everythingflex.com
> http://www.waldosmeets.com/
> http://www.jessewarden.com/
> http://www.cbetta.com/blog/
> http://www.cynergytv.com/
> http://www.flexdaddy.info/
> http://www.richinternet.de/blog/
> http://www.brightworks.com/technology/overview.html
> http://www.crossdomainxml.org/
> http://flexsearch.org/
> http://labs.flexcoders.nl/
>
>
> Flex style Explorer:
> http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplo
> rer.html
>
> Documentation:
> http://www.adobe.com/support/documentation/en/flex/
> http://livedocs.macromedia.com/flex/2/
> http://www.adobe.com/cfusion/knowledgebase/index.cfm
>
> Lists:
> http://www.adobe.com/cfusion/webforums/forum/index.cfm?forumid=60
> http://groups.yahoo.com/group/flexcoders/
> http://groups.yahoo.com/group/flexcomponents/
>
> Bugs/enhancement requests:
> http://www.adobe.com/go/wish
>
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Terri J.
> Sent: Sunday, September 30, 2007 10:43 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Resource help for beginner
>
> Hi, I am new to Flex and am approaching it as a ColdFusion user. I have
> minimal programming knowledge but am willing to learn, I just need to
> know
> where to start. In reading through the postings, I see I am in way over
> my
> head at the moment and would like to know what would be best for me to
> learn
> about to better grasp and use the capabilities Flex will give my
> ColdFusion
> base. It appears from my reading in this group that a good knowledge of
> ActionScript is called for. Is this correct or have I misunderstood this
> as
> well? I am not terribly interested in Flash and it seems many are
> approaching problems from that point of view, should I extend my
> learning in
> that direction or can I get by with CF and Flex alone? Thanks for any
> pointers and here's hoping I'm not biting off more than I can chew. :)
>
> -Terri J.
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.488 / Virus Database: 269.13.33/1036 - Release Date:
> 9/28/2007
> 3:40 PM
>
>
>
>
> --
> 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
>
>
>
>


[flexcoders] Re: MultiPurpose ItemRenderer

2007-10-01 Thread droponrcll
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Like I said, I'm trying to minimize my time per message and 
generally
> give short answers and leave out detail.  Sounds like you're on 
your way
> and that's great.
> 
>  
> 
> Normally, though I don't override data getter/setters in my 
renderers.
> I map the data to a type in commitProperties.  But there are 
exceptions
> to every rule...  Nevertheless, I am concerned you haven't fully
> absorbed the "recipe" and maybe looking at your code will shed some
> light on it for you and others as there are things you can't do in 
the
> setter override that you should only do in commitProperties or 
later and
> thus your current recipe may not be cloneable on your next renderer.

http://www.adobe.com/2006/mxml"; width="100" 
height="120" 
horizontalAlign="center" verticalAlign="middle" 
horizontalScrollPolicy="off" verticalScrollPolicy="off" 
borderStyle="solid" >




















[flexcoders] Placement of Image within Image Control

2007-10-01 Thread droponrcll
I have an Image control that is supposed to be centered in a VBox.  The 
problem is that the image file itself may be of varying dimensions and 
aspect ratios.  When the image is smaller than the image control it is 
in, it is always at the top left of the image control container, 
causing it to look off center.  Are there any properties on the image 
control itself that say where to position the image within its 
container?

Thanks.



RE: [flexcoders] it possible in Flex/Apollo - Dynamic SWF Generation?

2007-10-01 Thread Alex Harui
See SWFLoader and modules

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kutti.kumar
Sent: Monday, October 01, 2007 1:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] it possible in Flex/Apollo - Dynamic SWF
Generation?

 

hi,
i am new to flex . i have two more components(canvas or panel 
or textarea ) in my single flex application. 

i have script inside multiple child dynamic canvas or panel or 
textarea add for main component.

can i create each canvas [or panel or textarea] a separate swf? . it 
is possible in flex/Apollo?

that i can use it separately for my web application project .

Kutti

 



[flexcoders] Access LCDS Hibernate SessionFactory in Java

2007-10-01 Thread Kevin
Here is what we are trying to do:

We have a DataServices application using Hibernate.  Most updates to  
the data is made through changing properties in Flex.  However, there  
are some times we would like to update our objects in Java directly  
using remoting calls.  Is it possible to access the same LCDS  
Hibernate SessionFactory that we use for our manage data operations  
in our RemoteObject calls?

Thanks, Kevin


RE: [flexcoders] help with swf size problem in windows xp and vista

2007-10-01 Thread Alex Harui
When deployed over the web, image loading can take several frames and
the measured size ill be incorrect until "complete" event

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gustavo Duenas
Sent: Monday, October 01, 2007 7:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] help with swf size problem in windows xp and vista

 

Hi Friends I have a swf loader with an images as background for the
application, I have it that way because the loader is loading different 

images based on the day. But my problems is when I publish my
application and I have this uploaded to the web and I've tried to see it
using windows based  computers ( 1 win xp and one vista) the problem
starts with the size of the jpg, it appears to be smaller that it is and
even smaller as the way I set up , in my main application I've tried
setting the width and height to 1024 x 768 , but nothing happens, so
I've tried using percentages in the width and height like 100% and 100%
and everything is the same, I did the same with the swfloader and
nothing happens, so if you come with some idea I'd appreciate a lot.

 

 

Regards

 

 






Gustavo A. Duenas

 

 



RE: [flexcoders] Freeze Flex Application

2007-10-01 Thread Alex Harui
You can stopImmediatePropagation on key events in capture phase.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Monday, October 01, 2007 8:19 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Freeze Flex Application

 

Display a transparent or semitransparent component covering the entire
app.  This is how "modal" popups work.

 

It will not block any processing, but will prevent user interaction.
Hmm, don't know about keyboard interaction...

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin
Sent: Monday, October 01, 2007 11:06 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Freeze Flex Application

 

Actually your comment below "they can't cancel or navigate elsewhere" is
precisely what I want.  The only time this is being used in my app is to
completely freeze out a user by an administrator.  I am using managed
DataServices and thus if an administrator changes the UserVO value
'enabled' to false then that value pushes through to that users
computer.  I have set up ObserveValue at the root of the application to
look for that change on the model and if it registers it then I want to
display an alert and then freeze the entire application, forcing the
user to navigate away.  I guess I could just build in a URL redirect and
get the same effect.  I was just wondering if how I could freeze the
app.  Sounds like it is possible, but not easy.

 

- Kevin

 

On Oct 1, 2007, at 2:49 AM, Alex Harui wrote:



Because Flash is a single-threaded runtime, freezing is a bad
thing, you can't interact with the app at all, and eventually you'll get
an timeout error.  Your users will be frustrated that they can't cancel
or navigate elsewhere in your app.

 








.

 
  




 

 



RE: [flexcoders] Freeze Flex Application

2007-10-01 Thread Alex Harui
To be more specific, the AS execution model is single threaded.  There
is no api for making or synchin threads.  The player itself has threads,
and uses  asynch i/o from the os, but everything is eventually handled
in order by the single AS thread

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Dale
Sent: Monday, October 01, 2007 8:16 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Freeze Flex Application

 


Hmm ... flash is single threaded? How do the asynchronous events and
event_listeners work in a single thread? Is there something like
interrupts?

...paul

On 10/1/07, Alex Harui <[EMAIL PROTECTED]  >
wrote:

Because Flash is a single-threaded runtime, freezing is a bad thing, you
can't interact with the app at all, and eventually you'll get an timeout
error.  Your users will be frustrated that they can't cancel or navigate
elsewhere in your app.

 

When will it be ok to show those popups?  You want to include that
functionality in your observeValue callback.  You can use callLater to
have your callback called repeatedly until the criteria becomes true,
but hopefully there's some other event that you can wait for instead.

 



From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com
 ] On Behalf Of Kevin
Sent: Sunday, September 30, 2007 8:07 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Freeze Flex Application

 

the main problem I am having right now is that I have some popups that
get created using the ObserveValue tags.  I would like to be able to
prevent these popups, but the problem is that once the values come back
from DataServices in the background, they are being called via the
ObserveValue binding...

 

- kevin

 

 

 

 

 

On Sep 30, 2007, at 9:39 PM, Alex Harui wrote:

 

 

Therer is no one api.  What do you want to prevent?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin
Sent: Sunday, September 30, 2007 2:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Freeze Flex Application

 

Is there a way to freeze a flex application so that nothing can be 
executed both from a UI perspective and behind the scenes? I can 
create a modal Alert or PopUp to block user input, but I notice that 
code still get's executed behind the scenes and thus anything already 
initiated will get completed. I would like to be able halt all 
processes if possible.

- Kevin

 

 

 

 

 



  1   2   >