Re: [flexcoders] Re: How to create Flex 4 Library Project with custom namespace please ?

2010-03-15 Thread Adnan Doric
Thank you for you reply, but I've done steps you describe but in FB4 and 
it doesn't work.
I have the following error in library project (manifest.xml is added in 
assets tab) :


could not find source for class myPackage:TestComponent in namespace 
http://mynamespace.com.


Did you take a look at the link in my first post ?

http://forums.adobe.com/thread/583153




On 15/03/2010 02:15, Jeff wrote:


I cover this in the laast episode of The Flex Show's video series on 
creating Flex Components:


http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs 
http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs


The other poster who mentioned the mainfest.xml file is correct.

--- In flexcoders@yahoogroups.com 
mailto:flexcoders%40yahoogroups.com, astronaute75 astrona...@... 
wrote:


 Hello,

 I would like to create a Library Project in Flex 4 with a custom 
namespace so I can reference the namespace in my *.mxml files instead 
of package.


 (xmlns:view=http://myapp.com http://myapp.com instead of 
xmlns:view=com.myapp.*)


 I asked the question on Adobe forums too, but nobody seems to know 
how to do it:
 http://forums.adobe.com/thread/583153?tstart=0 
http://forums.adobe.com/thread/583153?tstart=0


 Maybe I am doing something completely wrong in which case I apologize :)

 Thank you in advance for your help,
 Adnan







[flexcoders] Re: HorizontalList and itemRenderer

2010-03-15 Thread prince.sidana84



Well you can not get height 100% as height 
is explicitly calculated by number of rows and 
rowheight so if you have just single row then set the rowheight = this.height 
and if you have multiple rows calculate the row height from dataproveider 
length and application height say if you have 7 rows then your row hight will 
be this.height/7

Prince

--- In flexcoders@yahoogroups.com, Rodney Smith rodney...@... wrote:

 I'm struggling to get items in a HorizontalList to be full height (as in
 height=100%, which is not honored by the HorizontalList container). I'm
 using an external itemRenderer based on VBox, but can't get the items to be
 the fill the height of the HorizontalList. If the HorizontalList is set to
 height=100%, how do I get the items in the list to also be 100% height?
 
 Here's my simple code, with borders:
 SampleHList.mxml:
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
 
 mx:HorizontalList columnCount=3
 itemRenderer=components.SampleView
 height=100%
 width=100%
 borderStyle=solid
 
 mx:ArrayCollection
  mx:Object category=Topic 1/
  mx:Object category=Topic 2/
  mx:Object category=Topic 3/
  mx:Object category=Topic 4/
/mx:ArrayCollection
  /mx:HorizontalList
 /mx:Application
 
 And the contents of components/SampleView.mxml:
 ?xml version=1.0 encoding=utf-8?
 mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;
 borderStyle=solid
 borderColor=red
 height=100%
 mx:Label text={data.category}/
 mx:Spacer height=100%/
 mx:Label text=end of topic/
 /mx:VBox





[flexcoders] Adding a button Icon

2010-03-15 Thread criptopus
// Add TLink To Issue Box
issButArray.push(new Button());
issButArray[i].icon=@Embed(source='icons/more.gif');
issHbxArray[i].addChild(issButArray[i]);

Error :

Cannot create property icon on mx.controls.Button

how do I set a buttons icon programatically?

- Stephen



[flexcoders] Re: Automatically update ValueObjects...

2010-03-15 Thread valdhor
What I generally do is not use a Working Folder on the server. I use the 
Live folder for everything.

Is there any specific reason you need a Working Folder? If this is new code, 
don't you need new ValueObjects? If this is existing code and you need to add 
new properties to a ValueObject, (I don't know if ColdFusion does, but PHP 
does) you can subclass the existing ValueObject and add properties to the new 
class. Either way, there is a new ValueObject class that will not affect 
existing code.



--- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote:

 I have not used Remote object enough to be an authority on your specific
 issue, but that looks like a package path and typically package paths are
 relative, starting at the project root, (in my setups, this is src) , so
 the deployment location is never an issue.  Are yo sure you need to specify
 MyworkingFolder?
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Ivan Wang
 Sent: Saturday, March 13, 2010 7:46 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Automatically update ValueObjects...
 
  
 
   
 
 But In what case do you have to change a package name? If you really did,
 the Flex Builder has some refactor feature, but not too much. You can try
 it, I'm not sure.
 
  
 
  
 
 - Original Message - 
 
 From: Laurence mailto:lmacne...@...  
 
 To: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com 
 
 Sent: Saturday, March 13, 2010 6:46 AM
 
 Subject: [flexcoders] Automatically update ValueObjects...
 
  
 
   
 
 I have several ValueObjects in my app... When I work with them in my test
 website, everything's fine. But when I want to export a release build, the
 ValueObjects no longer work because the folder-name is different...
 
 All my VO's have the following type of declaration at the top:
 [RemoteClass(alias=MyWorkingFolder.cfcs.vo.MyValueObjectVO)]
 
 And on the ColdFusion9 side it's:
 cfcomponent output=false alias=MyWorkingFolder.cfcs.vo.MyValueObjectVO
 
 Thus, when I export the release-build from MyWorkingFolder to MyLiveFolder
 (for example) all of the VOs stop working -- they're still looking for
 MyWorkingFolder.
 
 How do I get FlexBuilder to change the names inside the VOs automatically to
 match the release-build destination? So far, I've been doing it manually,
 but what a pain that is -- my patience is wearing thin, having to manually
 update a bunch of damn VOs, then change them back, every time I want to
 export a release build... There has to be a better way that I'm just not
 aware of...
 
 Thanks,
 Laurence MacNeill
 Mableton, Georgia, USA





Re: [flexcoders] Adding a button Icon

2010-03-15 Thread Robert VanCuren Jr
you need to use the setStyle method because icon is a style not a property.

myButton.setStyle(icon, source);

On Mon, Mar 15, 2010 at 8:20 AM, criptopus sd_br...@ntlworld.com wrote:



 // Add TLink To Issue Box
 issButArray.push(new Button());
 issButArray[i].icon=@Embed(source='icons/more.gif');
 issHbxArray[i].addChild(issButArray[i]);

 Error :

 Cannot create property icon on mx.controls.Button

 how do I set a buttons icon programatically?

 - Stephen

  



[flexcoders] Re: Adding a button Icon

2010-03-15 Thread criptopus
issButArray[i].setStyle(icon,@Embed(source='icons/more.gif'));

Type Coercion failed: cannot convert @Embed(source='icons/more.gif') to Class?

- New error?

--- In flexcoders@yahoogroups.com, Robert VanCuren Jr robert.vancuren...@... 
wrote:

 you need to use the setStyle method because icon is a style not a property.
 
 myButton.setStyle(icon, source);
 
 On Mon, Mar 15, 2010 at 8:20 AM, criptopus sd_br...@... wrote:
 
 
 
  // Add TLink To Issue Box
  issButArray.push(new Button());
  issButArray[i].icon=@Embed(source='icons/more.gif');
  issHbxArray[i].addChild(issButArray[i]);
 
  Error :
 
  Cannot create property icon on mx.controls.Button
 
  how do I set a buttons icon programatically?
 
  - Stephen
 
   
 





[flexcoders] Re: How to create Flex 4 Library Project with custom namespace please ?

2010-03-15 Thread Jeff
I did not see your original post on the Adobe Forums.

Did you include the manifest.xml as an asset to the project?  Did you clean the 
project after adding the asset?


--- In flexcoders@yahoogroups.com, Adnan Doric astrona...@... wrote:

 Thank you for you reply, but I've done steps you describe but in FB4 and 
 it doesn't work.
 I have the following error in library project (manifest.xml is added in 
 assets tab) :
 
 could not find source for class myPackage:TestComponent in namespace 
 http://mynamespace.com.
 
 Did you take a look at the link in my first post ?
 
 http://forums.adobe.com/thread/583153
 
 
 
 
 On 15/03/2010 02:15, Jeff wrote:
 
  I cover this in the laast episode of The Flex Show's video series on 
  creating Flex Components:
 
  http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs
   
  http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs
 
  The other poster who mentioned the mainfest.xml file is correct.
 
  --- In flexcoders@yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com, astronaute75 astronaute@ 
  wrote:
  
   Hello,
  
   I would like to create a Library Project in Flex 4 with a custom 
  namespace so I can reference the namespace in my *.mxml files instead 
  of package.
  
   (xmlns:view=http://myapp.com http://myapp.com instead of 
  xmlns:view=com.myapp.*)
  
   I asked the question on Adobe forums too, but nobody seems to know 
  how to do it:
   http://forums.adobe.com/thread/583153?tstart=0 
  http://forums.adobe.com/thread/583153?tstart=0
  
   Maybe I am doing something completely wrong in which case I apologize :)
  
   Thank you in advance for your help,
   Adnan
  
 
 





Re: [flexcoders] Re: Adding a button Icon

2010-03-15 Thread Robert VanCuren Jr
That embed will not work because it is in action script and will be treated
as a string try something like this:

First embed the image you want to use as an icon as a Class like so

[Embed(source=icons/more.gif)]
[Bindable]
public var buttonIcon:Class;

Now you can use it for your button like this:

issButArray[i].setStyle(icon, buttonIcon);

that should work for you.

On Mon, Mar 15, 2010 at 9:01 AM, criptopus sd_br...@ntlworld.com wrote:



 issButArray[i].setStyle(icon,@Embed(source='icons/more.gif'));

 Type Coercion failed: cannot convert @Embed(source='icons/more.gif') to
 Class?

 - New error?


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Robert
 VanCuren Jr robert.vancuren...@... wrote:
 
  you need to use the setStyle method because icon is a style not a
 property.
 
  myButton.setStyle(icon, source);
 
  On Mon, Mar 15, 2010 at 8:20 AM, criptopus sd_br...@... wrote:
 
  
  
   // Add TLink To Issue Box
   issButArray.push(new Button());
   issButArray[i].icon=@Embed(source='icons/more.gif');
   issHbxArray[i].addChild(issButArray[i]);
  
   Error :
  
   Cannot create property icon on mx.controls.Button
  
   how do I set a buttons icon programatically?
  
   - Stephen
  
  
  
 

  



[flexcoders] Re: Adding a button Icon

2010-03-15 Thread valdhor
Yes, this requires a class. Try creating variables to hold your icons and then 
declaring them in your class...

[Embed(source=icons/more.gif)] private var moreIcon:Class;

Then use the class in the setStyle method...

(issButArray[i] as Button).setStyle(icon, moreIcon);



--- In flexcoders@yahoogroups.com, criptopus sd_br...@... wrote:

 issButArray[i].setStyle(icon,@Embed(source='icons/more.gif'));
 
 Type Coercion failed: cannot convert @Embed(source='icons/more.gif') to 
 Class?
 
 - New error?
 
 --- In flexcoders@yahoogroups.com, Robert VanCuren Jr robert.vancuren.jr@ 
 wrote:
 
  you need to use the setStyle method because icon is a style not a property.
  
  myButton.setStyle(icon, source);
  
  On Mon, Mar 15, 2010 at 8:20 AM, criptopus sd_brown@ wrote:
  
  
  
   // Add TLink To Issue Box
   issButArray.push(new Button());
   issButArray[i].icon=@Embed(source='icons/more.gif');
   issHbxArray[i].addChild(issButArray[i]);
  
   Error :
  
   Cannot create property icon on mx.controls.Button
  
   how do I set a buttons icon programatically?
  
   - Stephen
  

  
 





[flexcoders] Drawing and Bitmaps on text

2010-03-15 Thread atlantageek
Is there a method for drawing lines and text onto a bitmap?



[flexcoders] I need some basic ActionScript help that I'm stumped on

2010-03-15 Thread Mark
I'm having an issue with finding the length of the number of children items in 
my ArrayCollection.  A small part of the xml that is being pulled in is below.  
You'll see that I have a node links with a child or children node link.  If 
I have 2 or more link nodes then the length comes back with the proper 
number, but if I only have 1 it comes back as undefined.  Here's my basic 
function that I'm putting together now…

private function dgChanged(evt:Event):void {
if (myADG.selectedItem.links != null) {
trace(myADG.selectedItem.links.link.length);
} else {
trace (NULL );
}


items
item
eID4/eID
eName![CDATA[3 Event with link]]/eName
sDate1/2/2010/sDate
eDate2/18/2010/eDate
sTime12:00:00 PM/sTime
eTime3:00:00 PM/eTime
description![CDATA[Lorem Ipsum is simply dummy text of the 
printing and typesetting industry. Lorem Ipsum has been the industry's standard 
dummy text ever since the 1500s, when an unknown printer took a galley of type 
and scrambled it to make a type specimen book. It has survived not only five 
centuries, but also the leap into electronic typesetting, remaining essentially 
unchanged. It was popularised in the 1960s with the release of Letraset sheets 
containing Lorem Ipsum passages, and more recently with desktop publishing 
software like Aldus PageMaker including versions of Lorem 
Ipsum.]]/description
aNameAIT/aName
cNameLearning/cName
lNameUK/lName
links
link ID=1 description=description of the link 
title=Apple url=www.apple.com/
/links
/item


Any ideas as to why I'm getting undefined?

Thanks,
Mark



Re: [flexcoders] Re: How to create Flex 4 Library Project with custom namespace please ?

2010-03-15 Thread Adnan Doric

Yes of course, manifest.xml is added and project cleaned.
Did you try it in FB4 too ?

On 15/03/2010 14:09, Jeff wrote:


I did not see your original post on the Adobe Forums.

Did you include the manifest.xml as an asset to the project? Did you 
clean the project after adding the asset?


--- In flexcoders@yahoogroups.com 
mailto:flexcoders%40yahoogroups.com, Adnan Doric astrona...@... wrote:


 Thank you for you reply, but I've done steps you describe but in FB4 
and

 it doesn't work.
 I have the following error in library project (manifest.xml is added in
 assets tab) :

 could not find source for class myPackage:TestComponent in namespace
 http://mynamespace.com. http://mynamespace.com.

 Did you take a look at the link in my first post ?

 http://forums.adobe.com/thread/583153 
http://forums.adobe.com/thread/583153





 On 15/03/2010 02:15, Jeff wrote:
 
  I cover this in the laast episode of The Flex Show's video series on
  creating Flex Components:
 
  
http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs 
http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs 

  
http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs 
http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs

 
  The other poster who mentioned the mainfest.xml file is correct.
 
  --- In flexcoders@yahoogroups.com 
mailto:flexcoders%40yahoogroups.com

  mailto:flexcoders%40yahoogroups.com, astronaute75 astronaute@
  wrote:
  
   Hello,
  
   I would like to create a Library Project in Flex 4 with a custom
  namespace so I can reference the namespace in my *.mxml files instead
  of package.
  
   (xmlns:view=http://myapp.com http://myapp.com 
http://myapp.com http://myapp.com instead of

  xmlns:view=com.myapp.*)
  
   I asked the question on Adobe forums too, but nobody seems to know
  how to do it:
   http://forums.adobe.com/thread/583153?tstart=0 
http://forums.adobe.com/thread/583153?tstart=0
  http://forums.adobe.com/thread/583153?tstart=0 
http://forums.adobe.com/thread/583153?tstart=0

  
   Maybe I am doing something completely wrong in which case I 
apologize :)

  
   Thank you in advance for your help,
   Adnan
  
 
 







[flexcoders] Rendering HTML table in a rich text editor

2010-03-15 Thread jerry_gagliano
Hi,

I am trying to figure out how to render HTML Table tags in the rich text 
editor. I created a button that generates the table structure but when it gets 
inserted to the editor it strips out all the table tags.

Does anyone have any solutions?

Thanks in advance



[flexcoders] BlazeDS won't 'close' db connections

2010-03-15 Thread Mario
Help!

I am writing a Flex/Java app.  In a nutshell, it polls a backend (Java Dao) 
every so often.  This java method, in turn, fetched information from a 
database.  

Its a thing of beauty which will allows (will) to monitor obscenely complex 
processes; makes for a sweet demo.

I'm stumped at Flex opening a db connection for every request.  Before long, I 
have 100+ open connections :(  Looking at connections in MySQL workbench, I see 
all these 'sleeping' connections which Bazeds won't drop unless I cycle the 
service.  

If my app dies, it gives 'org.hibernate.exception.jdbcconnectionexception: 
cannot open connection'.  If I manually kill a few connections in MySQL 
workbench, all is well again (until I run out of connections again).

I thought I was mismanaging my connections in Hibernate but no changes in cfg 
(even with c3p0) bear fruit.  Calling method form eclipse does not do this; 
only when called from flex app.

Has anyone run into anything similar?  Any bits of wisdom?  Thanks…

Mario



[flexcoders] Canvas or VBox has MAX height limitation?

2010-03-15 Thread Jonathan Lee
Hello all:

I'm using a Canvas to hold a list of different TileList. Every TileList is a 
Child of another Canvas which can set to open/close the canvas by set the 
height to 10 or the real height that is needed to show everything inside 
TileList.
The outside Canvas allows scroll bar, and everything inside set the scroll 
policy to false.

My issue here is when I have lots of stuff in one TileList and I set the canvas 
height to that big, (I think the height is over 8000 or 1 pix), the display 
seems will broken.

Anyone has the same experience? I tried VBox, it's same. How to solve it?

Thank you all.



  

RE: [flexcoders] Synchronize with Flex ??? the equivalent of wait or sleep in Java-----AnyHelp please :(

2010-03-15 Thread Nini7016 Nini7016

Hello :)

Did anybodu has worked with synchrone components please ??

I would like to do the equivalent of wait or sleep .??


Anyhelp please ;( 



To: flexcoders@yahoogroups.com
From: nahloulaha...@hotmail.com
Date: Sat, 13 Mar 2010 12:48:12 +0100
Subject: RE: [flexcoders] Synchronize with Flex ??? the equivalent of wait or 
sleep in Java


















 



  



  
  
  


Hello 

Thank you very much :)


To: flexcoders@yahoogroups.com
From: aha...@adobe.com
Date: Fri, 12 Mar 2010 15:47:12 -0800
Subject: Re: [flexcoders] Synchronize with Flex ??? the equivalent of wait or 
sleep in Java


















 



  



  
  
  


See http://blogs.adobe.com/aharui/2008/01/threads_in_actionscript_3.html





On 3/12/10 9:15 AM, Nini7016 Nini7016 nahloulaha...@hotmail.com wrote:




 

 

 

   



Thank you very much for your answer

 

Could you please give one example using timer and Enter_frame please ?

 

it will be helpful for me 

 

thanks again :)

 



 

To: flexcoders@yahoogroups.com

From: aha...@adobe.com

Date: Fri, 12 Mar 2010 09:05:15 -0800

Subject: Re: [flexcoders] Synchronize with Flex ??? the equivalent of wait or 
sleep in Java



  

Actionscript execution is single threaded and non-blocking so there are no 
equivalents.  Flash/Flex is effectively event-driven programming.  When your 
code finishes running, the player draws the screen then runs more code 
triggered by events like ENTER_FRAME and TIMER



  





On 3/12/10 5:19 AM, Nini7016 Nini7016 nahloulaha...@hotmail.com 
http://hotmail.com/  wrote:





 

 

   



Hello ;)



I would like to know how we can do the equivalent of wait or sleep In Flex 
please 



It 's very urgent 

thank you very much 



Any idea ???



   

Commander un cadeau en ligne discrètement? Voir la solution offerte par 
Internet Explorer8 http://clk.atdmt.com/FRM/go/207186971/direct/01/ 

 

   







-- 

Alex Harui

Flex SDK Team

Adobe System, Inc.

http://blogs.adobe.com/aharui









 









  
Télécharger en toute sécurité sur Internet ? La solution avec Internet Explorer 
8




 









  
_
Découvrez comment SURFER DISCRETEMENT sur un site de rencontres !
http://clk.atdmt.com/FRM/go/206608211/direct/01/

[flexcoders] Send a fax

2010-03-15 Thread Christophe
Hello, 

Is it possible to send a Fax from a Flex application ?

Thank you,
Christophe, 



[flexcoders] Re: Flex 4....Large recordset...how much is too much?

2010-03-15 Thread gmbroth
I'm curious: what's the use case for pushing 15 million (or, heck, even 50,000) 
records to the client?


--- In flexcoders@yahoogroups.com, iloveyouwisconsin iloveyouwiscon...@... 
wrote:

 Maybe I'll have to wait until Flex 7 (or later) 'til they truly make flex 
 able to handle large datasets smoothly. (I guess I'll also have to advise 
 those at Adobe and the flex evangelists that what they define as a large 
 dataset isn't large in practice. They probably need to moonlight as interns 
 for a few of their customers to snapback into reality. There's no company in 
 the real world that would define a large dataset as only a few thousand items)
 
 --- In flexcoders@yahoogroups.com, iloveyouwisconsin iloveyouwisconsin@ 
 wrote:
 
  How many records is considered too large for a datagrid to handle? I am 
  using Flex 4 with Zend AMF  paging enabled. When I google it the topic, 
  most seem to think that a few thousand is large, but that doesn't seem 
  hardly anything to me. I thought Zend would do the trick but it isn't 
  anywhere near what I need. My 15 million records didn't go over too well (I 
  can use the scroll wheel on my mouse to scroll through the records but it 
  kept crashing when I tried to use the scrollbar on the datagrid to jump 
  around). I ask because I don't want to have to jimmy around with code until 
  I'm blue in the face trying to find something flex can handle. Can I do 1 
  million? 5,000? 500,000? I just want to be able to let users play around w/ 
  the scrollbar on the datagrid without it crashing, is all (though I realize 
  that the user's machine will play a big factor in performance. All of my 
  users have computers that are no more than a couple yrs old)
  
  I also ask because I am sure others would like to know for their 
  projectsis there a more efficient way to get the data than Zend, like 
  Livecycle or Coldfusion? I am willing to switch the backend up a bit in 
  order to increase performance of my app.
  
  
  many thanks!
 





[flexcoders] Re: Adding a button Icon

2010-03-15 Thread criptopus
Up and running, thanks again.

--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 Yes, this requires a class. Try creating variables to hold your icons and 
 then declaring them in your class...
 
 [Embed(source=icons/more.gif)] private var moreIcon:Class;
 
 Then use the class in the setStyle method...
 
 (issButArray[i] as Button).setStyle(icon, moreIcon);
 
 
 
 --- In flexcoders@yahoogroups.com, criptopus sd_brown@ wrote:
 
  issButArray[i].setStyle(icon,@Embed(source='icons/more.gif'));
  
  Type Coercion failed: cannot convert @Embed(source='icons/more.gif') to 
  Class?
  
  - New error?
  
  --- In flexcoders@yahoogroups.com, Robert VanCuren Jr robert.vancuren.jr@ 
  wrote:
  
   you need to use the setStyle method because icon is a style not a 
   property.
   
   myButton.setStyle(icon, source);
   
   On Mon, Mar 15, 2010 at 8:20 AM, criptopus sd_brown@ wrote:
   
   
   
// Add TLink To Issue Box
issButArray.push(new Button());
issButArray[i].icon=@Embed(source='icons/more.gif');
issHbxArray[i].addChild(issButArray[i]);
   
Error :
   
Cannot create property icon on mx.controls.Button
   
how do I set a buttons icon programatically?
   
- Stephen
   
 
   
  
 





[flexcoders] Compiler Not Reporting Errors

2010-03-15 Thread okie_174
Yesterday I found that Flex Builder (v3) was no longer reporting compiler 
errors when compiling. It is reporting warnings but no errors. I purposely 
introduced errors and it will build the project and then present a blank 
screen. I have looked to see if there's some sort of setting I made by mistake 
to make this happen but can't find anything. I re-installed Felx Builder but it 
didn't help.

Anyone know why Flex Builder would suddenly stop reporting compiler errors?



[flexcoders] Adding a click to a button

2010-03-15 Thread criptopus
Thanks for those that helped with setting the Icon style with a button 
programatically but now I have a problem with the click event.

// Add Link To Issue Box
issButArray.push(new Button());
issButArray[i].setStyle(icon,moreIcon); 
-- Thanks!

issButArray[i].click=moreDetail();; --- How?

issButArray[i].width = 43;
issButArray[i].height = 13;
usrColArray[usrColCnt].addChild(issButArray[i]);





[flexcoders] Re: Send a fax

2010-03-15 Thread valdhor
It depends.

If you are using AIR, you could use Merapi to connect with a Java application 
to send the fax.

If you are using a browser, you would have to send the data to a back end 
server which could send the fax. For example, using PHP, you could create a PDF 
with TCPDF (http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf) and 
then use a service like InterFax (http://www.interfax.net/en/dev/php) to send 
the fax.

--- In flexcoders@yahoogroups.com, Christophe christophe_jacque...@... 
wrote:

 Hello, 
 
 Is it possible to send a Fax from a Flex application ?
 
 Thank you,
 Christophe,





[flexcoders] Re: Adding a click to a button

2010-03-15 Thread valdhor
(issButArray[i] as Button).addEventListener(MouseEvent.click, moreDetail);

--- In flexcoders@yahoogroups.com, criptopus sd_br...@... wrote:

 Thanks for those that helped with setting the Icon style with a button 
 programatically but now I have a problem with the click event.
 
 // Add Link To Issue Box
 issButArray.push(new Button());
   issButArray[i].setStyle(icon,moreIcon); 
 -- Thanks!
 
 issButArray[i].click=moreDetail();; --- How?
 
 issButArray[i].width = 43;
 issButArray[i].height = 13;
 usrColArray[usrColCnt].addChild(issButArray[i]);





Re: [flexcoders] Re: How to create Flex 4 Library Project with custom namespace please ?

2010-03-15 Thread Adnan Doric
Alright, the problem occurs only if the checkbox include all 
classes... is selected.


Very weird.

Hope that helps someone :)

On 15/03/2010 14:51, Jeffry Houser wrote:


 Yep, no issues in Flash Builder 4.  It works fine for me!  I'm not 
sure what to tell you.



On 3/15/2010 9:34 AM, Adnan Doric wrote:

Yes of course, manifest.xml is added and project cleaned.
Did you try it in FB4 too ?

On 15/03/2010 14:09, Jeff wrote:


I did not see your original post on the Adobe Forums.

Did you include the manifest.xml as an asset to the project? Did you 
clean the project after adding the asset?


--- In flexcoders@yahoogroups.com 
mailto:flexcoders%40yahoogroups.com, Adnan Doric astrona...@... 
wrote:


 Thank you for you reply, but I've done steps you describe but in 
FB4 and

 it doesn't work.
 I have the following error in library project (manifest.xml is 
added in

 assets tab) :

 could not find source for class myPackage:TestComponent in namespace
 http://mynamespace.com. http://mynamespace.com.

 Did you take a look at the link in my first post ?

 http://forums.adobe.com/thread/583153 
http://forums.adobe.com/thread/583153





 On 15/03/2010 02:15, Jeff wrote:
 
  I cover this in the laast episode of The Flex Show's video 
series on

  creating Flex Components:
 
  
http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs 
http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs 

  
http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs 
http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs

 
  The other poster who mentioned the mainfest.xml file is correct.
 
  --- In flexcoders@yahoogroups.com 
mailto:flexcoders%40yahoogroups.com

  mailto:flexcoders%40yahoogroups.com, astronaute75 astronaute@
  wrote:
  
   Hello,
  
   I would like to create a Library Project in Flex 4 with a custom
  namespace so I can reference the namespace in my *.mxml files 
instead

  of package.
  
   (xmlns:view=http://myapp.com http://myapp.com 
http://myapp.com http://myapp.com instead of

  xmlns:view=com.myapp.*)
  
   I asked the question on Adobe forums too, but nobody seems to 
know

  how to do it:
   http://forums.adobe.com/thread/583153?tstart=0 
http://forums.adobe.com/thread/583153?tstart=0
  http://forums.adobe.com/thread/583153?tstart=0 
http://forums.adobe.com/thread/583153?tstart=0

  
   Maybe I am doing something completely wrong in which case I 
apologize :)

  
   Thank you in advance for your help,
   Adnan
  
 
 








--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert:http://tinyurl.com/684b5h
http://www.twitter.com/reboog711   | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust




[flexcoders] Re: I need some basic ActionScript help that I'm stumped on

2010-03-15 Thread valdhor
I'm not great with XML (That's more Tracy's forte) but shouldn't it be 

trace(myADG.selectedItem.links.length);

--- In flexcoders@yahoogroups.com, Mark mark.pusat...@... wrote:

 I'm having an issue with finding the length of the number of children items 
 in my ArrayCollection.  A small part of the xml that is being pulled in is 
 below.  You'll see that I have a node links with a child or children node 
 link.  If I have 2 or more link nodes then the length comes back with the 
 proper number, but if I only have 1 it comes back as undefined.  Here's my 
 basic function that I'm putting together now…
 
 private function dgChanged(evt:Event):void {
   if (myADG.selectedItem.links != null) {
   trace(myADG.selectedItem.links.link.length);
   } else {
   trace (NULL );
 }
 
 
 items
   item
   eID4/eID
   eName![CDATA[3 Event with link]]/eName
   sDate1/2/2010/sDate
   eDate2/18/2010/eDate
   sTime12:00:00 PM/sTime
   eTime3:00:00 PM/eTime
   description![CDATA[Lorem Ipsum is simply dummy text of the 
 printing and typesetting industry. Lorem Ipsum has been the industry's 
 standard dummy text ever since the 1500s, when an unknown printer took a 
 galley of type and scrambled it to make a type specimen book. It has survived 
 not only five centuries, but also the leap into electronic typesetting, 
 remaining essentially unchanged. It was popularised in the 1960s with the 
 release of Letraset sheets containing Lorem Ipsum passages, and more recently 
 with desktop publishing software like Aldus PageMaker including versions of 
 Lorem Ipsum.]]/description
   aNameAIT/aName
   cNameLearning/cName
   lNameUK/lName
   links
   link ID=1 description=description of the link 
 title=Apple url=www.apple.com/
   /links
   /item
 
 
 Any ideas as to why I'm getting undefined?
 
 Thanks,
 Mark





[flexcoders] Re: i do not get flex 4 skinning?

2010-03-15 Thread Ariel J
You can use illustrator or fireworks in CS5 and export the vector drawings as 
FXG (XML) that can be pasted into a Flex 4 skin and compiled. Get to me at 
arieljake at yahoo dot com if you want help with that process.

--- In flexcoders@yahoogroups.com, dorkie dork from dorktown 
dorkiedorkfromdorkt...@... wrote:

 what do we use for visually skinning flex 4 skins? flash builder 4?
 
 right now i'm trying to create an item renderer for a list control
 
 rant
 i don't want to design my skin through markup. i want to use a visual tool.
 /rant
 
 ddfd





Re: [flexcoders] mxlm component instantiation using ActionScript

2010-03-15 Thread Alex Harui
You can build that way, but use Label instead of TextField


On 3/12/10 9:03 AM, normc_actionscript normcousin...@hotmail.com wrote:






Is it possible/advisable to add an mxml component to the application by doing 
this from a Flex container:
var myComp:myCustomPanel = new myCustomPanel();
// myCustomPanel is myCustomPanel.mxml containing a Panel container.
AddChild(myComp)

On creation complete of myCustomPanel.mxml I attempt to set text in a 
mx:TextField sub component, but error occurs at runtime.

Any other suggestions on how to pop up panels in the application?
Popup manager?
Include them on application startup and toggle visibility?

Thanks,
Norm C.






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Re: Automatically update ValueObjects...

2010-03-15 Thread Laurence
Tracy:  It does appear that using a relative path will not work...  At least 
not in the .CFC files...  (It does appear to work if I specify the 
relative-path in the Flex .AS component, and the full-path in the .CFC files, 
however...)  So apparently CF is looking for the path relative to the web-root, 
not to the .SWF's path...  If anyone knows how to change this behavior, I'd be 
very happy to hear it.

Valdhor: I need a separate working folder so that when I'm making changes, 
people can still use the app (in the live folder) for testing purposes 
without receiving silly errors that will pop up from time-to-time because I'm 
in the middle of editing something...  It's caused confusion before, and I'm 
simply trying to make it so the testers see as few errors as possible...  Of 
course, we have a completely separate server for our actual web-site, so it 
doesn't affect end-users...  But on the test-server, this issue has cropped up 
more than once, so I keep a separate working-folder and live-folder on the 
development server.

L.


--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 What I generally do is not use a Working Folder on the server. I use the 
 Live folder for everything.
 
 Is there any specific reason you need a Working Folder? If this is new 
 code, don't you need new ValueObjects? If this is existing code and you need 
 to add new properties to a ValueObject, (I don't know if ColdFusion does, but 
 PHP does) you can subclass the existing ValueObject and add properties to the 
 new class. Either way, there is a new ValueObject class that will not affect 
 existing code.
 
 
 
 --- In flexcoders@yahoogroups.com, Tracy Spratt tracy@ wrote:
 
  I have not used Remote object enough to be an authority on your specific
  issue, but that looks like a package path and typically package paths are
  relative, starting at the project root, (in my setups, this is src) , so
  the deployment location is never an issue.  Are yo sure you need to specify
  MyworkingFolder?
  
   
  
  Tracy Spratt,
  
  Lariat Services, development services available
  
_  
  
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
  Behalf Of Ivan Wang
  Sent: Saturday, March 13, 2010 7:46 PM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Automatically update ValueObjects...
  
   
  

  
  But In what case do you have to change a package name? If you really did,
  the Flex Builder has some refactor feature, but not too much. You can try
  it, I'm not sure.
  
   
  
   
  
  - Original Message - 
  
  From: Laurence mailto:LMacNeill@  
  
  To: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com 
  
  Sent: Saturday, March 13, 2010 6:46 AM
  
  Subject: [flexcoders] Automatically update ValueObjects...
  
   
  

  
  I have several ValueObjects in my app... When I work with them in my test
  website, everything's fine. But when I want to export a release build, the
  ValueObjects no longer work because the folder-name is different...
  
  All my VO's have the following type of declaration at the top:
  [RemoteClass(alias=MyWorkingFolder.cfcs.vo.MyValueObjectVO)]
  
  And on the ColdFusion9 side it's:
  cfcomponent output=false alias=MyWorkingFolder.cfcs.vo.MyValueObjectVO
  
  Thus, when I export the release-build from MyWorkingFolder to MyLiveFolder
  (for example) all of the VOs stop working -- they're still looking for
  MyWorkingFolder.
  
  How do I get FlexBuilder to change the names inside the VOs automatically to
  match the release-build destination? So far, I've been doing it manually,
  but what a pain that is -- my patience is wearing thin, having to manually
  update a bunch of damn VOs, then change them back, every time I want to
  export a release build... There has to be a better way that I'm just not
  aware of...
  
  Thanks,
  Laurence MacNeill
  Mableton, Georgia, USA
 





[flexcoders] Daylight savings bug

2010-03-15 Thread Richard Rodseth
Wouldn't you know it. A bug showed up today.

I have a label function for a chart axis that does this:

return 
dateTimeFormatter.format(DateUtils.adjustForTimeZone(labelValue));

public static function adjustForTimeZone(d:Date):Date {
// Assumes d is time-zone neutral
// Adjusts by time-zone offset, so that when
// DateFormatter (for example) converts to local, the
// result is the original date.
var offsetms:Number = d.getTimezoneOffset() * 
millisecondsPerMinute;
return new Date(d.getTime() + offsetms);
}

On dates before today, it times out in DateFormatter.format()

Error: Error #1502: A script has executed for longer than the default
timeout period of 15 seconds.
at mx.formatters::StringFormatter/formatPattern()
at mx.formatters::StringFormatter()
at mx.formatters::DateFormatter/format()
at 
com.companyname.admin.clientevents.view::EventExplorerLineChart/dateTimeLabel()

Error: Error #1502: A script has executed for longer than the default
timeout period of 15 seconds.
at mx.formatters::DateFormatter/format()
at 
com.companyname.admin.clientevents.view::EventExplorerLineChart/dateTimeLabel()
at mx.charts::DateTimeAxis/buildLabelCache()

Anyone else?


[flexcoders] Vertical DataGrid resizing is sporadic

2010-03-15 Thread atomilux
I never got this to work consistently.

Original: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg128005.html

Alex Harui was kind enough to respond and requested an example:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute 
creationComplete=init()
mx:Script
![CDATA[

import mx.collections.ArrayCollection;

public var derXML:XML = root 
category 
order=0 x=0 y=0 width=200 height=200

nameCategory 1/name
item 
order=0

textSome item number 1 in cat 1/text
/item
item 
order=1

textSome item number 2 in cat 1/text
/item
item 
order=2

textSome item number 3 in cat 1/text
/item
item 
order=3

textSome item number 4 in cat 1/text
/item
item 
order=4

textSome item number 5 in cat 1/text
/item
/category
/root ;

public var derXML2:XML = root 
category 
order=0 x=0 y=0 width=200 height=200

nameCategory 2/name
item 
order=0

textSome item number 1 in cat 2/text
/item
item 
order=1

textSome item number 2 in cat 2/text
/item
item 
order=2

textSome item number 3 in cat 2/text
/item
item 
order=3

textSome item number 4 in cat 2/text
/item
item 
order=4

textSome item number 5 in cat 2/text
/item
/category
/root ;   


[Bindable] var derData:ArrayCollection;
[Bindable] var derData2:ArrayCollection;


public function init():void {

buildMXMLfromXML();

}//end func

public function buildMXMLfromXML():void {


var categoriesXML:XML = derXML.category.(@order 
== 0)[0];
var categoriesXML2:XML = 
derXML2.category.(@order == 0)[0];

   

Re: [flexcoders] Synchronize with Flex ??? the equivalent of wait or sleep in Java-----AnyHelp please :(

2010-03-15 Thread Alex Harui
What are you trying to accomplish?


On 3/15/10 7:17 AM, Nini7016 Nini7016 nahloulaha...@hotmail.com wrote:






Hello :)

Did anybodu has worked with synchrone components please ??

I would like to do the equivalent of wait or sleep .??


Anyhelp please ;(




To: flexcoders@yahoogroups.com
From: nahloulaha...@hotmail.com
Date: Sat, 13 Mar 2010 12:48:12 +0100
Subject: RE: [flexcoders] Synchronize with Flex ??? the equivalent of wait or 
sleep in Java




   Hello

Thank you very much :)




To: flexcoders@yahoogroups.com
From: aha...@adobe.com
Date: Fri, 12 Mar 2010 15:47:12 -0800
Subject: Re: [flexcoders] Synchronize with Flex ??? the equivalent of wait or 
sleep in Java




   See http://blogs.adobe.com/aharui/2008/01/threads_in_actionscript_3.html


On 3/12/10 9:15 AM, Nini7016 Nini7016 nahloulaha...@hotmail.com 
http://hotmail.com  wrote:







Thank you very much for your answer

Could you please give one example using timer and Enter_frame please ?

it will be helpful for me

thanks again :)




To: flexcoders@yahoogroups.com http://yahoogroups.com
From: aha...@adobe.com http://adobe.com
Date: Fri, 12 Mar 2010 09:05:15 -0800
Subject: Re: [flexcoders] Synchronize with Flex ??? the equivalent of wait or 
sleep in Java


Actionscript execution is single threaded and non-blocking so there are no 
equivalents.  Flash/Flex is effectively event-driven programming.  When your 
code finishes running, the player draws the screen then runs more code 
triggered by events like ENTER_FRAME and TIMER




On 3/12/10 5:19 AM, Nini7016 Nini7016 nahloulaha...@hotmail.com 
http://hotmail.com  http://hotmail.com/  wrote:






Hello ;)

I would like to know how we can do the equivalent of wait or sleep In Flex 
please 

It 's very urgent 
thank you very much

Any idea ???



Commander un cadeau en ligne discrètement? Voir la solution offerte par 
Internet Explorer8 http://clk.atdmt.com/FRM/go/207186971/direct/01/





--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Canvas or VBox has MAX height limitation?

2010-03-15 Thread Alex Harui
The player doesn’t like pixels greater than 8000 or so.  That’s why TileList 
virtualizes what it displays.


On 3/15/10 7:12 AM, Jonathan Lee jlee_lee740...@yahoo.com wrote:






Hello all:

I'm using a Canvas to hold a list of different TileList. Every TileList is a 
Child of another Canvas which can set to open/close the canvas by set the 
height to 10 or the real height that is needed to show everything inside 
TileList.
The outside Canvas allows scroll bar, and everything inside set the scroll 
policy to false.

My issue here is when I have lots of stuff in one TileList and I set the canvas 
height to that big, (I think the height is over 8000 or 1 pix), the display 
seems will broken.

Anyone has the same experience? I tried VBox, it's same. How to solve it?

Thank you all.







--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Drawing and Bitmaps on text

2010-03-15 Thread Alex Harui
Not the way you’re probably thinking of it.  You would assemble a display list 
of some TextWidgets on top of a Bitmap and draw lines on it.


On 3/15/10 6:13 AM, atlantageek atlantag...@gmail.com wrote:






Is there a method for drawing lines and text onto a bitmap?






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Charting woes, a strange sort

2010-03-15 Thread s_grollins
Hi all,

I have a quick question regarding arranging different bars or columns in a 
chart - if you use the following page as an example: 
http://livedocs.adobe.com/flex/3/langref/mx/charts/ColumnChart.html, what I 
need to do is to make the actual bars in the chart sort descending - so I would 
need the USA's silver count to be the left-most bar, followed by gold, followed 
by bronze, china's would be okay as is (already descending), then for russia I 
would need bronze to be the left most column followed by gold and silver.

I don't believe this is possible in the flex charting / data viz. framework 
right now - does anyone have any ideas on a possible approach?

Thanks in advance for any help!

-Steven



[flexcoders] List TileList Accordion and HTTPService control [1 Attachment]

2010-03-15 Thread Sneha Bhansali
Hello All flexcoders,

I have a small problem in my mxml file. I have attached a file too.

In this application I am trying to do is:
1) User selects more than one location from a list control. Depending on
locations selected I generate the number of child panels in an accordion
with the title as name of a location.
2) What I want to do is send  HTTPService to flickr.com and get the pictures
for the location selected from flickr. For every location selected pictures
must be displayed in a separate accordion panel. This accordion panel
contains TileList and images must be displayed in a tilelist.
I have used FlickrItemrenderer which is present on adobe.com.
How can I do it? How can I send the multiple HTTPService requests? I am able
to do part 1) of thie email. I need help with part 2. I tried that too but
wasn't able to get images displayed in a TileList.

Is there any other webservice like flickr easy to access and requires less
filtering. In flickr, there are many irrelevant images.

Does anybody know how to embed a .swf file in other .mxml application.

Any help would be appreciated.

Thanks in advance


[flexcoders] show handcursor on mouseOver UITextField

2010-03-15 Thread siddiq

Hi

 
 May i know how do i use useHandCursor for a UITextField.Basically i
have a AdvancedDataGrid in which i am using
AdvancedDataGirdGroupItemRenderer for displaying hierarchical data with
textLinks i need  useHandCursor on mouseOver of the label(i am using
super.label to add styles and click functionality,which works fine).i am
unable to find any Property in UITextField for displaying handCursor.

 
Regards

Sidd

-- 
View this message in context: 
http://old.nabble.com/show-handcursor-on-mouseOver--UITextField-tp27890142p27890142.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: Daylight savings bug

2010-03-15 Thread Richard Rodseth
It looks as though I ran into this:
http://bugs.adobe.com/jira/browse/FLEXDMV-2043

Switching to 3.4 cleared it up, though some of the comments in that
bug make me a little nervous about November...

On Mon, Mar 15, 2010 at 1:15 PM, Richard Rodseth rrods...@gmail.com wrote:
 Wouldn't you know it. A bug showed up today.

 I have a label function for a chart axis that does this:

        return 
 dateTimeFormatter.format(DateUtils.adjustForTimeZone(labelValue));

                public static function adjustForTimeZone(d:Date):Date {
                        // Assumes d is time-zone neutral
                        // Adjusts by time-zone offset, so that when
                        // DateFormatter (for example) converts to local, the
                        // result is the original date.
                        var offsetms:Number = d.getTimezoneOffset() * 
 millisecondsPerMinute;
                        return new Date(d.getTime() + offsetms);
                }

 On dates before today, it times out in DateFormatter.format()

 Error: Error #1502: A script has executed for longer than the default
 timeout period of 15 seconds.
        at mx.formatters::StringFormatter/formatPattern()
        at mx.formatters::StringFormatter()
        at mx.formatters::DateFormatter/format()
        at 
 com.companyname.admin.clientevents.view::EventExplorerLineChart/dateTimeLabel()

 Error: Error #1502: A script has executed for longer than the default
 timeout period of 15 seconds.
        at mx.formatters::DateFormatter/format()
        at 
 com.companyname.admin.clientevents.view::EventExplorerLineChart/dateTimeLabel()
        at mx.charts::DateTimeAxis/buildLabelCache()

 Anyone else?



[flexcoders] Re: Flex 4....Large recordset...how much is too much?

2010-03-15 Thread iloveyouwisconsin
We have a need for that in our project. I will say that much w/out giving away 
the idea. The question, though, is why is Flex (without hacks) limiting the 
amount of data we can view? The datagrid should be smarter than it is and in my 
opinion has a long way to go in order to be a truly viable means for 
data-intensive applications. Remember, I'm not VIEWING 15 million records at 
ONCE. I'm only retrieving 25 or 100 rows at a time from a database that is 15 
million records. I want to give the user the OPTION of jumping around the 
database via moving the thumb around on the scrollbar...without crashing the 
application. 

As a workaround (at least in the short-term), how could I force the thumb icon 
to the bottom of the scrollbar after a user scrolls, like they do here: 
http://blog.tremend.ro/2009/03/02/flex-live-scroll-datagrid? I know that they 
have source enabled, but the switch to flex 4 (and paging enabled on my php 
service) would change the entire process, right?

--- In flexcoders@yahoogroups.com, gmbroth gmbr...@... wrote:

 I'm curious: what's the use case for pushing 15 million (or, heck, even 
 50,000) records to the client?
 
 
 --- In flexcoders@yahoogroups.com, iloveyouwisconsin iloveyouwisconsin@ 
 wrote:
 
  Maybe I'll have to wait until Flex 7 (or later) 'til they truly make flex 
  able to handle large datasets smoothly. (I guess I'll also have to advise 
  those at Adobe and the flex evangelists that what they define as a large 
  dataset isn't large in practice. They probably need to moonlight as interns 
  for a few of their customers to snapback into reality. There's no company 
  in the real world that would define a large dataset as only a few thousand 
  items)
  
  --- In flexcoders@yahoogroups.com, iloveyouwisconsin iloveyouwisconsin@ 
  wrote:
  
   How many records is considered too large for a datagrid to handle? I am 
   using Flex 4 with Zend AMF  paging enabled. When I google it the topic, 
   most seem to think that a few thousand is large, but that doesn't seem 
   hardly anything to me. I thought Zend would do the trick but it isn't 
   anywhere near what I need. My 15 million records didn't go over too well 
   (I can use the scroll wheel on my mouse to scroll through the records but 
   it kept crashing when I tried to use the scrollbar on the datagrid to 
   jump around). I ask because I don't want to have to jimmy around with 
   code until I'm blue in the face trying to find something flex can handle. 
   Can I do 1 million? 5,000? 500,000? I just want to be able to let users 
   play around w/ the scrollbar on the datagrid without it crashing, is all 
   (though I realize that the user's machine will play a big factor in 
   performance. All of my users have computers that are no more than a 
   couple yrs old)
   
   I also ask because I am sure others would like to know for their 
   projectsis there a more efficient way to get the data than Zend, like 
   Livecycle or Coldfusion? I am willing to switch the backend up a bit in 
   order to increase performance of my app.
   
   
   many thanks!
  
 





[flexcoders] xml parsing

2010-03-15 Thread luvfotography
What does '*::' do in the following example:
(can someone explain how this works, where aspectRatios ends up with 
'widescreen')
   
var aspectRatios:XMLList = atomXml..*::aspectRatio;

where atomxml = 
 ?xml  version=1.0 encoding=utf-16?
entry gd:etag=W/quot;C0QCQ347eCp7ImA9WxBbFkk.quot; 
xmlns=http://www.w3.org/2005/Atom; xmlns:media=http://search.yahoo.com/mrss/; 
xmlns:gd=http://schemas.google.com/g/2005; 
xmlns:yt=http://gdata.youtube.com/schemas/2007;
idtag:youtube.com,2008:video:yNq5vC_EHAg/id
published2009-03-17T07:44:54.000Z/published
 
yt:accessControl action=syndicate permission=allowed /
gd:comments
gd:feedLink 
href=http://gdata.youtube.com/feeds/api/videos/yNq5vC_EHAg/comments?v=2; 
countHint=1031 /
/gd:comments
media:group
yt:aspectRatiowidescreen/yt:aspectRatio
yt:duration seconds=232 /
yt:uploaded2009-03-17T07:44:54.000Z/yt:uploaded
yt:videoidyNq5vC_EHAg/yt:videoid
/media:group
gd:rating average=4.794872 max=5 min=1 numRaters=3159 
rel=http://schemas.google.com/g/2005#overall; /
yt:statistics favoriteCount=9429 viewCount=4563767 /
/entry 




Re: [flexcoders] Re: Flex 4....Large recordset...how much is too much?

2010-03-15 Thread Alex Harui
Can you reproduce your problem in a simple test case?  You say you aren’t 
bringing down the full data set all at once so unless your data records are 
really big or you are trying to make the datagrid really “tall” so it can 
display without scrollbars, I wouldn’t expect you to run out of memory.

If you use up more than 500MB the Browser and Flash Player start getting 
creaky, but otherwise I would expect things to work.  If you make the DG more 
than 8000 pixels tall, you can run into Flash Player limits.

When you say crash is the Player/Browser crashing or are you getting a runtime 
exception?  If you’re getting an exception, what is the stack trace?


On 3/15/10 4:32 PM, iloveyouwisconsin iloveyouwiscon...@yahoo.com wrote:






We have a need for that in our project. I will say that much w/out giving away 
the idea. The question, though, is why is Flex (without hacks) limiting the 
amount of data we can view? The datagrid should be smarter than it is and in my 
opinion has a long way to go in order to be a truly viable means for 
data-intensive applications. Remember, I'm not VIEWING 15 million records at 
ONCE. I'm only retrieving 25 or 100 rows at a time from a database that is 15 
million records. I want to give the user the OPTION of jumping around the 
database via moving the thumb around on the scrollbar...without crashing the 
application.

As a workaround (at least in the short-term), how could I force the thumb icon 
to the bottom of the scrollbar after a user scrolls, like they do here: 
http://blog.tremend.ro/2009/03/02/flex-live-scroll-datagrid? I know that they 
have source enabled, but the switch to flex 4 (and paging enabled on my php 
service) would change the entire process, right?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
gmbroth gmbr...@... wrote:

 I'm curious: what's the use case for pushing 15 million (or, heck, even 
 50,000) records to the client?


 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 iloveyouwisconsin iloveyouwisconsin@ wrote:
 
  Maybe I'll have to wait until Flex 7 (or later) 'til they truly make flex 
  able to handle large datasets smoothly. (I guess I'll also have to advise 
  those at Adobe and the flex evangelists that what they define as a large 
  dataset isn't large in practice. They probably need to moonlight as interns 
  for a few of their customers to snapback into reality. There's no company 
  in the real world that would define a large dataset as only a few thousand 
  items)
 
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
  iloveyouwisconsin iloveyouwisconsin@ wrote:
  
   How many records is considered too large for a datagrid to handle? I am 
   using Flex 4 with Zend AMF  paging enabled. When I google it the topic, 
   most seem to think that a few thousand is large, but that doesn't seem 
   hardly anything to me. I thought Zend would do the trick but it isn't 
   anywhere near what I need. My 15 million records didn't go over too well 
   (I can use the scroll wheel on my mouse to scroll through the records but 
   it kept crashing when I tried to use the scrollbar on the datagrid to 
   jump around). I ask because I don't want to have to jimmy around with 
   code until I'm blue in the face trying to find something flex can handle. 
   Can I do 1 million? 5,000? 500,000? I just want to be able to let users 
   play around w/ the scrollbar on the datagrid without it crashing, is all 
   (though I realize that the user's machine will play a big factor in 
   performance. All of my users have computers that are no more than a 
   couple yrs old)
  
   I also ask because I am sure others would like to know for their 
   projectsis there a more efficient way to get the data than Zend, like 
   Livecycle or Coldfusion? I am willing to switch the backend up a bit in 
   order to increase performance of my app.
  
  
   many thanks!
  
 







--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui