[flexcoders] DSErrorHint

2007-11-28 Thread Romeo Obane
Hi to All,

 

We are currently developing an Image Gallery Application. We have a fluorine
service as our gateway to .Net. The developed application is working for a
few weeks now, until today we encountered an error regarding the
DSErrorHint, I've got some ideas about it but still can't figure it out how
to trace the bug and solved it.

 

Here is the specific error message:  

 

ReferenceError: Error #1069: Property DSErrorHint not found on String and
there is no default value.

at mx.rpc::AsyncRequest/acknowledge()

at
::NetConnectionMessageResponder/NetConnectionChannel.as$40:NetConnectionMess
ageResponder::resultHandler()

at mx.messaging::MessageResponder/result()

 

I will appreciate any suggestions and comments.

 

Thanks,

Romeo



[flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid tab order?)

2007-11-28 Thread Stephen Roy J. Tang
Can you check my sample here:
http://roytang.net/sandbox/DataGridSample.swf

Source at http://roytang.net/sandbox/DataGridSample.mxml

When I tab starting from the textinput and all the way to the last row
of the datagrid (row 14), it's still ok. But after tabbing out from
row 14 the tab order becomes trapped in the onscreen checkboxes (and
doesn't even follow them in the top-to-bottom left-to-right order)

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 tabEnabled is ignored for renderers/editors.  The only thing that
 matters is editable=true on the DG and the DGColumn.
  
 You should have itemRenderer=CheckBox and rendererIsEditor=true.  You
 don't need to set itemEditor=CheckBox.
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Stephen Roy J. Tang
 Sent: Tuesday, November 27, 2007 7:54 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid
 tab order?)
 
 
 
 thanks. I appreciate the replies esp. since I can't provide my app's
 sample code here so I guess it's difficult for others to figure out.
 
 I guess the problem is I tried to avoid using itemEditors entirely and
 used itemRenderers instead, so now the tab order is all messed up and
 doesn't scroll.
 
 I'm going to try using itemEditors again. However, the main problem
 there is that I want to render the column as a checkbox and have it
 editable as a checkbox also. So I'll do the ff:
 1. set itemRenderer=checkbox and itemEditor=checkbox. 
 2. set tabEnabled=false for the checkbox itemRenderer; this is so that
 the itemRenderers don't screw up the tab order
 Under the above setup, the tab order seems correct. 
 
 The only issue with the above that I'm not sure how to support is that
 visually the column is a checkbox, but requires the user to click
 twice on the checkbox to toggle the value (once to enable edit mode,
 second time to actually edit). Is there any way to avoid this? Most of
 the examples of using checkbox as an itemEditor seem to use static
 text as the renderer.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  the default editing code handles offscreen rows.
  
  you can probably override focusinhandler and set editeditemposition
  
  the dg remembers the last position of the editor and restores editing
  there
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of Stephen Roy J. Tang
  Sent: Tuesday, November 27, 2007 1:19 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: Datagrid tab order?
  
  
  
  We had trouble before with having both an item renderer and an item
  editor for a column (which we need to have that checkbox column), so
  instead what I tried was simply having only itemrenderers for the
  controls (and updating the data on change of the itemrenderer
  controls) This seems to fix the default tab order, but there are still
  some issues with the tab order, namely:
  
  1. Tabbing through the grid only traverses visible rows - how can a
  user navigate to scrolled-out rows using the keyboard?
  2. Sorting the grid doesn't seem to sort the taborder - the rows are
  still traversed in the original order. (Strangely, reassigning a
  headerRenderer after the sorting sets the correct tab order - I found
  this by accident)
  3. Tabbing into the grid from an outside control - looks like it
  remembers where the grid was last traversed and starts over from
  there. Is it possible to change it to always enter the grid from the
  first row?
  4. I'm not sure of the behavior exactly, as I couldn't replicate it
  all the time, but tabbing into the grid after it has been
  mouse-scrolled seems to cause it to enter at different rows.
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  , Alex Harui aharui@ wrote:
  
   Sounds like editable!=true, so the DG's tab handling code isn't
  running.
   
   
   
   
   
   From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  ] On
   Behalf Of Stephen Roy J. Tang
   Sent: Friday, November 16, 2007 9:15 PM
   To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
   Subject: [flexcoders] Datagrid tab order?
   
   
   
   Hi,
   
   I'm a bit confused about the tab order in a datagrid. The problem is
 I
   have a datagrid with 3 columns: 
   column 1 - renderer is a checkbox control. I use onchange of the
   checkbox to update the underlying data
   column 2 - normal text column, editor is a 

[flexcoders] Re: getElement from scope

2007-11-28 Thread johantrax
 Like if i create a mx:TextInput id=foo / to work with it on the
 actionscript just use foo.text = 'bla' for example.

The reason you can access foo in your AS here is because when you
define an mxml-tag, it basically becomes a public, bindable property
of that class. So if you want the same in AS it's sth like:
  [Bindable]
  public var foo:TextInput;

 So, looking at this code and suppose that you CAN NOT change not one
 line of this code, how do i work with foo in the myTimer function?
If we CAN NOT change the code, there's no way to work with 'foo' in
myTimer function (however as you pointed out yourself, you can test on
the last part of childName of the last canvas to see if it matches the
name of 'foo').
This is because you've declared foo inside the init-funtion, therefore
it doesn't 'exists' out of the scope of that function.

 The thing is i'm creating a lot of forms dynamically
Great :) So do I, and I stumbled on a likewise problem. Not being able
to reference the created objects.
Even if you think to outsmart Flex and do like JJain said
(object.id='myId'), the object won't be accessible by the use of that
ID. The reason is that Flex/Flash generates the id of a generated
object itself.
There is a clean workaround for this problem using a Dictionary with
the id's as keys and the objects as values. You can find an
explanation about this method here:
http://www.jumpingbean.co.za/blogs/mark/flex_reference_components_dynamic_runtime_creation

--Johan




Re: [flexcoders] Re: string to date, no support for european dates ?

2007-11-28 Thread Tom Chiverton
On Tuesday 27 Nov 2007, johantrax wrote:
 wrote:
  Why are you manipulating the String of a DateField, and not the Date ?
 This is because the call to super.doValidation(value) needs a string
 as parameter, using the date gives the following validationError:
 Please enter a year between 0 and 

Date.fullYear ? String(Date.fullYear) ? Though I still thing your validation 
is wrong if it things a year number is a string...

 I also noticed that the DateField.data-property doesn't seem to be
 altered at all whether typing or selecting a new date.

DateField.*date* not DateField.*data*

-- 
Tom Chiverton
Helping to adaptively industrialize attention-grabbing communities
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
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
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] HistoryManagement

2007-11-28 Thread eric . guesdon
Hi to all,

Did you already meet this issue ?

I made a simple application with tabnavigator. Within one of its  
container i put a link to an external html location.

So, i expect to play with both Back and Forward navigator Button.

Expected behavior is ok with Netscape 9 - FireFox 2 but with IE7  
nothing works.

Do you have any recommandations to solve this behavior.

Thanks in advance

Regards

Eric


This message was sent using IMP, the Internet Messaging Program.




[flexcoders] Bubble chart item

2007-11-28 Thread hworke


   Hi,

   in a bubble chart the bubbles do not show up if
   the radius of every single bubble are equal. Is
   it a bug or this is the way it should be?

   Regards 



[flexcoders] Re: string to date, no support for european dates ?

2007-11-28 Thread johantrax
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 DateField.*date* not DateField.*data*
 
Tom, would be nice to use *date*, only.. this isn't a property of the
DateField...
There is however the property selectedDate, but as stated in the docs:
Date as selected in the DateChooser control.

So that doesn't apply for a manually entered date.
To be sure the problems are not part of my components, I created this
little testcase:

mx:DateField id=dfield
editable=true
firstDayOfWeek=1
formatString=DD/MM/ /
mx:DateValidator id=dval
inputFormat=DD/MM/
source={dfield}
property=selectedDate /

Which bumps up the 'This field is required'-error, even after
selecting a date with the DateChooser and focussing out.

I have the feeling, we're still far from home...

--Johan




Re: [flexcoders] Re: string to date, no support for european dates ?

2007-11-28 Thread Tom Chiverton
On Wednesday 28 Nov 2007, johantrax wrote:
 Tom, would be nice to use *date*, only.. this isn't a property of the
 DateField...

Sorry, it's selected date.

 So that doesn't apply for a manually entered date.

*Ahh*. With you now :-)
If you *must* allow users to type in the box, you want to parse the String 
into a real Date (once the control loses focus) then assign that Date back to 
the control, before calling your validation - assuming the string parses.
You could use the DateUtil class from http://falkensweb.com/other.html for 
instance.

-- 
Tom Chiverton
Helping to revolutionarily network best-of-breed infrastructures
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
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
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] Focus Question

2007-11-28 Thread Christopher Olsen
Hello,

When I have something like a textInput and it's in focus it gets a blue 
highlighted border around it... Is there a way to disable that 
particular border?

-Christopher


RE: [flexcoders] Re:Styles for the Title Bar of a TitleWindow or Panel

2007-11-28 Thread Charlie Skinner
Thanks that was very helpful. It turns out that there is a Magic Number,
aka 10, that is used to position the Close Button and the Title Text
text field. So I guess overriding the layoutChrome() method is my only
option.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Spurr
Sent: 27 November 2007 16:35
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:Styles for the Title Bar of a TitleWindow or
Panel

 

I customised the TitleWindow recently, the Panel moves the title bar
around (I think in the layoutChrome() method, but I'm not looking at
code) so that it overlaps the border, so it doesn't matter what you set
your border metrics (if that's what you're trying) to the title bar will
always be overlapping the border.

I had to override the layoutChrome() method and move things around in my
component to get them in the right place.

Hope that helps,

-D 

 



Re: [flexcoders] How to force swf reload?

2007-11-28 Thread Tom Chiverton
On Wednesday 28 Nov 2007, v.cekvenich wrote:
 What (java)script do people us to deploy swf files?

SwfObject.

 We are using adobes .js script, but this does not reload the new swf
 files when we release a new version.
 So our users see the old swf version of our app.

Is your web server sending incorrect cache HTTP headers or something ?

-- 
Tom Chiverton
Helping to autoschediastically generate enterprise-class systems
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
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
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


Re: [flexcoders] Previewing Halo styles

2007-11-28 Thread Tom Chiverton
On Tuesday 27 Nov 2007, Amy wrote:
 from the regular style.  I haven't been able to find a graphical
 representation of these styles.  Any ideas?

http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html
 ?

-- 
Tom Chiverton
Helping to preemptively disseminate 24/7 networks
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
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
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


Re: [flexcoders] Spreadsheet application in Flex

2007-11-28 Thread Tom Chiverton
On Wednesday 28 Nov 2007, andrii_olefirenko wrote:
 We started developing a spreadsheet application (not only a component)
 built in Flex. It's in deep Alpha stage but we are going to extend

So, you're next on Adobe's hit list then, right :-)

-- 
Tom Chiverton, waiting for Adobe Office 



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
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
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] Achieving weak-ref VALUE Dictionaries; Alternatives

2007-11-28 Thread Aldo Bucchi
Hi all,

I have a situation where I need to pool a certain type of objects
based on their value, so that for each for each person ID I have at
most one PersonVO living at a certain moment

This way I can always test equality as follows:

personVO1 === personVO2

instead of a custom value based method:

personVO1.equals( personVO2 )

The most obvious way of achieving this is to use Factory backed by a
dictionary or hashmap using personID as key. The problem is that,
after some time, I can potentially deal with tens of thousands of
cummulative distinct persons, but each one is used only for a couple
of minutes and won't occur again.

Having each instance referenced by a hashmap will only result in an
inevitable memory leak.

So, basically, what I need is a dictionary with weak *references*
instead of keys...
I thought about using one dictionary in the middle and store the
PersonVO instance as key

( pseudocode )

to store

var tempDictionary:Dictionary = new Dictionary( true );
tempDictionary[ personVO ] = true;
personIDToPersonVOMap[ personID ] = tempDictionary;

to retrieve

for ( var personVO:PersonVO in personIDToPersonVOMap[ personID ] )
return personVO;
// if for loop does't hit any key then the value object was garbage
collected, and I can create a new one


This should, in theory, work... at the expense of some obvious
overhead ( one new Dictionary instance per value object ).

A second approach I was thinking about is not so straightforward but
might perform better:

- Use a normal hashmap to store the value objects
- Every now and then, create a dictionary with weak keys and put all
the value objects as KEYS
- delete the hashmap
- wait for GC to run
- after some time, or on demand, iterate over the keys ( that were not
GCCollected ) and repopulate the hashmap

Of course the latter approach will only work if the GC runs during the
no-hashmap interval.
Is there any way to fire the GC manually? ( creating a zillion empty
objects perhaps )

Any ideas?

Thanks,
Aldo



-- 
 Aldo Bucchi 
+1 858 539 6986
+56 9 8429 8300
+56 9 7623 8653
skype:aldo.bucchi


RE: [flexcoders] Bubble chart item

2007-11-28 Thread Sunil Bannur
This was a bug, it has been fixed in Flex 3 beta 2.

You can also override guardminmax function of numericaxis to adjust your
min and max values of the axis.

 

Thanks

-Sunil

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hworke
Sent: Wednesday, November 28, 2007 3:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Bubble chart item

 



Hi,

in a bubble chart the bubbles do not show up if
the radius of every single bubble are equal. Is
it a bug or this is the way it should be?

Regards 

 



[flexcoders] Apollo installer

2007-11-28 Thread ecmntech
Hello guys. Just want to ask, if there's any site or anybody have a
Apollo installer?

Since AIR is for Flex 3.

I'm using Flex Builder 2.0.1

TNX.



[flexcoders] VideoDisplay inconsistent behavior, it gets Stuck

2007-11-28 Thread Nadeem Manzoor
Hello Guys

I am working on a Flex Media application. I am sending Flv path through
Javascript. Everythings is working fine. But, suppose, if i send a fake flv
url it throgh an Exception connectionerror and after then it gets stuck
e.g. after connectionerror if i am trying to pass a proper flv path it does
not trigger ready event or any exception

Any Ideas ?

-- 
Regards,

Nadeem Manzoor


[flexcoders] Re: Spreadsheet application in Flex

2007-11-28 Thread andrii_olefirenko
Thanks for feedback
1. yes, the formula evaluator doesn't check for valid ranges yet,
though in this case it could be like recursion calculations but it
will end up with infinite recursion  - which is not good :)
2. yes, it will be implemented cause i''m pretty tired of entering
addresses by hand too :)
3. yes, actually the box below is for this (it displays only current
address now, but it's quite easy to implement editing formulas and stuff)

again, thank you for your comments 
--- In flexcoders@yahoogroups.com, bloodylag [EMAIL PROTECTED] wrote:

 --- In flexcoders@yahoogroups.com, andrii_olefirenko andriyo@
 wrote:
 
  Hello guys,
  We started developing a spreadsheet application (not only a component)
  built in Flex. It's in deep Alpha stage but we are going to extend
  functionality so it will be decent and free replacement for desktop
  spreadsheet applications.
  For version 1.0 following will be implemented
  1. Cell selection - done
  2. ABC/123 Rules - done
  3. Content copy/cut/paste - done
  4. Cell editing - done
  5. Row/Column/Cell formatting - done
  6. Cursor browsing (Tab, Enter) - done
  7. Basic formula evaluation - done
  8. MS Office format support - work in progress
  9. Data sorting
  10. Data search
  11. File saving on the server, on the client, loading from the server,
  from the client, file revisions
  
  Read more info and watch demo here http://andriyo.kiev.ua/archives/11
  I'd really appreciate your comments and critics:)
  
  Andrii Olefirenko
 
 
 Just watched the video, pretty cool looking demo.
 
 Though I noticed a few things
 
 1. The part where he was showing off the SUM. He went from the inital
 row to also the row where he was putting the formula (I10 - I14)
 though the numbers only went from I10 - I13. 
 
 It gave the result of 20, which I guess is right since he did 1 + 2 +
 3 + 4 = 10 + =SUM(of those 4 numbers) which is 20. Though I pretty
 sure normal spreadsheets will error on that, I tried it in google
 spreadsheets and it throws a #REF error.
 
 2. Will you support when doing an equation cell highlighting to
 automatically fill in the equation. IE =SUM( user clicks cells and it
 puts it in)?
 
 3. Also will you have a textbox which shows the current formula for
 the currently selected cell?





[flexcoders] c99 its a virus, do not open that mail

2007-11-28 Thread Kun Janos
Sorry :(




  

Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.  
http://overview.mail.yahoo.com/

[flexcoders] Re: Help! Datagrid bug?

2007-11-28 Thread yossigordin
Hi,

I know this problem, happened to me once.
This is a known issue that won't be fixed by Adobe.
It usually happens when you try to scroll - the data is presented in 
a wrong way.
But it has a solution.

Add an event listener for FlexEvent.DataChange in your itemRenderer.
In the listener function do your code again.
for instance if i have an inline item renderer that presents a 
property named currentConcurrentCalls, i need to add an event 
listener for the dataChange event and render it again there :
mx:itemRenderer
  mx:Component
mx:HBox width=100% creationComplete=doInit()
mx:Script
![CDATA[
import mx.events.FlexEvent;
import mx.resources.ResourceBundle;
[ResourceBundle(hostlynx)]
private static const _rb:ResourceBundle;
[Bindable]  
private var strMaxConcurrentCalls:String;   

  private function doInit():void{
if(data!=null  data.entityObject 
[currentConcurrentCalls] != null){
strMaxConcurrentCalls =  
data.entityObject.currentConcurrentCalls;
}   
addEventListener(FlexEvent.DATA_CHANGE,dataChange); 
}
private function dataChange(event:FlexEvent):void{
if(data!=null  data.entityObject
[currentConcurrentCalls] != null){
strMaxConcurrentCalls = 
data.entityObject.currentConcurrentCalls;
}   
   }
]]
  /mx:Script
  mx:Text id=txtCurrentCalls text={strMaxConcurrentCalls}  
styleName=dataGridText/
/mx:HBox
  /mx:Component
/mx:itemRenderer

Hope it helps,
Yossi
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 Which version?  Can you post a small test case?
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of danny_yoo88
 Sent: Tuesday, November 27, 2007 6:03 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Help! Datagrid bug?
 
 
 
 Hi,
 
 I have a DataGrid with an inline itemRenderer.
 
 Originally the DataGrid was using an Array as a data source.
 Everything was fine.
 
 Then I changed my datasource to an object containing sub-objects 
and I
 revised my datagrid accordingly.
 
 I use DateChooser to fire off an event when a date is selected. The
 DataGrid listens for the event and event-code adds the date to the
 data source.
 
 Everything works BUT...
 
 When I enter dates in newest to older sequence, the DataGrid 
renders
 TWO rows for the older date. i.e:
 
 Row 1: November 26, 2007
 Row 1: November 26, 2007
 Row 2: November 27, 2007
 
 When I inspect the data source and the 
DataGrid.dataProvider.source I
 only see two entries.
 
 When I hover over November 26, 2007, only the last instance 
responds
 by highlighting the row blue. I can't do anything to the first row.
 
 The only way to make things right is to click on a header-column to
 sort the grid or add another date. Then the duplicate magically
 disappears.
 
 I can't seem to do anything to the DataGrid (invalidateList, etc) 
to
 force update the grid.
 
 Any ideas?
 
 Thanks,
 
 Danny





RE: [flexcoders] Skinning a Panel in Flex

2007-11-28 Thread Clinton D. Judy
Flex 3 Beta 2...

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason Szeto
Sent: Monday, November 26, 2007 7:51 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Skinning a Panel in Flex

 

Clinton,

 

Support for Scale9Grid in Panel was added in Flex 3. What version are
you running?

 

Jason

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Derrick Anderson
Sent: Monday, November 26, 2007 6:53 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Skinning a Panel in Flex

 

i have had this same issue, and it's when i use bitmap graphics in flash
with scale-9, apparently it doesn't work that way, only on vector
graphics in flash.  what i do is reference the graphic file directly in
css, and also specify your scale9 grid in css as well.  then it should
work.  or the easier option is to convert your stuff to vector graphics,
but i'm not a graphics guy and have never had much luck with that. 

On Nov 26, 2007 9:40 AM, Clinton D. Judy [EMAIL PROTECTED] wrote:

No answers yet? Should I package up the materials I have so ya'll can
try them out yourselves? I'm still hoping this will be a simple fix.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Clinton D. Judy
Sent: Friday, November 23, 2007 7:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Skinning a Panel in Flex

 

I'm trying to skin panels for use in Flex, but my corners, which are
rounded, keep getting squished. I'm sure I'm doing it right in Flash: My
own drawing is lined up with the reference point (0, 0), the 4
guidelines for scale9 are in the right places and everything. And in my
css file, I have:

Panel

{

  borderSkin: Embed (source=flex_skins.swf,
symbol=Panel_borderSkin);

  borderThicknessLeft: 16 ;

  borderThicknessRight: 16 ;

  borderThicknessTop: 0 ;

  borderThicknessBottom: 16 ;

  headerHeight: 16 ;

} 

Where am I going wrong? Something else I should add, my panel gets
stretched depending on what size I want to make it at, but it looks like
the scale9 stuff is ignored completely, stretching the underlying swf as
if it were just one bitmap with no scale9 stuff.

Clinton

 

 

 



[flexcoders] Re: Focus Question

2007-11-28 Thread m.ar80
Look into implementation of TextInput.focusInHandler() and override it
to set focusManager.showFocusIndicator to false



[flexcoders] Am I the only one who wishes EventDispatcher exposed its listeners?

2007-11-28 Thread ben.clinkinbeard
Sometimes it would be really nice be able to access a list of
currently attached listeners by doing something like
myButton.listeners. Having that return a collection of objects that
expose the event type and handler method would be nice and it doesn't
seem like it would be that hard to implement since they're obviously
already kept track of somewhere.

Does anybody else wish this was provided? Does anyone from Adobe have
info on why its not and/or if it might be someday?

Thanks,
Ben



Re: [flexcoders] Am I the only one who wishes EventDispatcher exposed its listeners?

2007-11-28 Thread Doug McCune
I can see this functionality being useful for various reasons. Ben, are you
thinking you want to track down any listeners that are left over that are
preventing garbage collection?

Doug

On 11/28/07, ben.clinkinbeard [EMAIL PROTECTED] wrote:

   Sometimes it would be really nice be able to access a list of
 currently attached listeners by doing something like
 myButton.listeners. Having that return a collection of objects that
 expose the event type and handler method would be nice and it doesn't
 seem like it would be that hard to implement since they're obviously
 already kept track of somewhere.

 Does anybody else wish this was provided? Does anyone from Adobe have
 info on why its not and/or if it might be someday?

 Thanks,
 Ben

  



RE: [flexcoders] Am I the only one who wishes EventDispatcher exposed its listeners?

2007-11-28 Thread Samuel R. Neff
 
.NET does this and it comes in handy (although usually in situations that
would not apply in Flex, such as threading and switching contexts).  I agree
that if data is stored internally, it should be made available.
 
Sam

---
We're Hiring! Seeking a passionate developer to join our team building Flex
based products. Position is in the Washington D.C. metro area. If interested
contact [EMAIL PROTECTED]
  

Doug


On 11/28/07, ben.clinkinbeard [EMAIL PROTECTED] wrote: 

Sometimes it would be really nice be able to access a list of
currently attached listeners by doing something like
myButton.listeners. Having that return a collection of objects that
expose the event type and handler method would be nice and it doesn't
seem like it would be that hard to implement since they're obviously
already kept track of somewhere.

Does anybody else wish this was provided? Does anyone from Adobe have
info on why its not and/or if it might be someday?

Thanks,
Ben







Re: [flexcoders] Reference to the content area of a Panel component

2007-11-28 Thread Mark Lapasa
I got this thing to work perfectly under Flex 3 but in Flex 2 which I am 
targeting for, it breaks.

In Flex 3, the panel's border metrics give me top:30, left:10, 
right:10,  and bottom:10. I am able to get this from PanelSkin.

In Flex 2, the panel's border metrics give me top:0, left:0, right:0,  
and bottom:0. I am able to get this from HaloBorder.

I am not entirely sure if this is a bug.


Mark Lapasa wrote:

 I managed to get to the panel's boarderskin via the panel's rawchildren.
 I guess it's now just a matter of figuring out the math. Thx Alex.

 Alex Harui wrote:
 
  It is not guaranteed to be a separate object. It is drawn by the
  panel's borderskin and located within the coordinates of the panel
  minus its viewMetrics.
 
  --
  *From:* flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com]
  *On Behalf Of *Mark Lapasa
  *Sent:* Monday, November 26, 2007 3:18 PM
  *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  *Subject:* [flexcoders] Reference to the content area of a Panel 
 component
 
  Hello all,
 
  I am trying to get access the content area of a panel as I would like to
  skin it relative to the panel's content area. I am referring to that box
  of white space underneath the title bar.
 
  From the docs it says:
 
  A Panel ../langref/mx/containers/Panel.html layout container includes
  a title bar, a title, a status message area (in the title bar), a
  border, and a content area for its children
 
  But I can't find a reference in the API how to get the x,y, width and
  height of the actual content area container where the panel's children
  reside. Any guidance would be appreciated.
 
  Thx,
 
  -mL
 
  Notice of confidentiality:
  The information contained in this e-mail is intended only for the use
  of the individual or entity named above and may be confidential.
  Should the reader of this message not be the intended recipient, you
  are hereby notified that any unauthorized dissemination, distribution
  or reproduction of this message is strictly prohibited. If you have
  received this message in error, please advise the sender immediately
  and destroy the e-mail.
 
 

 Notice of confidentiality:
 The information contained in this e-mail is intended only for the use 
 of the individual or entity named above and may be confidential. 
 Should the reader of this message not be the intended recipient, you 
 are hereby notified that any unauthorized dissemination, distribution 
 or reproduction of this message is strictly prohibited. If you have 
 received this message in error, please advise the sender immediately 
 and destroy the e-mail.

  



Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



[flexcoders] Re: ListCollectionView dispatches too many CollectionEvents after enableAutoUpdate

2007-11-28 Thread t0ml33
It's a web-services based search application.  I'm basically lazy-
loading search results into a collection in chunks of 20 or so.  The 
chunks may be non-sequential, so I pad the ArrayCollection with empty 
items that are replaced as they become available.  

From what you're saying, disableAutoUpdate was actually intended to 
work in the other direction - when updating the server with data 
changes from the collection?

As a followup question, I've noticed that bindings in general tend to 
fire more often than I'd expect.  In some cases, 4 times for one 
update.  Can you offer some general ideas on what might cause 
bindings to fire multiple times for a single update?

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 When the collection is synced to the server, as you edit fields in 
an
 item, you don't want to push it for every field, just once when done
 with the item.
  
 Clearly if you only change a small % of the items you should not 
reset
 the whole thing.  What are you binding to that gets all the traffic?
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of t0ml33
 Sent: Tuesday, November 27, 2007 1:04 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: ListCollectionView dispatches too many
 CollectionEvents after enableAutoUpdate
 
 
 
 Thanks for the response, Alex. I understand that for most use 
cases, 
 it would suffice to set a new source. However, I believe that 
 approach somewhat defeats the purpose of databinding. Suppose 
you're 
 bind to an ArrayCollection with 1000 items and you need to change 
 20? Should you clone the ArrayCollection, change the 20 items, and 
 then rebind? Should you update the existing ArrayCollection and 
have 
 the rest take care of itself? I prefer the latter - it's much 
 cleaner. However, I also don't want my bindings firing 20 times in 
a 
 row.
 
 Was there a particular use-case in mind when it was decided that 
only 
 update events would be queued? It would help me better understand 
 enable/disableAutoUpdate to know.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  I suppose we should have called it queueUpUpdatesUntilLater and
  sendAllQueuedUpUpdatees.
  
  
  
  IMHO, there's an upper limit where, instead of changing 
piecemeal, 
 you
  should just set a new source, which should just send one big RESET
  event.
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 ] On
  Behalf Of t0ml33
  Sent: Wednesday, November 21, 2007 11:58 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com 
  Subject: [flexcoders] ListCollectionView dispatches too many
  CollectionEvents after enableAutoUpdate
  
  
  
  I am making some updates to an ArrayCollection. Since it's the 
  dataSource for a DataGrid, and I want the binding to update as 
few 
  times as possible, I am using ArrayCollection.disableAutoUpdate
(), 
  making the changes, and then calling enableAutoUpdate() thinking 
 that 
  this will cause the binding to refresh only once for all the 
  changes. This would be the case if the ArrayCollection were 
  dispatching events of kind CollectionEventKind.UPDATE. Alas, 
since 
 I 
  am replacing the items in the ArrayCollection and not merely 
 updating 
  them, it is CollectionEventKind.REPLACE. As you can see from 
  handlePendingUpdates() in ListCollectionView, it only gangs the 
  updates into a single refresh if the event.kind == 
  CollectionEventKind.UPDATE. All other CollectionEvents are fired 
  sequentially, which would seem to defeat the purpose of 
  disableAutoUpdate. Could someone clue me in on why this should be 
  the case? I'm tempted to monkey-patch around it, and submit a 
bug. 
  See the code below.
  
  Thanks,
  
  -tom
  
  private function handlePendingUpdates():void
  {
  if (pendingUpdates)
  {
  var pu:Array = pendingUpdates;
  pendingUpdates = null;
  
  // Could further optimize to consolidate various events
  // and make a decision if there are too many updates
  // and we should just refresh.
  var singleUpdateEvent:CollectionEvent;
  for (var i:int = 0; i  pu.length; i++)
  {
  var event:CollectionEvent = pu[i];
  
  // ** Here's the offending code
  if (event.kind == CollectionEventKind.UPDATE)
  {
  if (!singleUpdateEvent)
  {
  singleUpdateEvent = event;
  }
  else
  {
  for (var j:int = 0; j  event.items.length; 
  j++)
  {
  singleUpdateEvent.items.push(event.items
  [j]);
  }
  }
  }
  else
  {
  listChangeHandler(event);
  }
  }
  
  if (singleUpdateEvent)
  {
  listChangeHandler(singleUpdateEvent);
  }
  }
  }
 





[flexcoders] Re: Cannot change button style

2007-11-28 Thread Amy
--- In flexcoders@yahoogroups.com, shaun [EMAIL PROTECTED] wrote:

 Amy wrote:
  A is the label, whereas a is the ID.  The code hinting works, so 
I 
  have no reason to suspect I've gotten that bit wrong.
 
 Ahh.. sorry my mistake. :)
 
 Well, from the original error message you provided it looked like 
your 
 button was null.. I imagine the easiest way would be to use the 
debugger 
 to inspect whats going on.
 

I haven't been able to figure it out.  It looks like the style change 
logic runs, but then when the change of style gets broadcast, that is 
when the errors start.  Unfortunately, it is really laborious running 
the debugger through all of Adobe's code to figure out what 
specifically is going on when things break.  Is there a way to set 
break points in their base code so you can skip over stuff you've 
already verified isn't throwing any errors?

-Amy



[flexcoders] Re: Previewing Halo styles

2007-11-28 Thread Amy
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] 
wrote:

 On Tuesday 27 Nov 2007, Amy wrote:
  from the regular style.  I haven't been able to find a graphical
  representation of these styles.  Any ideas?
 
 
http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplo
rer.html ?

Would you mind sharing the steps you'd use to display the selected 
style in the style explorer?

Thanks;

Amy



[flexcoders] Re: Am I the only one who wishes EventDispatcher exposed its listeners?

2007-11-28 Thread ben.clinkinbeard
That wasn't specifically my thinking but that seems like it would be a
super useful benefit of having that info available. I honestly can't
remember every situation that has made me want this functionality but
the most recent time was when I was trying to determine if a certain
function had been registered as a listener yet. hasEventListener() is
useless if you have potentially more than one listener. I was
concerned that calling addEventListener() again would result in the
handler firing multiple times, until I realized EventDispatcher has
built-in protection against that.

I suppose we could monkey-patch a listeners collection... dare me? :)

Ben



--- In flexcoders@yahoogroups.com, Doug McCune [EMAIL PROTECTED] wrote:

 I can see this functionality being useful for various reasons. Ben,
are you
 thinking you want to track down any listeners that are left over
that are
 preventing garbage collection?
 
 Doug
 
 On 11/28/07, ben.clinkinbeard [EMAIL PROTECTED] wrote:
 
Sometimes it would be really nice be able to access a list of
  currently attached listeners by doing something like
  myButton.listeners. Having that return a collection of objects that
  expose the event type and handler method would be nice and it doesn't
  seem like it would be that hard to implement since they're obviously
  already kept track of somewhere.
 
  Does anybody else wish this was provided? Does anyone from Adobe have
  info on why its not and/or if it might be someday?
 
  Thanks,
  Ben
 
   
 





RE: [flexcoders] Am I the only one who wishes EventDispatcher exposed its listeners?

2007-11-28 Thread Jim Hayes
Ben may not have been, but I always have been thinking of this.
It would be handy in debugging memory issues for one thing, and also a
bit quicker (and surer, given the possibility of missing one?)  to loop
and clear all than specifically clearing several events on, say, a
streamLoader or similar. Or have a removeAllEventListeners() method ...
I was wondering if there was any specific reason for it not being
exposed, or whether in fact it was but I'd been a bit too dumb or lazy
to spot it.
 
Jim.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Doug McCune
Sent: 28 November 2007 14:15
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Am I the only one who wishes EventDispatcher
exposed its listeners?
 
I can see this functionality being useful for various reasons. Ben, are
you thinking you want to track down any listeners that are left over
that are preventing garbage collection?

Doug
On 11/28/07, ben.clinkinbeard [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:
Sometimes it would be really nice be able to access a list of
currently attached listeners by doing something like
myButton.listeners. Having that return a collection of objects that
expose the event type and handler method would be nice and it doesn't
seem like it would be that hard to implement since they're obviously
already kept track of somewhere.

Does anybody else wish this was provided? Does anyone from Adobe have
info on why its not and/or if it might be someday?

Thanks,
Ben
 
 

__
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: Am I the only one who wishes EventDispatcher exposed its listeners?

2007-11-28 Thread ben.clinkinbeard
 I suppose we could monkey-patch a listeners collection... dare me? :)

Ugh, I guess we can't since the source isn't available.



[flexcoders] Re:HistoryManagement

2007-11-28 Thread Oruesagasti Aritz
From Adobe Flex 2: Training from the source:
Due to security constraints, History Management does not work in
Internet Explorer when previewing a local file, meaning that it does not
work
when previewing local files on your hard drive. However, it will work if
the file is on a web server or accessed through an HTTP URL as opposed
to
the file:// URL that is used during normal development. If you are using
Intenet Explorer you will need preview these files from a web server.
History
Management does work in Firefox and Netscape browsers when previewing a
local file


[flexcoders] VideoDisplay inconsistent behavior, it gets Stuck

2007-11-28 Thread Nadeem Manzoor
Hello Guys

I am working on a Flex Media application. I am sending Flv path through
Javascript. Everythings is working fine. But, suppose, if i send a fake flv
url it throgh an Exception connectionerror and after then it gets stuck
e.g. after connectionerror if i am trying to pass a proper flv path it does
not trigger ready event or any exception

Any Ideas ?

-- 
Regards,

Nadeem Manzoor


[flexcoders] How to remove the current sort on a Datagrid

2007-11-28 Thread ruidsoares
Hi,

I have a Datagrid that the user is able to edit directly. He is also allowed to 
add a new item 
in the grid. This is done by using addItem on the ArrayCollection that serves 
as the data 
provider for the grid. After that I use the editedField method of the datagrid 
to give focus 
to the first column of the newly created line so that the user is able to 
insert the 
information right away. I use as rowIndex the dataProviders length - 1.

The problem is that when the grid is sorted by one of its three columns the 
dataProvider.lemgth - 1 no longer points to the inserted row. I successfully 
resorted the 
dataProvider using a new field with sequential number and replacing the sort on 
the 
ArrayCollection with a new one that uses this new field. So, the 
dataProvider.length - 1 
points to the last row (just inserted). The new column is not displayed, it's 
just there for 
control.

The problem now is that the DataGrid still displays the arrow on the column by 
which it 
was last sorted effectively deceiving the user into thinking that the sort has 
not changed.

Does anyone know how to solve this?

Thanks



Re: [flexcoders] Re: Focus Question

2007-11-28 Thread Christopher Olsen

Thank you for the help it worked great.

Daniel Freiman wrote:


or you could set the focusAlpha style equal to 0.

- Dan Freiman

On Nov 28, 2007 8:48 AM, m.ar80 [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Look into implementation of TextInput.focusInHandler() and override it
to set focusManager.showFocusIndicator to false


 




[flexcoders] Re: Events, itemRenderers, and the horizontalList control

2007-11-28 Thread burttram
Awesome, I'll check out your blog and look into that solution then.

Thank you very much.

-Brian



[flexcoders] Load HTML from URL into Flex Component

2007-11-28 Thread byte.sensei
I have a Flex 3 application that generates HTML, PDF, and Excel reports 
from SQL Server Reporting Services.

In the case of HTML, I've been using navigateToURL() to load the result 
into the browser.  This works fine, but I'd really like to embed the 
HTML into a Flex container and wrap the application 
navigation/header/footer around it so that the user stays in the Flex 
app and has access to all of the site navigation, etc.

In the Flex/AIR documentation there's lots of examples that use 
HTMLControl / URLRequest to load the HTML content of a URL and then add 
the HTMLControl display object.  However, the required 
flash.html.HTMLControl library is not available in Flex.

I tried using flash.display.Loader / URLRequest and then used 
this.rawChildren.addChild() but that doesn't seem to work either - the 
page is just blank.  I thought maybe I needed to specify the 
height/width but that didn't make any difference.  Here's the code I'm 
using:

import flash.display.Loader;
import flash.net.URLRequest;

private function load_html() : void {
  var html:Loader = new Loader();
  var urlReq:URLRequest = new URLRequest(http://www.symetri.com/;);
  html.width = 900;
  html.height = 900;
  html.load(urlReq); 
  html_box.rawChildren.addChild(html);
}

The function runs on creationComplete() of the html_box VBox container.

Isn't there some type of HTMLLoader Flex component similar to SWFLoader 
out there somewhere that will do this sort of thing? If not, any other 
suggestions?





[flexcoders] S-L-O-W progressBar ... zzz ...

2007-11-28 Thread candysmate
I use the code shown below to update a progressBar, while updating a
MS SQL 2005 database from an arraytCollection. It works fine but it
seems really slow. Is there a more efficient way to do this please?

code (Flex 2.01):

private var queryCounter:Number = 0;

private function runQueryLoop():void
{
activeProgress.setProgress(queryCounter, activeProductsArray.length)
callLater(runQuery);
}

private function runQuery():void
{
if(queryCounter  activeProductsArray.length)
{
try
 {
var activeSql:String = UPDATE products SET rrp =  +
activeProductsArray.getItemAt(x).rrp + , notes = ' +
escapeSql(activeProductsArray.getItemAt(x).notes) + ' WHERE ( code =
' + escapeSql(activeProductsArray.getItemAt(x).code) + ' );
var activeArrayResult:ArrayCollection = new
ArrayCollection(mySQLServer.executeQuery(activeSql));
 }
 
   catch (e:SSPError)
{
errorMessage = 
e.message;
errorType = e.name;
errorCode = 
e.errorID.toString();

Alert.show(
Error Message: 
+ errorMessage +
\n
+ errorType +
\n
+ errorCode,
'Saving active codes 
price error:', 0, this, null,
saveErrorIcon
);

CursorManager.removeBusyCursor();
}
queryCounter ++;
runQueryLoop();

} 



Re: [flexcoders] Re: Focus Question

2007-11-28 Thread Daniel Freiman
or you could set the focusAlpha style equal to 0.

- Dan Freiman

On Nov 28, 2007 8:48 AM, m.ar80 [EMAIL PROTECTED] wrote:

   Look into implementation of TextInput.focusInHandler() and override it
 to set focusManager.showFocusIndicator to false

  



[flexcoders] a tree that keeps sorted

2007-11-28 Thread Pan Troglodytes
I'm trying to build a tree (Flex 2) that keeps its nodes sorted, even when
you edit them.  I keep running into problems, though.  Here's the basic app,
without the auto-sorting:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical
creationComplete=creationComplete()
  mx:Script
![CDATA[
  import mx.collections.SortField;
  import mx.collections.Sort;
  import mx.collections.ArrayCollection;

  [Bindable] private var treedata:ArrayCollection =
new ArrayCollection([
  {label:node0},
  {label:node1},
  {label:node2},
  {label:node3},
  {label:node4}
]);

  private function creationComplete():void
  {
var sort:Sort = new Sort;
sort.fields = [new SortField(label, true)];
treedata.sort = sort;
  }
]]
  /mx:Script
  mx:Tree
id=tree
dataProvider={treedata}
width=200
editable=true
/
/mx:Application


Okay, so that lets you click on the nodes and edit them.  What should be
done to get the nodes to re-sort after editing?  I've tried:

itemEditEnd=treedata.refresh()

Doesn't work, because when itemEditEnd has been called, the dataprovider
hasn't actually been updated.

itemEditEnd=callLater(treedata.refresh, [])

Sorta works, until renamed node2 to node and then it just disappears.
If you rename the last node to something that would make it the first node,
you get an error.

  private function reload():void
  {
treedata.refresh();
tree.dataProvider = treedata;
  }

itemEditEnd=callLater(reload)

This works ok, until you have a node with children like:
{label:node0, children:new ArrayCollection([{label:child-0-1},
{label:child-0-2}])},
And you expand it before renaming node4 to node.  Then you get an error.

I've also tried this without using itemEditEnd and instead having the node
be a custom object that throws events.  I run into the same issues.  What's
the right way to do something that should be a pretty simple task?

-- 
Jason


Re: [flexcoders] Load HTML from URL into Flex Component

2007-11-28 Thread Derrick Anderson
maybe this link can be of some help to you

http://www.deitte.com/IFrameDemo3/IFrameDemo.html

d.

On Nov 28, 2007 10:48 AM, byte.sensei [EMAIL PROTECTED] wrote:

   I have a Flex 3 application that generates HTML, PDF, and Excel reports
 from SQL Server Reporting Services.

 In the case of HTML, I've been using navigateToURL() to load the result
 into the browser. This works fine, but I'd really like to embed the
 HTML into a Flex container and wrap the application
 navigation/header/footer around it so that the user stays in the Flex
 app and has access to all of the site navigation, etc.

 In the Flex/AIR documentation there's lots of examples that use
 HTMLControl / URLRequest to load the HTML content of a URL and then add
 the HTMLControl display object. However, the required
 flash.html.HTMLControl library is not available in Flex.

 I tried using flash.display.Loader / URLRequest and then used
 this.rawChildren.addChild() but that doesn't seem to work either - the
 page is just blank. I thought maybe I needed to specify the
 height/width but that didn't make any difference. Here's the code I'm
 using:

 import flash.display.Loader;
 import flash.net.URLRequest;

 private function load_html() : void {
 var html:Loader = new Loader();
 var urlReq:URLRequest = new URLRequest(http://www.symetri.com/;);
 html.width = 900;
 html.height = 900;
 html.load(urlReq);
 html_box.rawChildren.addChild(html);
 }

 The function runs on creationComplete() of the html_box VBox container.

 Isn't there some type of HTMLLoader Flex component similar to SWFLoader
 out there somewhere that will do this sort of thing? If not, any other
 suggestions?

  



Re: [flexcoders] S-L-O-W progressBar ... zzz ...

2007-11-28 Thread Tom Chiverton
On Wednesday 28 Nov 2007, candysmate wrote:
 seems really slow. Is there a more efficient way to do this please?

How many things are there in activeProductsArray ?
You could in crease your batch size (from 1) by using where code in 
(a,list,of,ids).


-- 
Tom Chiverton
Helping to enthusiastically reinvent eligible mindshares
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
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
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


Re: [flexcoders] Re: string to date, no support for european dates ?

2007-11-28 Thread Tom Chiverton
On Wednesday 28 Nov 2007, johantrax wrote:
 Thanks for the link, that one was exactly what I was looking for.
 Think this should be filed as a bug/feature request ?

As soon as Flex 3 is open sourced, I'll be submitting the code for inclusion 
myself, as a replacement for the current Date.parse() :-)

-- 
Tom Chiverton
Helping to advantageously transition 24/365 market-growth
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
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
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


Re: [flexcoders] Re: Previewing Halo styles

2007-11-28 Thread Tom Chiverton
On Wednesday 28 Nov 2007, Amy wrote:
 Would you mind sharing the steps you'd use to display the selected
 style in the style explorer?

Under 'buttons', pick 'button'. Toggle Button Bar may give you more hints.


-- 
Tom Chiverton
Helping to widespreadedly seize leading-edge solutions
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
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
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


Re: [flexcoders] Re: Help! Datagrid bug?

2007-11-28 Thread Tom Chiverton
On Wednesday 28 Nov 2007, yossigordin wrote:
 Add an event listener for FlexEvent.DataChange in your itemRenderer.
 In the listener function do your code again.

It would be better practice to call your creationComplete handler again, 
rather than cutting and pasting the code into another method.

The other way around this is to write an 'override public function set 
data(data:*):void' method, and do your set up there.
-- 
Tom Chiverton
Helping to biannually monetize attention-grabbing schemas
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
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
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] Re: S-L-O-W progressBar ... zzz ...

2007-11-28 Thread candysmate
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Wednesday 28 Nov 2007, candysmate wrote:
  seems really slow. Is there a more efficient way to do this please?
 
 How many things are there in activeProductsArray ?
 You could in crease your batch size (from 1) by using where code in 
 (a,list,of,ids).
 
 
 -- 
 Tom Chiverton

activeProductsArray contains about 400 records. I like you batch size
idea - thanks!



Re: [flexcoders] Apollo installer

2007-11-28 Thread Tom Chiverton
On Wednesday 28 Nov 2007, ecmntech wrote:
 Hello guys. Just want to ask, if there's any site or anybody have a
 Apollo installer?

labs.adobe.com

 Since AIR is for Flex 3.

Apollo was the code name for AIR. Same thing.

 I'm using Flex Builder 2.0.1

That's nice.

-- 
Tom Chiverton
Helping to challengingly aggregate plug-and-play content
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
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
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


Re: [flexcoders] Crazy mx.charts.Legend Runtime Error

2007-11-28 Thread Tom Chiverton
On Tuesday 27 Nov 2007, brianwebb01 wrote:
   at _Charting_mx_managers_SystemManager/create()

Maybe you need to wait until the chart is all setup first - try adding the 
legend from a button click, as a quick test.

-- 
Tom Chiverton
Helping to biannually syndicate dynamic eyeballs
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
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
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] Module Loader

2007-11-28 Thread Gus
Hey all...

is there a way to load a module not from an url but an object instance?

I have a zip file with a module, I unzipped it with the nochump zip
libraries and obtain the instance of the factory for the module ( or
at least is what it seems )... but then I can´t find a way to pass it
to the ModuleLoader... so, I'm stuck... don't know where to look... 

Any Ideas???
Thanks in advance



[flexcoders] Update properties from other objects/displaylist

2007-11-28 Thread Boris Horn
Hi flexer,
i'm trying to update some properties from an object that is in the same 
package. 
When i trace e.g the alpha-value from the public variable (it's a Sprite) it 
gave me the right value.

But when i said e.g something like that:

md = new MarkenDisplay;
trace(md.markenContainer.alpha)
//OUTPUT is 1 thats right
//NOW i change the alpha-value

md.markenContainer.alpha = 0;
trace(md.markenContainer.alpha)
//OUTPUT is 0 but on screen nothing changed

How can i update the displayList from other objects?

Mit freundlichen Grüssen
Boris Horn

__
Boris Horn

asdag
application service development AG
Notkestraße 11
22607 Hamburg
Tel: +49(40) 853825-77
Fax: +49(40) 853825-99
Mail: [EMAIL PROTECTED]

AG Hamburg, HR B 80746, Sitz der Gesellschaft Hamburg
Vorstand: Irmgard Scherbaum (Vorsitzende), Thomas Liebtreu 


[flexcoders] Using multipleSelect with a Datagrid

2007-11-28 Thread greenfishinwater
I have a datagrid with allowMultipleSelect=true.

My question is how can I prevent a row from being selected depending
on a value within that row.

The user clicks a row, I want to look at my status value of that row
and if a specific value then allow the select to continue. If it is
not the correct value I want the select of that row canceled and the
row not to be highlighted.

Any ideas?

Thanks

Andrew





[flexcoders] Re: Previewing Halo styles

2007-11-28 Thread Amy
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] 
wrote:

 On Wednesday 28 Nov 2007, Amy wrote:
  Would you mind sharing the steps you'd use to display the selected
  style in the style explorer?
 
 Under 'buttons', pick 'button'. Toggle Button Bar may give you more 
hints.

Is this your enigmatic way of saying that you can't see selected on an 
ordinary button, but instead you have to look at it on a 
ToggleButtonBar?

Thanks;

Amy



[flexcoders] Re: Cannot change button style

2007-11-28 Thread Amy
--- In flexcoders@yahoogroups.com, shaun [EMAIL PROTECTED] wrote:

 Amy wrote:
  A is the label, whereas a is the ID.  The code hinting works, so 
I 
  have no reason to suspect I've gotten that bit wrong.
 
 Ahh.. sorry my mistake. :)
 
 Well, from the original error message you provided it looked like 
your 
 button was null.. I imagine the easiest way would be to use the 
debugger 
 to inspect whats going on.

You were correct that the button object was null.  I rebuilt the 
component and started with just changing the style, rather than 
changing the style in the init function, which ran when on 
dataChange.  It seems that when the dataChange event fires, the 
button does not yet exist.  So when I try to change a style on one of 
the buttons, everything blows up.

What I wound up doing is setting a boolean variable on 
CreationComplete, and my init() function checks to see if that is 
true before trying to set the style.  My creationComplete function 
also runs the same style setting function.  Cludgy, but such is the 
world of item renderers.

Thanks;

Amy



RE: [flexcoders] Re: Am I the only one who wishes EventDispatcher exposed its listeners?

2007-11-28 Thread Samuel R. Neff

you can create your own class like TransparentEventDispatcher which
implements IEventDispatcher and internally contains an EventDispatcher
object and maintains it's own list of listeners when they are added/removed.

Feasible but shouldn't be necessary.  Of course if you need to combine this
functionality with a class that has it's own inheritance hierarchy already,
like UIComponent, then you're SOL.

HTH,

Sam 

---
We're Hiring! Seeking a passionate developer to join our team building Flex
based products. Position is in the Washington D.C. metro area. If interested
contact [EMAIL PROTECTED]
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Wednesday, November 28, 2007 10:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Am I the only one who wishes EventDispatcher
exposed its listeners?

 I suppose we could monkey-patch a listeners collection... dare me? :)

Ugh, I guess we can't since the source isn't available.



RE: [flexcoders] Using multipleSelect with a Datagrid

2007-11-28 Thread Alex Harui
http://blogs.adobe.com/aharui/2007/06/disabling_list_selection.html



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of greenfishinwater
Sent: Wednesday, November 28, 2007 9:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using multipleSelect with a Datagrid



I have a datagrid with allowMultipleSelect=true.

My question is how can I prevent a row from being selected depending
on a value within that row.

The user clicks a row, I want to look at my status value of that row
and if a specific value then allow the select to continue. If it is
not the correct value I want the select of that row canceled and the
row not to be highlighted.

Any ideas?

Thanks

Andrew



 


RE: [flexcoders] Update properties from other objects/displaylist

2007-11-28 Thread Alex Harui
That should work. Are you sure you're looking at the right object?  Your 
example doesnt add md to the displaylist (no addChild call) so maybe that's an 
issue.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Boris 
Horn
Sent: Wednesday, November 28, 2007 8:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Update properties from other objects/displaylist



Hi flexer,
i'm trying to update some properties from an object that is in the same 
package. 
When i trace e.g the alpha-value from the public variable (it's a Sprite) it 
gave me the right value.

But when i said e.g something like that:

md = new MarkenDisplay;
trace(md.markenContainer.alpha)
//OUTPUT is 1 thats right
//NOW i change the alpha-value

md.markenContainer.alpha = 0;
trace(md.markenContainer.alpha)
//OUTPUT is 0 but on screen nothing changed

How can i update the displayList from other objects?

Mit freundlichen Grüssen
Boris Horn

__
Boris Horn

asdag
application service development AG
Notkestraße 11
22607 Hamburg
Tel: +49(40) 853825-77
Fax: +49(40) 853825-99
Mail: [EMAIL PROTECTED] mailto:b.horn%40asdag.de 

AG Hamburg, HR B 80746, Sitz der Gesellschaft Hamburg
Vorstand: Irmgard Scherbaum (Vorsitzende), Thomas Liebtreu 


 


RE: [flexcoders] Module Loader

2007-11-28 Thread Alex Harui
can we see how you are getting the instance of the module factory?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gus
Sent: Wednesday, November 28, 2007 8:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Module Loader



Hey all...

is there a way to load a module not from an url but an object instance?

I have a zip file with a module, I unzipped it with the nochump zip
libraries and obtain the instance of the factory for the module ( or
at least is what it seems )... but then I can´t find a way to pass it
to the ModuleLoader... so, I'm stuck... don't know where to look... 

Any Ideas???
Thanks in advance



 


Re: [flexcoders] Re: Am I the only one who wishes EventDispatcher exposed its listeners?

2007-11-28 Thread Douglas Knudsen
you can maybe add a hook to dispatchEvent in UIComponent?

http://www.darronschall.com/weblog/archives/000273.cfm

DK

On Nov 28, 2007 12:31 PM, Samuel R. Neff [EMAIL PROTECTED] wrote:


 you can create your own class like TransparentEventDispatcher which
 implements IEventDispatcher and internally contains an EventDispatcher
 object and maintains it's own list of listeners when they are
 added/removed.

 Feasible but shouldn't be necessary. Of course if you need to combine this
 functionality with a class that has it's own inheritance hierarchy
 already,
 like UIComponent, then you're SOL.

 HTH,


 Sam

 ---
 We're Hiring! Seeking a passionate developer to join our team building
 Flex
 based products. Position is in the Washington D.C. metro area. If
 interested
 contact [EMAIL PROTECTED] careers%40blinemedical.com

 -Original Message-
 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
 Behalf Of ben.clinkinbeard
 Sent: Wednesday, November 28, 2007 10:09 AM
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: Am I the only one who wishes EventDispatcher
 exposed its listeners?

  I suppose we could monkey-patch a listeners collection... dare me? :)

 Ugh, I guess we can't since the source isn't available.

  




-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


RE: [flexcoders] a tree that keeps sorted

2007-11-28 Thread Alex Harui
Tree doesn't really support sorting.  We hope to provide an example in
3.0 of how to get Tree to handle sorting



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Pan Troglodytes
Sent: Wednesday, November 28, 2007 8:27 AM
To: flexcoders
Subject: [flexcoders] a tree that keeps sorted



I'm trying to build a tree (Flex 2) that keeps its nodes sorted, even
when you edit them.  I keep running into problems, though.  Here's the
basic app, without the auto-sorting:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx= http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  layout=vertical
creationComplete=creationComplete()
  mx:Script 
![CDATA[
  import mx.collections.SortField; 
  import mx.collections.Sort;
  import mx.collections.ArrayCollection ;

  [Bindable] private var treedata:ArrayCollection =
new ArrayCollection([
  {label:node0},
  {label:node1},
  {label:node2},
  {label:node3},
  {label:node4}
]);
  
  private function creationComplete():void 
  {
var sort:Sort = new Sort;
sort.fields = [new SortField(label, true)];
treedata.sort = sort; 
  }
]]
  /mx:Script
  mx:Tree
id=tree 
dataProvider={treedata}
width=200 
editable=true
/
/mx:Application


Okay, so that lets you click on the nodes and edit them.  What should be
done to get the nodes to re-sort after editing?  I've tried: 

itemEditEnd=treedata.refresh()

Doesn't work, because when itemEditEnd has been called, the dataprovider
hasn't actually been updated. 

itemEditEnd=callLater(treedata.refresh, [])

Sorta works, until renamed node2 to node and then it just
disappears.  If you rename the last node to something that would make it
the first node, you get an error. 

  private function reload():void
  {
treedata.refresh();
tree.dataProvider = treedata;
  }

itemEditEnd=callLater(reload)

This works ok, until you have a node with children like:
{label:node0, children:new ArrayCollection([{label:child-0-1},
{label:child-0-2}])},
And you expand it before renaming node4 to node.  Then you get an
error. 

I've also tried this without using itemEditEnd and instead having the
node be a custom object that throws events.  I run into the same issues.
What's the right way to do something that should be a pretty simple
task? 

-- 
Jason 

 


RE: [flexcoders] How to remove the current sort on a Datagrid

2007-11-28 Thread Alex Harui
If you set the sort with only one sortField, the DG should reflect that.
Maybe you can post a test case?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ruidsoares
Sent: Wednesday, November 28, 2007 7:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to remove the current sort on a Datagrid



Hi,

I have a Datagrid that the user is able to edit directly. He is also
allowed to add a new item 
in the grid. This is done by using addItem on the ArrayCollection that
serves as the data 
provider for the grid. After that I use the editedField method of the
datagrid to give focus 
to the first column of the newly created line so that the user is able
to insert the 
information right away. I use as rowIndex the dataProviders length - 1.

The problem is that when the grid is sorted by one of its three columns
the 
dataProvider.lemgth - 1 no longer points to the inserted row. I
successfully resorted the 
dataProvider using a new field with sequential number and replacing the
sort on the 
ArrayCollection with a new one that uses this new field. So, the
dataProvider.length - 1 
points to the last row (just inserted). The new column is not displayed,
it's just there for 
control.

The problem now is that the DataGrid still displays the arrow on the
column by which it 
was last sorted effectively deceiving the user into thinking that the
sort has not changed.

Does anyone know how to solve this?

Thanks



 


RE: [flexcoders] Re: Am I the only one who wishes EventDispatcher exposed its listeners?

2007-11-28 Thread Alex Harui
You would monkey-patch UIComponent adding overrides of addEventListener
and keeping a collection there.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Douglas Knudsen
Sent: Wednesday, November 28, 2007 9:38 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Am I the only one who wishes
EventDispatcher exposed its listeners?



you can maybe add a hook to dispatchEvent in UIComponent?

http://www.darronschall.com/weblog/archives/000273.cfm
http://www.darronschall.com/weblog/archives/000273.cfm 

DK


On Nov 28, 2007 12:31 PM, Samuel R. Neff [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:



you can create your own class like TransparentEventDispatcher
which
implements IEventDispatcher and internally contains an
EventDispatcher
object and maintains it's own list of listeners when they are
added/removed.

Feasible but shouldn't be necessary. Of course if you need to
combine this
functionality with a class that has it's own inheritance
hierarchy already,
like UIComponent, then you're SOL.

HTH,



Sam 

---
We're Hiring! Seeking a passionate developer to join our team
building Flex
based products. Position is in the Washington D.C. metro area.
If interested
contact [EMAIL PROTECTED]
mailto:careers%40blinemedical.com 


-Original Message-
From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On

Behalf Of ben.clinkinbeard
Sent: Wednesday, November 28, 2007 10:09 AM
To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 

Subject: [flexcoders] Re: Am I the only one who wishes
EventDispatcher
exposed its listeners?


 I suppose we could monkey-patch a listeners collection... dare
me? :)

Ugh, I guess we can't since the source isn't available.







-- 
Douglas Knudsen
http://www.cubicleman.com http://www.cubicleman.com 
this is my signature, like it? 

 


RE: [flexcoders] Re: ListCollectionView dispatches too many CollectionEvents after enableAutoUpdate

2007-11-28 Thread Alex Harui
bindings fire at init, then sometimes at component creation time, then
again when changed.  Folks often see three or more.
 
Paging schemes typically replace entire items so you get one REPLACE
event per item.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of t0ml33
Sent: Wednesday, November 28, 2007 6:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ListCollectionView dispatches too many
CollectionEvents after enableAutoUpdate



It's a web-services based search application. I'm basically lazy-
loading search results into a collection in chunks of 20 or so. The 
chunks may be non-sequential, so I pad the ArrayCollection with empty 
items that are replaced as they become available. 

From what you're saying, disableAutoUpdate was actually intended to 
work in the other direction - when updating the server with data 
changes from the collection?

As a followup question, I've noticed that bindings in general tend to 
fire more often than I'd expect. In some cases, 4 times for one 
update. Can you offer some general ideas on what might cause 
bindings to fire multiple times for a single update?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Alex Harui [EMAIL PROTECTED] wrote:

 When the collection is synced to the server, as you edit fields in 
an
 item, you don't want to push it for every field, just once when done
 with the item.
 
 Clearly if you only change a small % of the items you should not 
reset
 the whole thing. What are you binding to that gets all the traffic?
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of t0ml33
 Sent: Tuesday, November 27, 2007 1:04 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: ListCollectionView dispatches too many
 CollectionEvents after enableAutoUpdate
 
 
 
 Thanks for the response, Alex. I understand that for most use 
cases, 
 it would suffice to set a new source. However, I believe that 
 approach somewhat defeats the purpose of databinding. Suppose 
you're 
 bind to an ArrayCollection with 1000 items and you need to change 
 20? Should you clone the ArrayCollection, change the 20 items, and 
 then rebind? Should you update the existing ArrayCollection and 
have 
 the rest take care of itself? I prefer the latter - it's much 
 cleaner. However, I also don't want my bindings firing 20 times in 
a 
 row.
 
 Was there a particular use-case in mind when it was decided that 
only 
 update events would be queued? It would help me better understand 
 enable/disableAutoUpdate to know.
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  I suppose we should have called it queueUpUpdatesUntilLater and
  sendAllQueuedUpUpdatees.
  
  
  
  IMHO, there's an upper limit where, instead of changing 
piecemeal, 
 you
  should just set a new source, which should just send one big RESET
  event.
  
  
  
  
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
40yahoogroups.com
 
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
40yahoogroups.com
 ] On
  Behalf Of t0ml33
  Sent: Wednesday, November 21, 2007 11:58 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%
40yahoogroups.com 
  Subject: [flexcoders] ListCollectionView dispatches too many
  CollectionEvents after enableAutoUpdate
  
  
  
  I am making some updates to an ArrayCollection. Since it's the 
  dataSource for a DataGrid, and I want the binding to update as 
few 
  times as possible, I am using ArrayCollection.disableAutoUpdate
(), 
  making the changes, and then calling enableAutoUpdate() thinking 
 that 
  this will cause the binding to refresh only once for all the 
  changes. This would be the case if the ArrayCollection were 
  dispatching events of kind CollectionEventKind.UPDATE. Alas, 
since 
 I 
  am replacing the items in the ArrayCollection and not merely 
 updating 
  them, it is CollectionEventKind.REPLACE. As you can see from 
  handlePendingUpdates() in ListCollectionView, it only gangs the 
  updates into a single refresh if the event.kind == 
  CollectionEventKind.UPDATE. All other CollectionEvents are fired 
  sequentially, which would seem to defeat the purpose of 
  disableAutoUpdate. Could someone clue me in on why this should be 
  the case? I'm tempted to monkey-patch around it, and submit a 
bug. 
  See the code below.
  
  Thanks,
  
  -tom
  
  private function handlePendingUpdates():void
  {
  if (pendingUpdates)
  {
  var pu:Array = pendingUpdates;
  pendingUpdates = null;
  
  // Could further optimize to consolidate various events
  // and make a decision if 

Re: [flexcoders] VideoDisplay inconsistent behavior, it gets Stuck

2007-11-28 Thread Michael Wills
First I was going to say you have to put that in a try..catch block, 
except accessing an invalid URL won't throw the exception in a way the 
try..catch can work with. Can you add an event listener to your FLV 
loader similar to this post?


http://www.kirupa.com/forum/showthread.php?p=1957547#post1957547

It's from quite a while ago so I don't know if it will be of much help...

Michael

Nadeem Manzoor wrote:




Hello Guys
 
I am working on a Flex Media application. I am sending Flv path 
through Javascript. Everythings is working fine. But, suppose, if i 
send a fake flv url it throgh an Exception connectionerror and after 
then it gets stuck e.g. after connectionerror if i am trying to pass a 
proper flv path it does not trigger ready event or any exception
 
Any Ideas ?


--
Regards,

Nadeem Manzoor

 


RE: [flexcoders] Reference to the content area of a Panel component

2007-11-28 Thread Alex Harui
some aspects of how Panel gets its borders changed in 3.0.  The
algorithm will have to be different, but still should be doable.  There
might be a timing issue as to when you ask.  I don't remember the
details right now.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Lapasa
Sent: Wednesday, November 28, 2007 6:30 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Reference to the content area of a Panel
component



I got this thing to work perfectly under Flex 3 but in Flex 2 which I am

targeting for, it breaks.

In Flex 3, the panel's border metrics give me top:30, left:10, 
right:10, and bottom:10. I am able to get this from PanelSkin.

In Flex 2, the panel's border metrics give me top:0, left:0, right:0, 
and bottom:0. I am able to get this from HaloBorder.

I am not entirely sure if this is a bug.

Mark Lapasa wrote:

 I managed to get to the panel's boarderskin via the panel's
rawchildren.
 I guess it's now just a matter of figuring out the math. Thx Alex.

 Alex Harui wrote:
 
  It is not guaranteed to be a separate object. It is drawn by the
  panel's borderskin and located within the coordinates of the panel
  minus its viewMetrics.
 
  --
  *From:* flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  
 mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com]
  *On Behalf Of *Mark Lapasa
  *Sent:* Monday, November 26, 2007 3:18 PM
  *To:* flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  *Subject:* [flexcoders] Reference to the content area of a Panel 
 component
 
  Hello all,
 
  I am trying to get access the content area of a panel as I would
like to
  skin it relative to the panel's content area. I am referring to that
box
  of white space underneath the title bar.
 
  From the docs it says:
 
  A Panel ../langref/mx/containers/Panel.html layout container
includes
  a title bar, a title, a status message area (in the title bar), a
  border, and a content area for its children
 
  But I can't find a reference in the API how to get the x,y, width
and
  height of the actual content area container where the panel's
children
  reside. Any guidance would be appreciated.
 
  Thx,
 
  -mL
 
  Notice of confidentiality:
  The information contained in this e-mail is intended only for the
use
  of the individual or entity named above and may be confidential.
  Should the reader of this message not be the intended recipient, you
  are hereby notified that any unauthorized dissemination,
distribution
  or reproduction of this message is strictly prohibited. If you have
  received this message in error, please advise the sender immediately
  and destroy the e-mail.
 
 

 Notice of confidentiality:
 The information contained in this e-mail is intended only for the use 
 of the individual or entity named above and may be confidential. 
 Should the reader of this message not be the intended recipient, you 
 are hereby notified that any unauthorized dissemination, distribution 
 or reproduction of this message is strictly prohibited. If you have 
 received this message in error, please advise the sender immediately 
 and destroy the e-mail.

 

Notice of confidentiality:
The information contained in this e-mail is intended only for the use of
the individual or entity named above and may be confidential. Should the
reader of this message not be the intended recipient, you are hereby
notified that any unauthorized dissemination, distribution or
reproduction of this message is strictly prohibited. If you have
received this message in error, please advise the sender immediately and
destroy the e-mail.



 


RE: [flexcoders] Re: Help! Datagrid bug?

2007-11-28 Thread Alex Harui
Has Adobe refused to fix it?  Can you point me to the bug?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of yossigordin
Sent: Wednesday, November 28, 2007 12:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Help! Datagrid bug?



Hi,

I know this problem, happened to me once.
This is a known issue that won't be fixed by Adobe.
It usually happens when you try to scroll - the data is presented in 
a wrong way.
But it has a solution.

Add an event listener for FlexEvent.DataChange in your itemRenderer.
In the listener function do your code again.
for instance if i have an inline item renderer that presents a 
property named currentConcurrentCalls, i need to add an event 
listener for the dataChange event and render it again there :
mx:itemRenderer
mx:Component
mx:HBox width=100% creationComplete=doInit()
mx:Script
![CDATA[
import mx.events.FlexEvent;
import mx.resources.ResourceBundle;
[ResourceBundle(hostlynx)]
private static const _rb:ResourceBundle;
[Bindable] 
private var strMaxConcurrentCalls:String; 

private function doInit():void{
if(data!=null  data.entityObject 
[currentConcurrentCalls] != null){
strMaxConcurrentCalls = 
data.entityObject.currentConcurrentCalls;
} 
addEventListener(FlexEvent.DATA_CHANGE,dataChange); 
}
private function dataChange(event:FlexEvent):void{
if(data!=null  data.entityObject
[currentConcurrentCalls] != null){
strMaxConcurrentCalls = 
data.entityObject.currentConcurrentCalls;
} 
}
]]
/mx:Script
mx:Text id=txtCurrentCalls text={strMaxConcurrentCalls} 
styleName=dataGridText/
/mx:HBox
/mx:Component
/mx:itemRenderer

Hope it helps,
Yossi
--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Alex Harui [EMAIL PROTECTED] wrote:

 Which version? Can you post a small test case?
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of danny_yoo88
 Sent: Tuesday, November 27, 2007 6:03 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Help! Datagrid bug?
 
 
 
 Hi,
 
 I have a DataGrid with an inline itemRenderer.
 
 Originally the DataGrid was using an Array as a data source.
 Everything was fine.
 
 Then I changed my datasource to an object containing sub-objects 
and I
 revised my datagrid accordingly.
 
 I use DateChooser to fire off an event when a date is selected. The
 DataGrid listens for the event and event-code adds the date to the
 data source.
 
 Everything works BUT...
 
 When I enter dates in newest to older sequence, the DataGrid 
renders
 TWO rows for the older date. i.e:
 
 Row 1: November 26, 2007
 Row 1: November 26, 2007
 Row 2: November 27, 2007
 
 When I inspect the data source and the 
DataGrid.dataProvider.source I
 only see two entries.
 
 When I hover over November 26, 2007, only the last instance 
responds
 by highlighting the row blue. I can't do anything to the first row.
 
 The only way to make things right is to click on a header-column to
 sort the grid or add another date. Then the duplicate magically
 disappears.
 
 I can't seem to do anything to the DataGrid (invalidateList, etc) 
to
 force update the grid.
 
 Any ideas?
 
 Thanks,
 
 Danny




 


[flexcoders] How to do Dynamic DataGrid and Column Labels

2007-11-28 Thread vkc_nair
Hi All, 

I have a database table  A defined as 


ID Number 
Type   Char(10) 
Attribute1 Char(20). 
 
. 
 
Attribute100 Char(20) 


to store the data. 


Another table B to store the labels of Attibute1 to Attribute100 
depends on the Value of Type in table A. 


I have to create a datagrid to show the data depends on the 
different 
type values selected in a list. 


The grid should change the column labels and data depends on the 
Type 
selected. 


Table B (The type table) is dynamic, the user can add new types and 
column labels for Attribute1 to Attribute100. 


Any idea how this can be done in Flex 2. 


Thanks 


VN 






[flexcoders] Re: Dynamically Setting width of a TextInput control

2007-11-28 Thread simonjpalmer
I think I have been speaking forked tongue a little.  It is an
itemRenderer but not for a DataGrid, it's for the springgraph.  I was
tracing through that code and it appears to create its item renderers
as free standing controls on a canvas, hence my remark.  In my case I
want the nodes in the springgraph just to be text, hence the use of a
TextInput control which gives me nice control over some of the styling.

This means I also do not explicitly control the sequence in which the
text of the control gets set.  I override the set data() method so I
can also change some other properties of the control at the same time.
 That's when I want to set the control width.

Simon

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 Hmm, you explicitly mentioned item renderer.
 
  
 
 Anyway, if you set the .text early enough, the TextInput should pick it
 up.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of simonjpalmer
 Sent: Saturday, November 24, 2007 7:05 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Dynamically Setting width of a TextInput
 control
 
  
 
 this is not in a datagrid it is just a dynamically created control on
 a canvas
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  The renderer's width is fixed to the size of the column
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of simonjpalmer
  Sent: Thursday, November 22, 2007 11:49 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Dynamically Setting width of a TextInput control
  
  
  
  I am using a TextInput control as an item renderer and I want to set
  the width of the control to reflect the size of the text within it. 
  The text comes from a property of the data associated with the item
  renderer. I am overriding the set data method in order to set the
  text and some stle properties, but I can't figure out how to set the
  width of the control.
  
  Any ideas?
 





[flexcoders] Re: Can't debug FB 3 pieces

2007-11-28 Thread Mike Morearty
You can find the installer for the debug player in the Player
subdirectory under the Flex Builder installation.

You can also find the current officially-released one here:
http://www.adobe.com/support/flashplayer/downloads.html -- however,
since you are using the beta, you should use the player that came with
the beta, it is newer than the current officially-released one.

- Mike Morearty, Flex Builder team


--- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote:

 --- In flexcoders@yahoogroups.com, shaun shaun@ wrote:
 
  Howdy,
  
  Amy wrote:
   When I try to debug my Flex Builder 3 pieces, I get a message 
 that it 
   can't find the debug player.  I have been all over the adobe site 
   looking for the current debug player, and everything I find tells 
 me it 
   is not the most recent version of the player and sends me to the 
 most 
   recent _regular_ player.  I.e. I can't even get the debug player 
   installers to even _run_, not even the one that is in my FB 3 
 beta 
   folder.  Where can I get a debug player installer that will run?
  
  Dunno if this will help you or not..
  If your using OS X, install the player that comes with FB2 as an 
 admin 
  user. Not sure about FB3 but probably worth a try.
 
 XP, actually.  Thanks, though :-)





Re: [flexcoders] VideoDisplay inconsistent behavior, it gets Stuck

2007-11-28 Thread Nadeem Manzoor
Thanks for reply. It is really useful to use try catch but in my case it
doesn't work, so here is my question

Is it possible to check a URL is valid before even loading the file? for
example i get an flv path from Web service, before setting this path as a
source of Video Display component, i want to check whether the file exists
or not But i don't want to load that file. When i got a confirmation that
the file exists, i will pass that URL to VideoDisplay Component. So Guys is
that possible or is there any other technique ?




On 11/28/07, Michael Wills [EMAIL PROTECTED] wrote:

 First I was going to say you have to put that in a try..catch block,
 except accessing an invalid URL won't throw the exception in a way the
 try..catch can work with. Can you add an event listener to your FLV loader
 similar to this post?

 http://www.kirupa.com/forum/showthread.php?p=1957547#post1957547

 It's from quite a while ago so I don't know if it will be of much help...

 Michael

 Nadeem Manzoor wrote:



 Hello Guys

 I am working on a Flex Media application. I am sending Flv path through
 Javascript. Everythings is working fine. But, suppose, if i send a fake flv
 url it throgh an Exception connectionerror and after then it gets stuck
 e.g. after connectionerror if i am trying to pass a proper flv path it
 does not trigger ready event or any exception

 Any Ideas ?

 --
 Regards,

 Nadeem Manzoor

 




-- 
Regards,

Nadeem Manzoor


Re: [flexcoders] Reference to the content area of a Panel component

2007-11-28 Thread Mark Lapasa
I managed to do what I want in Flex 2 by hardcoding the values that I 
know in Flex 3. I am doing this in a panel's updateDisplayList() 
override. Gets me by for now. Thx again, Alex.


Alex Harui wrote:

 some aspects of how Panel gets its borders changed in 3.0.  The 
 algorithm will have to be different, but still should be doable.  
 There might be a timing issue as to when you ask.  I don't remember 
 the details right now.

 
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *Mark Lapasa
 *Sent:* Wednesday, November 28, 2007 6:30 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Reference to the content area of a Panel 
 component

 I got this thing to work perfectly under Flex 3 but in Flex 2 which I am
 targeting for, it breaks.

 In Flex 3, the panel's border metrics give me top:30, left:10,
 right:10, and bottom:10. I am able to get this from PanelSkin.

 In Flex 2, the panel's border metrics give me top:0, left:0, right:0,
 and bottom:0. I am able to get this from HaloBorder.

 I am not entirely sure if this is a bug.

 Mark Lapasa wrote:
 
  I managed to get to the panel's boarderskin via the panel's rawchildren.
  I guess it's now just a matter of figuring out the math. Thx Alex.
 
  Alex Harui wrote:
  
   It is not guaranteed to be a separate object. It is drawn by the
   panel's borderskin and located within the coordinates of the panel
   minus its viewMetrics.
  
   --
   *From:* flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com]
   *On Behalf Of *Mark Lapasa
   *Sent:* Monday, November 26, 2007 3:18 PM
   *To:* flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
   *Subject:* [flexcoders] Reference to the content area of a Panel
  component
  
   Hello all,
  
   I am trying to get access the content area of a panel as I would 
 like to
   skin it relative to the panel's content area. I am referring to 
 that box
   of white space underneath the title bar.
  
   From the docs it says:
  
   A Panel ../langref/mx/containers/Panel.html layout container 
 includes
   a title bar, a title, a status message area (in the title bar), a
   border, and a content area for its children
  
   But I can't find a reference in the API how to get the x,y, width and
   height of the actual content area container where the panel's children
   reside. Any guidance would be appreciated.
  
   Thx,
  
   -mL
  
   Notice of confidentiality:
   The information contained in this e-mail is intended only for the use
   of the individual or entity named above and may be confidential.
   Should the reader of this message not be the intended recipient, you
   are hereby notified that any unauthorized dissemination, distribution
   or reproduction of this message is strictly prohibited. If you have
   received this message in error, please advise the sender immediately
   and destroy the e-mail.
  
  
 
  Notice of confidentiality:
  The information contained in this e-mail is intended only for the use
  of the individual or entity named above and may be confidential.
  Should the reader of this message not be the intended recipient, you
  are hereby notified that any unauthorized dissemination, distribution
  or reproduction of this message is strictly prohibited. If you have
  received this message in error, please advise the sender immediately
  and destroy the e-mail.
 
 

 Notice of confidentiality:
 The information contained in this e-mail is intended only for the use 
 of the individual or entity named above and may be confidential. 
 Should the reader of this message not be the intended recipient, you 
 are hereby notified that any unauthorized dissemination, distribution 
 or reproduction of this message is strictly prohibited. If you have 
 received this message in error, please advise the sender immediately 
 and destroy the e-mail.

  



Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



[flexcoders] Events and Non-Display Objects

2007-11-28 Thread bithroop
General question here...

I understand Event flow with objects in the display list. They flow
either up (bubbling) or down (capture) between parent and child. Maybe
an oversimplification but my question really is about how to handle
events with objects that are not in the display list. How do you pass
events from them? Like for instance, I've got this situation here...

I have an MXML that is just an mx:Object. It's MXML because I'm
defining some remoteObjects in it and that's just way more fun to do
in MXML than in AS. So anyway, regardless, the methods inside are
static and I don't want to draw the thing. It just needs to hang out
and be available so I can make these remoting calls.

So there's the rub. How can this MXML talk back to where it was called
from? Can I use events for this or do I need to send a callback function?

Any wisdom here would be awesome... this has been befuddling me for a
while.

-b



[flexcoders] Re: Can't debug FB 3 pieces

2007-11-28 Thread Amy
--- In flexcoders@yahoogroups.com, Mike Morearty [EMAIL PROTECTED] 
wrote:

 You can find the installer for the debug player in the Player
 subdirectory under the Flex Builder installation.
 
 You can also find the current officially-released one here:
 http://www.adobe.com/support/flashplayer/downloads.html -- however,
 since you are using the beta, you should use the player that came with
 the beta, it is newer than the current officially-released one.

That one won't install either.

Thanks, though.

-Amy



RE: [flexcoders] Re: HttpService not called the first time

2007-11-28 Thread Tracy Spratt
Hee is some sample code that demonstates one way to use AsyncToken.
Tracy
Sample code using HTTPService, e4x, handler function to populate a list item.  
Also shows usage of AsyncToken.

The DataGrid tag:
mx:DataGrid id=dg dataProvider={_xlcMyListData} .../


The HTTPService tag:
mx:HTTPService id=service resultFormat=e4x result=onResult(event) 
fault=/

Script block declaration:
import mx.rpc.Events.ResultEvent;
[Bindable]private var _xlcMyListData:XMLListCollection;

Invoke send:
var oRequest:Object = new Object();
oRequest.Arg1 = value1;
var callToken:AsyncToken = service.send(oRequest);
token.callId = myQuery1;

Result Handler function:
private function onResult(oEvent:ResultEvent):void  {
  var xmlResult:XML = XML(event.result);//converts result 
Object to XML. can also use as operator
  var xlMyListData:XMLList = xmlResult.myListData;  //depends on xml 
format, is row data
  _xlcMyListData = new XMLListCollection(xlMyListData); //wrap the XMLList in a 
collection
  trace(_xlcMyListData.toXMLString());  //so you can see 
exactly how to specify dataField or build labelFunction
  var callToken:AsyncToken = oEvent.token;
  var sCallId = callToken.callId;   //myQuery1
  switch(sCallId)  {//Process the result 
conditionally
case myQuery1:
  doQuery2();   //do whatever. this 
example calls another data service query
  break;
... 
  }
}//onResult


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy 
Spratt
Sent: Wednesday, November 28, 2007 1:52 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: HttpService not called the first time

Data retrieval is very fast.  The speed difference should be negligible.  
Regarding performance, focus on optimizing the rendering, which is the 
bottleneck.
 
Tracy
 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gers32
Sent: Wednesday, November 28, 2007 2:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: HttpService not called the first time
 
Hi Tracy,

That's a good idea. Now, I'm wondering what the trade off is between
one HttpService per Component (bigger SWF file size, but parallel
requests thus faster data access on multi-processor boxes?) and one
single HttpService for the whole application (smaller SWF file, but
sequential thus slower data retrieval?).

I'd appreciate an example using AsyncToken, if you have one.

Thanks,

Chris.

--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote:

 Note that you really need only a single instance of HTTPService. You
 can set the url, method, etc and build the request object using AS, and
 can handle the result conditionally using AsyncToken.
 
 
 
 Post if you need examples.
 
 
 
 Tracy
 



RE: [flexcoders] Re: HttpService not called the first time

2007-11-28 Thread Tracy Spratt
Data retrieval is very fast.  The speed difference should be negligible.
Regarding performance, focus on optimizing the rendering, which is the
bottleneck.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gers32
Sent: Wednesday, November 28, 2007 2:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: HttpService not called the first time

 

Hi Tracy,

That's a good idea. Now, I'm wondering what the trade off is between
one HttpService per Component (bigger SWF file size, but parallel
requests thus faster data access on multi-processor boxes?) and one
single HttpService for the whole application (smaller SWF file, but
sequential thus slower data retrieval?).

I'd appreciate an example using AsyncToken, if you have one.

Thanks,

Chris.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Tracy Spratt [EMAIL PROTECTED] wrote:

 Note that you really need only a single instance of HTTPService. You
 can set the url, method, etc and build the request object using AS,
and
 can handle the result conditionally using AsyncToken.
 
 
 
 Post if you need examples.
 
 
 
 Tracy

 



[flexcoders] Tracing HTTPService Data?

2007-11-28 Thread flexnubslice
Hi there,

  Thanks in advance for your help.  I'm a newcomer to Flex, but am
definitely not new to Eclipse being a Java programmer by trade.

  I've set up a basic HTTPService as introductory project, and quickly
found that I can add breakpoints into fault and result events.  What I
cannot find though, is how to trace the data that the HTTP portal is
feeding the Flex app.  Is there a means to debug the actual request data?

Thanks.
Alex



[flexcoders] Re: Updating Properties of a Component's Root State

2007-11-28 Thread jandersen1978
Thanks for the idea!  I'll test this myself but seems like this is a 
solution for modifying an explicitly defined state property rather 
than the default state...  I've also been experimenting with 
manually setting some properties of the move transition that is 
responsible for sending the component back to it's original location.

--- In flexcoders@yahoogroups.com, Peter Hall [EMAIL PROTECTED] 
wrote:

 Give an id to each state override that you need to modify. e.g.:
 
   mx:State name=newState
   mx:SetProperty id=setXOverride 
target={obj} name=x value=10 /
   /mx:State
 
 Then you can do:
 
 setXOverride.value = 100;
 
 
 
 Peter
 
 
 On Nov 20, 2007 11:40 PM, jandersen1978 [EMAIL PROTECTED] 
wrote:
 
 
 
 
 
 
  I've got a component that moves to the center of the screen with 
a
   state transition. Normally when it leaves this centered state it
   should go back to it's original x/y location... However, based 
on
   other application conditions I sometimes want it to move to a
   different location when it leaves the centered state. How can I
   update the root/default state while the component is centered 
so that
   it will move to a new location when it exits the centered state?
 
 





RE: [flexcoders] How to do Dynamic DataGrid and Column Labels

2007-11-28 Thread Tracy Spratt
I have a simple example that builds dynamic columns.  It uses the
structure of the dataprovider, but should be easily modifiable to use
metadata from anywhere.

 

Go to www.cflex.net http://www.cflex.net/  and search on dynamic
column.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of vkc_nair
Sent: Wednesday, November 28, 2007 12:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to do Dynamic DataGrid and Column Labels

 

Hi All, 

I have a database table A defined as 

ID Number 
Type Char(10) 
Attribute1 Char(20). 
 
. 
 
Attribute100 Char(20) 

to store the data. 

Another table B to store the labels of Attibute1 to Attribute100 
depends on the Value of Type in table A. 

I have to create a datagrid to show the data depends on the 
different 
type values selected in a list. 

The grid should change the column labels and data depends on the 
Type 
selected. 

Table B (The type table) is dynamic, the user can add new types and 
column labels for Attribute1 to Attribute100. 

Any idea how this can be done in Flex 2. 

Thanks 

VN 

 



[flexcoders] accessing nested objects... what am I missing?!?!

2007-11-28 Thread ryanharlin
I have a simple enough question, I think.  But I've been struggling
with it for two days.

I have an mxml application which has a viewstack in it.  The children
in the viewstack are fr: tags for other mxml files

It looks like this:

mx:ViewStack id=mainScreens
fr:interfacePanel id=interfacePanel /
fr:otherPanel id=otherPanel /
/mx:ViewStack

In the mxml file called interfacePanel I have another viewstack with
interface screens on them.

How can I select different children of that viewstack from the main
mxml app.

I would think I'd do something like this:

mx:button
click=mainScreens.interfacePanel.secondViewstack.selectedChild =
Page2; /

But that doesn't work.

Does anyone know the method of addressing object across multiple
nested mxml files?

Thanks!  Hopefully someone can show me what I'm missing.





[flexcoders] Re: Can't debug FB 3 pieces

2007-11-28 Thread Mike Morearty
Hmm.  What's the error message?


--- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote:

 --- In flexcoders@yahoogroups.com, Mike Morearty mike.morearty@ 
 wrote:
 
  You can find the installer for the debug player in the Player
  subdirectory under the Flex Builder installation.
  
  You can also find the current officially-released one here:
  http://www.adobe.com/support/flashplayer/downloads.html -- however,
  since you are using the beta, you should use the player that came with
  the beta, it is newer than the current officially-released one.
 
 That one won't install either.
 
 Thanks, though.
 
 -Amy





[flexcoders] DataGrid Column Width is not The Content WIdth. How do you make it the same?

2007-11-28 Thread wwwpl
DataGrid column widths are set to a default of 100.  That means it
won't size to it's children.  It is very annoying.  Does anyone have a
work around?



RE: [flexcoders] Tracing HTTPService Data?

2007-11-28 Thread Samuel R. Neff

We use Charles and it's wonderful, especially when working with AMF data.

http://www.xk72.com/charles/

HTH,

Sam 

---
We're Hiring! Seeking a passionate developer to join our team building Flex
based products. Position is in the Washington D.C. metro area. If interested
contact [EMAIL PROTECTED]
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexnubslice
Sent: Wednesday, November 28, 2007 1:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tracing HTTPService Data?

Hi there,

  Thanks in advance for your help.  I'm a newcomer to Flex, but am
definitely not new to Eclipse being a Java programmer by trade.

  I've set up a basic HTTPService as introductory project, and quickly
found that I can add breakpoints into fault and result events.  What I
cannot find though, is how to trace the data that the HTTP portal is
feeding the Flex app.  Is there a means to debug the actual request data?

Thanks.
Alex



[flexcoders] 2 flash/flex objects on one page and flash.ExternalInterface

2007-11-28 Thread Alina Kholcheva
Hi

Do you know that there was Flash Player 8 bug when two flash objects 
could not talk to JavaScript separately and one should get all the 
calls and then dispatch them to another one?
 
May be you know was it fixed in Player 9?

I had player8 and 2 flash object and I used this workaround.
For now I have one flex and one flash object and trying to separate 
calls.
Seems that this bug is fixed or isn't applicable to flash+flex situation

Thank you




RE: [flexcoders] Am I the only one who wishes EventDispatcher exposed its listeners?

2007-11-28 Thread Gordon Smith
 Does anyone from Adobe have info on why its not and/or if it might be
someday?
 
The Player's EventDispatcher class doesn't provide this capability,
probably because it isn't part of the Document Object Model Level 3
Events Specification. (The Player obviously keeps a list of listeners,
but this is done in C++ code and the list isn't exposed in
ActionScript.) However, I suppose the framework could accomplish what
you want by overriding addEventListener() and removeEventListener() in
every subclass of EventDispatcher to keep track of the listeners. Please
file an enhancement request at http://bugs.adobe.com/flex.
 
Gordon Smith
Adobe Flex SDK Team



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Wednesday, November 28, 2007 6:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Am I the only one who wishes EventDispatcher
exposed its listeners?



Sometimes it would be really nice be able to access a list of
currently attached listeners by doing something like
myButton.listeners. Having that return a collection of objects that
expose the event type and handler method would be nice and it doesn't
seem like it would be that hard to implement since they're obviously
already kept track of somewhere.

Does anybody else wish this was provided? Does anyone from Adobe have
info on why its not and/or if it might be someday?

Thanks,
Ben



 


[flexcoders] Embedded asset management strategy

2007-11-28 Thread dave_defusion
In my current project I'm going to be use a handful of icons in quite
a few different classes. I was planning on embedding each of these
into the application and was thinking that a single class with static
properties would be the best way to go. For example if I had a
IconAssetManager class which then handled the embedding of each of the
icons and then everything that needs to use the icons can reference
them from that single point.

So I'm basically asking for a sanity check or any suggestions, has
anyone else had experience of doing this?

Also if I embed an image in more than one place (say as variables of
each class that uses them) then I'm assuming that the image will be
embedded multiple times into the .swf, is this assumption correct?

Thanks in advance,

-D



Re: [flexcoders] a tree that keeps sorted

2007-11-28 Thread Pan Troglodytes
Well, that's really unfortunate, as I'm trying to deliver an application
based on Flex 2 that has this behavior.  I'm going to try hacking something
together to save/restore the tree layout after resetting the dataprovider.
If anyone else has any suggestions, I'd really appreciate them.

On Nov 28, 2007 11:38 AM, Alex Harui [EMAIL PROTECTED] wrote:

Tree doesn't really support sorting.  We hope to provide an example in
 3.0 of how to get Tree to handle sorting

  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Pan Troglodytes
 *Sent:* Wednesday, November 28, 2007 8:27 AM
 *To:* flexcoders
 *Subject:* [flexcoders] a tree that keeps sorted

  I'm trying to build a tree (Flex 2) that keeps its nodes sorted, even
 when you edit them.  I keep running into problems, though.  Here's the basic
 app, without the auto-sorting:

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx= http://www.adobe.com/2006/mxml;
 layout=vertical creationComplete=creationComplete()
   mx:Script
 ![CDATA[
   import mx.collections.SortField;
   import mx.collections.Sort;
   import mx.collections.ArrayCollection ;

   [Bindable] private var treedata:ArrayCollection =
 new ArrayCollection([
   {label:node0},
   {label:node1},
   {label:node2},
   {label:node3},
   {label:node4}
 ]);

   private function creationComplete():void
   {
 var sort:Sort = new Sort;
 sort.fields = [new SortField(label, true)];
 treedata.sort = sort;
   }
 ]]
   /mx:Script
   mx:Tree
 id=tree
 dataProvider={treedata}
 width=200
 editable=true
 /
 /mx:Application


 Okay, so that lets you click on the nodes and edit them.  What should be
 done to get the nodes to re-sort after editing?  I've tried:

 itemEditEnd=treedata.refresh()

 Doesn't work, because when itemEditEnd has been called, the dataprovider
 hasn't actually been updated.

 itemEditEnd=callLater(treedata.refresh, [])

 Sorta works, until renamed node2 to node and then it just disappears.
 If you rename the last node to something that would make it the first node,
 you get an error.

   private function reload():void
   {
 treedata.refresh();
 tree.dataProvider = treedata;
   }

 itemEditEnd=callLater(reload)

 This works ok, until you have a node with children like:
 {label:node0, children:new ArrayCollection([{label:child-0-1},
 {label:child-0-2}])},
 And you expand it before renaming node4 to node.  Then you get an
 error.

 I've also tried this without using itemEditEnd and instead having the node
 be a custom object that throws events.  I run into the same issues.  What's
 the right way to do something that should be a pretty simple task?

 --
 Jason
  




-- 
Jason


[flexcoders] Re: Using multipleSelect with a Datagrid

2007-11-28 Thread greenfishinwater
Thanks for the Link Alex, I'm afraid my use case is rather more
complicated than I explained. It is possible to select one of my rows
regardless of my status, it is only when multiple rows are being
selected that I want to exclude certain rows.

In effect a single selection shows a canvas with a list of sub-options
to be chosen, where as the multiple selection is geared to a single
option.

I think I will work around this, by doing a filter of the selected
items in the grid before I process those rows.

Andrew



Re: [flexcoders] Tracing HTTPService Data?

2007-11-28 Thread Lex
Thanks for the response.

So there's no built-in debugging service available?  Seems odd that we have no 
means to capture HTTP request responses inside of Flex.

[flexcoders] Re: Tracing HTTPService Data?

2007-11-28 Thread simonjpalmer
You can get at the contents of the messages using mx:TraceTarget on
the client, which will spit a whole load of stuff to your console in
debug mode.  

I don't use an http service, but I know that on the server you can
alter the level of logging by adjusting the contents of the logging
tag in services-config.xml.

hth
Simon 

--- In flexcoders@yahoogroups.com, flexnubslice [EMAIL PROTECTED] wrote:

 Hi there,
 
   Thanks in advance for your help.  I'm a newcomer to Flex, but am
 definitely not new to Eclipse being a Java programmer by trade.
 
   I've set up a basic HTTPService as introductory project, and quickly
 found that I can add breakpoints into fault and result events.  What I
 cannot find though, is how to trace the data that the HTTP portal is
 feeding the Flex app.  Is there a means to debug the actual request
data?
 
 Thanks.
 Alex





[flexcoders] How use hasOwnProperty() in combination with namespace

2007-11-28 Thread hannes.stockner
Hello

This is my xml:

foo xmlns=http://www.test.com/;
atest/a
c
btest2/b
/c
/foo

I created a namespace object:
var ns : Namespace = xml.namespace();

To trace out the content from a I used for example:
trace(xml.ns::a);

This works fine.

But now I want check with the hasOwnProperty() method whether my xml
has a specific property.
But I am not able to use the hasOwnProperty() method correctly in
combination with my namespace instance.

Anyone has an idea?

Thank you



RE: [flexcoders] Tracing HTTPService Data?

2007-11-28 Thread Peter Farland
Please log an enhancement request for tooling to do this inside of Flex
Builder.
 
http://bugs.adobe.com/flex/
 
For now, I'd suggest using an HTTP sniffer. I've found Paros Proxy to
work well as a client side proxy, making it possible to debug HTTPS
requets too.
 
Pete



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lex
Sent: Wednesday, November 28, 2007 2:42 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Tracing HTTPService Data?


Thanks for the response.
 
So there's no built-in debugging service available?  Seems odd that we
have no means to capture HTTP request responses inside of Flex.
 


[flexcoders] Differences between itemUpdated and setItemAt for ArrayCollections

2007-11-28 Thread j_lentzz
Hi,

I have a general question about when to use the two methods
itemUpdated and setItemAt on ArrayCollections.

if you use obj = getItemAt(someIndex) and then change some properties
in the obj, what difference is there between using
setItemAt(obj,someIndex) or using itemUpdated(obj)?  Is there a
particular reason to choose one over the other?

Thanks,

John



[flexcoders] itemEditEnd preventDefault

2007-11-28 Thread Richard Rodseth
I have an item renderer/editor that does as-you-type validation using
standard Flex validators, and updates a valid property in the data. I wish
to prevent the edit from ending if the data is valid.
When tabbing, the following works in column one, but not in column two (the
last editable column):

private function handleItemEditEnd(event : DataGridEvent) : void {

if (event.itemRenderer.data.valid) {

// do some stuff

} else {

event.preventDefault();

}


Any ideas? Also, does the renderer get any access to this event? If I want
to move valid from the data to the renderer itself, I suppose I would have
to cast event.itemRenderer above to my renderer type, and call a method or
access a property.


Thanks.


[flexcoders] Re: Am I the only one who wishes EventDispatcher exposed its listeners?

2007-11-28 Thread ben.clinkinbeard
Why in subclasses and not EventDispatcher itself?

Ben


--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:

  Does anyone from Adobe have info on why its not and/or if it might be
 someday?
  
 The Player's EventDispatcher class doesn't provide this capability,
 probably because it isn't part of the Document Object Model Level 3
 Events Specification. (The Player obviously keeps a list of listeners,
 but this is done in C++ code and the list isn't exposed in
 ActionScript.) However, I suppose the framework could accomplish what
 you want by overriding addEventListener() and removeEventListener() in
 every subclass of EventDispatcher to keep track of the listeners. Please
 file an enhancement request at http://bugs.adobe.com/flex.
  
 Gordon Smith
 Adobe Flex SDK Team
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Wednesday, November 28, 2007 6:04 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Am I the only one who wishes EventDispatcher
 exposed its listeners?
 
 
 
 Sometimes it would be really nice be able to access a list of
 currently attached listeners by doing something like
 myButton.listeners. Having that return a collection of objects that
 expose the event type and handler method would be nice and it doesn't
 seem like it would be that hard to implement since they're obviously
 already kept track of somewhere.
 
 Does anybody else wish this was provided? Does anyone from Adobe have
 info on why its not and/or if it might be someday?
 
 Thanks,
 Ben





[flexcoders] Re: Differences between itemUpdated and setItemAt for ArrayCollections

2007-11-28 Thread syndicate_ai
--- In flexcoders@yahoogroups.com, j_lentzz [EMAIL PROTECTED] wrote:

 Hi,
 
 I have a general question about when to use the two methods
 itemUpdated and setItemAt on ArrayCollections.
 
 if you use obj = getItemAt(someIndex) and then change some properties
 in the obj, what difference is there between using
 setItemAt(obj,someIndex) or using itemUpdated(obj)?  Is there a
 particular reason to choose one over the other?
 
 Thanks,
 
 John


you generally use setItemAt if you need to completly replace the
object in that part of the arraycollection. For instance, we have a
backend delegate class that instantiates new objects all the time,
each being different but needs to replace the item that already exists
in the collection (each object being replaced is progressivly more
lightweight) so SetItemAt is necessary for us, its more costly because
the view has to completly rerender for that item. getItemAt would be
better if you are just changing a few attributes on the object,
because a view only needs to change if certain attributes are
different from before.

Thants what i think anyway



[flexcoders] Re: Shouldn't we use Flex to built website

2007-11-28 Thread bouiaw
Hi,

I have read all this very interesting, but old post, about Flex
templating.

I currently work on Igenko, a Java/Flex CMS/ecommerce software based
on PureMVC/GraniteDS/JBPM/Jackrabbits technos.

The Backoffice will be in Flex, no problem for that. But I really
don't know how to generate dynamically the Front Office that will be
in FLex too.

The content and the layout will be stored on the Java Content
Repository, and should be used to dynamically generate the website. It
is an easy thing to do Java/HTML world with template languages like
Freemarker ou Velocity, but in Flex, I had no ideas untill I read this
post.

My question is : is there some new solution to make templates in Flex
and let the user specify the layout at runtime ? Is there another
solution than use and HTML layout with FLex components in it ?

Thanks in advance,
Sébastien Deleuze

--- In flexcoders@yahoogroups.com, Michael Schmalle
[EMAIL PROTECTED] wrote:

  Michael I think your saying that Flex doesn't support structured text
 layout like HTML/XHTML in XHTML components should fill this gap
nicely…hint,
 hint,nudge,nudge!!
 
 HAHA, Yeah Ted that is what I meant ;-)
 
 I see what you are saying. Se how programmed I am to the HTML stuff!!
 
 conform to the template in use
 
 That is a very important statement I think. This whole thing requires a
 reformulation of how data is rendered WHEN it gets to the client.
 
 Being that as it may, there is a plugable XHTML/XML - MXML transformer
 comming from me in the future that completly plays off of what you are
 saying about 'templates'. This will be a fun component that should make
 people real happy.
 
 hehen fun times, invention means seeing different colors for the
first time
 :)
 
 Peace, Mike
 
 On 6/30/06, Ted Patrick [EMAIL PROTECTED] wrote:
 
 Flex lacks text layout;
 
 
 
  Flex supports very low level layout of Text and higher level
layout text
  layout can be accomplished easily with mx:Text/ and css styles.
I can
  layout a template in Flex and style all elements but the
data/model passed
  need to conform to the template in use.
 
 
 
  Michael I think your saying that Flex doesn't support structured text
  layout like HTML/XHTML in XHTML components should fill this gap
nicely…hint,
  hint,nudge,nudge!!
 
 
 
  Ideally I think we should send the model (XML) over the wire and
have a
  template (SWF) do the layout. HTML works by sending model with
embedded
  markup over the wire and rendering it all. My proposal is more in
line with
  XML/XSL layout where you send a small model in XML and XSL styles
it into a
  page on the client side.
 
 
 
  Cheers,
 
 
 
  Ted
 
 
   --
 
  *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On
  Behalf Of *Michael Schmalle
  *Sent:* Friday, June 30, 2006 1:23 PM
  *To:* flexcoders@yahoogroups.com
  *Subject:* Re: [flexcoders] Re: Shouldn't we use Flex to built website
 
 
 
  Just to add to this again.
 
  Where this line is for me;
 
  Page layout. I find myself time and time again dreaming up new
things for
  Flex and knowing I can't do them because as much as I want to
abstract out
  how much a user 'knows' how to read, they are just so conditioned
to seeing
  the format and style of html.
 
  This is where it will be interesting to see where Apollo fits into
this
  situation. Allowing you to get the best of both worlds, Flex(web
  application) and HTML(web layout) to fuse together this hole in
the space
  time continuum.
 
  Flex lacks text layout; this cannot be disputed. This is also why
AJAX is
  so popular because it is fusing web text layout with web application.
 
  There is no line between web sites and web applications, it's how
the user
  interface presents the intent of the web experience.
 
  Peace, Mike
 
  On 6/30/06, *sleekdigital* [EMAIL PROTECTED] wrote:
 
 
  Please see my responses inline below...
 
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  Jennifer Larkin jlarkin@
  wrote:
  
 
   Sean Corfield had his site running in PHP because he could easily
  use
   an existing PHP package that did what he wanted and there was no
   ColdFusion equivalent. A frequently asked question that he got was
   Why aren't you using ColdFusion on your personal site? Shouldn't
  you
   be using ColdFusion? He got that question a lot from people who
  were
   reading his blog where he gives ColdFusion tips. If people reading
  a
   ColdFusion themed blogget weirded out by the blog not employing
   ColdFusion, how do you think that someone would act if he went to
  that
   site to figure out if he wanted to hire Sean for a ColdFusion job?
  
 
  First, Blog readers are not the same audience as potential
  customers. Sure potential customer's might read someone's blog, but
  so will lots of other people. The people who were weirded out
  were probably other developers who used the blog as a resource,
  rather than potential customers. Also Cold Fusion vs PHP is a
  different 

RE: [flexcoders] Automation and LCDS

2007-11-28 Thread Matt Chotin
Automation will be included in Flex Builder 3 Professional, you can
access it in the current beta.  It was a part of LCDS in the Flex 2
timeframe though.

 

Matt

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nhflexer
Sent: Wednesday, November 28, 2007 12:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Automation and LCDS

 

I have been told by a potential partner that the automation framework
requires LCDS. Is that true? There is nothing in the documentation to
indicate that is the case but the partner said they couldn't get it to
work without LCDS. We are not using LCDS but would like to use the
automation framework to test.

Thanks!

 



[flexcoders] Using Tweener for effect (such as showEffect)

2007-11-28 Thread dave_defusion
I would like to use the Tweener class for my showEffect  hideEffect,
however with Tweener whenever you add a tween it kicks off straight
away. I tried doing my tween inside a method and using that as the
effect e.g.:

this.setStyle( 'showEffect', this.testShowEffect );

private function testShowEffect ():void
{   
trace( 'testShowEffect ' );
Tweener.addTween( this, { y: this.height, time: 1 } );
}

But that method doesn't get called when I change the visible to true.

Any ideas?

-D



[flexcoders] Automation and LCDS

2007-11-28 Thread nhflexer
I have been told by a potential partner that the automation framework
requires LCDS. Is that true? There is nothing in the documentation to
indicate that is the case but the partner said they couldn't get it to
work without LCDS. We are not using LCDS but would like to use the
automation framework to test.

Thanks!



[flexcoders] Re: Am I the only one who wishes EventDispatcher exposed its listeners?

2007-11-28 Thread ben.clinkinbeard
If you want this functionality vote for it here:
https://bugs.adobe.com/jira/browse/SDK-13763



--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:

  Does anyone from Adobe have info on why its not and/or if it might be
 someday?
  
 The Player's EventDispatcher class doesn't provide this capability,
 probably because it isn't part of the Document Object Model Level 3
 Events Specification. (The Player obviously keeps a list of listeners,
 but this is done in C++ code and the list isn't exposed in
 ActionScript.) However, I suppose the framework could accomplish what
 you want by overriding addEventListener() and removeEventListener() in
 every subclass of EventDispatcher to keep track of the listeners. Please
 file an enhancement request at http://bugs.adobe.com/flex.
  
 Gordon Smith
 Adobe Flex SDK Team
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Wednesday, November 28, 2007 6:04 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Am I the only one who wishes EventDispatcher
 exposed its listeners?
 
 
 
 Sometimes it would be really nice be able to access a list of
 currently attached listeners by doing something like
 myButton.listeners. Having that return a collection of objects that
 expose the event type and handler method would be nice and it doesn't
 seem like it would be that hard to implement since they're obviously
 already kept track of somewhere.
 
 Does anybody else wish this was provided? Does anyone from Adobe have
 info on why its not and/or if it might be someday?
 
 Thanks,
 Ben





  1   2   >