[flexcoders] Re: Exceeding Flash's Capabilities?

2010-04-21 Thread jer_ela
I've never tried to display more than 20 or so series, but I do have an app 
that has 5692 records with 4 series each for a total of 17076 data points. It 
is displayed in a bar chart.  Well it isn't actually displayed since that's 
about 17 bars per pixel, but the bars are actually there and you get data tips 
when you mouse over where the bars should be.  I hide the chart from users when 
there is too much data, and show them the data in a data grid .  But when the 
data is filtered down to around 3 or 4 bars per pixel the chart updates and the 
bars display.  

So while there is too much data to actually plot due to the limitations of the 
screen there is no problem working with it in Flex and I am able to display it 
in a data grid with no problem.  In fact the the 6000 records I end up with are 
the end result of some complex processing of 30 K objects of various types.

Sounds like your users want a plot of a plate of spaghetti.

--- In flexcoders@yahoogroups.com, trefalgar trefal...@... wrote:

 66 line series with 218 plot points each for a total of 14388 plot points, if 
 we're looking for specifics. It's a lot of data that doesn't look 
 particularly good because of the sheer volume, but it's what they want.
 
 I'm using a line chart. Using AMF3 to retrieve the data. The time it takes to 
 query the data, or transmit the data, isn't an issue. Also, the problem 
 doesn't happen over time, it could be the first request someone makes on the 
 application - I don't believe it's a memory leak.
 
 The method used to populate the graph is thus:
 
 var ls:LineSeries = new LineSeries();
 ls.dataProvider = data[o];
ls.yField = counter;
ls.xField = dtime;
ls.displayName = o.valueOf();
if ( circleplots.selected ) {
   ls.setStyle('itemRenderer', new ClassFactory(CircleItemRenderer));
}
   var currentSeries:Array = linechart1.series;
 currentSeries.push(ls);
 linechart1.series = currentSeries;
 
 Storing the data in an internal array, and possibly sending it to the clip 
 board isn't a big issue. It's trying to display that much data within a flex 
 construct that causes the problem(s).
 
 Jacob
 
 --- In flexcoders@yahoogroups.com, Richard Rodseth rrodseth@ wrote:
 
  How many items are you (and the Excel user) talking about?
  What sort of Flex charts are you using?
  Are you using AMF, XML or JSON to retrieve the data?
  
  On Wed, Apr 14, 2010 at 3:48 PM, trefalgar trefalgar@ wrote:
  
  
  
   The majority of my flex work revolves around graphing data. If for some
   reason a user picks a lot of statistics to graph, over an even longer 
   period
   of time, the amount of data that comes back to the Flash application
   overwhelms flash, consuming all of the boxes resources and regularly
   crashing the browser.
  
   Is there anything in the developers bag of tricks to help with this kind 
   of
   problem, or is the sheer amount of data too much for the
   application/SDK/solution to handle?
  
   I understand I can put a limit on the amount of data returned, but as the
   user states, I can pull it out of the database, via Excel, and it works.
  
   Tref
  

  
 





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

2010-03-17 Thread jer_ela
I have found that selecting Include all classes, doesn't actually include all 
classes.  Selecting Select classes to include in library and then checking 
the checkbox next to the src directory seems to work get all the classes 
included.

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

 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 astronaute@ 
  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: FlexUnit or fluint ?? which the best ???

2010-03-10 Thread jer_ela
The flexUnit and fluint projects have merged into FlexUnit4, so which was 
better no longer matters.  You can get FlexUnit4 at flexunit.org.

--- In flexcoders@yahoogroups.com, Nini7016 Nini7016 nahloulaha...@... wrote:

 
 Hello :)
 
 
 I 'm currently doing units test for my application developped on Flex.
 I would like to know of anybody has used fluint 
 http://code.google.com/p/fluint/  before ?? 
 Do you know it's better to use FlexUnit or fluint ??
 
 Do you know the advantages of fluint
 
 
 Do you have informations please ???
 
 Any Idea please ???
 
 Thanks ;)
 
 _
 Hotmail arrive sur votre téléphone ! Compatible Iphone, Windows Phone, 
 Blackberry, …
 http://www.messengersurvotremobile.com/?d=Hotmail





[flexcoders] Re: How to use Flex Unit 4 with Mate

2010-02-16 Thread jer_ela
You shouldn't create an instance of the event map for a unit test.  There 
shouldn't be enough code in your event map to test.  It should just wire the 
rest of the app together.  The rest of the app shouldn't even know it is a mate 
app and so should be testable without any need for the event map.

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

 Can anyone explain how to setup mate with a Flex Unit 4 test? For example,
 where do I create an instance of the event map?
 
 I have
 
 [Before]
 [After]
 [BeforeClass]
 [AfterClass]
 
 methods
 
 Would it be something like this:
 
 public function setup():void {
 var myMap:EventMap = new MainEventMap();
 // something
 }
 
 thanks





[flexcoders] Re: Issue with packages and folders - ui

2010-01-15 Thread jer_ela
A better workaround is to drag it into gauge and then use move to put it into 
controls which will get expanded and you will be able to drag stuff to it 
thereafter.  

I like the way they roll up the empty packages, as it saves a lot of clicks if 
you have a deep package structure.  That does leave no drag target, but on the 
few instances where it is an issue, the workaround is pretty easy.

--- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote:

 I have a package 'flexlib.controls.gauge' and there are no class files in 
 controls, just the folder/package gauge
 
 The way flashbuilder works with packages, I can't drag/save a file into the 
 flexlib.controls folder...The workaround is to drag and drop outside flex 
 into the my flexlib.controls
 
 Is this intended,seems like a ui oversight to me.
 
 
 Also, why can't we drag and drop multiple files into packages from our 
 desktop into flashbuilder.  That bug has been really annoying, and affected 
 flex/flashbuilder 4eva.
 
 
 Thanks for helping,
 Patrick





[flexcoders] Re: Mate board?

2009-12-21 Thread jer_ela
http://mate.asfusion.com/forums/

--- In flexcoders@yahoogroups.com, Dan Pride danielpr...@... wrote:

 Is there a board specifically for Mate?
 Thanks
 Dan





[flexcoders] Re: How can I sort ADGColumn with icons as data?

2009-12-04 Thread jer_ela
ADG columns have a sortCompareFunction property.  The function will get 2 
objects representing 2 of the datagrid rows.  The function decides how to 
compare the object for sorting purposes.  So whatever data you have that 
determines which icon to display can be used to determine how the column sorts. 
 

--- In flexcoders@yahoogroups.com, Thomas Silvester thomas_...@... wrote:

 Hi All,
  How can I sort icons according to  severity in an ADG column? Please if any 
 one know can you give me sample code?
 thanks,
 Anitha.





[flexcoders] Re: Casting down an object

2009-11-02 Thread jer_ela
Do you need A class objects (ie ones w/o the C property) in your app?
If not just add the C property to the A class.  It should still be converted 
correctly. 

If you still need the A class, add an exportAsB method to create a B class 
equivelent.

--- In flexcoders@yahoogroups.com, bnsmeets bensme...@... wrote:

 Hi all,
 
 I'm wondering if it is possible to 'hack' some sort of downcasting into AS3. 
 The context is, that I am using a generated webservice proxy from Flex 3, and 
 want to be able to add custom (extra) properties to the generated 
 valueobjects without having to adjust the code that parses the wsdl result 
 into objects.
 
 So e.g. the webservice generates the class:
 
 class A
 {
   property A;
   property B;
 }
 
 I have my own class that is:
 
 class B extends A
 {
   property C;
 }
 
 When i call the generated webservice get all A's, it will return an array 
 of A objects, what I am looking for is to convert that list into B 
 objects. So the values of the properties that exist in the A counterpart, 
 filled for a new B instance, with an empty C property.
 
 Any ideas? 
 
 Cheers,
 
 Ben





[flexcoders] Re: RemoteObject question/mystery

2009-11-02 Thread jer_ela
how do I actually get the data back to a caller function?

you can't.  The request is async.  The caller has long since finished executing 
when the result comes back.

Have the resultHandler do whatever needs to be done with the result.

--- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote:

 Looking for a little education from all the people smarter than me of 
 remoteObjects. I have always used the MXML version which includes the 
 resultHandler attribute which made managing the returned data easy. However I 
 never learned the AS version very well. I can create the remoteObject in AS 
 and call its method, add the EventListener, but how do I actually get the 
 data back to a caller function?
 
 index.mxml
 import org.mywindow.data.Users;
 
 [Bindable] public var users:ArrayCollection;
 
 public function getMyData():void {
  users = Users.getAll();
 }
 
 for the User's getAll function I have something like:
 
 UserDAO.as
 ...
 public var _users:ArrayCollection;
 
 public function getAll():void {
 var UserDAO:RemoteObject = new RemoteObject();
 UserDAO.destination = ColdFusion;
 UserDAO.source = org.mywindow.data.userDAO;
 UserDAO.getAll.addEventListener(ResultEvent.RESULT, 
 resultHandler);
 UserDAO.getAll.addEventListener(FaultEvent.FAULT, faultHandler);
 }
 
 public function resultHandler(e:ResultEvent):ArrayCollection{
   _users = e as ArrayCollection;
 return users;
 }
 
 I know some of the code may be off, but I am trying to understand how a non 
 called function (resultHandler) can return data to the called function in a 
 different class. So my question is, if the index.mxml calls the getAll 
 function in the UserDAO class, will the getMyData function still receive the 
 ArrayCollection from the resultHandler? If I were to fire this off, till the 
 result be that my users ArrayCollection in the index.mxml be populated in the 
 end? Thanks!





[flexcoders] Flash Player on HTC Hero

2009-10-21 Thread jer_ela
The HTC Hero has a flash player that appears to be version 9.  And it does play 
some flash content.  But it is also unable to play a lot including even a hello 
world written in flex.

Is there any documentation available at to what this player does and doesn't 
support?  Why is it labeled flash 9 if it can't play flash 9 content?



[flexcoders] Re: Complex shape selection

2009-09-16 Thread jer_ela
Check out the ImageMap component in FlexLib 
http://flexlib.googlecode.com/svn/trunk/docs/flexlib/controls/ImageMap.html

It works the same way in imagemap works in html, and you can use any of the 
tools used to define imagemap coords for html, to define the coords.  Fireworks 
for example.

--- In flexcoders@yahoogroups.com, vladakg85 vladak...@... wrote:

 Hi,
 
 how to create complex selectable shape in flex. 
 For example if I make Europe map. And There is countries like Germany, Italy, 
 Greece etc. They all have their boundaries. And I want to create application 
 so that user can select Greece for example but only selectable in her 
 boundaries. If I put canvas over this country and make it selectable I get 
 square selection which is not what I really want.





[flexcoders] Re: Line and area chart on the same coordinate system?

2009-08-27 Thread jer_ela
You can add line series to an area chart, but you are better off using
 a cartesian chart as it doesn't have any functionalities are are chart type 
specific that can cause problems.  Be aware that if the area series are going 
to be stacked, that you need to put them in an AreaSet, or they will not play 
nice with the line series.
 
--- In flexcoders@yahoogroups.com, |Mirko msabl...@... wrote:

 
 Hi,
 
 What i would like to do is display both area and line chart on the same
 graph with same coordinate axis but not sure if that's possible and how to
 do it. I googled a bit but couldn't find any useful example so if someone
 can give me few hints or maybe provide an example i would really appreciate
 it?
 
 Thanks in advance,
 Best regards
 -- 
 View this message in context: 
 http://www.nabble.com/Line-and-area-chart-on-the-same-coordinate-system--tp25167662p25167662.html
 Sent from the FlexCoders mailing list archive at Nabble.com.





[flexcoders] Re: look for a actionscript function?

2009-07-16 Thread jer_ela
I assume that what you want to do is round to to decimal places.

If all you want to do is display the rounded number, you can use the 
NumberFormatter class.  This can give you a string representation of the number 
rounded as you want it, which is fine for display.

If you need to actually round the number and use the rounded value in 
subsequent calculations, you can use the following function.

public function round(number:Number, decimals:int):Number
{
   return Math.round(number * Math.pow(10, decimals)) / Math.pow(10, decimals);
}

--- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote:

 I have a number 0.3563567,I want to convert it to 0.36,which function can do 
 this?I check Math class at
 http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Math.html
 
 but I can not get right one.
 
 Thanks for your help
 
 Mark





[flexcoders] Re: create class on the fly

2009-07-15 Thread jer_ela
Just have your cfc return the results as a query, or as an array of structs.  
The first will be converted into an ArrayCollection of generic objects in Flex, 
and the second into an Array of objects.  Each of these objects will have a 
property for each column in the record.  

Flex will be quite happy with these object and will let you do pretty much 
anything you want to do with them.

You can use 

for (var key:String in recordObject) 

to get the property names.  Since your queries are going to be dynamic you are 
going to have to process them dynamically and this is how you do it.

You could also have your cfc return metadata about the result set, to tell you 
which properties are the primary keys, and anything else you need to know about 
the result to process it correctly.

Having the server return objects that automatically get converted to typed flex 
objects is great when you know what type of objects are going to be returned.  
But if you don't Flex can handle untyped dynamic objects just fine, and you 
should use them when the results of a service can't be known at compile time.

--- In flexcoders@yahoogroups.com, postwick p...@... wrote:

 I cannot predict at compile-time what the name (or properties) of the class 
 will be.  I need to CREATE the class at runtime, AND add the properties to 
 it.  It seems, so far, that this is not possible.
 
 However, what I'm doing sounds very similar to your project.  It's not so 
 much the sheer number of tables (although a few dozen) but the fact that the 
 application allows the creation of new tables (so I need a new class) and 
 columns (so the properties might change).
 
 I can easily have my app write new destinations to the config file for any 
 new table created.  I can even write the necessary CFCs to disk based upon 
 schema changes within the app.  But I cannot find a way to get the classes I 
 need.
 
 All tables share the same foreign key column name, which is helpful.  My idea 
 is this...set up one class that has two properties - the foreign key and a 
 second column.  I would have one destination for each table, but all 
 destinations will point to the same class.  When my CFCs pull data, I will 
 have them return the primary key along with all other data encoded (XML or 
 something) into the second property.  Then on the client side I can manage it 
 by filling an ArrayCollection, then having a function that parses the actual 
 columns and rows (from the second property) into a second ArrayCollection 
 that my datagrid is actually bound to.  Creates/updates would go in the 
 reverse direction - placed into the second ArrayCollection and then processed 
 up to the two-property format for the first one, at which point LCDS will 
 take over.
 
 As I think through it, this should work.  Thoughts?
 
 --- In flexcoders@yahoogroups.com, wrhinfl wrhinfl@ wrote:
 
  Ok, I think the way your question is worded can cause problems with the 
  answer you get.
  
  If your real question was Can a class be modified during runtime and how? 
   Would this be the same question you are asking?
  
  I searched the ASDocs and found Dynamic Class, which allows you to add 
  variables and functions to an instance of a class.  I created a simple 
  application and uses one AS class twice, creating different variables and 
  functions in the two instances.
  
  The project I am working on is trying to do something very similar where I 
  don't want hundreds of classes to match the hundreds of tables (and would 
  require hundreds of java classes on the server).  
  
  And your question made me do some searching, so let me know if this 
  question and answer are closer to what you are trying to accomplish in your 
  project and I can share my simple code (two files with 70 lines of code, no 
  comments).
  
  --- In flexcoders@yahoogroups.com, postwick paul@ wrote:
  
   I want to store descriptions of classes in an external file (such as XML) 
   or database, and use them in my Flex application such that I can add, 
   remove, or change the classes in the external file with recompling the 
   Flex application.
   
   Is there any way to do this?  In a nutshell, is there a way to create a 
   class through an Actionscript function, with a for loop where the 
   information that is looped over contains the definitions of the classes 
   loaded from an external source?
  
 





[flexcoders] AMF, IE, and a non-trusted certificate

2009-07-10 Thread jer_ela
All of our applications have to run over SSL. On the dev and eval servers we 
use internally generated certificates. With firefox once you install the 
certificate everything is fine.  

But with IE, if you just tell it to proceed to the website, all http calls to 
the the server work including HttpService call from the flex app.  But amf 
RemoteObject calls fail.

Installing the certificate in IE seems to have no effect, the RemoteObject 
calls still fail, and when you come back in an new session, IE still complains 
about the certificate.

Has anyone else seen this, got a workaround other than buying a certificate 
from a known authority?

Just getting rid of IE is unfortunately not a option.



[flexcoders] AIR app crashes and burns on Mac

2009-05-12 Thread jer_ela
adl, the development runtime for AIR is crashing on me.  This seems to be 
related to using SQL lite.  It had been crashing at one place in the code 
intemittently, then was stable for a while.  Now it is crashing consistantly at 
another place in the code.  Changing the sdk from 3.2 to 3.3 didn;t have any 
effect.

Has anyone else had this problem and know of a cure? This has me dead in the 
water.

Here is the top part of the dump info

Process: adl [211]
Path:/Applications/Adobe Flex Builder 3 Plug-in/sdks/3.3/bin/adl
Identifier:  adl
Version: ??? (???)
Code Type:   X86 (Native)
Parent Process:  eclipse [189]

Date/Time:   2009-05-12 14:52:20.669 -0400
OS Version:  Mac OS X 10.5.6 (9G55)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x000c
Crashed Thread:  0




[flexcoders] Re: Gumbo trial expired

2009-04-27 Thread jer_ela
It tells you the the serial number is invalid.  You'll have to wait for the 
public beta release, to get a working FlexBuilder 4 again.  
 
--- In flexcoders@yahoogroups.com, endrone endrone endr...@... wrote:

 Hello,
 
 does anyone know what happens when I enter my Flex Builder 3 serial for the
 Max 2008 Gumbo preview.
 
 regards
 Vic





[flexcoders] Re: Flashing new row in a datagrid

2009-02-25 Thread jer_ela
If the new rows have a timestamp of when they were added, you can use
the AdvancedDataGrid styleFunction to change the style of a cell based
on that timestamp.  Both AdvancedDataGrid and AdvancedDataGridColumn
have the property.

Here is a style function I used that made the text bright red for new
records and then faded to black as the record aged.


protected function styleElapsedTime(data:Object,  
   col:AdvancedDataGridColumn):Object
{  var color:uint = 0xff;
   var ts:Date = new Date(data.timeStamp);
   var now:Date = new Date();
   var elapsedTime:int = (now.time - ts.time) / 6 ;
   color = ColorUtil.adjustBrightness(color, - (elapsedTime * 4));
   return {color: color};
}

 

--- In flexcoders@yahoogroups.com, faserone faser...@... wrote:

 I would like to highlight the new rows added to a datagrid when the
 dataprovider change.
 Any hint?
 Thanks.





[flexcoders] Re: event passing when source/destination are on different parent bubbling chains?

2009-02-20 Thread jer_ela
You need a loggedIn property somewhere in your model.  It is initially
set to false and when the user successfully logs in your controller
code sets it to true.

Any views that need to react to the log in have that property bound to
a set method which fires off whatever code is appropriate when the
value changes.


--- In flexcoders@yahoogroups.com, Mic chigwel...@... wrote:

 Hi Ryan, we are running Cairngorm with UM extensions. Theoretically I
 need to dispatch a UM event with callback where that callback is to a
 component other than the dispatching component. And because source and
 destination are so far apart conventional bubbling is not an option.
 Scenario: Because site visitors can be visitors or clients, the login
 component is just one child of several of a parent component. When a
 site visitor attempts to log on, Cairngorm/UM handles event
 propagation and handling, including saving server results in
 modelLocator VO etc. But if the login is successful, other components
 need to react - their functions must be called. One such component is
 a child of a child that is a peer of the login component. Even if I
 could grab a reference to the destination component function, and send
 it with the UM event from the source component, this feels like ugly
 hardcoding. Waving a magic wand I would be able to dispatch an event
 from anywhere and listen for it anywhere, without the limitation of
 only being able to bubble up the parent chain. This seems totally
 logical to me as obviously it is illogical to have to design one's gui
 architecture based on who needs to talk to who. Thanks for listening :-)
 
 Mic. 
 
 --- In flexcoders@yahoogroups.com, Ryan Graham Ryan.Graham@ wrote:
 
  
   In an app that has many parent and child components, how does one
   communicate across bubbling chains? I need to go up from a buried
   child component source to its parent, across to another of the
   parent's children, and down that chain to a child destination. Can
   this be done in Flex, or do I create my own event subscription
   component where anybody from anywhere can subscribe with a
   self.reference?
  
   
  
  Sounds like you're describing the controller's function in MVC
  architecture. Usually an event is triggered by some sort of user
  interaction in hopes of changing the state of the application in some
  way.  If you store the state in some sort of centralized model
  somewhere, the controller can react to user events, update the model's
  state properties accordingly, and let any part of the view that is
bound
  to the model update itself on property change. Is that the setup
you are
  running right now? Are you passing data with this event that other
  components need?
  
   
  
  HTH,
  
  Ryan
  
  
  
  This message is private and confidential. If you have received it in
 error, please notify the sender and remove it from your system.
 





[flexcoders] Re: How to set the endpoint address in Coldfusion side?

2009-02-12 Thread jer_ela
That's the default.  I'm not sure how or even if you can change it. 
It's worked for every CF server I've worked with.  

It looked like you were going against a specific server, in which case
see if it works and if so don't worry about cases where it won't.

If you need to be able to talk to random cf servers then it might be
worthwhile looking into special cases.

--- In flexcoders@yahoogroups.com, markflex2007 markflex2...@...
wrote:

 How do you know flex2gateway here.do I set it in somewhere?
 Thanks
 
 Mark





[flexcoders] Re: Drawing graphics on an image

2009-02-12 Thread jer_ela
The graphics object for the image or the container it is in, is below
the content so it is hidden behind the image.  Stick a display object
such as a sprite on top or it and draw on its graphics object.

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

 Hello, 
 
 I want to draw graphics (graphics.lineto) on an existing image, but
 the lines does not appear. Is it possible to make graphics on an
image ? 
 
 Thank you,
 Christophe,





[flexcoders] Re: How to set the endpoint address in Coldfusion side?

2009-02-11 Thread jer_ela
just set the endpoint in your air code

myRemoteObject.endpoint = http://192.168.0.181/flex2gateway;;

--- In flexcoders@yahoogroups.com, markflex2007 markflex2...@...
wrote:

 Hi
 
 I am doing an AIR application and the coldfusion server in a network
 pc(192.168.0.181).the application need use CFML functions
 
 I need use mx:RemoteObject in the Air code and I have to pass endpoint
 attribute to mx:RemoteObject.
 
 My question is how to set the endpoint in coldfusion 8 server,which
 files I need to change.how to change that.
 
 I just use the endpoint url in Air application. 
 
 
 Thanks for help.
 
 
 Mark





[flexcoders] Re: Auto expand TreeView on open - How?

2008-12-08 Thread jer_ela
I tried 

menuTree.openItems = menuData..node; 

but the tree doesn't expand.

What does work for me is 

callLater(menuTree.expandChildrenOf, [menuTree.dataProvider[0], true]);

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

 I was stuck with this aswell a while ago this is my solution:
 
  
 
 ?xml version=1.0 encoding=utf-8?
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
 creationComplete=init() 
 
   
 
   mx:Script
 
 private function init():void{
 
   menuTree.openItems = menuData..node;
 
 }
 
 /mx:Script
 
   
 
   mx:XML id=menuData  
 
 node label=menu
 
   node label=Data Management
 
 node label=Registration/
 
 node label=Customer List/
 
   /node
 
  node label=System Administration
 
node label=Add Users/
 
  /node
 
   /node 
 
   /mx:XML
 
  
 
   
 
   mx:Tree id=menuTree top=72 left=50 showRoot=false
 
  height=224 labelField=@label dataProvider={menuData}/
 
  
 
 /mx:Application
 
  
 
  
 
 Paul K
 
  
 
  
 
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of pbrendanc
 Sent: Thursday, 4 December 2008 3:16 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Auto expand TreeView on open - How?
 
  
 
 I want to auto expand my menu treeview immediately on open - the
 following code is called from thecreationComplete=initTree(); and
 expands the first node only. 
 
 Is there a way to expand all nodes - I can't seem to get this to work.
 (Other have reported problems so I wonder if this is supported)?
 
 TIA,
 Patrick
 
 (The data provider for the tree is an XMLList)
 
 mx:XMLList id=menuData  
 node label=Data Management
 node label=Registration/
 node label=Customer List/
 /node
 node label=System Administration
 node label=Add Users/
 /node 
 
 private function initTree():void {
 
 //Expands first visible Tree Item
 menuTree.expandItem(menuTree.firstVisibleItem,true); 
 }





[flexcoders] Re: Using Tree

2008-10-26 Thread jer_ela
try itemClick

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

 I am using Tree control for my navigation needs.
 I have implemented a change event handler that would show a form when a 
 node is clicked. Now I am adding another Tree control that does the 
 same: show a form when a node is clicked. Both trees show form in the 
 same area. Since change event does not fire when the same node is 
 clicked again, I cannot show a form when I am clicking the same node in 
 the first tree after I showed a form clicking on the second one.
 Are there other events that I could use?
 
 Thanks for help.





Re: Re[flexcoders] versing an ArrayCollection

2008-10-26 Thread jer_ela
I'm guessing that these aren't just random values that you want in the
opposite order of how you got them, but are sorted, but in the wrong
direction.  If that is the case you can apply a sort to the array
collection that puts them in the order you want them.

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

 
 Hey guys,
 
 I have an array collection which I populate from a web service. It
consists
 of a bunch of objects which I access by aryCollection[num].
 
 My problem is, I need to reverse the contents. ArrayCollection
doesn't have
 a .reverse(); function, so can anyone suggest a solution?
 -- 
 View this message in context:
http://www.nabble.com/Reversing-an-ArrayCollection-tp20134270p20134270.html
 Sent from the FlexCoders mailing list archive at Nabble.com.





[flexcoders] Re: Bindable Classes

2008-09-03 Thread jer_ela
Mike Labriola did a very good in depth presentation on how binding
works at 360 Flex which was recorded and is available online.  It runs
about an hour and 20 minutes and is well worth the time if you want to
understand how bindings work.

Diving in the Data Binding Waters with Michael Labriola
http://link.brightcove.com/services/player/bcpid1733261879?bclid=1729365228bctid=1741212660

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

 If I add the Bindable tag at a class level every property is wrapped in 
 by  a sort of proxy that then raises PropertyChange events as 
 appropriate.
 
 This certainly saves a lot of time instead of having to go through a 
 class and add Bindable to every single property.
 
 But...
 What if there is one property that I dont want to be Bindable and more 
 importantly I dont want it to raise PropertyChange events.
 
 Is there same NonBindable tag to achieve this???
 
 tks





[flexcoders] Re: No of Lines of Code

2008-06-26 Thread jer_ela
Simpleist case, use extended search in FlexBuilder and search for \n
that will give you number of literal lines of text in your project.

To get a little more complex you can search for \)$|\):\w+$|;$ as a
regex and get most logical lines in .as code.  If you consider each
tag to be a line of code in mxml you could add |$ to the above and
get those.

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

 Hi all,
 
   Anyone have any idea, In any flex project we need to know no
of lines
 of code..
 
 Any prebuild component or technique for this ?
 
 I need to publish some statics on basis of this .
 
  
 
  
 
  
 
  
 
 Thanks  Regards
 
 Jolly
 
  
 
  
 

*
 
 
 IMPORTANT: This email message is for the sole use of the intended
 recipient(s) and may contain confidential and privileged
information. Any
 unauthorized review, use, disclosure or distribution is prohibited.
If you
 are not the intended recipient, please contact the sender by reply
email and
 destroy all copies of the original message. Please advise
immediately if you
 or your employer do not consent to Internet email for messages of
this kind.
 Opinions, conclusions and other information contained in this e-mail
message
 that do not relate to the official business of Life Fitness shall be
 understood as neither given nor endorsed by it.
 

*
 
 
 Love to God, Everyone starts loving you.
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Tracy Spratt
 Sent: Wednesday, June 25, 2008 9:34 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] httpservice and repetitive calls
 
  
 
 As I understand  from my reading, the W3C specs state that POST
methods do
 not cache.  There are  posts on this list about it, and I am sure
you could
 look into the specs themselves.  I have just always used POST, and
never had
 any problems.  Aspx is nice because Request(myParm) handles both
post and
 get parameters.
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Cameron
 Sent: Tuesday, June 24, 2008 6:48 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] httpservice and repetitive calls
 
  
 
 I never saw my first post come through...hence the second post. That 
 worked by the way, but I'm curious as to why?
 
 Cameron
 
 Tracy Spratt wrote:
 
  See my response to your first post.
 
  
 
  Use the POST method instead of get.
 
  
 
  Tracy
 
  
 
  --
 
  *From:* flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ] 
  *On Behalf Of *Cameron
  *Sent:* Tuesday, June 24, 2008 1:18 PM
  *To:* flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
  *Subject:* [flexcoders] httpservice and repetitive calls
 
  
 
  I'm using the httpservice to make a call to an aspx page which runs a
  query and returns the results. This is fine, but if I try to run the
  same call again, the service is not actually going out to make the
call,
  but rather just returning the results from the previous call. I know
  this because the aspx page logs each call made to it. I always see the
  first call, but no subsequent calls come through if I post the same
  data. If I send a different set of data, the call works fine, but then
  will not post that data again. Any ideas on why it doesn't want to
  actually make the call? Below are the relevant pieces of code:
  script ... 
  public function lblClickHandler(event:Event):void{
  tgtdata = event.currentTarget.data.toString();
  customer_id = event.currentTarget.data;
  useHttpService();
  }
 
  public function useHttpService():void {
  userReq.url = dstURL; //set in another part of the code
  userReq.method = GET;
 
  var Obj:Object = new Object();
  Obj.w = wispid; //wispid is just a number that is set
  elsewhere
  Obj.i = tgtdata;
  userReq.send(Obj);
  }
  ...
  /script
  mx:HTTPService id=userReq result=gethttpResult(event)
  fault=handleFault(event) useProxy=false method=GET
  resultFormat=object /
 
 





[flexcoders] Re: AIR Persistance mechanisims?

2008-05-14 Thread jer_ela
Here is one I have been working on.  It serializes the object with AMF
so it only needs one table.  Note that your classes need to have a
[RemoteClass] metadata tag ( no alias needed) in order for them to be
deserialized correctly.  Note that the static initialize method needs
to be called before the class can be instantiated.

package CloudSplitter.CodeGenerator.business
{   
import flash.data.SQLConnection;
import flash.data.SQLResult;
import flash.data.SQLStatement;
import flash.errors.SQLError;
import flash.filesystem.File;
import flash.utils.ByteArray;

import mx.controls.Alert;
import mx.utils.Base64Decoder;
import mx.utils.Base64Encoder;

public class PersistanceManager
{
static private var connection:SQLConnection;
private var tableName:String = persistant_object;

static public function initialize(persistanceDbName:String):void
{
if (connection == null)
{   connection = 
createConnection(persistanceDbName);
}
}

static public function getConnection():SQLConnection
{
if (connection == null)
{   
throw new Error(PersistanceManager has not 
been initialzed);
}
else
{
return connection;
}

}

public function PersistanceManager()
{
if (connection == null)
{   
throw new Error(PersistanceManager can not be 
instantiated until
it has been initialzed);
}
}

static private function
createConnection(persistanceDbName:String):SQLConnection
{
var connection:SQLConnection = new SQLConnection();
var dbFile:File =
File.applicationStorageDirectory.resolvePath(persistanceDbName);
try
{
connection.open(dbFile);
}
catch (error:SQLError)
{
showError(error);
}   
return connection;  
}

public function createPersistanceTable():Boolean
{
var createStmt:SQLStatement = new SQLStatement();
createStmt.sqlConnection = connection;
var sql:String =
CREATE TABLE IF NOT EXISTS  + tableName +  ( 
 +
tableName + _id INTEGER PRIMARY KEY 
AUTOINCREMENT +
   ,identifier TEXT UNIQUE NOT NULL +
   ,object_data BLOB +
);
createStmt.text = sql;
try
{
createStmt.execute();
var success:Boolean = true;
}
catch (error:SQLError)
{
showError(error);
success = false;
}
return success;
}


public function persistObject(identifier:String, 
object:Object):void
{
var byteArr:ByteArray = new ByteArray();
byteArr.writeObject(object);
var encoder:Base64Encoder = new Base64Encoder();
encoder.encodeBytes(byteArr);
var encoded:String = encoder.toString()
var sqlResult:SQLResult = retrieveRecord(identifier);
if (sqlResult.data == null)
{
var sql:String = 
INSERT INTO  + tableName +
   ( identifier, object_data )  +
   values ( ' + identifier + ', 
' + encoded + ' );
}
else
{
sql = 
UPDATE  + tableName +
   SET object_data = ' + encoded 
+ '  +

[flexcoders] Re: Cairngorm Model Locator

2008-04-29 Thread jer_ela
I assume that when a new window is opened you have an event that
causes the data it needs to be loaded into the model locator.  And you
will probably have a check to see if the data is already loaded so you
 don't load it twice.  

Just keep track in the model of how many users there are for that
data.  When windows close or otherwise no longer need the data have
them send an event that causes the counter to decrement.  When it gets
to 0 you can unload the data.



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

 Hello!
 
 I'm currently creating the software design for a large application
 which we are going to build using Flex 3, Cairngorm 2.2.1 and SabreAMF
 (PHP). I have already created my first prove of concept, however, I
 have a few issues with Cairngorm's Model Locator.
 
 1) How can I make sure that unused data gets removed from the Model
 Locator? The simple solution would be to destroy the data that a view
 loaded when the view gets closed. However, we are going to use flexmdi
 and it's quite possible that one or more MDI windows are using the
 same data. The only solution I've come up so far is to make the Model
 Locator aware of which window uses which data. Therefore it could free
 the unused data when no view uses it anymore. Yet, this could be a
 very error-prone solution. Moreover, I would loose the last bit of
 loose coupling. So, I'm not sure if that's a good way to handle this.
 Well, the Model Locator itself is often seen as an anti-pattern as
 well ...
 
 2) Should I really put everything into _one_ Model Locator? I guess
 there could be quite a large number of public variables. Our
 application will have up to 50 different views and about twice as many
 VO ...
 
 I'd be really grateful if somebody could enlighten my ;-) or if you
 could give me some tips on how to solve those two problems.
 
 Thanks in advance for your help.
 
 Best regards,
 Gerhard





[flexcoders] Re: Flex 3 / AIR: using timers and binding data to text

2008-04-24 Thread jer_ela
you made callID bindable but don't use it in for binding, but you
didn't make callStatus bindable and it needs to be.  That's what your
warning is about.

Make your timer a class property, rather than a local var.  The local
var should cease to exist as soon as the method finishes. 

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

 I'm trying to make a call to a remote script at regular intervals. 
I can
 get it to make the calls, but I can't figure out how to apply a
timer to the
 second call.  I thought I had figured out how to bind the data to a text
 object, but I'm not getting any results displayed.  Here's a sample
of the
 code.
 
  
 
 mx:HTTPService id=startCall url=http://domain.com/dir/script1.cfm;
 result=getCallID(event)/
 
   mx:HTTPService id=getCallStatus
 url=http://domain.com/dir/script2.cfm; result=showStatus(event)/
 
   
 
   mx:Script
 
   ![CDATA[
 
 import mx.core.Application;
 
 import mx.controls.Alert;
 
 import mx.events.CloseEvent;
 
 import mx.collections.ArrayCollection;
 
 import mx.rpc.events.ResultEvent;
 
 import flash.utils.Timer;
 
 import flash.events.TimerEvent;
 
 
 
 [Bindable]
 
 private var callID:Number;
 
 private var callStatus:String;
 
 
 
 private function placeCall():void{
 
   startCall.cancel();
 
   var params:Object = new Object();
 
   params.foo = bar;
 
   startCall.send(params);
 
 }
 
 private function getCallID(event:ResultEvent):void{
 
   callID = event.result as Number;
 
 }
 
 private function getStatus():void{
 
   getCallStatus.cancel();
 
   var params:Object = new Object();
 
   params.callID = callID;
 
   getCallStatus.send(params);
 
 }
 
 private function showStatus(event:ResultEvent):void{
 
   callStatus = event.result as String;
 
 }
 
 private function setupTimer():void{
 
   var myTimer:Timer = new Timer(1000, 0);
 
   myTimer.addEventListener(timer,timerHandler);
 
   myTimer.start();
 
 }
 
 private function timerHandler(event:TimerEvent):void{
 
   getStatus();
 
 }
 
   ]]
 
   /mx:Script
 
   
 
   mx:Button x=78 y=150 label=Place Call click=placeCall()/
 
   mx:HBox x=10 y=196 width=93%
 
 mx:Label text=Call Status:/
 
 mx:Text text={callStatus}/
 
   /mx:HBox
 
  
 
 Also, the mx:text is giving this warning: Data binding will not be
able to
 detect assignments to callStatus.
 
  
 
 Any help is greatly appreciated.
 
  
 
 Thanks!
 
  
 
 ~Steve
 
 http://lanctr.com/





[flexcoders] Re: Naming objects dynamically

2008-04-18 Thread jer_ela
since the names you are trying to create are just based on the
position in the mData array, why not just stick the assetProxys in an
array with the same index.

var startUpProxies:Array = []
for(var i:Number=0; imData.length; i++){
   startUpProxies.push(new AssetProxy( mData[i] ));
}

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

 I think this is a fairly common operation - a loop instantiates an
 object passing the iterator variable to the constructor. The object
 being instantiated needs to take it's name from the current iterator.
   
   for(var i:Number=0; imData.length; i++){
   var how2NameMe :IStartupProxy =  new AssetProxy( mData[i] );
   }
 
 
  In pre-AS3 days i'd do something like:
 
var this[rAsset + mData[i].ToString()] :StartupResourceProxy =
 makeAndRegisterStartupResource( SRNAME , this);
 
 That seems not to be an option anymore.
 
 mny thx
 --steve...





[flexcoders] Re: Accessing XML attribute through ArrayCollection

2008-03-25 Thread jer_ela
its not clear where board comes from, but assuming it exists and is an
xml var that has an id attrib one of the following should work

trace(board.attribute(id)); 
trace([EMAIL PROTECTED]); 

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

 Hello all,
 I am using an ArrayCollection, outputted from an HTTPService. I wish
 to access the 'id' attribute from an XML file. I've tried using the
 e4x methods to no avail. I get an error:
 
 TypeError: Error #1010: A term is undefined and has no properties.
 
 If I add the resultFormat=e4x to the HTTPService, I get the error:
 
 Type Coercion failed: cannot convert [EMAIL PROTECTED] to
 mx.collections.ArrayCollection.
 
 Any help would be appreciated...
 
 Here's a code snippet below:
 
 [Target XML]
 ma 
   sitelist
 item id=3
   nameweebls-stuff forums weebls-stuff forums/name
   urlhttp://forums.weebls-stuff.com//url
   pubdate1-1-08/pubdate
   livetrue/live
 /item
   /sitelist
 /ma
 
 [AS3 snippets]
 ...
 
 mx:Script
 function init()
 {
   siteDataIn.send();
 }
 
 function siteHandler(event:ResultEvent):void
 {
   sites = event.result.ma.sitelist.item;
 }
 
 function getSiteData(repeatData:MouseEvent):void
 {
   ...
   var site:Object = repeatData.target.getRepeaterItem();
   trace(board.attribute(id)); -- this is where things blow up!!!
 }
 
 /mx:Script
 
 mx:HTTPService id=siteDataIn url=... result=siteHandler(event)/
 
 ...





[flexcoders] Re: Render BarChart items from top to bottom?

2008-03-24 Thread jer_ela
Just build a wrapper component that reverses the order of the
dataprovider before giving it to the chart.

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

 Is there an easy way to get a BarChart to render items from top to
 bottom rather than bottom to top?  (i.e. the first data item shows up
 at the top of the chart, rather than the bottom).  I'd rather not
 reverse the underlying datasource (other things are displaying it at
 the same time).
 
 Thanks





[flexcoders] Re: create looping component programmatically

2008-03-24 Thread jer_ela
create an array property textInputs to hold the references to the
dynamically create TextInputs. Then use code like this:

for(var o:uint = 0; o  NumText; o++) 
{
  textInputs[o] = new TextInput();
  textInputs[o].width=356, 
  textInputs[o].text=Text Goes Here;
  someComponent.addChild(textInputs[o]);
}

You can then refer to a particular textInput as textInputs[n]

You need to do the addChild to actually add the TextInputs to the user
interface.

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

 hi guys :)
 
 i know its possible, but i just dont know how ...
 i want to make several text input programmatically,
 number of text input created is based on certain
 variable, and has to be to be unique, need to access
 the component later on.
 
 here is a chunk of the code (get
 
 for(var o:uint = 0; o  NumText; o++) 
 {
 curItem = sTextInput+ o.toString();
   var this[curItem]:sLabelTextInput = new
 sLabelTextInput();
   sTextInput.id=(txtTemplate+(o)),
 sTextInput.width=356, sTextInput.text=Text Goes
 Here;
   //sTextInput.setStyle('fontFamily',
 'Verdana'), sTextInput.setStyle('fontSize', 11);


} 
 
 
  

 Looking for last minute shopping deals?  
 Find them fast with Yahoo! Search. 
http://tools.search.yahoo.com/newsearch/category.php?category=shopping





[flexcoders] bug with AdvancedDataGridColumn formatter property and DateFormatter

2008-03-03 Thread jer_ela
There appears to be a bug with the formatter property of
AdvancedDataGridColumn.  It seems to display my GMT offset where it
should be displaying the year.  A format string of MM/DD/ is
displaying as 03/03/500, while a format string of MM/DD/YY is displaying
as 03/03/0.  Using the same formatter object with a function to
display the date in a label works as expected.  I haven't tried all
mask chars but of those I tried only Y had a problem.  This is with
the release version of flex 3.  Here is a simple example demonstrating
the problem.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical

mx:Script
![CDATA[
import mx.collections.ArrayCollection;

[Bindable] private var dateData:ArrayCollection = new 
ArrayCollection([
{timeStamp: new Date()}, {timeStamp: new Date()}
]);

private function formatDate(date:Date):String
{
return formatter1.format(date);
}   
]]
/mx:Script

mx:DateFormatter id=formatter1 formatString=MM/DD//
mx:DateFormatter id=formatter2 formatString=MM/DD/YY/
mx:DateFormatter id=defaultFormatter /

mx:Label text={formatDate(dateData.getItemAt(0).timeStamp)}/
mx:AdvancedDataGrid id=auditGrid dataProvider={dateData}
mx:columns
mx:AdvancedDataGridColumn dataField=timeStamp
headerText=formatter1 width=150 
formatter={formatter1}/
mx:AdvancedDataGridColumn dataField=timeStamp
headerText=formatter2 width=150 
formatter={formatter2}/
mx:AdvancedDataGridColumn dataField=timeStamp
headerText=default width=150 
formatter={defaultFormatter}/
mx:AdvancedDataGridColumn dataField=timeStamp
headerText=unformatted width=250 /
/mx:columns
/mx:AdvancedDataGrid

/mx:Application




[flexcoders] Re: Moving Screen Control back and forth between components

2008-02-14 Thread jer_ela
If have a similar application.  For drill downs I just filter the data
without changing the display.  To switch between different types of
charts I use viewstacks.

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

 I'm doing a charting application that allows the user multiple ways to
 look at the data (both from a time hierarchy perspective as well as a
 line of business organizational perspective).
  
 My current problem is that when I drill down from the main (i.e. year
 level view) component, say to a month component,  how do I get back the
 main component.  I can move around within 1 component (applying
 different chart types to the same set of data) using includeinlayout and
 visible.
  
 In fact, to get to a sublevel component I just turn off the other
 components and make that one (includeinlayout and visible).  But now
 control has passed to the sub-component and I dont know how to get back.
 You cant turn off the component that you are currently in can you?  I
 tried states but I find the includelayout and visible a lot more
 straightforward to work with.  But I guess I can go back to states if
 that is what is required here.
  
 thanks
 brad





[flexcoders] Re: FB word search in files

2008-02-14 Thread jer_ela
You can use a regular expression. \b matches the transition between
word and nonword characters.  So \bword\b will only match word if it
is a whole word.

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

 In FB Ctrl+H does nothing.
 Ctrl+Shift+F will open the file contents search dialog, but where 
 does that get you?
 
 There is a caseInsenstive option but no wholeWord option.
 
 
 What I am looking for is a caseInsensitive, wholeWord text search 
 across all source files in the project.
 
 If someone can tell me how to do that in FB I would be grateful
 
 tks
 
 
 
 --- In flexcoders@yahoogroups.com, rueter007 rueter007@ wrote:
 
  Ctrl+H will open up a file contents search dialog in eclipse.
  
  
  --- In flexcoders@yahoogroups.com, reflexactions reflexactions@
  wrote:
  
   Sorry but no thats the wrong thing,
   I am referring to the Find in Files search not 
 the Find/Replace 
   search.
   
   I want to search all the files in the project not just the 
 current 
   file.
   
   
   --- In flexcoders@yahoogroups.com, Sherif Abdou sherif626@ 
 wrote:
   
do Ctrl+F and u will get that menu and u have these options, 
 then u 
   have to focus in on the file


- Original Message 
From: reflexactions reflexactions@
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 13, 2008 9:50:56 PM
Subject: [flexcoders] FB word search in files

How do I do a text search in files in FB that is case 
 insensitive 
   and 
matches whole words only?





  
   
 __
   __
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
   http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
   
  
 





[flexcoders] Re: Help with RegEx

2008-02-14 Thread jer_ela
While there are ways to work around nesting to a known depth, it gets
ugly quickly, and nesting to an arbitrary depth is beyond the ability
of regexes to match directly.

What you can do is write a parser that uses regular expression and
additional code to find the substring you are searching for.  

search for function
set  nestingLevel to 0
in a loop search for /[{}]/ opening a closing delimiter
if you find a { increment nestingLevel
if you find a } decrement it
when nesting level hits 0 again you are done

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

 Hi
 
 Can someone please give me a hand on a RegEx?  (I can't work these
 things out for the life of me).
 
 I'm basically trying to return nested groups inside delimeters.
 
 An example we're all famililar with is the simple package / class
 structure in Flex:
 
 package foo {
class bar {
   function stuff {
 ...
   }
 }
 }
 Given the delimeters oof { and }, I want to be able to return:
 function stuff {
 ...
 }
 
 As well as 
 
 class bar {
   function stuff {
 ...
   }
 }
 
 etc., up the chain.
 
 I currently have the following regex working:
 
 {\d*?\D*?}
 
 Which works fine without nesting.  As soon as you introduce nested
 elements, it all gets a bit messy.
 
 any help would be greatly appreciated.
 
 Cheers
 
 Marty





[flexcoders] Re: moving from localhost to production server...

2008-02-13 Thread jer_ela
What I do is get the url the flex app was loaded from with
application.url, parse out the protocol, serverName and port with
URLUtil, build the gateway url from these and then set the
RemoteObject endpoints to this value.

It seems like kind of a kludge but I haven't found anything cleaner.

--- In flexcoders@yahoogroups.com, [p e r c e p t i c o n]
[EMAIL PROTECTED] wrote:

 Hi All,
 I need some help understanding how to deploy a project on my production
 server...when i created the project i  specified a url of
 http://localhost:
 and when i deploy the project on my app server...it and call a
method using
 remote object it can't make the connection...can anyone shed some
light on
 the process...
 p





[flexcoders] Re: AreaChart bug when changing 'type' property

2008-02-13 Thread jer_ela
I had the same thing.  I believe it is due to the interpolate effect
not liking stacked or 100% charts.  When you change the type, the
effect runs and that is what is blowing up.  I had this problem with
both area and column charts.  I added code to remove the effect before
changing to a stack or 100% type and that fixed it. 


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

 Hi, fellow coders!
 
 I'm having an issue with an AreaChart when changing its *type* property.
 
 There's a ComboBox that lets the user select how it wishes to see the
 AreaChart (either *overlaid*, *stacked* or *100%*).
 
 The method for this is as simple as:
 
 areaChart.type = comboBox.selectedItem.data;
 
 (I've debugged it and data holds the proper string required by the type
 property).
 
 My code is as follows:
 
 
 mx:AreaChart id=areaChart
 
   dataTipFunction=chartDataTipRender
 
   height=100%
 
   showDataTips=true
 
   width=100%
 
   mx:horizontalAxis
 
 mx:CategoryAxis categoryField={dataSet.keyFieldName}
 
   dataProvider={dataSet.dataSet}
 
   labelFunction={dataSet.labelFunction}/
 
   /mx:horizontalAxis
 
   mx:verticalAxis
 
 mx:LinearAxis
 
   minimum={verticalAxisMinimum}
 
   maximum={verticalAxisMaximum}/
 
   /mx:verticalAxis
 
   mx:series
 
 mx:AreaSeries
 
   alpha=0.8
 
   dataProvider={dataSet.dataSet}
 
   displayName={dataSet.dataSource.name}
 
   form=curve
 
   showDataEffect=interpolate
 
   xField={dataSet.keyFieldName}
 
   yField={dataSet.valueFieldName}/
 
   /mx:series
 
 /mx:AreaChart
 
 
 mx:SeriesInterpolate id=interpolate elementOffset=10/
 
 
 You might wonder why I want to stack or overlay the chart, since it
has only
 one series... well, the thing is more series may be added in
runtime, and so
 it comes to play the area chart type feature.
 
 
 So, whenever I change the AreaChart's type property, I get the following
 error and stack trace:
 
 TypeError: Error #1009: Cannot access a property or method of a null
object
 reference.
  at
mx.charts.chartClasses::Series/mx.charts.chartClasses:Series::stripNaNs
 ()
  at
mx.charts.series::AreaSeries/mx.charts.series:AreaSeries::updateFilter()
  at

mx.charts.chartClasses::Series/mx.charts.chartClasses:Series::validateTransform
 ()
  at mx.charts.chartClasses::Series/getRenderDataForTransition()
  at mx.charts.effects.effectClasses::SeriesInterpolateInstance/play()
  at mx.effects::EffectInstance/startEffect()
  at mx.effects.effectClasses::ParallelInstance/play()
  at mx.charts.chartClasses::ChartBase/::advanceEffectState()
  at

mx.charts.chartClasses::ChartBase/mx.charts.chartClasses:ChartBase::updateDisplayList
 ()
  at

mx.charts.chartClasses::CartesianChart/mx.charts.chartClasses:CartesianChart::updateDisplayList
 ()
  at mx.core::UIComponent/validateDisplayList()
  at mx.managers::LayoutManager/::validateDisplayList()
  at mx.managers::LayoutManager/::doPhasedInstantiation()
  at Function/http://adobe.com/AS3/2006/builtin::apply()
  at mx.core::UIComponent/::callLaterDispatcher2()
  at mx.core::UIComponent/::callLaterDispatcher()
  at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
  at flash.utils::Timer/flash.utils:Timer::tick()
 
 
 And... I don't understand why, since I'm already seeing the chart as
it is
 when I make the change to the type property. I mean, it works
perfectly up
 to the moment I try to change this property, then it blows up.
 
 BTW, I'm using Flex 2.
 
 
 Any help on this one?
 
 Thanks in advance!!
 
 Guido.





[flexcoders] Re: Accordion customization

2008-02-11 Thread jer_ela
Take a look at the windowshade component on FlexLib
http://code.google.com/p/flexlib/wiki/ComponentList

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

 ya, exactly .
  Initially i was totally unaware that that flex3 now comes with
 accordian source. I searched net and used a swc created by someone. Now
 looking thru mailing list's logs i got know about this, now looking
into the
 accordion source ( though my as3 knowledge is almost zero ).
 Earlier i tried to set accordian's image width = 0 on rollOut, which
gave an
 error. ( and simillar try n error things ).
 
 On Feb 11, 2008 7:55 PM, Tom Chiverton [EMAIL PROTECTED] wrote:
 
  On Monday 11 Feb 2008, YOGESH JADHAV wrote:
   i mean to say  , by default the selected item is 'expanded' . My
item
   renderer is consisting of two parts, image and product
description. I
  don't
   want image to be displayed unless user clicks on it. So entire
  list/panel
   remains in collapsed state, only click / mouse over expands the
  respective
   item.
 
  So the Accordion would have to change height ? Because it starts
off as
  just
  the height of the two labels ?
 
  --
  Tom Chiverton
  Helping to quickly lead front-end users
  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 Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.
   A list of members is available for inspection at the registered
office. Any
  reference to a partner in relation to Halliwells LLP means a member of
  Halliwells LLP.  Regulated by The Solicitors Regulation Authority.
 
  CONFIDENTIALITY
 
  This email is intended only for the use of the addressee named
above and
  may be confidential or legally privileged.  If you are not the
addressee you
  must not read it and must not use any information contained in nor
copy it
  nor inform any person other than Halliwells LLP or the addressee
of its
  existence or contents.  If you have received this email in error
please
  delete it and notify Halliwells LLP IT Department on 0870 365 2500.
 
  For more information about Halliwells LLP visit www.halliwells.com.
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 
 
 
 -- 
 
 
 Regards,
 Yogesh





[flexcoders] Re: Embedding String Variable in dataprovider name

2008-02-06 Thread jer_ela
For the immediate problem, add some code to the function that checks
the first parameter for null, and returns a null value of the
appropriate type in that case.

But for a more robust application, you should stop using lastResult.
Direct use of lastResult is really only appropriate for prototyping.
You are much better off using a result handler to process the result,
handling the special cases, and putting the appropriate values into
variables that you then use for the binding.

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

 This gets rid of the data binding waring but then the chart itself blows
 up saying its getting null objects.
  
 brad
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of jer_ela
 Sent: Monday, February 04, 2008 4:01 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Embedding String Variable in dataprovider name
 
 
 
 you can use a method to get around that
 
 dataProvider={getDp(chartXML2.lastResult, month)}
 
 private function getDp(lastResult:Object, month:String):String
 { return lastResult[month].day;
 }
 
 The method will be called when ever one of it parameters is changed
 
 --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
 ups.com, Brad Bueche brad@ wrote:
 
  That worked!
  
  I still get the following warning:
  
  Data binding will not be able to detect changes when using square
  bracket operator. For Array, please use ArrraCollection.getItemAt()
  instead.
  
  But it still works. 
  
  brad
  
  -Original Message-
  From: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
 ups.com [mailto:[EMAIL PROTECTED]
 mailto:flexcoders%40yahoogroups.com ups.com] On
  Behalf Of jer_ela
  Sent: Friday, February 01, 2008 3:01 PM
  To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com
  Subject: [flexcoders] Re: Embedding String Variable in dataprovider
 name
  
  
  
  If you use the square brackets then you don't use the dot so it should
  be:
  
  dataProvider={chartXML2.lastResult[month].day}
  
  --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
  ups.com, Maciek Sakrejda msakrejda@ wrote:
  
   I'm no e4xpert, but
   
   dataProvider={chartXML2.lastResult.[month].day}
   
   should do it.
   
   -- 
   Maciek Sakrejda
   Truviso, Inc.
   http://www.truviso. http://www.truviso. http://www.truviso.com
 com com
   
   -Original Message-
   From: brad.bueche brad@
   Reply-To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
  ups.com
   To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
 ups.com
   Subject: [flexcoders] Embedding String Variable in dataprovider name
   Date: Fri, 01 Feb 2008 15:40:25 -
   
   Really what I need to be able to do is insert the variable name in
  this:
   
   dataProvider={chartXML2.lastResult.month.day}
   
   I need to replace the month with a string variable name (i.e
 public
   var monthName = January;)
   
   I also need to do the same for the categoryfield as it will not let
 me
   do categoryfield=$String.
   
   In PHP this is incredibly easy to do. You just say blah=$string . In
   fact, in PHP you can embed variable names everywhere. Its very
   powerful. For instance, in php, for the dataprovider issue above,
 i'd
   just do
   
   dataProvider={chartXML2.lastResult.$StringName.day}
   
   and it'd work just fine. Whats the syntax for doing this in Flex?
  
 





[flexcoders] Re: Embedding String Variable in dataprovider name

2008-02-04 Thread jer_ela
you can use a method to get around that

dataProvider={getDp(chartXML2.lastResult, month)}

private function getDp(lastResult:Object, month:String):String
{ return lastResult[month].day;
}

The method will be called when ever one of it parameters is changed

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

 That worked!
  
 I still get the following warning:
  
 Data binding will not be able to detect changes when using square
 bracket operator. For Array, please use ArrraCollection.getItemAt()
 instead.
  
 But it still works. 
  
 brad
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of jer_ela
 Sent: Friday, February 01, 2008 3:01 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Embedding String Variable in dataprovider name
 
 
 
 If you use the square brackets then you don't use the dot so it should
 be:
 
 dataProvider={chartXML2.lastResult[month].day}
 
 --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
 ups.com, Maciek Sakrejda msakrejda@ wrote:
 
  I'm no e4xpert, but
  
  dataProvider={chartXML2.lastResult.[month].day}
  
  should do it.
  
  -- 
  Maciek Sakrejda
  Truviso, Inc.
  http://www.truviso. http://www.truviso.com com
  
  -Original Message-
  From: brad.bueche brad@
  Reply-To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
 ups.com
  To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com
  Subject: [flexcoders] Embedding String Variable in dataprovider name
  Date: Fri, 01 Feb 2008 15:40:25 -
  
  Really what I need to be able to do is insert the variable name in
 this:
  
  dataProvider={chartXML2.lastResult.month.day}
  
  I need to replace the month with a string variable name (i.e public
  var monthName = January;)
  
  I also need to do the same for the categoryfield as it will not let me
  do categoryfield=$String.
  
  In PHP this is incredibly easy to do. You just say blah=$string . In
  fact, in PHP you can embed variable names everywhere. Its very
  powerful. For instance, in php, for the dataprovider issue above, i'd
  just do
  
  dataProvider={chartXML2.lastResult.$StringName.day}
  
  and it'd work just fine. Whats the syntax for doing this in Flex?
 





[flexcoders] Re: ActionScript multidimensional Associative array question

2008-02-04 Thread jer_ela
ActionScript doesn't have multi-dimentional arrays, but you can get
the equivelent by having arrays where each element is and array to
arbitrary depth.  Also for associative arrays you should use generic
objects.  So you can do the following:

var my3DArray:Object = {};  //this creates a new empty dynamic object
my3DArray[1992] = new Object(); //equivelent to {} take your pick
my3DArray[1992][Feburary] = []; or new Array()creates an new array
my3dArray[1992][Feburary][0] = someValue;

etc.

if you don't know if a key exists yet you can do
if (! (month in my3DArray[year]))
{  my3DArray[year][month] = {}; //create it if it doesnt exist
}


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

 
 
   Hello,
 
   I need to create a 3D array, first two dimensions
   are associative arrays and the 3rd one is indexed.
   
   Here is what I am trying to do:
 
   myArray[1992][February] -- this will generate an
   array of objects which will be used as dataprovider
   for my chart.
 
   BTW the number of elements are unknown, the number
   of Associative string are also unknown, so I do have
   to create the array dynamically. Please suggest or
   point me to an example. The example in http://livedocs.adobe.com
   was not enough for my inquiry.
 
   Regards





[flexcoders] Re: Embedding String Variable in dataprovider name

2008-02-01 Thread jer_ela
If you use the square brackets then you don't use the dot so it should be:

dataProvider={chartXML2.lastResult[month].day}

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

 I'm no e4xpert, but
 
 dataProvider={chartXML2.lastResult.[month].day}
 
 should do it.
 
 -- 
 Maciek Sakrejda
 Truviso, Inc.
 http://www.truviso.com
 
 -Original Message-
 From: brad.bueche [EMAIL PROTECTED]
 Reply-To: flexcoders@yahoogroups.com
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Embedding String Variable in dataprovider name
 Date: Fri, 01 Feb 2008 15:40:25 -
 
 Really what I need to be able to do is insert the variable name in this:
 
 dataProvider={chartXML2.lastResult.month.day}
 
 I need to replace the month with a string variable name (i.e public
 var monthName = January;)
 
 I also need to do the same for the categoryfield as it will not let me
 do categoryfield=$String.
 
 In PHP this is incredibly easy to do. You just say blah=$string . In
 fact, in PHP you can embed variable names everywhere. Its very
 powerful. For instance, in php, for the dataprovider issue above, i'd
 just do
 
 dataProvider={chartXML2.lastResult.$StringName.day}
 
 and it'd work just fine. Whats the syntax for doing this in Flex?





[flexcoders] Re: How do I test if a variable is defined?

2008-01-31 Thread jer_ela
  

if (property in object)
{ // do stuff with property
}

--- In flexcoders@yahoogroups.com, Clinton D. Judy [EMAIL PROTECTED] wrote:

 No other explanation needed, really. How do I see if an object/variable
 exists before I test other conditions of it?
 
  
 
 Unnecessary explanation: I use two completely separate mxml interfaces
 that both use one as script file. One program is just missing some
 information that the other one has. I'd like to keep using the same
 script file, but it references a variable that exists in one file that
 doesn't exist in the other file, and I need to make sure it exists
 before I use it.
 
  
 
 Clinton Judy
 
 Web Developer
 
 Glenn O. Hawbaker, Inc.





[flexcoders] Re: Dynamic Variable Naming

2008-01-26 Thread jer_ela
I think the following will do what what your want

var R:Object = {};
for (var gridRows:int=15; gridRows  2895;gridRows += 20){
var R[gridRows] = (gridRows / 5);
}

you can't dynamically generate var names, but you can dynamically
generate object keys.

since gridRows is a number it can be the inde
--- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote:

 I am probably overlooking something simple, but I'm trying to 
 dynamically name variables. See the code below, which is an example 
 that illustrates what I need to do.
 
 
 for (var gridRows:int=15; gridRows  2895;gridRows){
  var R+gridRows:Number = (gridRows / 5);
  gridRows = (gridRows + 20);
 }





[flexcoders] Re: Darken a hexadecimal color

2008-01-09 Thread jer_ela
Flex has a couple of built in methods to do that.  The ColorUtil class
has 2 methods adjustBrightness and adjustBrightness2

newColor = ColorUtil.adjustBrightness2(0xffddaa, -25) will reduce the
brightness of the r g and b values by 25% each.

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

 Hello list,
 
 Does anyone have a function ready that darkens a hexadecimal color?
 
 eg: var shadedColor : Number = darken( 0xFF );





[flexcoders] Re: Cairngorm Overview Question

2007-12-28 Thread jer_ela
You're stuck with having a single ServiceLocator because of how it is
located, but you can have seperate ModelLocators and FrontControllers
for each module.

The FrontControllers all use the singleton CairngormEventDispathcer so
your event types have to be globally unique even though you are
registering them via different FrontControllers.

I implemented Cairngorm this way when I had a composite app and have
been happy with the results.

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

 Hi All,
  
 I've just started playing with Cairngorm (and have been kicking
myself for
 not doing it earlier) and I'm very impressed with the approach and
 framework.  One v v quick question though.  I'm using it for an app
that has
 a number of modules that could be treated as standalone modules.  They
 interact, but basically they are their own little thing (e.g. A contact
 management module, a job planning module).  Using Cairngorm is it
correct
 (and I know there is not right or wrong) to create each of these as
widgets
 using the framework and sticking with the MVC style and then write
code over
 the top to stitch it all together or is it better to look at the
entire app
 as a whole and create it that way, I.e. have a ServiceLocator that
holds ALL
 of the data connections, a Model for the entire app?  The second way
feels
 wrong, but I can't find anything about doing it in the modular way
without
 writing code over the top (which I am more than happy to do - just my
 experience of writing loads of code and then finding Cairngorm is
making me
 pause to see if there is something I'm missing).
  
 Anyway - cheers in advance and Merry New Year!
  
 tim





[flexcoders] Re: Different DataTips for multiple series in one chart.

2007-12-26 Thread jer_ela
dataTipFunction is a property of the chart, not the series, so you
will have to have a single function that looks at the hitData to
determine which series the mouse is over.  The hitData.element
property will give you access to the properties of the series that the
mouse is over.  If you give the series ids, you can then have your
datatip function call your series specific function based on the
element id.

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

 any clues on this one guys?
 
 On Dec 13, 2007 3:20 PM, Guido [EMAIL PROTECTED] wrote:
 
  Oh, I forgot: I'm using Flex 2.0.1
 
 
  On Dec 13, 2007 3:20 PM, Guido [EMAIL PROTECTED] wrote:
 
   Hi, people.
  
   I have a LineChart with multiple series in it, and I'd like to
have a
   custom data tip function for each series, and not one for the
whole chart.
   I've thought of a couple of ways of doing this, but none of them
are what
   you'd call 'tidy'. I'd like to know if there's a reasonably
declarative
   fashion (that is, without using an if ... then ... else
statement and
   comparing to a given property on the hit data on my data tip
function) of
   specifying a custom data tip function for a specific series in
the chart,
   instead of using one single data tip function for all series in
the chart.
  
   Any ideas on this one?
  
   Here's my code (I know there's no dataTipFunction specified on
the chart
   right now, since it makes data tips for all series the same):
  
   mx:LineChart id=lineChart
   height=100%
   showDataTips=true
   width=100%
  
   mx:horizontalAxis
mx:CategoryAxis
 displayName=Muestra
 categoryField={ClinicalStudy.xField}
 dataProvider={selectedStudy.results}/
   /mx:horizontalAxis
  
   mx:verticalAxis
mx:LinearAxis
 alignLabelsToInterval=false
 autoAdjust=false
 baseAtZero=false
 displayName=Valor
 maximum={maxVerticalAxis}
 minimum={minVerticalAxis}/
   /mx:verticalAxis
  
   mx:series
  
mx:LineSeries
 dataProvider={selectedStudy.results}
 displayName={ selectedStudy.name}
 yField={ClinicalStudy.yField}
 mx:lineStroke
  mx:Stroke alpha=0.8 color=#F5821F weight=4/
 /mx:lineStroke
/mx:LineSeries
  
mx:LineSeries
 dataProvider={selectedStudy.averageDataProvider}
 displayName=Media
 yField={ClinicalStudy.yField}
 mx:lineStroke
  mx:Stroke alpha=0.8 color=#499615 weight=2/
 /mx:lineStroke
/mx:LineSeries
  
   /mx:series
   /mx:LineChart
  
  
   Thanks in advance,
  
  
   Guido.
  
 
 





[flexcoders] Re: Best Way To Implement tabnavigator switching

2007-12-26 Thread jer_ela
There is no correct way of doing this.  However it would make for
better encapsulation if you instead called the getData method in each
component's show method.  That way the tabnavigator would need to know
less about its children.

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

 
 I have a Tabnavigator with 3 customer components ..
 
 Each component has a 'getData' method which loads the data for that
 component .
 
 I currently have a change event handler on the tabnavigator
 which does a
 
  private function changeView(e:IndexChangedEvent):void
  {
  var o:Object = e.relatedObject;
  o.getData();
  }
 
 This works but is this the 'correct' way todo it ?





[flexcoders] Re: A way to Timer

2007-12-12 Thread jer_ela
var timeLeft:int = 300 - minuteTimer.currentCount;

this method turns seconds into minutes + fractional minutes or hours
plus fractional hours, but doing hours minutes seconds will be the
same idea.

private function formatTime(seconds:int):String
{   var timeLabel:String = seconds.toString() +  sec;
if (seconds  3600)
{   timeLabel +=  ( + Math.round(seconds*100/3600)/100 +  hrs);
}
else if (seconds  60)
{   timeLabel +=  ( + Math.round(seconds*10/60)/10 +  min);
}
return timeLabel;
}
--- In flexcoders@yahoogroups.com, markcavins [EMAIL PROTECTED] wrote:

 Hello,
 
 I have a very functional timer here that I am using but I would like
 to get some advice on how to make it better.
 
 Code:
 
 private function getDaysUntil():void {
 // creates a new five-minute Timer
 var minuteTimer:Timer = new Timer(1000, 300);
 
 // designates listeners for the interval and completion events
 minuteTimer.addEventListener(TimerEvent.TIMER, onTick);
 minuteTimer.addEventListener(TimerEvent.TIMER_COMPLETE,
onTimerComplete);
 
 // starts the timer ticking
 
 minuteTimer.start();
 }
 
 public function onTick(evt:TimerEvent):void {
 var minuteTimer:Timer = evt.target as Timer;
 lblTimeUntil.text = minuteTimer.currentCount.toString();
 }
 
 public function onTimerComplete(evt:TimerEvent):void
 {
 var minuteTimer:Timer = evt.target as Timer;
 minuteTimer.reset();
 
 minuteTimer.start();
 }
 
 
 I would like to be able to split the time into minutes and seconds.
 
 Also I would like to get it to count down instead of up.





[flexcoders] Re: Data binding in a function call

2007-12-10 Thread jer_ela
Binding is designed so that components can react when data changes. 
But you don't really care if extLinkURL changes.  What you care about
is what its value is when the linkButton is clicked.  So what you need
in the click attribute is just a normal function call with a normal
variable as the argument. 

mx:LinkButton label={extLink} click=loadXternalURL(extLinkURL)
id=LinkBtn2 /

When the button is clicked loadXternalURL will be called and will be
passed the value of extLinkURL.  

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

 Hi evryone,
 
 I'm trying to display a linkButton in a flex application for wich
the displayed text and the link are loaded from an external xml file. 
 I can't get the link to be passed at my function. here is the code :
 
 I get a {extLinkURL} in my alert box. Something must be wrong with
the quotes.
 
 any ideas?
 
 Thanks,
 Vincent
 
 ?xml version=1.0 encoding=utf-8?
 
 mx:Script
 ![CDATA[
 import flash.net.navigateToURL;
 import mx.rpc.events.ResultEvent;
 import mx.controls.Alert;
 
 private var myXMLList:XMLList;
 
 [Bindable]
 private var extLink:String;
 
 [Bindable]
 private var extLinkURL:String;
 
 private function init():void
 {
 fiche2Service.send();
 }
 
 private function resultHandler(event:ResultEvent):void
 {
 myXMLList = event.result..fiche;
 extLink = myXMLList.lienexterne.intitule;
 extLinkURL = myXMLList.lienexterne.lien;
 }
 
 private function loadXternalURL(theURL:String):void
 {
 Alert.show(theURL +theURL);
 var urlReq:URLRequest = new URLRequest(theURL);
 navigateToURL(urlReq,_blank);
 }
 ]]
 /mx:Script
 
 mx:HTTPService id=fiche2Service url=xmlfile.xml
resultFormat=e4x result=resultHandler(event)/
 mx:VBox left=20 top=20
 mx:LinkButton label={extLink}
click=loadXternalURL('{extLinkURL}') id=LinkBtn2 /
 /mx:VBox 
 /mx:Canvas
 
 
 and the xml :
 
 ?xml version=1.0 encoding=UTF-8?
 fiche2
 fiche
 titre![CDATA[Title?]]/titre
 texte![CDATA[o bolo bolo bolo bolo bolo bolo bolo bolo
]]/texte
 lieninterne
 intitule![CDATA[ Lire la suite]]/intitule
 lien/lien
 /lieninterne
 lienexterne
 intitule![CDATA[ external link text to
display]]/intitule
 
 /lienexterne
 /fiche
 /fiche2
 
 
 
 
  
_

 Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers
Yahoo! Mail http://mail.yahoo.fr





[flexcoders] Re: Populate one object based on content of other objects. Best practice?

2007-12-06 Thread jer_ela
I had to do something similar and used an approach that looks
something like this

public function CustomObject(argsObject:Object)
{   for (var arg:String in argsObject)
{   switch (arg)
{   case somePropName:
   //code for a property that needs special handling
   break;
case aStringProp:
case anotherStringProp:
   // code for props that need type checking
   if (argsObject[arg] is String)
   { this[arg] = argsObject[arg];
   }
   else
   { //handle type error
   }
   break;
case aProp:
case anotherProp:
   // code for propS that doesn't need type checking
   this[arg] = argsObject[arg];
   break;
default:
   //handle properties that aren't in the custom obj
 }
 }
}

In my case 


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

 Hello!
 
 I'm building a class which has a constructor that is supposed to
fill the
 properties of the class based on the content of the object submitted
to the
 constructor. To better explain, here's how it is supposed to work:
 
 var argsObj:Object = new Object();
 argsObj.property1 = hello;
 
 var myObject:customObject = new customObject(argsObj);
 
 customObject has a property called property1, and so does argsObj.
 
 Now, the question is; how can I, in a simple way, put what ever is
in the
 argsObj in the correct place in my customObject? What will the
constructor
 look like?
 
 Should I use setter functions, og set the property directly
(this.property =
 arg)? I can see the advantage of using setter's. I could easily
sense if one
 property is not of the correct type, and then do something. But,
maybe I can
 to that in the constructor?
 
 
 This wasn't easy to explain, but I hope you understand.
 
 Regards
 Thomas Viktil





[flexcoders] Re: Cairngorm and basic events

2007-09-27 Thread jer_ela
Flex Applications generally have 3 levels of events.

Those you don't care about.  You just let the flash player and flex
framework deal with these.

Those that only matter to the current view.  Just listen for and
handle these events with addEventListener at the appropriate place in
the view.

Those that matter beyond the current view.  Your event handler should
handle one of these by dispatching a cairngorm event so that it can be
handled by the appropriate command.

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

 Hi,
 
 I'm trying to learn Cairngorm and one question I have is how do you
 handle basic events in Cairngorm. What I mean by basic events is
 Alerts popping up, or opening panels as popups. Do I have to create a
 Cairngorm event for opening an Alert, then passing it to the
 Controller to pass to a Command. Seems a bit overkill just to open a
 new window or fire an Alert.
 
 Stephen





[flexcoders] Re: can change pie chart color at runtime,please help

2007-09-26 Thread jer_ela
This is how to set fills programatically:

fills:Array = [];
var fill:RadialGradient = new RadialGradient();
var entries:Array = [];
entries.push( new GradientEntry(color, ratio, alpha))
entries.push( new GradientEntry(color2, ratio2, alpha2))
//additional entries as needed
fill.entries = entries;
fills.push(fill);
//additional fills as needed

series.setStyle(fills, fills);

another option would be to use a binding for the entry colors and just
change the value of the bound var

[Bindable] private var pie1Color:uint = 0xa1aecf;
[Bindable] private var pie11Color:uint = 0x47447a;

mx:GradientEntry id=pie1 color={pie1Color} ratio=0/
mx:GradientEntry id=pie11 color={pie11Color} ratio=1/

pie1Color = 0xFF;

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

 hi guys, i have a problem about changing the pie chart color at runtime.
 for example, i have this chart :
 
 mx:PieChart id=pcRegion width=100% height=100% 
 mx:series
 mx:Array
 mx:PieSeries field=revenue nameField=name labelPosition=callout
 labelFunction=getSliceLabel showDataEffect={interpolate}
 mx:fills
 mx:Array
 mx:RadialGradient
 mx:entries
 mx:Array 
 mx:GradientEntry id=pie1 color=#A1AECF ratio=0/
 mx:GradientEntry id=pie11 color=#47447A ratio=1/
 /mx:Array
 /mx:entries
 /mx:RadialGradient
 /mx:series
 /mx:PieChart
 
 and need to change the gradient entry with the id pie1 anda pie11,i
 did it like this:
 pie1.color=0xFF;
 but its seems doesn't work.
 can someone help me?
 thanks,
 regards





[flexcoders] Re: Variable used before it's defined without compile errors

2007-09-20 Thread jer_ela
Flex requires variables to be declared somewhere in a function, but
doesn't care where it just rolls all variable definitions to the top
of the function, so there is a phantom var val:String; at the top of
the function.  At the point where you call validateRequired val
exists, but hasn't had a value assigned so it is null which is what
you are seeing.

No different than if you declared a variable without assigning a value
in a language that required declaration at the top of the function.

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

 Hi!
 I ran into this weird situation that as a programmer I think is a
bug, but
 I'm not sure if this is true in the flex world. See following code
snippet,
 especially how the variable val is defined (it is used at
 validateRequired function call before it's even defined and Flex
Builder
 compiles it without a single error or warning, resulting on faulty
 functionality since val gets used as value null.)
 
 Is this correct behaviour that one should be beware of?
 
 
 public function validateString(
value:String,options:StringValidatorOptions,
 language:ICommonLanguage ) : Array
 {
 var results:Array = new Array();
 // Validate required
 var requiredError:ValidationError = validateRequired( val,
 options, language );
 if ( requiredError )
 {
 results.push( requiredError );
 return results;
 }
 
 var val:String = ( value != null ? String(value) :  );
 .
 
 Thanks,
 Mika





[flexcoders] Re: How to check to see if an XML element exists

2007-09-12 Thread jer_ela
this should work 

if (node.ItemSource.(hasOwnProperty(Media))


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

 Hi,
 
 I was hoping someone could tell me how to check to see if an XML
 element exists in AS3. I have an XML structure that looks like this:
 
 ItemSource component=DAM
 ValueCandy/Value
 Media caption=Glucose Meter10-372.gif/Media
 /ItemSource
 
 I want to be able to check to see if the ItemSource element has a
 Media subelement. The following code does not appear to work:
 
 if (node.ItemSource.Media.text() != null)
 Alert.show('media');
 else
 Alert.show('no Media');
 
 It always returns true, regardless of whether or not there is a Media
 subelement. Any help would be appreciated. Thanks!





[flexcoders] event metadata syntax bug?

2007-09-12 Thread jer_ela
In the Creating and extending Flex components manual, the event
metadata  tag syntax to be:

[Event(name=eventName, type=package.EventType)]

If I use that syntax with the quotes around the package name within a
metadata tag in and mxml file in FB3, it breaks code hinting.  If I
remove the quotes, code hinting works and everything compiles correctly.

The exception is if the event type is flash.events.Event in which case
FB reports an error if I remove the quotes but is happy if I remove
the type clause entirely.

Am I likely to run into a future version of the compiler that will
choke on the missing quotes?



[flexcoders] Re: Multiple Model Locators in Cairngorm

2007-09-02 Thread jer_ela
You can have multiple modelLocators and frontControlers but only one
serviceLocator. Your use case is one where multiple modelLocators make
sense.  

ModelLocators are just a way of making a single instance of the model
data available throughout the application.  As long as you understand
that and are are using it based on that understanding it shouldn't
cause any problems.

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

 Is it possible to have a multiple AppModelLocators in Cairngorm...and 
 if so, how best to implement them?
 For example, I have several apps in my directory structure:
 
   *Component1
  -business
  -commands
  -control
 LAppModelLocator.as
  -model
  -view
  -vo
   *Component2
  -business
  -commands
  -control
 LAppModelLocator.as
  -model
  -view
  -vo
   *Common
  -business
  -commands
  -control
 LAppModelLocator.as
  -model
  -view
  -vo
 Componnent1.mxml
 Component2.mxml
 
 
 Now I want to have common control,commands and business files to 
 share among the different components, so I created the Common 
 directory with a Common AppModelLocator.  The command actionscripts 
 in the Common directory structure use the common AppModelLocator 
 bindings.  So  in component1 or component 2, I'd be using the local 
 model locator bindings as well as the common model locator bindings 
 in the same file like this:
 
 [Bindable]
 private var modelCommon : Common.model.AppModelLocator = 
 Common.model.AppModelLocator.getInstance();
   
 [Bindable]
 private var modelLocal: Component1.model.AppModelLocator = 
 Component1.model.AppModelLocator.getInstance();
 
 Is this going to cause problems?  If so, is there a better way to do 
 this?
 
 Boybles





[flexcoders] Re: Help - users having problem I can't reproduce

2007-08-29 Thread jer_ela
Thanks,

I wish I knew what causes the error so I could reproduce it.  I don't
even know if thats the same error the other user got.  

I would guess it is a timing issue in the distortion effects code,
with something happening out of order, but if I can't reproduce it I'm
not likely to be able to figure out what.

I'm going to replace the distortion effect with a standard effect and
hope that works for everyone.

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

 I am getting an actionscript error:
 ArgumentError: Error #2015: Invalid BitmapData.
   at flash.display::BitmapData$iinit()
   at sandy.util::DistortImage/::renderVector()
   at sandy.util::DistortImage/initialize()
   at

com.adobe.ac.mxeffects::SimpleDistortion/com.adobe.ac.mxeffects:SimpleDistortion::initDistortImage()
   at com.adobe.ac.mxeffects::SimpleDistortion/renderCorners()
   at com.adobe.ac.mxeffects::SimpleDistortion/push()
   at

com.adobe.ac.mxeffects.effectClasses::CubeRotateInstance/::updateComing()
   at

mx.effects::Tween/http://www.adobe.com/2006/flex/mx/internal::doInterval()
   at mx.effects::Tween$/::timerHandler()
   at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
   at flash.utils::Timer/flash.utils:Timer::tick()
 
 This might account for what is happening with your user.
 Hope this helps.
 Claude
 
 --- In flexcoders@yahoogroups.com, jer_ela gela@ wrote:
 
  I have a simple flex app: riaction.com that is the website of the
  Capital District Flex Developer Network.  It works fine for me on
  various PCs and browsers, but for at least one user it isn't working
  correctly.
  
  What should happen is that when the app launches you get a welcome
  message on a dark green background and then after around 2 seconds it
  switches to the details of our first meeting on a light green
  background.  The views switch using a cube rotate effect.  There are
  several buttons which also switch views using the cube rotate effect.
  All views except the welcome message have the light green background.
  
  The screen shot I have from the user shows the label for the meeting
  view, but the content area is just a dark green background.
  
  I appreciate it if you could test this for me and if it doesn't work
  let me know the details of your setup - OS, browser, flash version
  etc. It shouldn't take you more than about 10 seconds to see it work
  correctly or not.
  
  I just love fixing bugs I can't reproduce.
  
  Thanks in advance for your help
 





[flexcoders] Help - users having problem I can't reproduce

2007-08-28 Thread jer_ela
I have a simple flex app: riaction.com that is the website of the
Capital District Flex Developer Network.  It works fine for me on
various PCs and browsers, but for at least one user it isn't working
correctly.

What should happen is that when the app launches you get a welcome
message on a dark green background and then after around 2 seconds it
switches to the details of our first meeting on a light green
background.  The views switch using a cube rotate effect.  There are
several buttons which also switch views using the cube rotate effect.
All views except the welcome message have the light green background.

The screen shot I have from the user shows the label for the meeting
view, but the content area is just a dark green background.

I appreciate it if you could test this for me and if it doesn't work
let me know the details of your setup - OS, browser, flash version
etc. It shouldn't take you more than about 10 seconds to see it work
correctly or not.

I just love fixing bugs I can't reproduce.

Thanks in advance for your help




[flexcoders] Re: How to get the real X Y of a repeater item

2007-02-22 Thread jer_ela
The following code gets the x and y positions of an image that has
been clicked on that was generated by a repeater.  Getting the coords
for a button should be pretty much the same.  

stageX and Y are the x and y coords of the mouse position relative to
the application stage. mainCanvas is a direct child of the application
and is the container that I want the coords relative to.  If you have
additional containers between the stage and the one you need coords
relative to, you have to subtract the x and y at each level to get
from stage coords to that container's coords.  Subtracting the mouseX
and Y moves the coords from the point or the click to the upper left
corner of the image.

selectedImage.x = event[stageX] - mainCanvas.x 
- event.currentTarget.mouseX;
selectedImage.y = event[stageY] - mainCanvas.y 
- event.currentTarget.mouseY;

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

 Hi,
 In my app I create a repeater the generats VBoxes each with button
in it.
 When the user clicks on the button I want to generate a small dialog
 that will open up under the button.
 I know how to get the repeater current item and target and current
 target but I can't find the real X  Y of the button.
 Am I going in the wrong direction?





[flexcoders] bug with showDataEffect and stacked columns

2007-02-20 Thread jer_ela
There appears to be a bug with using a showDataEffect with a stacked
column chart.  

I have a column chart with a showDataEffect set to SeriesInterpolate.
 It works fine with a single data series or if clustered, but if I
changed the type to stacked or 100%, it fails while rendering the
effect.  


It fails in the filterCache method of NumericAxis which is called a
few layers down from the effect play method. The problem being that
the cache is null.

Changing the effect to SeriesZoom gave the same result. 

I've added code that sets the showDataEffect to null when the type
gets changed to stacked or 100% which keeps thing from blowing up, but
I'd love to have the effect for the stacked charts.





[flexcoders] how to clear datatip

2007-02-15 Thread jer_ela
I have a column chart with drill down functionality.  When you click
on a column, it displays a more detailed chart for that item.  The
more detailed chart is in a view stack with the drill down chart so
the main thing I do to get it to display is to change the selected
index of the view stack.  

The problem is that the columns have datatips and when I switch to the
new chart the datatip is still there.  Any ideas on how to make it go
away?



[flexcoders] Re: how to clear datatip

2007-02-15 Thread jer_ela
I had been trying that without success.  It turns out after I changed
the viewStack index, I called some code that turned the dataTips back
on. So even though the code looked like this

turn off datatips
change view stack to display another component
turn datatips on

the datatips stayed on.

I guess flex either never noticed that the datatips were off or
updated the display of the hidden component just before displaying the
newly active component.

the joys of event driven programming.

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

  
  
 That sounds like an unfortunate bug.  If you set showDataTips to false,
 it should clear it immediately.
  
 Ely.
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of jer_ela
 Sent: Thursday, February 15, 2007 11:16 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] how to clear datatip
 
 
 
 I have a column chart with drill down functionality. When you click
 on a column, it displays a more detailed chart for that item. The
 more detailed chart is in a view stack with the drill down chart so
 the main thing I do to get it to display is to change the selected
 index of the view stack. 
 
 The problem is that the columns have datatips and when I switch to the
 new chart the datatip is still there. Any ideas on how to make it go
 away?





[flexcoders] Re: Flex Coding Guidelines

2007-02-10 Thread jer_ela
Fabio, great work.  

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

 Folks,
 
 As my commitment to community I'm releasing, with DClick support, our
 Adobe Flex Coding Guidelines, a document about Flex (MXML and
 ActionScript) coding conventions that we use on a regular basis.
 
 The objective is clear: provide a common and consistent language to
 help code comprehension between developers. The practices established
 in this document are based on Java conventions, Flex 2 SDK and DClick
 team experience (including myself).
 
 By releasing this document, the idea is to help the community improve
 their Flex code by using coding conventions as well and hear feedback
 from community to continuously improve this document, that by now is a
 community asset.
 
 I'll be happy to have volunteers to form a committee or something to
 evolve this project further.
 
 This way, comments on this document (including the best practices) are
 very welcome! Involve yourself in this flexcoders thread, at the
 flexdev (listaflexdev.org - portuguese list on Flex) or at DClick
 weblog
(http://blog.dclick.com.br/2007/02/10/adobe-flex-coding-guidelines/)
 
 English version:

http://blog.dclick.com.br/wp-content/uploads/adobe-flex-coding-guidelines-v12-english.pdf
 
 Portuguese version:

http://blog.dclick.com.br/wp-content/uploads/adobe-flex-coding-guidelines-v12-portugues.pdf
 
 Thanks,
 Fabio Terracini





[flexcoders] Re: any interest in an alternative to QTP to automate Flex apps?

2007-02-07 Thread jer_ela
I just had a discussion this morning about the limits of unit testing
relative to ui issues, so I would definately be interested in a tool
like this

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

 
 Automating functional tests is critical to the way we develop software
 at my company.  And there are two big things that stop us from using
QTP.
 
 1) It's record and playback - we want to write test scripts
 2) It costs a lot of money - we want a tool that is free and community
 driven
 
 At my company we are writing several applications in Flex2 and are
 building out an as3 library that allows us to write test scripts in
 as3 to drive the Flex ui as if the user was interacting with it.  If
 you are familiar with the Java Swing testing tool called Jemmy, it's
 very similar in design.
 
 Is there any interest out there for a tool like this?  I am about to
 create a sourceforge project, but first wanted to get a feel for the
need.
 
 Thanks,
 
 Brian





[flexcoders] ASDoc ignoring [Bindable] properties in mxml files

2007-02-01 Thread jer_ela
I am finding that ASDoc (2.01) is ignoring bindable properties in mxml
files

public var myProperty:String

gets documented

[Bindable]
public var myBindableProperty:String

does not

set/get pairs are also affected




[flexcoders] can effect target selected item form list or repeater?

2007-01-27 Thread jer_ela
I have a photo gallery application.  The initial view is of the first
image in each gallery arranged in a grid via a repeater inside a tile
layout.  When you click on an image you get another view with a much
larger image that runs as a slide show.  

I've got that working fine, but what I'd like to do is a transition
effect where the selected image moves and resizes to where the slide
show image is and the others go away in some way.  

What I can't figure out is how to apply one effect to the selected
image and another to the rest of them.  Any ideas?



[flexcoders] Re: How to chage BarChart to Stacked BarChart dynamically?

2006-12-11 Thread jer_ela
That only happens it you are explicitly setting the scale for the
charts.  So if you just let flex adjust the scale to the data you'll
be fine.  If you need to control the scale, you'll have to recalc the
max value based on the height of the largest stack.

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

 let me refine the issue. it seems there is a bug with stacked chart
 that  when the sum of the series is bigger than the max value, it
 doesnt show the series. so there are bars with 3 series and bars with
 2 and even 1.
 
 what is going on?
 
 anyone?
 
 
 --- In flexcoders@yahoogroups.com, vigen2000 vigen2000@ wrote:
 
  Hi,
  
  im creating a bar chart dynamically in AS and i need an easy way to
  transform it to stacked chart. i tried the obvious thing 
  myChart.type = stacked but it doesn't work. also i tried with BarSet
  and it still doesn't work.
  
  any ideas?
  
  thanks in advance!
 





[flexcoders] Re: Flex II Stand-alone Builder and SVN?

2006-12-06 Thread jer_ela
I've used it with no trouble with svn.  Rather than creating a project
that points to an existing svn directory, you may have to create a new
empty project and then import from svn.

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

 Can anyone tell me if the Flex II stand-alone builder plays nice with
 SVN?  I did take it for a quick test-drive, and it seems that the Flex
 II standalond IDE does not like some of the svn related folders when
 you just try to point a new project to a directory that is under SVN.
  Any advice or assistance is much appreciated.
 
 Thanks,
 
 -Jeff