Re: [flexcoders] Flex developer and their hourly rate

2008-11-03 Thread Rich Rodecker
That's always a hard question, and mostly depends on a few major points:
 location, experience, and additional skill set. SF, and just about every
major city is definitely going to get you a higher rate than say, Tennessee.
 How is your portfolio?  If you have an impressive body of work that will
also increase your value. On top of that, if your a flex developer that is
highly skilled in additional areas, or have alot of experience building
enterprise-level apps, that will also increase your value.
All that being said, I don't know :) Though I'd esitmate you're going to be
somewhere around $100/hr.



On Mon, Nov 3, 2008 at 12:56 PM, hworke <[EMAIL PROTECTED]> wrote:

>
>
> Hi Devs,
>
> I do not have any idea about the market hourly
> rate that a Flex developer with 3 years experience
> charges in San Francisco bay area charges. Can
> someone please give me some idea?
>
> Best regards,
>
>  
>


[flexcoders] Re: sqlite insert issue

2008-11-03 Thread jason_williams_mm
--- In flexcoders@yahoogroups.com, "Johannes Nel" <[EMAIL PROTECTED]> 

The confusion here is due to the affinities that you have selected.
When the AIR embedded db cannot find the affinity specified it
defaults to NUMERIC.  There is no affinity called "timestamp" (or
"bigint" for that matter) and you are left with a NUMERIC affinity. 
In this case the string value of "2008-08..." is being inserted into a
field in which a NUMERIC value is expected.  The embedded db in the
AIR runtime makes an attempt to convert that string into the desired
value, however, a conversion isn't possible, and the result is the
error you see.  Why does this work in SQLite? In the SQLite db
affinities are not enforced, so when the attempt to convert fails the
string value is inserted as is.

If you change the affinity specified here to DATE you will get what
you expect, and additionally, when you select the value back out you
will get an AS3 Date object. 

jw

wrote:
>
> Hi All
> I have a sql statement which runs sans any issues in my sqlite
viewer, but
> when executed from within air it gives me the error
> SQLError: 'Error #3132: Data type mismatch.', details:'could not convert
> text value to numeric value.'
> this is the table schema
> CREATE TABLE category (
> id bigint NOT NULL,
> "version" integer NOT NULL,
> name character varying(255),
> ordering integer NOT NULL,
> "external" boolean NOT NULL,
> createddate timestamp without time zone,
> modifieddate timestamp without time zone,
> createdby_id bigint,
> modifiedby_id bigint
> );
> and here is the sql statement
> insert into category(id, version, name, ordering, external, createddate,
> modifieddate, createdby_id, modifiedby_id) values
> (477,14,'Leads',0,'false',NULL,'2008-08-19 16:46:54.26',NULL,1109);
> 
> any ideas?
> i find it really weird that this works on a SQLite level, but not
from AS.
> 
> johan
> 
> 
> -- 
> j:pn
> \\no comment
>




RE: [flexcoders] Identifying which node is the drop target on Grouped ADG

2008-11-03 Thread Alex Harui
I don't have time to see if ADG overrode this, but for regular DG, you could 
call calculateDropIndex

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Adrian 
Williams
Sent: Monday, November 03, 2008 2:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Identifying which node is the drop target on Grouped ADG


Hi All,

Having a fun one here...I have two ADG's that each have a list of 
individuals, in a hierarchical grouping collection and have drag drop enabled 
between the two ADG's.  Basically the grouped ADG on the left shows people 
grouped by which project they are in...the one of the right shows people who 
haven't been added to any project.  The user is allowed to drag a person from 
the unassigned ADG on the right and drop them into a specific group (node) on 
the left.

The challenge I am having is identifying the drop target on the grouped 
collection.  Have tried everything from looking at event.currentTarget to 
checking the underlying dataprovider for the ADG to even assigning specific 
listeners to the "grouped" ADG all to no avail.  I can identify the information 
about the individual being moved into the groups via the 
dataprovider.selectedItem just fine.

How in the world do I identify which node of the grouped collection the 
person is being dropped into as well as their drop index?

Any help here is appreciated
Adrian



Re: [flexcoders] Re: How to test for object and do other things

2008-11-03 Thread Josh McDonald
When evaluate obj["foo"] and there's no "foo" field on "obj", you get
undefined.

And

*this[prop].text *

is the same as

*(this[prop]).text*

So when prop is the name of an invalid property (like "myInput6"), it's the
same as calling:
*
(undefined).text*

Which is never going to work.

Replace your test for

*if(this[prop].text)*

with

*if(prop in this)*

-Josh

On Tue, Nov 4, 2008 at 2:53 PM, timgerr <[EMAIL PROTECTED]> wrote:

> Thnaks for the help, here is the problem that I am getting.  I will
> show you my code:
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute" >
>
>
>
> 
>
>
>
> 
> 
>
> I get an error "ReferenceError: Error #1069: Property myInput6 not
> found on Objects and there is no default value."  Not sure whey
> myInput6 is being seen since I am doing the if statement.
>
> Any ideas?
>
> Thanks for the help
> timgerr
>
>
> --- In flexcoders@yahoogroups.com, Alex Harui <[EMAIL PROTECTED]> wrote:
> >
> > if(this[prop].text) {
> > trace('found');
> > this[prop].text = obj[prop];
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On Behalf Of timgerr
> > Sent: Monday, November 03, 2008 11:36 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] How to test for object and do other things
> >
> >
> > Hello all,
> > I have a question for ya, have an object and I want to test for a flex
> > ui component with that name. Here is what I am trying to do.
> >
> > I have these flex UI items:
> > 
> > 
> > 
> > 
> >
> > I have an object:
> > obj.myInput1 = 'Odd';
> > obj.myInput2 = 'Even';
> > obj.myInput3 = 'Odd';
> > obj.myInput4 = 'Even';
> > obj.myInput5 = 'Odd';
> > obj.myInput6 = 'Even';
> > obj.myInput7 = 'Odd';
> >
> > so I can do this to see what is in the object:
> > for (var prop:String in obj)
> > {
> > trace(prop, ' is ' + obj[prop]);
> > }
> >
> > and I will get:
> > myInput1 is Odd
> > myInput2 is Even
> > myInput3 is Odd
> > myInput4 is Even
> > myInput5 is Odd
> > myInput6 is Even
> > myInput7 is Odd
> >
> > Now I want to test to see if we have the textinput items for each
> > return of obj
> >
> > I want to do something like this:
> > for (var prop:String in obj)
> > {
> > trace(prop, ' is ' + obj[prop]);
> > if(prop.text) {
> > trace('found');
> > prop.text = obj[prop];
> > }
> > This should find
> > myInput1
> > myInput3
> > myInput5
> > myInput7
> >
> > and add the information in the object to the textinput items.
> >
> > but the problem is that the above code dosnt work, how can I do this?
> > Thanks for the help,
> > timgerr
> >
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


[flexcoders] Re: How to test for object and do other things

2008-11-03 Thread timgerr
Thnaks for the help, here is the problem that I am getting.  I will
show you my code:

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










I get an error "ReferenceError: Error #1069: Property myInput6 not
found on Objects and there is no default value."  Not sure whey
myInput6 is being seen since I am doing the if statement.

Any ideas?

Thanks for the help
timgerr 


--- In flexcoders@yahoogroups.com, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> if(this[prop].text) {
> trace('found');
> this[prop].text = obj[prop];
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of timgerr
> Sent: Monday, November 03, 2008 11:36 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How to test for object and do other things
> 
> 
> Hello all,
> I have a question for ya, have an object and I want to test for a flex
> ui component with that name. Here is what I am trying to do.
> 
> I have these flex UI items:
> 
> 
> 
> 
> 
> I have an object:
> obj.myInput1 = 'Odd';
> obj.myInput2 = 'Even';
> obj.myInput3 = 'Odd';
> obj.myInput4 = 'Even';
> obj.myInput5 = 'Odd';
> obj.myInput6 = 'Even';
> obj.myInput7 = 'Odd';
> 
> so I can do this to see what is in the object:
> for (var prop:String in obj)
> {
> trace(prop, ' is ' + obj[prop]);
> }
> 
> and I will get:
> myInput1 is Odd
> myInput2 is Even
> myInput3 is Odd
> myInput4 is Even
> myInput5 is Odd
> myInput6 is Even
> myInput7 is Odd
> 
> Now I want to test to see if we have the textinput items for each
> return of obj
> 
> I want to do something like this:
> for (var prop:String in obj)
> {
> trace(prop, ' is ' + obj[prop]);
> if(prop.text) {
> trace('found');
> prop.text = obj[prop];
> }
> This should find
> myInput1
> myInput3
> myInput5
> myInput7
> 
> and add the information in the object to the textinput items.
> 
> but the problem is that the above code dosnt work, how can I do this?
> Thanks for the help,
> timgerr
>




[flexcoders] AdvancedDataGrid not redrawing properly

2008-11-03 Thread Randy Martin
 

I have an AdvancedDataGrid in an application in one of the states. The first
time I display it, everything is fine. If I subsequently enter another state
and then redisplay the AdvancedDataGrid, it shows up with any borders or
grid lines. As soon as I populate it (assign a data provider), the borders
and grid lines reappear.

 

Anyone have any idea what's going on here?

 

TIA,

~randy

<>

[flexcoders] format code in FB3

2008-11-03 Thread vuthecuong

in eclipse (develop java), I just press ctrl+shift+F to format code.
So what is the equavalent one in FF3 IDE?
(in FF3 IDE, ctrl+shift+F open search box)
regards
-- 
View this message in context: 
http://www.nabble.com/format-code-in-FB3-tp20316059p20316059.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] MultipleEvents

2008-11-03 Thread Paul Andrews

  - Original Message - 
  From: Parkash 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, November 03, 2008 5:13 PM
  Subject: [flexcoders] MultipleEvents


  Hi every one i have one simple textfiled with focusout event  and button with 
click event.

  Now when i entered some text in textinput and when clicks on button , 
according to me two events shoud be dispatched at a time ( plz correct me i am 
wrong ), one textfield focusout and second button clicks event. but for some 
reason it dispatches only one event i.e focus out ca any one tell to to resolve 
this problem i want to dispatch both events @ the same time here os code sapmle.

Hi Parkash,

Normally you would get two events, but your test example actually stops the 
second event from happening!

If you click the button (without entering a text field) you get "1" in the 
Alert box -as expected.

If you put the cursor into a text field, and then click the button you get "2" 
in the alert box - as expected, but a second alert box doesn't appear with a 
"1" in it  - unexpected.

The reason is described in this abstract from the documentation about the 
"click" event:

"For a click event to occur, it must always follow this series of events in the 
order of occurrence: mouseDown event, then mouseUp. The target object must be 
identical for both of these events; otherwise the click event does not occur."

When you click on the button after putting the cursor into the textinput, at 
the start of the click the mouse is down over the button - this causes the text 
to lose focus and fire an event - so the Alert box is presented. By now the 
mouse is no longer over the original button and so the mouse down/mouse up 
sequence is broken for the button because a modal dialog has popped up so the 
click event is never fired.

If you replace the alert boxes with trace statements and run it through the 
debugger, you'll find it works as you expect it to..

Paul



  Thanks In Advance 

  Parkash ARjan



  

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

  

  

  


  

   


  


   

[flexcoders] Re: PyAMF and Google App Engine?

2008-11-03 Thread jason vancleave
this mentions it but I don't know if it uses it

http://gaeswf.appspot.com/


--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> I know this is a long-shot, but is anybody using PyAMF with Google App
> Engine (their cloud offering)? Any thoughts / links you could share?
> 
> -Josh
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> 
> Like the cut of my jib? Check out my Flex blog!
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
> :: http://flex.joshmcdonald.info/
> :: http://twitter.com/sophistifunk
>




RE: [flexcoders] Does UIComponent.measureHTMLText(htmlText) method takes TextFormat.blockIndent value into the account when calculating width value of TextLineMetrics object?

2008-11-03 Thread Gordon Smith
It sounds like a Player quirk that the Flex framework needs to work around. I 
think a fix went in to the measure() method of UITextFormat recently for a 
similar problem with 'indent'. You should file a bug. And if you file a patch, 
it is likely to get fixed sooner.

- Gordon

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andriy 
Panas
Sent: Monday, November 03, 2008 2:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Does UIComponent.measureHTMLText(htmlText) method takes 
TextFormat.blockIndent value into the account when calculating width value of 
TextLineMetrics object?


Hi all,

Accordingly to my tests, method "textField.getLineMetrics(0)" that
lays in the core of "UIComponent.measureHTMLText(htmlText)" returns
TextLineMetrics object with the value for the "width" property that is
calculated regardless from the value specified for
"textFormat.blockIndent" value applied to the textField in question.

Is that an intentional behavior?
--
Med venlig hilsen / Best regards
Andriy Panas
[EMAIL PROTECTED]



[flexcoders] PyAMF and Google App Engine?

2008-11-03 Thread Josh McDonald
I know this is a long-shot, but is anybody using PyAMF with Google App
Engine (their cloud offering)? Any thoughts / links you could share?

-Josh

-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] switch label to textinput

2008-11-03 Thread Darron Schall
A long time ago Ely Greenfield wrote about "In Place Editing"  
components on his site.  This should give you a good idea of how to  
accomplish what you're asking:


http://www.quietlyscheming.com/blog/components/ipe-controls/

-d

On Nov 3, 2008, at 4:55 PM, frosifer wrote:


Does the concept of ItemRenderers and ItemEditor apply outside of a
list-based control? What I would like is to have a label control (no
border, etc) display some text, and then allow the user to change this
text by making the label turn into a textinput control when it
receives focus. This is similar to the default behavior of strings in
editable datagrids, for example. But I do not want this to be inside a
grid, I want the label to be directly on a form/canvas. What is the
best way to do this? Do I actually need to come up with a custom
control that switches between the two components based on the focusin
and focusout events, or is there more built-in support for this  
behavior?








Re: [flexcoders] How to test for object and do other things

2008-11-03 Thread Josh McDonald
You want

this[prop].text

to get to the TextInputs.

Also, to see if there is a field "foo" on object "bar" use:

if ("foo" in bar)
{
   //...
}

-Josh

On Tue, Nov 4, 2008 at 9:55 AM, Alex Harui <[EMAIL PROTECTED]> wrote:

>  if(this[prop].text) {
> trace('found');
> this[prop].text = obj[prop];
>
>   *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *timgerr
> *Sent:* Monday, November 03, 2008 11:36 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] How to test for object and do other things
>
>
>
> Hello all,
> I have a question for ya, have an object and I want to test for a flex
> ui component with that name. Here is what I am trying to do.
>
> I have these flex UI items:
> 
> 
> 
> 
>
> I have an object:
> obj.myInput1 = 'Odd';
> obj.myInput2 = 'Even';
> obj.myInput3 = 'Odd';
> obj.myInput4 = 'Even';
> obj.myInput5 = 'Odd';
> obj.myInput6 = 'Even';
> obj.myInput7 = 'Odd';
>
> so I can do this to see what is in the object:
> for (var prop:String in obj)
> {
> trace(prop, ' is ' + obj[prop]);
> }
>
> and I will get:
> myInput1 is Odd
> myInput2 is Even
> myInput3 is Odd
> myInput4 is Even
> myInput5 is Odd
> myInput6 is Even
> myInput7 is Odd
>
> Now I want to test to see if we have the textinput items for each
> return of obj
>
> I want to do something like this:
> for (var prop:String in obj)
> {
> trace(prop, ' is ' + obj[prop]);
> if(prop.text) {
> trace('found');
> prop.text = obj[prop];
> }
> This should find
> myInput1
> myInput3
> myInput5
> myInput7
>
> and add the information in the object to the textinput items.
>
> but the problem is that the above code dosnt work, how can I do this?
> Thanks for the help,
> timgerr
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


RE: [flexcoders] How to test for object and do other things

2008-11-03 Thread Alex Harui
if(this[prop].text) {
trace('found');
this[prop].text = obj[prop];

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of timgerr
Sent: Monday, November 03, 2008 11:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to test for object and do other things


Hello all,
I have a question for ya, have an object and I want to test for a flex
ui component with that name. Here is what I am trying to do.

I have these flex UI items:





I have an object:
obj.myInput1 = 'Odd';
obj.myInput2 = 'Even';
obj.myInput3 = 'Odd';
obj.myInput4 = 'Even';
obj.myInput5 = 'Odd';
obj.myInput6 = 'Even';
obj.myInput7 = 'Odd';

so I can do this to see what is in the object:
for (var prop:String in obj)
{
trace(prop, ' is ' + obj[prop]);
}

and I will get:
myInput1 is Odd
myInput2 is Even
myInput3 is Odd
myInput4 is Even
myInput5 is Odd
myInput6 is Even
myInput7 is Odd

Now I want to test to see if we have the textinput items for each
return of obj

I want to do something like this:
for (var prop:String in obj)
{
trace(prop, ' is ' + obj[prop]);
if(prop.text) {
trace('found');
prop.text = obj[prop];
}
This should find
myInput1
myInput3
myInput5
myInput7

and add the information in the object to the textinput items.

but the problem is that the above code dosnt work, how can I do this?
Thanks for the help,
timgerr



RE: [flexcoders] Re: adding (none) option to comboboxes

2008-11-03 Thread Alex Harui
An example of such on my blog

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff
Sent: Monday, November 03, 2008 2:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: adding (none) option to comboboxes


Hi Derrick,

The ComboBox prompt will not solve your problem here. It only appears
when the selectedIndex==-1; Unless you want to subclass ComboBox,
you're going to have to add "none" to the dataProvider, and implement
custom logic to account for it. Since you're using the same
dataProvider elsewhere, I suggest that you use the object utility copy
function, to make a deep copy of the collection; to be used for the
ComboBox with "none" added.

-TH

--- In flexcoders@yahoogroups.com, 
"Derrick Anderson"
<[EMAIL PROTECTED]> wrote:
>
> nevermind, i discovered the 'prompt' property :)
>
> On Mon, Nov 3, 2008 at 3:04 PM, Derrick Anderson <
> [EMAIL PROTECTED] wrote:
>
> > hi, i know this is probably a simple question- but what's the best
way of
> > adding a (none) label to a combobox. i have a setter for the
dataprovider
> > where I add an option for (None) in the list, but I don't actually
want it
> > in the dataprovider if that makes sense. Basically, I want (None) to
always
> > be a selectable item in comboboxes, but I don't actually want to put
that
> > option in the arraycollection combobox dataprovider. here is the
setter for
> > the combobox dataprovider
> >
> > public function set segmentList(list:ArrayCollection):void
> > {
> > _segmentList = list;
> > var item:DataSegmentVO = new DataSegmentVO();
> > item.dataSegmentID = 0;
> > item.dataSegmentName = '(None)';
> >
> > if(_segmentList[0].dataSegmentID != 0)
> > _segmentList.addItemAt(item,0);
> >
> >
> > dispatchEvent(new Event("segmentsChanged"));
> > }
> >
> > the problem is that same segmentList arraycollection is used in the
place I
> > manage segments, and it puts a (none) option in there and it doesn't
make
> > sense there.
> >
> > thanks,
> > derrick anderson
> >
>



RE: [flexcoders] switch label to textinput

2008-11-03 Thread Tracy Spratt
This sounds like a job for "states".  But it would be a custom component
as you say.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of frosifer
Sent: Monday, November 03, 2008 4:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] switch label to textinput

 

Does the concept of ItemRenderers and ItemEditor apply outside of a
list-based control? What I would like is to have a label control (no
border, etc) display some text, and then allow the user to change this
text by making the label turn into a textinput control when it
receives focus. This is similar to the default behavior of strings in
editable datagrids, for example. But I do not want this to be inside a
grid, I want the label to be directly on a form/canvas. What is the
best way to do this? Do I actually need to come up with a custom
control that switches between the two components based on the focusin
and focusout events, or is there more built-in support for this
behavior?

 



[flexcoders] Identifying which node is the drop target on Grouped ADG

2008-11-03 Thread Adrian Williams

Hi All,

   Having a fun one here...I have two ADG's that each have a list of 
individuals, in a hierarchical grouping collection and have drag drop 
enabled between the two ADG's.  Basically the grouped ADG on the left 
shows people grouped by which project they are in...the one of the right 
shows people who haven't been added to any project.  The user is allowed 
to drag a person from the unassigned ADG on the right and drop them into 
a specific group (node) on the left. 

   The challenge I am having is identifying the drop target on the 
grouped collection.  Have tried everything from looking at 
event.currentTarget to checking the underlying dataprovider for the ADG 
to even assigning specific listeners to the "grouped" ADG all to no 
avail.  I can identify the information about the individual being moved 
into the groups via the dataprovider.selectedItem just fine. 

   How in the world do I identify which node of the grouped collection 
the person is being dropped into as well as their drop index?


Any help here is appreciated
Adrian


[flexcoders] Does UIComponent.measureHTMLText(htmlText) method takes TextFormat.blockIndent value into the account when calculating width value of TextLineMetrics object?

2008-11-03 Thread Andriy Panas
Hi all,

Accordingly to my tests, method "textField.getLineMetrics(0)" that
lays in the core of "UIComponent.measureHTMLText(htmlText)" returns
TextLineMetrics object with the value for the "width" property that is
calculated regardless from the value specified for
"textFormat.blockIndent" value applied to the textField in question.

   Is that an intentional behavior?
--
Med venlig hilsen / Best regards
Andriy Panas
[EMAIL PROTECTED]


[flexcoders] Re: adding (none) option to comboboxes

2008-11-03 Thread Tim Hoff

Hi Derrick,

The ComboBox prompt will not solve your problem here.  It only appears
when the selectedIndex==-1;  Unless you want to subclass ComboBox,
you're going to have to add "none" to the dataProvider, and implement
custom logic to account for it.  Since you're using the same
dataProvider elsewhere, I suggest that you use the object utility copy
function, to make a deep copy of the collection; to be used for the
ComboBox with "none" added.

-TH

--- In flexcoders@yahoogroups.com, "Derrick Anderson"
<[EMAIL PROTECTED]> wrote:
>
> nevermind, i discovered the 'prompt' property :)
>
> On Mon, Nov 3, 2008 at 3:04 PM, Derrick Anderson <
> [EMAIL PROTECTED] wrote:
>
> > hi, i know this is probably a simple question- but what's the best
way of
> > adding a (none) label to a combobox. i have a setter for the
dataprovider
> > where I add an option for (None) in the list, but I don't actually
want it
> > in the dataprovider if that makes sense. Basically, I want (None) to
always
> > be a selectable item in comboboxes, but I don't actually want to put
that
> > option in the arraycollection combobox dataprovider. here is the
setter for
> > the combobox dataprovider
> >
> > public function set segmentList(list:ArrayCollection):void
> > {
> > _segmentList = list;
> > var item:DataSegmentVO = new DataSegmentVO();
> > item.dataSegmentID = 0;
> > item.dataSegmentName = '(None)';
> >
> > if(_segmentList[0].dataSegmentID != 0)
> > _segmentList.addItemAt(item,0);
> >
> >
> > dispatchEvent(new Event("segmentsChanged"));
> > }
> >
> > the problem is that same segmentList arraycollection is used in the
place I
> > manage segments, and it puts a (none) option in there and it doesn't
make
> > sense there.
> >
> > thanks,
> > derrick anderson
> >
>





Re: [flexcoders] Using an IFrame in an MDIWindow

2008-11-03 Thread Brendan Meutzner
Lynn,
Do you have the proper hooks setup in the external browser window to update
the iFrame position via JavaScript when you move the MDIWindow instance?

I haven't setup an IFrame within MDI, but have in the past used Panel popups
to do this (which is basically the same thing), and the tricky part was
using ExternalInterface to update the IFrame content position getting loaded
by the browser.


Brendan



On Mon, Nov 3, 2008 at 3:35 PM, lynnkuh <[EMAIL PROTECTED]> wrote:

>   Has anyone gotten this work? If so, how did you do it? It doesn't
> position the IFrame in the correct place and when I move the IFrame,
> the window doesn't move with it. I also tried using URLRequest but
> that pops up a browser window only - it will not add it to the stage
> or addChild() for either IFrame or URLRequest. Am thinking maybe I
> should modify the updateDisplayList method in MDIWindowControlsContainer?
>
> Thanks,
> Lynn
>
>  
>



-- 
Brendan Meutzner
http://www.meutzner.com/blog/


[flexcoders] switch label to textinput

2008-11-03 Thread frosifer
Does the concept of ItemRenderers and ItemEditor apply outside of a
list-based control? What I would like is to have a label control (no
border, etc) display some text, and then allow the user to change this
text by making the label turn into a textinput control when it
receives focus. This is similar to the default behavior of strings in
editable datagrids, for example. But I do not want this to be inside a
grid, I want the label to be directly on a form/canvas. What is the
best way to do this? Do I actually need to come up with a custom
control that switches between the two components based on the focusin
and focusout events, or is there more built-in support for this behavior?



[flexcoders] Using an IFrame in an MDIWindow

2008-11-03 Thread lynnkuh
Has anyone gotten this work? If so, how did you do it? It doesn't
position the IFrame in the correct place and when I move the IFrame,
the window doesn't move with it. I also tried using URLRequest but
that pops up a browser window only - it will not add it to the stage
or addChild() for either IFrame or URLRequest. Am thinking maybe I
should modify the updateDisplayList method in MDIWindowControlsContainer?

Thanks,
Lynn



[flexcoders] Flex developer and their hourly rate

2008-11-03 Thread hworke


  Hi Devs,

  I do not have any idea about the market hourly
  rate that a Flex developer with 3 years experience
  charges in San Francisco bay area charges. Can
  someone please give me some idea?

  Best regards,



Re: [flexcoders] handle cancel from OS dialog with a file download.

2008-11-03 Thread dnk


On 3-Nov-08, at 12:59 PM, Tracy Spratt wrote:


On the FileReferenceList, add a listener for “Event.CANCEL”.

Tracy




DOH!

Thanks I had defined open, complete and a progress one.

DNK



RE: [flexcoders] handle cancel from OS dialog with a file download.

2008-11-03 Thread Tracy Spratt
On the FileReferenceList, add a listener for "Event.CANCEL".

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dnk
Sent: Monday, November 03, 2008 3:38 PM
To: Flexcoder List
Subject: [flexcoders] handle cancel from OS dialog with a file download.

 

Hi there... I have written a file download component with flex 3, and 
have my state reset upon completion, or if the flex "cancel" button is 
pressed. Now if someone starts a download, but then presses the 
"cancel" button (as opposed to "save") from the OS browse dialog 
box... I can't reset my interface.

How are others dealing with this?

Ideas?

DNK

 



[flexcoders] handle cancel from OS dialog with a file download.

2008-11-03 Thread dnk
Hi there... I have written a file download component with flex 3, and  
have my state reset upon completion, or if the flex "cancel" button is  
pressed. Now if someone starts a download, but then presses the  
"cancel" button (as opposed to "save") from the OS browse dialog  
box... I can't reset my interface.

How are others dealing with this?

Ideas?

DNK




[flexcoders] Re: adding (none) option to comboboxes

2008-11-03 Thread Derrick Anderson
nevermind, i discovered the 'prompt' property :)

On Mon, Nov 3, 2008 at 3:04 PM, Derrick Anderson <
[EMAIL PROTECTED]> wrote:

> hi,  i know this is probably a simple question- but what's the best way of
> adding a (none) label to a combobox.  i have a setter for the dataprovider
> where I add an option for (None) in the list, but I don't actually want it
> in the dataprovider if that makes sense.  Basically, I want (None) to always
> be a selectable item in comboboxes, but I don't actually want to put that
> option in the arraycollection combobox dataprovider.  here is the setter for
> the combobox dataprovider
>
> public function set segmentList(list:ArrayCollection):void
> {
> _segmentList = list;
> var item:DataSegmentVO = new DataSegmentVO();
> item.dataSegmentID = 0;
> item.dataSegmentName = '(None)';
>
> if(_segmentList[0].dataSegmentID != 0)
> _segmentList.addItemAt(item,0);
>
>
> dispatchEvent(new Event("segmentsChanged"));
> }
>
> the problem is that same segmentList arraycollection is used in the place I
> manage segments, and it puts a (none) option in there and it doesn't make
> sense there.
>
> thanks,
> derrick anderson
>


[flexcoders] adding (none) option to comboboxes

2008-11-03 Thread Derrick Anderson
hi,  i know this is probably a simple question- but what's the best way of
adding a (none) label to a combobox.  i have a setter for the dataprovider
where I add an option for (None) in the list, but I don't actually want it
in the dataprovider if that makes sense.  Basically, I want (None) to always
be a selectable item in comboboxes, but I don't actually want to put that
option in the arraycollection combobox dataprovider.  here is the setter for
the combobox dataprovider

public function set segmentList(list:ArrayCollection):void
{
_segmentList = list;
var item:DataSegmentVO = new DataSegmentVO();
item.dataSegmentID = 0;
item.dataSegmentName = '(None)';

if(_segmentList[0].dataSegmentID != 0)
_segmentList.addItemAt(item,0);


dispatchEvent(new Event("segmentsChanged"));
}

the problem is that same segmentList arraycollection is used in the place I
manage segments, and it puts a (none) option in there and it doesn't make
sense there.

thanks,
derrick anderson


[flexcoders] How to test for object and do other things

2008-11-03 Thread timgerr
Hello all,
I have a question for ya, have an object and I want to test for a flex
ui component with that name.  Here is what I am trying to do.

I have these flex UI items:






I have an object:
obj.myInput1 = 'Odd';
obj.myInput2 = 'Even';
obj.myInput3 = 'Odd';
obj.myInput4 = 'Even';
obj.myInput5 = 'Odd';
obj.myInput6 = 'Even';
obj.myInput7 = 'Odd';

so I can do this to see what is in the object:
for (var prop:String in obj)
   {
  trace(prop,  ' is ' +   obj[prop]);
   }

and I will get:
myInput1 is Odd
myInput2 is Even
myInput3 is Odd
myInput4 is Even
myInput5 is Odd
myInput6 is Even
myInput7 is Odd

Now I want to test to see if we have the textinput items for each
return of obj

I want to do something like this:
for (var prop:String in obj)
   {
  trace(prop,  ' is ' +   obj[prop]);
  if(prop.text) {
  trace('found');
  prop.text = obj[prop];
   }
This should find 
myInput1
myInput3
myInput5
myInput7

and add the information in the object to the textinput items.

but the problem is that the above code dosnt work, how can I do this?
Thanks for the help,
timgerr



[flexcoders] Compare text and highlight the differences

2008-11-03 Thread nhid
Hello,

We're trying to do a text comparision between 2 paragraphs and highlight
only the words that are different in the paragraphs.  How we are trying to
accomplish this is by comparing the words from paragraph 1 to those in
paragraph 2, keeping track of the matches as in a matrix, then use the
sentence with the highest matches as the base sentence, then highlight the
remaining words in that sentence in paragraph 2.  This method seems to be
cumbersome and not working properly at the moment.

Any other suggestions how or has anyone seen a sample to do this?

Thank you.


[flexcoders] Reclaiming memory from removed viewstack children

2008-11-03 Thread achegedus
I have a fairly simple app that I made as a test, confirming what I've
read elsewhere.  It seems that when a layer is removed from a
viewstack using removeChild or removeAllChildren the memory is not
garbage collected. 

In this example i have a simple viewstack that adds a few layers of a
component with a chart on it (using anychart).  When I create the
layers, it's fine, but when I delete them, the memory stays up and the
instances of the chart don't decrease... do this enough times, and
it'll crash your browser.

Does anyone know how I can really delete a child layer?

Here's some code:
http://pastebin.com/faf14977

Thanks!
Adam




[flexcoders] Using Flex for Webcast site

2008-11-03 Thread candysmate
Does anyone have experiences with using Flex as a client for
webcasting, or know on any resouces I can refer to please?



[flexcoders] Attach progress bar to copyto() ?

2008-11-03 Thread the_real_squidly_didly
We are building an internal application that copies files accross our 
network.

Is it possible to attach a progress bar to the copyto() function?

Thanks,

Squid



[flexcoders] Re: rpc fault when testing LCDs with samples.war

2008-11-03 Thread datkangpeguy
This is what i found in my tomcat stdout log file:

11/03 10:14:56 INFO Loading configuration file C:\Program Files\Apache
Software Foundation\Tomcat
6.0\webapps\flex\WEB-INF\flex\flex-webtier-config.xml
11/03 10:14:56 INFO Loading configuration file C:\Program Files\Apache
Software Foundation\Tomcat 6.0\webapps\flex\WEB-INF\flex\flex-config.xml
Starting HSQLDB database for sample applications...
[EMAIL PROTECTED]: [Thread[Thread-1,5,main]]: checkRunning(false) entered
[EMAIL PROTECTED]: [Thread[Thread-1,5,main]]: checkRunning(false) exited
[EMAIL PROTECTED]: Startup sequence initiated from main() method
[EMAIL PROTECTED]: Loaded properties from [C:\Program Files\Apache
Software Foundation\Tomcat 6.0\server.properties]
[EMAIL PROTECTED]: Initiating startup sequence...
[EMAIL PROTECTED]: Server socket opened successfully in 0 ms.
[EMAIL PROTECTED]: Database [index=0, id=0, db=file:/C:/Program
Files/Apache Software Foundation/Tomcat
6.0/webapps/samples/WEB-INF/db/flexdemodb/flexdemodb,
alias=flexdemodb] opened sucessfully in 375 ms.
[EMAIL PROTECTED]: Startup sequence completed in 375 ms.
[EMAIL PROTECTED]: 2008-11-03 10:14:59.234 HSQLDB server 1.8.0 is online
[EMAIL PROTECTED]: To close normally, connect and execute SHUTDOWN SQL
[EMAIL PROTECTED]: From command line, use [Ctrl]+[C] to abort abruptly
11/03 10:14:59 INFO Loading configuration file C:\Program Files\Apache
Software Foundation\Tomcat
6.0\webapps\samples\WEB-INF\flex\flex-webtier-config.xml
11/03 10:14:59 INFO Loading configuration file C:\Program Files\Apache
Software Foundation\Tomcat
6.0\webapps\samples\WEB-INF\flex\flex-config.xml
[Flex] [ERROR] Error when invoking service: data-service
  with message: Flex Message (flex.data.messages.DataMessage) 
operation = transacted
id = null
clientId = BF9045EA-FB0E-5625-1301-963114616507
correlationId = 
destination = inventory
messageId = 8ADD591C-E7C5-E028-CD9C-635AD1C7BC7E
timestamp = 1225732575687
timeToLive = 0
body = 
[
  Flex Message (flex.data.messages.DataMessage) 
  operation = update
  id = ASObject(11830697){productId=2}
  clientId = 39B42B50-D818-E2D4-A82C-635A9C11299D
  correlationId = 8ADD591C-E7C5-E028-CD9C-635AD1C7BC7E
  destination = inventory
  messageId = BF7A5CF4-A647-A44F-6271-635AD1C74341
  timestamp = 0
  timeToLive = 0
  body = 
  [

[
  name
],
[EMAIL PROTECTED],
[EMAIL PROTECTED]
  ]
]
hdr(DSId) = BF90459F-4C0D-A165-EB94-8325B392D8A0
hdr(DSEndpoint) = my-rtmp
  error: java.lang.ExceptionInInitializerError
at org.objectweb.jotm.Current.(Current.java:145)
at
org.objectweb.jotm.UserTransactionFactory.getObjectInstance(UserTransactionFactory.java:67)
at
org.apache.naming.factory.TransactionFactory.getObjectInstance(TransactionFactory.java:110)
at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
at javax.naming.InitialContext.lookup(Unknown Source)
at
flex.data.DataServiceTransaction.doBegin(DataServiceTransaction.java:836)
at
flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:807)
at flex.data.DataService.serviceTransactedMessage(DataService.java:705)
at flex.data.DataService.serviceMessage(DataService.java:429)
at
flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1165)
at
flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:757)
at
flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage(AbstractRTMPServer.java:888)
at
flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTMPConnection.java:424)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.NoOpLog does not implement Log
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414)
at org.objectweb.jo

[flexcoders] Re: Flex application keyboard language!?

2008-11-03 Thread joyfulrodger
Unfortunatley it doesn't appear in pure html pages. Its solely in this
one flex application and the same in all browsers. Thanks for replying
though.

--- In flexcoders@yahoogroups.com, "Jim Hayes" <[EMAIL PROTECTED]> wrote:
>
> Does it happen in pure html pages as well? In firefox?
> I had this happen due to accidentally hitting some key combo that
> changed the default keyboard setting *in the browser*.
> Trouble is, I've completely forgotten what it was (again). Sorry about
> that.
>  
>  
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of joyfulrodger
> Sent: 03 November 2008 15:08
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Flex application keyboard language!?
>  
> Hi there,
> 
> Im sure this is a fairly simple issue to resolve, but i just cant 
> seem to get it. 
> 
> The text inputs within my flex application have the at(@) sign and 
> the quotation mark(") sign mixed up. When i press ctrl 2 i get the @ 
> sign when i should be getting the quotation marks and vice versa.
> 
> Does anyone know how to resolve this?
> 
> Many thanks,
> 
> Dave
> 
> P.S. Its not an issue with my operating system, i am using the 
> correct keyboard layout. Other flex applications i have developed 
> dont have this issue.
>  
> 
> __
> This communication is from Primal Pictures Ltd., a company
registered in England and Wales with registration No. 02622298 and
registered office: 4th Floor, Tennyson House, 159-165 Great Portland
Street, London, W1W 5PA, UK. VAT registration No. 648874577.
> 
> This e-mail is confidential and may be privileged. It may be read,
copied and used only by the intended recipient. If you have received
it in error, please contact the sender immediately by return e-mail or
by telephoning +44(0)20 7637 1010. Please then delete the e-mail and
do not disclose its contents to any person.
> This email has been scanned for Primal Pictures by the MessageLabs
Email Security System.
> __
>




[flexcoders] Re: sqlite insert issue

2008-11-03 Thread valdhor
Nope - not as a non string. Make it a number! Try this...

insert into category(id, version, name, ordering, external,
createddate, modifieddate, createdby_id, modifiedby_id) values
(477,14,'Leads',0,'false',NULL,1234567,NULL,1109);

Does it work? If so, you will need to convert the string to a
timestamp (ie. The number of seconds since the unix epoch on January
1st, 1970).


--- In flexcoders@yahoogroups.com, "Johannes Nel" <[EMAIL PROTECTED]>
wrote:
>
> i did try and pass it as a non string, which gave an error as well.as i
> said, weirdly it works when i use a sqlite tool, only from AS it fails.
> 
> On Mon, Nov 3, 2008 at 7:54 PM, valdhor <[EMAIL PROTECTED]> wrote:
> 
> >   From memory, a *nix timestamp is a Real so it is having trouble
> > converting '2008-08-19 16:46:54.26' to a number.
> >
> > Have you tried converting it before adding it to the database?
> >
> > --- In flexcoders@yahoogroups.com ,
> > "Johannes Nel" 
> > wrote:
> >
> > >
> > > Hi All
> > > I have a sql statement which runs sans any issues in my sqlite
> > viewer, but
> > > when executed from within air it gives me the error
> > > SQLError: 'Error #3132: Data type mismatch.', details:'could not
convert
> > > text value to numeric value.'
> > > this is the table schema
> > > CREATE TABLE category (
> > > id bigint NOT NULL,
> > > "version" integer NOT NULL,
> > > name character varying(255),
> > > ordering integer NOT NULL,
> > > "external" boolean NOT NULL,
> > > createddate timestamp without time zone,
> > > modifieddate timestamp without time zone,
> > > createdby_id bigint,
> > > modifiedby_id bigint
> > > );
> > > and here is the sql statement
> > > insert into category(id, version, name, ordering, external,
createddate,
> > > modifieddate, createdby_id, modifiedby_id) values
> > > (477,14,'Leads',0,'false',NULL,'2008-08-19 16:46:54.26',NULL,1109);
> > >
> > > any ideas?
> > > i find it really weird that this works on a SQLite level, but not
> > from AS.
> > >
> > > johan
> > >
> > >
> > > --
> > > j:pn
> > > \\no comment
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> j:pn
> \\no comment
>




[flexcoders] Setting up a date range picker

2008-11-03 Thread johngag6969
I made a blog post about how I set up date range pickers for a flex 3
dashboard.  Let me know what you think or if you have any suggestions.

http://www.cftips.net/post.cfm/setting-up-date-range-picker-in-flex-3

Thanks,

John Gag



[flexcoders] help setting up tomcat 6 for Data Management services with LCDS ES 2.5.1

2008-11-03 Thread datkangpeguy
I hope this extra info from my tomcat stdout log file helps:


11/03 10:14:56 INFO Loading configuration file C:\Program Files\Apache
Software Foundation\Tomcat
6.0\webapps\flex\WEB-INF\flex\flex-webtier-config.xml
11/03 10:14:56 INFO Loading configuration file C:\Program Files\Apache
Software Foundation\Tomcat 6.0\webapps\flex\WEB-INF\flex\flex-config.xml
Starting HSQLDB database for sample applications...
[EMAIL PROTECTED]: [Thread[Thread-1,5,main]]: checkRunning(false) entered
[EMAIL PROTECTED]: [Thread[Thread-1,5,main]]: checkRunning(false) exited
[EMAIL PROTECTED]: Startup sequence initiated from main() method
[EMAIL PROTECTED]: Loaded properties from [C:\Program Files\Apache
Software Foundation\Tomcat 6.0\server.properties]
[EMAIL PROTECTED]: Initiating startup sequence...
[EMAIL PROTECTED]: Server socket opened successfully in 0 ms.
[EMAIL PROTECTED]: Database [index=0, id=0, db=file:/C:/Program
Files/Apache Software Foundation/Tomcat
6.0/webapps/samples/WEB-INF/db/flexdemodb/flexdemodb,
alias=flexdemodb] opened sucessfully in 375 ms.
[EMAIL PROTECTED]: Startup sequence completed in 375 ms.
[EMAIL PROTECTED]: 2008-11-03 10:14:59.234 HSQLDB server 1.8.0 is online
[EMAIL PROTECTED]: To close normally, connect and execute SHUTDOWN SQL
[EMAIL PROTECTED]: From command line, use [Ctrl]+[C] to abort abruptly
11/03 10:14:59 INFO Loading configuration file C:\Program Files\Apache
Software Foundation\Tomcat
6.0\webapps\samples\WEB-INF\flex\flex-webtier-config.xml
11/03 10:14:59 INFO Loading configuration file C:\Program Files\Apache
Software Foundation\Tomcat
6.0\webapps\samples\WEB-INF\flex\flex-config.xml
[Flex] [ERROR] Error when invoking service: data-service
  with message: Flex Message (flex.data.messages.DataMessage) 
operation = transacted
id = null
clientId = BF9045EA-FB0E-5625-1301-963114616507
correlationId = 
destination = inventory
messageId = 8ADD591C-E7C5-E028-CD9C-635AD1C7BC7E
timestamp = 1225732575687
timeToLive = 0
body = 
[
  Flex Message (flex.data.messages.DataMessage) 
  operation = update
  id = ASObject(11830697){productId=2}
  clientId = 39B42B50-D818-E2D4-A82C-635A9C11299D
  correlationId = 8ADD591C-E7C5-E028-CD9C-635AD1C7BC7E
  destination = inventory
  messageId = BF7A5CF4-A647-A44F-6271-635AD1C74341
  timestamp = 0
  timeToLive = 0
  body = 
  [

[
  name
],
[EMAIL PROTECTED],
[EMAIL PROTECTED]
  ]
]
hdr(DSId) = BF90459F-4C0D-A165-EB94-8325B392D8A0
hdr(DSEndpoint) = my-rtmp
  error: java.lang.ExceptionInInitializerError
at org.objectweb.jotm.Current.(Current.java:145)
at
org.objectweb.jotm.UserTransactionFactory.getObjectInstance(UserTransactionFactory.java:67)
at
org.apache.naming.factory.TransactionFactory.getObjectInstance(TransactionFactory.java:110)
at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
at javax.naming.InitialContext.lookup(Unknown Source)
at
flex.data.DataServiceTransaction.doBegin(DataServiceTransaction.java:836)
at
flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:807)
at flex.data.DataService.serviceTransactedMessage(DataService.java:705)
at flex.data.DataService.serviceMessage(DataService.java:429)
at
flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1165)
at
flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:757)
at
flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage(AbstractRTMPServer.java:888)
at
flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTMPConnection.java:424)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.NoOpLog does not implement Log
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414)
at org.o

[flexcoders] getting/settings explicit height/width for a custom toolTip?

2008-11-03 Thread djbrown_rotonews
I'm attempting to create a custom toolTip using a Text component (of 
varying length, depending on the underlying data) inside a VBox 
component (with no explicit height or width declared) that implements 
IToolTip.

Inside the creationComplete handler for the VBox, I build out the 
contents of the Text component, but the underlying values of 
measuredHeight etc.. don't seem to get updated. As a result, the 
toolTips aren't being posiitioned correctly as calls to 
getExplicitOfMeasuredHeight and Width is returning values like 6 and 7 
as opposed to 225 and 150 etc...

I've even placed explicit calls to invalidateProperties, 
invalidateDisplayList and invalidateSize at the end of the 
creationComplete handler with no luck.

any ideas?




RE: [flexcoders] Flex application keyboard language!?

2008-11-03 Thread Jim Hayes
It's ALT-SHIFT (I needed to know!)
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jim Hayes
Sent: 03 November 2008 15:39
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex application keyboard language!?
 
Does it happen in pure html pages as well? In firefox?
I had this happen due to accidentally hitting some key combo that
changed the default keyboard setting *in the browser*.
Trouble is, I've completely forgotten what it was (again). Sorry about
that.
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of joyfulrodger
Sent: 03 November 2008 15:08
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex application keyboard language!?
 
Hi there,

Im sure this is a fairly simple issue to resolve, but i just cant 
seem to get it. 

The text inputs within my flex application have the at(@) sign and 
the quotation mark(") sign mixed up. When i press ctrl 2 i get the @ 
sign when i should be getting the quotation marks and vice versa.

Does anyone know how to resolve this?

Many thanks,

Dave

P.S. Its not an issue with my operating system, i am using the 
correct keyboard layout. Other flex applications i have developed 
dont have this issue.

__
This communication is from Primal Pictures Ltd., a company registered in
England and Wales with registration No. 02622298 and registered office:
4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W
5PA, UK. VAT registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read,
copied and used only by the intended recipient. If you have received it
in error, please contact the sender immediately by return e-mail or by
telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not
disclose its contents to any person.
This email has been scanned for Primal Pictures by the MessageLabs Email
Security System.
__


 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

Re: [flexcoders] Re: sqlite insert issue

2008-11-03 Thread Johannes Nel
i did try and pass it as a non string, which gave an error as well.as i
said, weirdly it works when i use a sqlite tool, only from AS it fails.

On Mon, Nov 3, 2008 at 7:54 PM, valdhor <[EMAIL PROTECTED]> wrote:

>   From memory, a *nix timestamp is a Real so it is having trouble
> converting '2008-08-19 16:46:54.26' to a number.
>
> Have you tried converting it before adding it to the database?
>
> --- In flexcoders@yahoogroups.com ,
> "Johannes Nel" <[EMAIL PROTECTED]>
> wrote:
>
> >
> > Hi All
> > I have a sql statement which runs sans any issues in my sqlite
> viewer, but
> > when executed from within air it gives me the error
> > SQLError: 'Error #3132: Data type mismatch.', details:'could not convert
> > text value to numeric value.'
> > this is the table schema
> > CREATE TABLE category (
> > id bigint NOT NULL,
> > "version" integer NOT NULL,
> > name character varying(255),
> > ordering integer NOT NULL,
> > "external" boolean NOT NULL,
> > createddate timestamp without time zone,
> > modifieddate timestamp without time zone,
> > createdby_id bigint,
> > modifiedby_id bigint
> > );
> > and here is the sql statement
> > insert into category(id, version, name, ordering, external, createddate,
> > modifieddate, createdby_id, modifiedby_id) values
> > (477,14,'Leads',0,'false',NULL,'2008-08-19 16:46:54.26',NULL,1109);
> >
> > any ideas?
> > i find it really weird that this works on a SQLite level, but not
> from AS.
> >
> > johan
> >
> >
> > --
> > j:pn
> > \\no comment
> >
>
>  
>



-- 
j:pn
\\no comment


[flexcoders] Data transfer choices...

2008-11-03 Thread chris
Thanks for the reply, Mike. And your patience with a newbie.
To answer your questions: 1) what am I attempting to do - I would  
like, in the first instance to set up a portfolio, separated into  
various sections, and to be able to navigate - say from a video piece  
to an illustration or animation with linked/counterpointed theme, thus  
creating discrete narrative paths.   Maybe Flex isn't the best way to  
manage this? I thought that it would make a good wrapper for Flash,  
and enable some added functionality...
2) Have I read any books? Some. Sets of tutorials - 'Total training',  
'Flex in a week', stuff on Degrafa, and others -  explored  
FlexExamples, Flexbookmarks and similar sites - and read chunks of the  
adobe live docs, as well as 'Learning flex 3' by Alaric Cole (which  
doesn't even list the word resource in its index) but has been useful  
for mxml, and css styles. Not enough obviously.
  Can you please recommend a good  book, where there is some emphasis  
is on graphics and design/styling?  That said, I have become  
interested in the possibilities for interactive/responsive art pieces  
built in Flex, while trying to learn the app.
 From what you say in your reply it seems that what I have been doing  
(using HttpService to load assets via an xml file) is  adequate - and  
all those other ideas, remoteObject, databases, etc. stem from not  
realising that I should be calling my assets "resources" as opposed to  
"data".  Duuh.
You have helped  a lot simply by clearing up that syntax. By searching  
on-line with those parameters, I  immediately found Greg LaFrance's  
post 'Multiple VideoDisplay and playback controls for each using  
repeater', which is a big help. ( I think. I should be able to manage  
adding some more controls to it and set up a Tile List component with  
button-enabled thumbnails...)
Previously I was planning to use the Adobe video gallery as a basis,  
re-jig it and load it into Flex as a .swc It is entirely possible  
that I made some other mistake with the Adobe video gallery tutorial (  
with paths, or loading parameters) that prevented it from functioning  
well. It worked fine locally but  was extremely slow to load when I  
tried to use it on the web, even before I had tried converting it to a  
.swc.

I was next planning to use states with custom transitions to move from  
one section/gallery to another, before I heard about modules and was  
lured by concepts of frameworks, ( e.g. Mate event mapping) which I  
believed might be better for updating and re-configuring.  Is states  
the right way to go, or would I be better off with a Mate-style  
configuration?





[flexcoders] Re: How can I stop my HTTPService?

2008-11-03 Thread valdhor
disconnect() method?

rate.disconnect()


--- In flexcoders@yahoogroups.com, "sailorsea21" <[EMAIL PROTECTED]> wrote:
>
> Hi everyone,
> 
> I have an HTTPService that I load in a module. When I unload the module 
> the HTTPService keeps working...
> 
> This is my HTTPService:
>  result="getRate(event)" fault="FaultHandler()" showBusyCursor="true"/>
>  
> I start my HTTPService with the following command:
> rate.send();
> 
> What command can I use to kill the HTTPService when I unload my module?
> 
> Thanks.
>




[flexcoders] Re: How can I stop my HTTPService?

2008-11-03 Thread valdhor
disconnect() method?


--- In flexcoders@yahoogroups.com, "sailorsea21" <[EMAIL PROTECTED]> wrote:
>
> Hi everyone,
> 
> I have an HTTPService that I load in a module. When I unload the module 
> the HTTPService keeps working...
> 
> This is my HTTPService:
>  result="getRate(event)" fault="FaultHandler()" showBusyCursor="true"/>
>  
> I start my HTTPService with the following command:
> rate.send();
> 
> What command can I use to kill the HTTPService when I unload my module?
> 
> Thanks.
>




[flexcoders] Re: sqlite insert issue

2008-11-03 Thread valdhor
>From memory, a *nix timestamp is a Real so it is having trouble
converting '2008-08-19 16:46:54.26' to a number.

Have you tried converting it before adding it to the database?


--- In flexcoders@yahoogroups.com, "Johannes Nel" <[EMAIL PROTECTED]>
wrote:
>
> Hi All
> I have a sql statement which runs sans any issues in my sqlite
viewer, but
> when executed from within air it gives me the error
> SQLError: 'Error #3132: Data type mismatch.', details:'could not convert
> text value to numeric value.'
> this is the table schema
> CREATE TABLE category (
> id bigint NOT NULL,
> "version" integer NOT NULL,
> name character varying(255),
> ordering integer NOT NULL,
> "external" boolean NOT NULL,
> createddate timestamp without time zone,
> modifieddate timestamp without time zone,
> createdby_id bigint,
> modifiedby_id bigint
> );
> and here is the sql statement
> insert into category(id, version, name, ordering, external, createddate,
> modifieddate, createdby_id, modifiedby_id) values
> (477,14,'Leads',0,'false',NULL,'2008-08-19 16:46:54.26',NULL,1109);
> 
> any ideas?
> i find it really weird that this works on a SQLite level, but not
from AS.
> 
> johan
> 
> 
> -- 
> j:pn
> \\no comment
>




Re: [flexcoders] flex label printing...

2008-11-03 Thread Paul Andrews
They seem to have windows drivers, so there shouldn't be a problem, should 
there?

My post about this subject was for a printer that had no windows drivers - 
this looks rather different.

Paul

- Original Message - 
From: "Tom Chiverton" <[EMAIL PROTECTED]>
To: 
Sent: Monday, November 03, 2008 4:34 PM
Subject: Re: [flexcoders] flex label printing...


> On Monday 03 Nov 2008, Jackson wrote:
>>  I am trying to print text using a label printer (ZEBRA
>> STRIPE).But i cannot send plain text or characters to the printer.How
>> is it possible in flex/adobe Air application?.
>
> Assuming that printer appears to the O/S as a normal printer with funny 
> size
> printer, like the last label printer I printed to from Flex, it was just a
> case of doing the normal PrintJob stuff...
>
> -- 
> Tom Chiverton
> Helping to apprehensively iterate patterns
>
>
>
> 
>
> 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 
> 3EB.  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 Solicitors Regulation 
> Authority.
>
> 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 2500.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
> Links
>
>
>




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

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



Re: [flexcoders] Re: Flash player 10 required for my swf?

2008-11-03 Thread Tom Chiverton
On Monday 03 Nov 2008, valdhor wrote:
> My guess is that the users seeing this message have Flash 9.0.115 (Or
> less Installed).
> The wrapper sees that the SWF needs 9.0.124 (Or later) so the user

It's also possible to have multiple versions of the Flash plugin installed at 
once (say v8 and v9) by accident or design, and SWFObject certainly doesn't 
like that, maybe the Adobe sniffer doesn't either.

-- 
Tom Chiverton
Helping to administratively innovate turn-key error-free e-services





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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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

For more information about Halliwells LLP visit www.halliwells.com.



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

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



Re: [flexcoders] Advanced Data Grid with Grouped Columns

2008-11-03 Thread Tom Chiverton
On Thursday 30 Oct 2008, grg_blls wrote:
> vertical scroll, it always throws a RTE.

Guess: It's your customer editors.
As this code self-evidently won't run as-is, and you've not included the full 
text of the RTE, it's hard to help.

-- 
Tom Chiverton
Helping to dynamically e-enable sticky turn-key users





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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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

For more information about Halliwells LLP visit www.halliwells.com.



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

<*> 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] Re: flex label printing...

2008-11-03 Thread valdhor
I don't know if this is possible or not but if you could print to the
Zebra from Java, then the Mepapi project may come in handy...

http://www.merapiproject.net/



--- In flexcoders@yahoogroups.com, "nathanpdaniel" <[EMAIL PROTECTED]> wrote:
>
> Why can't you send plain text?  The user is still prompted with the 
> printer selection dialog (you can't control that anyway) - if the 
> Label printer is selcted, it'll print whatever you send it (I've done 
> it before...).
>   You gotta know the Zebra printer language to have a shot at doing 
> anything else.  There's a manual out there (couldn't tell you where 
> other than the Zebra site - good luck with that one :D).  Then, it'd 
> only be possible to do it in AIR, and, you'd basically send the 
> string (which the printer breaks down and is able to print).  I was 
> never able to successfully do it.
>   The way it works, you generate a "string" (we'll call it PTR for 
> now since it's not really just a string).  PTR has to be in the Zebra 
> Language (or whatever it's called).  You have to send the PTR to the 
> port (printer, comm, etc) the printer is connected to.  Technically, 
> the printer should accept the string and know what to do from there.  
> Theoretically, that's how it should work - if it actually does - you 
> deserve a prize! :D  I tried (in vain) for weeks to get it to work - 
> before I settled on creating an Object that would print (in plain 
> text) on my Zebra printer (and gave up on it).
> 
> -Nathan
> 
> --- In flexcoders@yahoogroups.com, "Jackson"  
> wrote:
> >
> > 
> >   Hi All,
> >  I am trying to print text using a label printer (ZEBRA
> > STRIPE).But i cannot send plain text or characters to the 
> printer.How
> > is it possible in flex/adobe Air application?.
> > 
> >   Thanks in Advance..
> >  Abdul Jaleel C.
> >
>




[flexcoders] MultipleEvents

2008-11-03 Thread Parkash
Hi every one i have one simple textfiled with focusout event  and button with 
click event.

Now when i entered some text in textinput and when clicks on button , according 
to me two events shoud be dispatched at a time ( plz correct me i am wrong ), 
one textfield focusout and second button clicks event. but for some reason it 
dispatches only one event i.e focus out ca any one tell to to resolve this 
problem i want to dispatch both events @ the same time here os code sapmle.

Thanks In Advance 

Parkash ARjan





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










 






Re: [flexcoders] flex label printing...

2008-11-03 Thread Tom Chiverton
On Monday 03 Nov 2008, Jackson wrote:
>  I am trying to print text using a label printer (ZEBRA
> STRIPE).But i cannot send plain text or characters to the printer.How
> is it possible in flex/adobe Air application?.

Assuming that printer appears to the O/S as a normal printer with funny size 
printer, like the last label printer I printed to from Flex, it was just a 
case of doing the normal PrintJob stuff...

-- 
Tom Chiverton
Helping to apprehensively iterate patterns





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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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

For more information about Halliwells LLP visit www.halliwells.com.



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

<*> 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] Re: Flex builder 2 standalone - plugin wouldn't show up

2008-11-03 Thread valdhor
You are probably better off starting here:

http://www.ibm.com/developerworks/library/os-eclipse-plugindev1/index.html


--- In flexcoders@yahoogroups.com, rviswanathan <[EMAIL PROTECTED]>
wrote:
>
> 
> Hi 
> 
> I am new to plugin development and I startded off by creating a sample
> plugin using flex builder 3 plugin version. These are the steps that I
> followed
> 
> a) Installed eclipse 3.2 and Flex Builder 3 plugin version (trial)
> b) Created a sample plugin and packaged it
> c) extracted the plugin to a location c:\program files\adobe\flex
builder
> 2\plugins (This is where I have Flex2 standalone installed and running)
> 
> I closed Flex Builder 2 standalone and restarted it, however I
cannot see my
> plugin (I created a toolbar with a simple button and an action).
> 
> I think I am missing something. Can someone please help?
> 
> Thanks
> Ram
> -- 
> View this message in context:
http://www.nabble.com/Flex-builder-2-standalone---plugin-wouldn%27t-show-up-tp20287313p20287313.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>




[flexcoders] setting up tomcat 6 for Data Management services with LCDS ES 2.5.1

2008-11-03 Thread datkangpeguy
I've installed JOTM 2.0.10 on Apache 6.0 with LCD ES 2.5.1 in hopes of
developing apps in Flex Builder 3 that will use Data Management services.

I'm able to run all the samples in the given samples.war testdrive
file except the very last one, Sample 8: Data Management
Service.the very service that i am interested in using. 

Whenever i try to submit an update to a field by hitting enter, i get
the following message:

[RPC Fault faultString="There was an unhandled failure on the server.
null" faultCode="Server.Processing" faultDetail="null"]
at
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()
at mx.data::CommitResponder/fault()
at mx.rpc::AsyncRequest/fault()
at NetConnectionMessageResponder/statusHandler()
at mx.messaging::MessageResponder/status()

Does anyone have any clues as to where to start looking for the problem?



[flexcoders] rpc fault when testing LCDs with samples.war

2008-11-03 Thread datkangpeguy
I've installed JOTM 2.0.10 on Apache 6.0 with LCD ES 2.5.1 in hopes of
developing apps in Flex Builder 3 that will use Data Management services.

I'm able to run all the samples in the given samples.war testdrive
file except the very last one, Sample 8: Data Management
Service.the very service that i am interested in using. 

Whenever i try to submit an update to a field by hitting enter, i get
the following message:

[RPC Fault faultString="There was an unhandled failure on the server.
null" faultCode="Server.Processing" faultDetail="null"]
at
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()
at mx.data::CommitResponder/fault()
at mx.rpc::AsyncRequest/fault()
at NetConnectionMessageResponder/statusHandler()
at mx.messaging::MessageResponder/status()

Does anyone have any clues as to where to start looking for the problem?



[flexcoders] Re: Passing variables to HTTPService

2008-11-03 Thread oneworld95
Changed the servlet to say this and it now works,

serviceType = request.getParameter("serviceType");



--- In flexcoders@yahoogroups.com, "oneworld95" <[EMAIL PROTECTED]> wrote:
>
> Hi. How do you pass variables to an HTTPService call so that they can
> be read by Java? I've got this working with a URLRequest by using
> URLVariables but can't seem to get it working with an HTTPService.
> Here's my code,
> 
> var params:Object = new Object();
> params.serviceType = "INITIALIZE"; 
> 
> service.send(params);
> 
> In the servlet, it's got this code in the doPost() method,
> 
> serviceType = request.getParameterValues("serviceType")[0];
> 
> It throws Error #2032: Stream Error. It wasn't throwing this until I
> added the service parameter. The servlet generates XML data and Flex
> is expecting E4X data. Thanks
>




RE: [flexcoders] Flex application keyboard language!?

2008-11-03 Thread Jim Hayes
Does it happen in pure html pages as well? In firefox?
I had this happen due to accidentally hitting some key combo that
changed the default keyboard setting *in the browser*.
Trouble is, I've completely forgotten what it was (again). Sorry about
that.
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of joyfulrodger
Sent: 03 November 2008 15:08
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex application keyboard language!?
 
Hi there,

Im sure this is a fairly simple issue to resolve, but i just cant 
seem to get it. 

The text inputs within my flex application have the at(@) sign and 
the quotation mark(") sign mixed up. When i press ctrl 2 i get the @ 
sign when i should be getting the quotation marks and vice versa.

Does anyone know how to resolve this?

Many thanks,

Dave

P.S. Its not an issue with my operating system, i am using the 
correct keyboard layout. Other flex applications i have developed 
dont have this issue.
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

[flexcoders] Re: LinkBar | mx:dataProvider | does not work

2008-11-03 Thread valdhor
HmmmI would have expected that to work.

It seems you have to specify the dataprovider property as part of the
LinkBar...



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

--- In flexcoders@yahoogroups.com, "ilikeflex" <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I have below sample code(Code1) which is working fine and i have
> taken from livedocs. Now i have made modification to code1 and
> changed to code2.
>
> In code2 i am declaring the dataprovider property of the linkbar in a
> different way.I am using the  tag.In this case
> linkbar does not show viewstack contents.
>
> I have been putting my head into this but could not find any solution.
> Any pointers are highly appreciated.
>
> Thanks
> Rajan
>
>
> Code1:
> 
> 
> http://www.adobe.com/2006/mxml";>
>
>  height="75%" width="75%" horizontalAlign="center"
> paddingTop="10" paddingBottom="10" paddingLeft="10"
> paddingRight="10">
>
>   dataProvider="{myViewStack}"/>
>
> 
>   width="100%" height="80%">
>
>   label="Search" width="100%" height="100%">
>
> 
>
>   label="Customer Info" width="100%" height="100%">
> 
> 
>
>  label="Account Info" width="100%" height="100%">
> 
> 
> 
>
> 
> 
>
> Code2:
> 
> 
> http://www.adobe.com/2006/mxml";>
>
>  height="75%" width="75%" horizontalAlign="center"
> paddingTop="10" paddingBottom="10" paddingLeft="10"
> paddingRight="10">
>
> 
>  
> 
>width="100%" height="80%">
>   label="Search" width="100%" height="100%">
> 
> 
>
>label="Customer Info" width="100%" height="100%">
>  
> 
>
>label="Account Info" width="100%" height="100%">
>  
>  
>   
> 
> 
> 
> 
>



[flexcoders] Re: flex label printing...

2008-11-03 Thread nathanpdaniel
Why can't you send plain text?  The user is still prompted with the 
printer selection dialog (you can't control that anyway) - if the 
Label printer is selcted, it'll print whatever you send it (I've done 
it before...).
  You gotta know the Zebra printer language to have a shot at doing 
anything else.  There's a manual out there (couldn't tell you where 
other than the Zebra site - good luck with that one :D).  Then, it'd 
only be possible to do it in AIR, and, you'd basically send the 
string (which the printer breaks down and is able to print).  I was 
never able to successfully do it.
  The way it works, you generate a "string" (we'll call it PTR for 
now since it's not really just a string).  PTR has to be in the Zebra 
Language (or whatever it's called).  You have to send the PTR to the 
port (printer, comm, etc) the printer is connected to.  Technically, 
the printer should accept the string and know what to do from there.  
Theoretically, that's how it should work - if it actually does - you 
deserve a prize! :D  I tried (in vain) for weeks to get it to work - 
before I settled on creating an Object that would print (in plain 
text) on my Zebra printer (and gave up on it).

-Nathan

--- In flexcoders@yahoogroups.com, "Jackson" <[EMAIL PROTECTED]> 
wrote:
>
> 
>   Hi All,
>  I am trying to print text using a label printer (ZEBRA
> STRIPE).But i cannot send plain text or characters to the 
printer.How
> is it possible in flex/adobe Air application?.
> 
>   Thanks in Advance..
>  Abdul Jaleel C.
>




[flexcoders] Passing variables to HTTPService

2008-11-03 Thread oneworld95
Hi. How do you pass variables to an HTTPService call so that they can
be read by Java? I've got this working with a URLRequest by using
URLVariables but can't seem to get it working with an HTTPService.
Here's my code,

var params:Object = new Object();
params.serviceType = "INITIALIZE"; 

service.send(params);

In the servlet, it's got this code in the doPost() method,

serviceType = request.getParameterValues("serviceType")[0];

It throws Error #2032: Stream Error. It wasn't throwing this until I
added the service parameter. The servlet generates XML data and Flex
is expecting E4X data. Thanks



Re: [flexcoders] Disable Right-Click during Drag

2008-11-03 Thread Tom Chiverton
On Monday 03 Nov 2008, Tom Chiverton wrote:
> On Sunday 02 Nov 2008, jmfillman wrote:
> > Is there a way to disable the right-click menu while dragging?
> You can disable the menu full stop.

Oops, should be:
You *can't* disable the menu full stop.

-- 
Tom Chiverton
Helping to appropriately reinvent partnerships





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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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

For more information about Halliwells LLP visit www.halliwells.com.



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

<*> 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] Re: How can I stop my HTTPService?

2008-11-03 Thread nathanpdaniel
Why don't you move the HTTPService inside the Module?  I think that 
would simplify development, make it stronger (it can stand on it's 
own...sorta) and easier to maintain.  Then, you wouldn't really have 
the current issues you're having... Just a thought! :D

--- In flexcoders@yahoogroups.com, "sailorsea21" <[EMAIL PROTECTED]> 
wrote:
>
> It doesn't seem to work... When I try to reload my module and re-
> establish my HTTPService, it never connects... ?
> 
> The cursor is always busy...
> 
> Thanks.
> 
> --- In flexcoders@yahoogroups.com, "florian.salihovic" 
>  wrote:
> >
> > How about the cancel method of HTTPService?
> > 
> > Best regards.
> >
>




RE: [flexcoders] reload app by refreshing browser increased memory usage

2008-11-03 Thread Alex Harui
I'm sure you realize that having an app reload unexpectedly could annoy users.  
A well-designed app should never run out of memory.  Have you tried using the 
profiler to control memory usage?  This post can help you get better results 
from the profiler and explains how to measure memory: 
http://blogs.adobe.com/aharui/2008/09/using_the_flex_builder_3x_prof.html

If your app is trying to save some state across the reload, I would look for 
issues there first, but I would also test a simple "hello world" app to see if 
you see memory increases during a reload of that app.  Also try minimizing the 
browser and restoring it.  It maybe the browser itself isn't cleaning up.

-Alex

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kkkenio
Sent: Friday, October 31, 2008 9:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] reload app by refreshing browser increased memory usage


Hi all:

everytime user fresh browser to reload our app, the FlashPlayer used
memory will increase around 20MB.

is that how the flash player works, or is this a bug of our app?

What we want to do is reducing the memory usage by reloading the app
when the app detect that it has touched a predefined max memory.

pls share some light, not sure how to figure out this problem.



[flexcoders] Re: AdvancedDataGrid update problems

2008-11-03 Thread kallebertell
I finally managed to reproduce the bug (or one of the bugs).

By scrolling to the very bottom and sorting according to any column,
it seems to sort, but the last items seen in the grid shouldn't be
last. Turns out the grid just hasn't updated the view properly or too
early somehow.

A delayed call to invalidateList after sorting seems at first to fix
this, but it's possible to get the grid into an invalid state despite
this.

Dispatching a reset event seemed better. Would be nice to figure out
the cause since this bandage solution hurts my eyes.

--- In flexcoders@yahoogroups.com, "kallebertell" <[EMAIL PROTECTED]>
wrote:
>
> 
> I'll speculate openly in case someone picks up on this.
> 
> Could there be some sort of race condition in the way AdvancedDataGrid
> works. Ie. redraws or updates the scroll bar too early in reaction to
> sorting? (ie. before the collection has had a chance to finish sorting
> itself)
> 
> Is this kind of bug even possible in the flash runtime, keeping in
> mind that it is single-threaded?
> 
> 
> --- In flexcoders@yahoogroups.com, "kallebertell" 
> wrote:
> >
> > 
> > I'm facing a problem where an advanced data grid (adg) with a
> > hierarchical collection (~500-1000 rows) doesn't redraw properly after
> > sorting is applied to the underlying collection. 
> > 
> > The fun bit is that it isn't reproduceable. The occurance seems to be
> > completely random but somehow related to sorting, as it seems to rear
> > it's head only then (but not always).
> > 
> > Scrolling after the adg is messed up doesn't improve it either, but at
> > some point causes null reference exceptions onMouseRollOver. 
> > 
> > The advanced data grid is in a minimiziable container. If the
> > container is minimized and then restored, the adg looks normal again
> > (ie. redraws correctly).
> > 
> > Although this rarely happens on my dev machine it happens more often
> > for our customers, which might indicate that it's more frequent on
> > slower machines.
> > 
> > I'm looking for any clue or people who have also experienced this
> > weird behaviour in adg.
> > 
> > Thanks.
> >
>




[flexcoders] Re: Problem displaying UIComponents in Sprite

2008-11-03 Thread Juan Andres
Thanks Alex for your reply, :(



RE: [flexcoders] Problem displaying UIComponents in Sprite

2008-11-03 Thread Alex Harui
Sprite is a flash.* class.  So is TextField.  The mx.* classes have some rules:

Navigator children must be Containers
Container children must be IUIComponents
UIComponent parents must be IUIComponents


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Juan 
Andres
Sent: Monday, November 03, 2008 3:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem displaying UIComponents in Sprite


Hi,

I am stuck in a strange problem. Anyone can help me with this?: Why
can't I get the TextArea to display correct in a Sprite container 

This is my code ...

var text:TextArea = new TextArea();
text.height = 500;
text.width = 200;
text.text = " ... anything in TextArea... ";
text.x = 10;
text.y = 10;

var field:TextField = new TextField();
field.height = 20;
field.width = 200;
field.text = " ... anything in TextField... ";
field.x = 5;
field.y = 5;

var sprite:Sprite = new Sprite();
sprite.addChild(text);
sprite.addChild(field);

this.addChild(sprite);

Where "this" is a class that extends from Sprite

The textField was display, but the textArea wasn't. I have the same
problem with other components that extends from UIComponent class.

Any suggestion? Thanks,

Juan



RE: [flexcoders] Re: Center Checkbox in DG Column

2008-11-03 Thread Alex Harui
Yes, see the other item renderer posts on my blog

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
markgoldin_2000
Sent: Monday, November 03, 2008 5:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Center Checkbox in DG Column


Yes, that works, thanks.
The only thing I dont understand, if I trace "value" I am getting as
many rows as many rows visible in the DG at one time. Is that right?

--- In flexcoders@yahoogroups.com, "Tracy 
Spratt" <[EMAIL PROTECTED]> wrote:
>
> Why are you using the "label" property? That property is not on
your
> item object.
>
>
>
> You should do something like this:
>
> super.data = value;
>
> var xmlData:XML = XML(value);
>
> trace(xmlData.Includeintoreport.text())
> selected = (xmlData.Includeintoreport.text() == "true" ? true:
false);
>
>
>
> Tracy
>
>
>
> 
>
> From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On
> Behalf Of markgoldin_2000
> Sent: Saturday, November 01, 2008 7:07 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Center Checkbox in DG Column
>
>
>
> I even changed it to this:
> selected = ( selected == false ? true: false);
> When I click on a checkbox then all visible rows in the DG get
> checkbox checked except the one I have clicked on.
> Also with trace here:
> override public function set data(value:Object):void
> {
> if(value != null)
> {
> super.data = value;
> trace(value);
> selected = ( value.label == "true" ? true: false);
> }
> It shows data that correspondents to all visible on the screen
grid's
> rows. Dont know if that's right.
>
> --- In flexcoders@yahoogroups.com 
> 
> , Alex Harui  wrote:
> >
> > Maybe:
> >
> > override public function set data(value:Object):void
> > {
> > if(value != null)
> > {
> > super.data = value;
> > selected = ( value.label == "true" ? true: false);
> > }
> >
> >
> > From: flexcoders@yahoogroups.com 
> > 
> [mailto:flexcoders@yahoogroups.com 
> 
> ]
> On Behalf Of markgoldin_2000
> > Sent: Friday, October 31, 2008 3:35 PM
> > To: flexcoders@yahoogroups.com 
> > 
> > Subject: [flexcoders] Re: Center Checkbox in DG Column
> >
> >
> > I dont know what I am missing, but still not working for me.
> > Here is my code:
> > import flash.events.Event;
> >
> > import mx.controls.*;
> > import mx.controls.dataGridClasses.DataGridColumn;
> > import mx.controls.listClasses.IDropInListItemRenderer;
> > public class checkBoxGrid extends CheckBox implements
> > IDropInListItemRenderer
> > {
> > public function checkBoxGrid()
> > {
> > super();
> > addEventListener("change", onClick);
> >
> > }
> >
> > override public function set data(value:Object):void
> > {
> > if(value != null)
> > {
> > super.data = value;
> > selected = value.label;
> > }
> >
> > }
> >
> > //called by click of the checkbox
> > private function onClick(e:Event):void
> > {
> > var dataFieldName:String = DataGrid
> > (listData.owner).columns[listData.columnIndex].dataField;
> > data[dataFieldName] = String
> > (selected); //set the checkbox state into the dataProvider
> >
> > }
> > }
> >
> > mxml implementation:
> >  > dataField="includeintoreport" width="40"
> > textAlign="center">
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > Data sample: Fragment
> > vendors>
> > 
> > A. FEIBUSCH CORP.
> > 
> > 
> > false
> > 
> > 
> > ZIPPER
> > 
> > 
> >
> > When I run it all chckboxes come checked despite false in
> > includeintoreport field. So, when I click on a checkbox nothing is
> > changed, it keeps checked status.
> >
> > Hope, someone can help.
> >
> > --- In
> flexcoders@yahoogroups.com 
> 
> , Alex
> Harui  wrote:
> > >
> > > Also see:
> >
>
http://blogs.adobe.com/aharui/2007/04/more_thinking_about_item_rende.h
>

>
> > tml
> > >
> > > From:
> flexcoders@yahoogroups.com 
> 
> 
> >
> [mailto:flexcoders@yahoogroups.com 
> 
>  >] On Behalf Of markgoldin_2000
> > > Sent: Friday, October 31, 2008 1:50 PM
> > > To:
> flexcoders@yahoogroups.com 
> 
> 
> > > Subject: [flexcoders] Re: Center Checkbox in DG Column
> > >
> > >
> > >

Re: [flexcoders] unable to open services-config.xml

2008-11-03 Thread Tom Chiverton
On Friday 31 Oct 2008, creativepragmatic wrote:
> I am developing on Windows machine to deploy on a remote Linux server
> that cannot be accessed locally.  Does anybody know of a way to work
> around this?

Take a copy of the file, store it with the source, and update the argument to 
use the local copy.

-- 
Tom Chiverton
Helping to proactively create action-items





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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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

For more information about Halliwells LLP visit www.halliwells.com.



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

<*> 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] Re: How can I stop my HTTPService?

2008-11-03 Thread sailorsea21
It doesn't seem to work... When I try to reload my module and re-
establish my HTTPService, it never connects... ?

The cursor is always busy...

Thanks.

--- In flexcoders@yahoogroups.com, "florian.salihovic" 
<[EMAIL PROTECTED]> wrote:
>
> How about the cancel method of HTTPService?
> 
> Best regards.
> 





[flexcoders] Re: How can I stop my HTTPService?

2008-11-03 Thread florian.salihovic
How about the cancel method of HTTPService?

Best regards.

--- In flexcoders@yahoogroups.com, "sailorsea21" <[EMAIL PROTECTED]> wrote:
>
> Hi everyone,
> 
> I have an HTTPService that I load in a module. When I unload the module 
> the HTTPService keeps working...
> 
> This is my HTTPService:
>  result="getRate(event)" fault="FaultHandler()" showBusyCursor="true"/>
>  
> I start my HTTPService with the following command:
> rate.send();
> 
> What command can I use to kill the HTTPService when I unload my module?
> 
> Thanks.
>





[flexcoders] How can I stop my HTTPService?

2008-11-03 Thread sailorsea21
Hi everyone,

I have an HTTPService that I load in a module. When I unload the module 
the HTTPService keeps working...

This is my HTTPService:

 
I start my HTTPService with the following command:
rate.send();

What command can I use to kill the HTTPService when I unload my module?

Thanks.



Re: [flexcoders] Flex builder 2 standalone - plugin wouldn't show up

2008-11-03 Thread Tom Chiverton
On Sunday 02 Nov 2008, rviswanathan wrote:
> I think I am missing something. Can someone please help?

Have you attempted any debugging yourself ?

-- 
Tom Chiverton
Helping to preemptively innovate performance-oriented CEOs





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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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

For more information about Halliwells LLP visit www.halliwells.com.



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

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



Re: [flexcoders] Disable Right-Click during Drag

2008-11-03 Thread Tom Chiverton
On Sunday 02 Nov 2008, jmfillman wrote:
> Is there a way to disable the right-click menu while dragging? 

You can disable the menu full stop.

> If not, 
> how do I formally request this? 

Enter it in bugs.adobe.com, but don't be surprised if it's closed as 'wont 
fix' because there are 'issues' with allowing the menu to be removed (like 
spoofing the menu to do something horrible).

> It's pretty annoying to accidently hit 
> the right menu button while dragging. On a laptop, this is a pretty
> common ocurrence. 

Well, not for me, but I get to choose my own laptop and config. :-)

> The drag object can get separated from the cursor, or 
> the drag object gets "stuck" to the cursor and you have to re-load the
> application to get rid of it, or the drag object gets dropped in the
> wrong place.

That sounds like an application bug though.

-- 
Tom Chiverton
Helping to interactively engage eligible bleeding-edge out-of-the-box 
leading-edge ROI





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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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

For more information about Halliwells LLP visit www.halliwells.com.



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

<*> 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] Flex application keyboard language!?

2008-11-03 Thread joyfulrodger
Hi there,

Im sure this is a fairly simple issue to resolve, but i just cant 
seem to get it. 

The text inputs within my flex application have the at(@) sign and 
the quotation mark(") sign mixed up. When i press ctrl 2 i get the @ 
sign when i should be getting the quotation marks and vice versa.

Does anyone know how to resolve this?

Many thanks,

Dave


P.S. Its not an issue with my operating system, i am using the 
correct keyboard layout. Other flex applications i have developed 
dont have this issue.



[flexcoders] Specfic numbers for LCDS server usage

2008-11-03 Thread Gregor Kiddie
Afternoon (at least here it is!) all,

 

I'm trying to hunt down some specific numbers for LCDS to satisfy our
ravenous deployment team.

 

Mainly what is the memory usage when a client registers / de-registers
with a topic?

In other words what exactly is persisted on the server (within LCDS) per
client connection to satisfy Data Services?

 

Other related questions,

How much data is persisted per user and how much of this is copied
between the servers in a cluster?

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]

 



Re: [flexcoders] States and removechild in actionscript 3.0

2008-11-03 Thread Rob Kunkle
Instead of remove child, have you considered just making the component  
invisible or visible?


I did something like this using actionscript code, I realize this code  
is pretty ugly, but it should give you an idea.


Basically I'm creating the states in actionscript as I loop through  
XML. (In this application the information needed for creating the  
components is stored in the XML). There are four control buttons that  
might or might not be displayed displayed depending on where the user  
is while they are paging through the application.


There might be a much easier way for you to do this, but I just wanted  
to put this out there and show that it is possible to build states  
programatically, and push properties onto the states programatically.


Rob


public function httpResult(event:ResultEvent):void {

states = new Array;
productXML = event.result as XML;

for each (var templateXML:XML in productXML.template ) {

//create a new state for each template view
var templateCount:int = productXML.template.length();
state = new State();
state.name = [EMAIL PROTECTED];
			state.overrides.push(new SetProperty(mainPanel ,"title",  
[EMAIL PROTECTED]));


tp = new TemplatePage();

//single page design
if (templateXML.childIndex()==0 && templateCount==1){

state.overrides.push(new SetProperty(btnCancel, 
"visible", true));
state.overrides.push(new SetProperty(btnNext,   
"visible", false));
state.overrides.push(new SetProperty(btnPrevious, 	"visible",  
false));

state.overrides.push(new SetProperty(btnDone,   
"visible", true));


}
//this is the first page of a multipage design

else if (templateXML.childIndex()==0 && templateCount 
>1){

state.overrides.push(new SetProperty(btnCancel, 
"visible", true));
state.overrides.push(new SetProperty(btnNext,   
"visible", true));
state.overrides.push(new SetProperty(btnPrevious, 	"visible",  
false));

state.overrides.push(new SetProperty(btnDone,   
"visible", false));

}

/this is the last page of a multipage design
			else if (templateXML.childIndex() > 0 && templateXML.childIndex()  
== templateCount -1 ) {


state.overrides.push(new SetProperty(btnCancel, 
"visible", false));
state.overrides.push(new SetProperty(btnNext,   
"visible", false));
state.overrides.push(new SetProperty(btnPrevious, 	"visible",  
true));

state.overrides.push(new SetProperty(btnDone,   
"visible", true));


//its just a page in the middle
} else {
state.overrides.push(new SetProperty(btnCancel, 
"visible", false));
state.overrides.push(new SetProperty(btnNext,   
"visible", true));
state.overrides.push(new SetProperty(btnPrevious, 	"visible",  
true));

state.overrides.push(new SetProperty(btnDone,   
"visible", false));
}

states.push(state);
}
currentState=State(states[0]).name; 
}



On Nov 2, 2008, at 10:08 PM, ashok wrote:


Hi,
I have developed my application to contain multiple states. Each of
the states displays custom components. before moving from one state to
another, I need to remove the components in the previous, state.

The problem is how do i use removechild call for different targets in
the same state.

pseudo code:
















This works great when I switch from state1->state2->state3. but when i
want to switch from state2 to state1, my removechild, target should be
my customcomp2 and not uicomp1. How do i bring about this.

I tried to define a function for onEnter for state1, but without any
]effect. can somebody please let me know how do I set the removechild
target dynamically. i tried to accomplish it with the below code, but
it does not work. could somebody please guide me here.

private function onEnterState(statename:String):voi

[flexcoders] Re: Flash player 10 required for my swf?

2008-11-03 Thread valdhor
My guess is that the users seeing this message have Flash 9.0.115 (Or
less Installed).

The wrapper sees that the SWF needs 9.0.124 (Or later) so the user
needs an upgrade. It then asks the server what the latest version of
the player is, finds out it is 10 and tells the user he needs to
update to 10.

Of course, I could be wrong - I was wrong once before I think ;-)


--- In flexcoders@yahoogroups.com, "Daniel Freiman" <[EMAIL PROTECTED]> wrote:
>
> I'm going to stand by my theory that it's going to ask for Flash 10 no
> matter what once it fails the detection script.  But I'm at a loss
as to why
> it's failing at all, unless users are confused between the different
> versions of Flash 9.  But your test would seem to discredit user
confusion.
> Report back if you figure anything out.
> 
> On Fri, Oct 31, 2008 at 3:44 PM, ivo <[EMAIL PROTECTED]> wrote:
> 
> >Thanks for your reply.
> >
> > My point is that I am not using any Flash Player 10 features, my dev &
> > build environment dont have Flash player 10 installed, I am
building using
> > the 3.1 SDK and the project is configured to target 9.0.124. The
output
> > swf passes QA for Flash Player 9. The 'Flash Detection Wrapper' is
given the
> > vars that the required version is 9.0.124. Only some users see the
Flash
> > Player 10 required dialog. Until today I had not seen this dialog
(I have
> > 9.0.124 installed) and it was based on a trivial change.
> >
> > To test again I reverted back to the index.template.html to the one
> > supplied in Flex Builder and no Flash Player 10 required dialog
appears
> > anymore so I am not sure what is going on.
> >
> > I think I will look into using swfobject instead.
> >
> > Thanks,
> >
> > - Ivo
> >
> >
> >
> > --
> > *From:* Daniel Freiman <[EMAIL PROTECTED]>
> > *To:* flexcoders@yahoogroups.com
> > *Sent:* Friday, October 31, 2008 12:12:21 PM
> > *Subject:* Re: [flexcoders] Flash player 10 required for my swf?
> >
> >  I think the detection script checks to see if you have the required
> > version.  If you don't, then it will tell you that you need the most
> > recently released version of Flash regardless of what version the
wrapper
> > actually requires.  This does cause confusion form a troubleshooting
> > standpoint, but I'm guessing the reason is that adobe did this is
that users
> > would be more confused if it told them they needed flash 9 and
gave them
> > flash 10.  Better to confuse the developers than the end user?
> >
> > - Daniel
> >
> > On Fri, Oct 31, 2008 at 2:41 PM, ivo 
> > > wrote:
> >
> >>   Hello all,
> >>
> >> I had been getting reports from users that my widget swf was
displaying
> >> the dialog "This content requires Adobe Flash Player 10" but I
could not
> >> reproduce it. I run and develop with Flash Player 9 installed.
Other users
> >> that only had Flash player 9 installed also could run it without any
> >> problems.
> >>
> >> This morning I did a few changes to the widget, basically I
embedded image
> >> resources at compile time rather than load them over the web at
runtime. On
> >> the next debug run after the changes I started seeing the same
dialog. I
> >> rolled back the changes but the dialog stays. The only way I was
able to get
> >> the dialog to dissapear was to modify the html-template/
index.template.
> >> html, remove the 'Flash Player Version Detection' Javascript and
have just
> >> the embed code with the proper template tokens. The
index.template. html
> >> tokens for ${version_major} ${version_minor} ${version_revision}
always
> >> output 9 0 124 as expected. Not sure what criteria the 'Flash
Player Version
> >> Detection' javascript is following.
> >>
> >> I am building my app using Flex Builder but its a Pure AS3
project, only
> >> Sprites and the Graphic object are used and the SDK is 3.1.
> >>
> >> I have distributed the html with the ''Flash Player Version
Detection'
> >> along with my widget and I am now wondering how many users are
seeing the
> >> dialog and not bothering to run the update.
> >>
> >> Is the lesson here not to use the 'Flash Player Version
Detection' that
> >> ships with Flex Builder ? or am I running into a bug?
> >>
> >> Thanks,
> >>
> >> - Ivo
> >>
> >>
> >   
> >
>




[flexcoders] sqlite insert issue

2008-11-03 Thread Johannes Nel
Hi All
I have a sql statement which runs sans any issues in my sqlite viewer, but
when executed from within air it gives me the error
SQLError: 'Error #3132: Data type mismatch.', details:'could not convert
text value to numeric value.'
this is the table schema
CREATE TABLE category (
id bigint NOT NULL,
"version" integer NOT NULL,
name character varying(255),
ordering integer NOT NULL,
"external" boolean NOT NULL,
createddate timestamp without time zone,
modifieddate timestamp without time zone,
createdby_id bigint,
modifiedby_id bigint
);
and here is the sql statement
insert into category(id, version, name, ordering, external, createddate,
modifieddate, createdby_id, modifiedby_id) values
(477,14,'Leads',0,'false',NULL,'2008-08-19 16:46:54.26',NULL,1109);

any ideas?
i find it really weird that this works on a SQLite level, but not from AS.

johan


-- 
j:pn
\\no comment


[flexcoders] Getting the selected text from HTML control

2008-11-03 Thread b_alen
Hi everybody, is there a way to get the selected text out of the HTML
control? IF I select the text and right click on it I get a "copy"
option. Is it possible to achieve the same by clicking on any button
and copy the selection to clipboard?

Cheers!



[flexcoders] States and removechild in actionscript 3.0

2008-11-03 Thread ashok
Hi,
I have developed my application to contain multiple states. Each of
the states displays custom components. before moving from one state to
another, I need to remove the components in the previous, state. 

The problem is how do i use removechild call for different targets in
the same state. 

pseudo code: 


  
  



  
  



  
  


This works great when I switch from state1->state2->state3. but when i
want to switch from state2 to state1, my removechild, target should be
my customcomp2 and not uicomp1. How do i bring about this.

I tried to define a function for onEnter for state1, but without any
]effect. can somebody please let me know how do I set the removechild
target dynamically. i tried to accomplish it with the below code, but
it does not work. could somebody please guide me here.


private function onEnterState(statename:String):void
{
  switch (prevstate)// this is the stte that the application was   
//  before changing the state
  {
 case state2:
this.rmchild1.target = customcomp2;
 case state1:
   this.rmchild1.target = uicomp1;

  }


}

Could somebody point me in the right direction on how to do this? i
searched the docs but was not sucessfull with this.







[flexcoders] reload app by refreshing browser increased memory usage

2008-11-03 Thread kkkenio
Hi all:

everytime user fresh browser to reload our app, the FlashPlayer used
memory will increase around 20MB.

is that how the flash player works, or is this a bug of our app?

What we want to do is reducing the memory usage by reloading the app
when the app detect that it has touched a predefined max memory.

pls share some light, not sure how to figure out this problem. 



[flexcoders] Problem working on FaceBook API

2008-11-03 Thread Vishal Jain
Hello Everyone,
I am trying out the FaceBook ActionScript API. While working with the 
JavaScriptBridge session i am able to get the session back but i am not able to 
execute any methods using the API. I have tried out the example provided on the 
google code but that didn't works as it suppose to.
Can anyone help me with any working example, or suggest me what i have to do to 
make it work.

Thanks in advance for any insight or assistance,
Vishal



  

[flexcoders] Getting data out of a FileSystemTree

2008-11-03 Thread Anthony Bouvier
I have a simple AIR app where you can drag a folder on to it and it
populates a FileSystemTree.

var files:Array =
e.clipboard.getData(ClipboardFormats.FILE_LIST_FORMAT) as Array;
myTree.directory = files[0];

Now that that has happened, I'd love to be able to get the tree
structure back out in say an XMLList or anything "savable" really.

I can create my own recursive function to do this, but I'd really
rather not.  Seems to me that if the FileSystemTree can take an
XMLList as its input, it should be able to output one as well.

Any ideas?



[flexcoders] Problem displaying UIComponents in Sprite

2008-11-03 Thread Juan Andres
Hi,

I am stuck in a strange problem. Anyone can help me with this?: Why
can't I get the TextArea to display correct in a Sprite container 

This is my code ...

var text:TextArea = new TextArea();
text.height = 500;
text.width = 200;
text.text = " ... anything in TextArea... ";
text.x = 10;
text.y = 10;

var field:TextField = new TextField();
field.height = 20;
field.width = 200;
field.text = " ... anything in TextField... ";
field.x = 5;
field.y = 5;

var sprite:Sprite = new Sprite();
sprite.addChild(text);
sprite.addChild(field);

this.addChild(sprite);

Where "this" is a class that extends from Sprite

The textField was display, but the textArea wasn't. I have the same
problem with other components that extends from UIComponent class.

Any suggestion? Thanks,

Juan



RE: [flexcoders] Re: SWFLoader: access its contents right away

2008-11-03 Thread Keith Reinfeld
You didn't see that one come through either, did you? 

 

It's a gmail thing. You won't receive you own posts. 

Regards, 

-Keith 
http://keithreinfeld.home.comcast.net
 
 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lagos_tout
Sent: Friday, October 31, 2008 3:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: SWFLoader: access its contents right away

 

Wow, I messed up on that.

Instead of --

> //broadcast events that parent.swf can respond to.
> systemManager.dispatch(new Event("myChild"));

use --

//broadcast events that parent.swf can respond to.
systemManager.dispatch(new Event("myEventName"));

--- In [EMAIL PROTECTED]  ups.com,
"lagos_tout" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I recently did something like this. But it was more complicated because
> I was loading a swf from a different domain from it's parent. I needed
> to attach an event handler to the swf when SWFLoader was done loading. 
> Then at some point, the loaded swf would broadcast an event, and the
> parent swf would be able to respond.
> 
> Contrary to what the last poster said, I think you should consider
> listening for the Event.INIT, not Event.Complete broadcast by your
> SWFLoader. To determine which one you need, check descriptions of these
> two events in the Flex 3 Language Reference. Here's the meat of it:
> 
> INIT is broadcast when the properties and methods of a loaded SWF file
> are accessible.
> COMPLETE is broadcast when content loading is complete.
> 
> So, if you need to be able to access child movie clips, I'd say use
> INIT.
> 
> Here's some code. Please note that both parent and child are Flex
> applications, yielding parent.swf and child.swf.
> 
> In parent.swf:
> 
> mySwfLoader:SWFLoader = new SWFLoader();
> mySwfLoader.addEventListener(Event.INIT, onInit);
> function onInit(event:Event):void
> {
> mySwfLoader.content.addEventListener("myEventName",
> onMyEventHandler);
> }
> function onMyEventHandler(event:Event):void
> {
> //do something
> }
> 
> In child.swf:
> 
> //broadcast events that parent.swf can respond to.
> systemManager.dispatch(new Event("myChild"));
> 
> I found that when loading a Flex generated child.swf,
> mySwfLoader.content is a reference to the child.swf's systemManager
> property. So in order to broadcast events from my loaded swf, you
> needed to dispatch the event using the child application's systemManager
> property. Hence the last line of code.
> 
> Hope that helps.
> 
> LT
> 
> --- In [EMAIL PROTECTED]  ups.com,
Alex Harui  wrote:
> >
> > The "complete" event tells you when the load is complete. All
> SWFLoader loads from the network are asynchronous. You'll always have
> to wait to access the data
> >
> > From: [EMAIL PROTECTED]  ups.com
[mailto:[EMAIL PROTECTED]  ups.com]
> On Behalf Of Ignasi Lirio
> > Sent: Thursday, October 30, 2008 2:36 PM
> > To: [EMAIL PROTECTED]  ups.com
> > Subject: [flexcoders] SWFLoader: access its contents right away
> >
> >
> > Hi all,
> >
> > I am new in this group, so hello to everyone :-)
> >
> > I want to discuss here about SWFLoader component in Flex 3, and how to
> > access their contents... programatically.
> >
> > Just for short:
> >
> > I have an existing, empty SWFLoader object in my MXML code.
> >
> > After some time, I just want to populate it using SWFLoader.load()
> > method with an external SWF movie, that has child MovieClips inside.
> >
> > Right after call the .load() method, I am insterested (in the same
> > function) to access its children to move positions, etc. So, if I do
> > something like:
> >
> > var myloader:SWFLoader= this.swfload;
> >
> > and then
> >
> > myloader.load("shelf2.swf");
> >
> > and then
> >
> > myloader.content["s2"].alpha=0.3;
> >
> > It does not work at all. I tried myloader.addEventListener(...) with
> > several events, does not work.
> >
> > The only way was to put that "myloader.content["s2"].alpha..." inside
> > a setTimeout function, to allow SWFLoader to take some time to load.
> > But you agree with me that this is so dirty.
> >
> > any ideas? Thanks to everyone!
> >
>

 



[flexcoders] Bandwidth limitation

2008-11-03 Thread Alexandre Conrad
Hello,

I'm writing an application in AIR with which I need to control bandwidth 
usage during HTTP file transfers (download). Although, I'm not too sure 
how this can be achieved.

- I looked at URLLoader but it doesn't allow me to control when bytes 
are read.
- I looked at the lower level URLStream object, which looks pretty good 
to me according to the method readBytes() I could call whenever needed 
to retrieve the data from the stream. But I've seen no case where I can 
use that method readBytes(). Loading the URLStream with a URLRequest 
object would automatically start the download, as does URLLoader. Which 
I don't want. I want to control when to read bytes from the stream.
- I looked at Socket as well, but this is too low level, I'd need to 
implement all the HTTP mechanism.

Any ideas ? Thanks.

Regards,
Alex


[flexcoders] Re: Center Checkbox in DG Column

2008-11-03 Thread markgoldin_2000
Yes, that works, thanks.
The only thing I dont understand, if I trace "value" I am getting as 
many rows as many rows visible in the DG at one time. Is that right?

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Why are you using the "label" property?  That property is not on 
your
> item object.
> 
>  
> 
> You should do something like this:
> 
> super.data = value;
> 
> var xmlData:XML = XML(value);
> 
> trace(xmlData.Includeintoreport.text())
> selected = (xmlData.Includeintoreport.text() == "true" ? true: 
false);
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of markgoldin_2000
> Sent: Saturday, November 01, 2008 7:07 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Center Checkbox in DG Column
> 
>  
> 
> I even changed it to this:
> selected = ( selected == false ? true: false);
> When I click on a checkbox then all visible rows in the DG get 
> checkbox checked except the one I have clicked on.
> Also with trace here:
> override public function set data(value:Object):void
> {
> if(value != null)
> {
> super.data = value;
> trace(value);
> selected = ( value.label == "true" ? true: false);
> }
> It shows data that correspondents to all visible on the screen 
grid's 
> rows. Dont know if that's right.
> 
> --- In flexcoders@yahoogroups.com 
> , Alex Harui  wrote:
> >
> > Maybe:
> > 
> > override public function set data(value:Object):void
> > {
> > if(value != null)
> > {
> > super.data = value;
> > selected = ( value.label == "true" ? true: false);
> > }
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ] 
> On Behalf Of markgoldin_2000
> > Sent: Friday, October 31, 2008 3:35 PM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] Re: Center Checkbox in DG Column
> > 
> > 
> > I dont know what I am missing, but still not working for me.
> > Here is my code:
> > import flash.events.Event;
> > 
> > import mx.controls.*;
> > import mx.controls.dataGridClasses.DataGridColumn;
> > import mx.controls.listClasses.IDropInListItemRenderer;
> > public class checkBoxGrid extends CheckBox implements
> > IDropInListItemRenderer
> > {
> > public function checkBoxGrid()
> > {
> > super();
> > addEventListener("change", onClick);
> > 
> > }
> > 
> > override public function set data(value:Object):void
> > {
> > if(value != null)
> > {
> > super.data = value;
> > selected = value.label;
> > }
> > 
> > }
> > 
> > //called by click of the checkbox
> > private function onClick(e:Event):void
> > {
> > var dataFieldName:String = DataGrid
> > (listData.owner).columns[listData.columnIndex].dataField;
> > data[dataFieldName] = String
> > (selected); //set the checkbox state into the dataProvider
> > 
> > }
> > }
> > 
> > mxml implementation:
> >  > dataField="includeintoreport" width="40"
> > textAlign="center">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Data sample: Fragment
> > vendors>
> > 
> > A. FEIBUSCH CORP.
> > 
> > 
> > false
> > 
> > 
> > ZIPPER
> > 
> > 
> > 
> > When I run it all chckboxes come checked despite false in
> > includeintoreport field. So, when I click on a checkbox nothing is
> > changed, it keeps checked status.
> > 
> > Hope, someone can help.
> > 
> > --- In 
> flexcoders@yahoogroups.com 
> , Alex 
> Harui  wrote:
> > >
> > > Also see:
> > 
> 
http://blogs.adobe.com/aharui/2007/04/more_thinking_about_item_rende.h
> 

> 
> > tml
> > >
> > > From: 
> flexcoders@yahoogroups.com 
> 
> > 
> [mailto:flexcoders@yahoogroups.com 
>  >] On Behalf Of markgoldin_2000
> > > Sent: Friday, October 31, 2008 1:50 PM
> > > To: 
> flexcoders@yahoogroups.com 
> 
> > > Subject: [flexcoders] Re: Center Checkbox in DG Column
> > >
> > >
> > >  > > Where can I find it?
> > >
> > > --- In 
> flexcoders@yahoogroups.com 
>  :flexcoders%
> > 40yahoogroups.com>, "Amy"  wrote:
> > > >
> > > > --- In 
> flexcoders@yahoogroups.com 
>  :flexcoders%
> > 40yahoogroups.com>, "markgoldin_2000"
> > > >  wrote:
> > > > >
> > > > > I am trying to get a checkbox working properly in my DG 
column
> > > when
> > > > > it's placed in a HBox in order to center the checkbox.
> > > > > I am overriding a few functions in the checkbox but none of 
> them
> > > gets
> > > > > any hit. Do I need also overr

Re: [flexcoders] Re: palin text printing in flex without dialogue box.

2008-11-03 Thread Paul Andrews
I haven't needed to solve this problem in Flex, but it was a problem (in 
another life) with some other software that I used. I know that if we were 
building the system using Flex, our solution would work just as well.

In essence we had an intranet based environment with networked printers (dot 
matrix printers used for label printing, including barcodes) talking to a 
Unix based server. The unix boxes were able to transfer data directly to the 
printers by using remote copy (rcp). The client server software would create 
the data to be passed to the printer - send it to the server, and the server 
would rcp the data directly to the printer. It worked like a charm and is 
still working.

This requires a carefully controlled environment and information about the 
printers involved and their network paths.

Paul
- Original Message - 
From: "andrii_olefirenko" <[EMAIL PROTECTED]>
To: 
Sent: Monday, November 03, 2008 11:09 AM
Subject: [flexcoders] Re: palin text printing in flex without dialogue box.


> No, it's not possible in Flex (security restriction)
> and I guess the same for Air, but I saw Air application that managed
> to programmatically "click" Print button using some external software
> (it was kiosk application)
>
> Regards
>
> --- In flexcoders@yahoogroups.com, "Jackson" <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi All,
>>  Is it possible to print plain text in flex or adobe Air
>> application?.And can we print without printer dialogue box?.
>>
>> Thanks in Advance..
>>  Abdul Jaleel C.
>>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
> Links
>
>
>



[flexcoders] Re: palin text printing in flex without dialogue box.

2008-11-03 Thread andrii_olefirenko
No, it's not possible in Flex (security restriction)
and I guess the same for Air, but I saw Air application that managed
to programmatically "click" Print button using some external software
(it was kiosk application)

Regards

--- In flexcoders@yahoogroups.com, "Jackson" <[EMAIL PROTECTED]> wrote:
>
> 
> Hi All, 
>  Is it possible to print plain text in flex or adobe Air
> application?.And can we print without printer dialogue box?.
> 
> Thanks in Advance..
>  Abdul Jaleel C.
>




[flexcoders] flex label printing...

2008-11-03 Thread Jackson

  Hi All,
 I am trying to print text using a label printer (ZEBRA
STRIPE).But i cannot send plain text or characters to the printer.How
is it possible in flex/adobe Air application?.

  Thanks in Advance..
 Abdul Jaleel C.



[flexcoders] flex label printing...

2008-11-03 Thread Jackson

  Hi All,
 I am trying to print text using a label printer (ZEBRA
STRIPE).But i cannot send plain text or characters to the printer.How
is it possible in flex/adobe Air application?.

  Thanks in Advance..
 Abdul Jaleel C.



[flexcoders] Re: AdvancedDataGrid update problems

2008-11-03 Thread kallebertell

I'll speculate openly in case someone picks up on this.

Could there be some sort of race condition in the way AdvancedDataGrid
works. Ie. redraws or updates the scroll bar too early in reaction to
sorting? (ie. before the collection has had a chance to finish sorting
itself)

Is this kind of bug even possible in the flash runtime, keeping in
mind that it is single-threaded?


--- In flexcoders@yahoogroups.com, "kallebertell" <[EMAIL PROTECTED]>
wrote:
>
> 
> I'm facing a problem where an advanced data grid (adg) with a
> hierarchical collection (~500-1000 rows) doesn't redraw properly after
> sorting is applied to the underlying collection. 
> 
> The fun bit is that it isn't reproduceable. The occurance seems to be
> completely random but somehow related to sorting, as it seems to rear
> it's head only then (but not always).
> 
> Scrolling after the adg is messed up doesn't improve it either, but at
> some point causes null reference exceptions onMouseRollOver. 
> 
> The advanced data grid is in a minimiziable container. If the
> container is minimized and then restored, the adg looks normal again
> (ie. redraws correctly).
> 
> Although this rarely happens on my dev machine it happens more often
> for our customers, which might indicate that it's more frequent on
> slower machines.
> 
> I'm looking for any clue or people who have also experienced this
> weird behaviour in adg.
> 
> Thanks.
>