RE: [flexcoders] Changing Root Node attributes

2008-09-08 Thread Tim Rowe
I've just spent the last 8 hours attempting to get an XML document bound
to a data provider, and fell into the following gotcha - my problem was
that the default xmlns on the document can't be defined.  There may be
other factors involved here, but what was happening was even though I
was passing in a structure similar to yours below every XMLList property
would end up with something like root sids=58 xmlns=MyDocument
(even though it wasn't passed in via the actual XML).  I couldn't access
anything via .Child(module), for example, until I had got rid of that
default.
 
While this might not necessarily be your problem, it certainly doesn't
help, and took two of us ages to track down.  Needless to say, we won't
be making that mistake again, and after getting that all sorted it was
relatively painless to traverse the XML document of the elements we had
in our DOM.
 
Tim Rowe
Software Engineer
carsales.com Ltd
 
Level 1, 109 Burwood Road
Locked Bag 
Hawthorn VIC 3211
 
t: 03 9093 8600 (Reception)
t: 03 9093 8757 (Direct)
f: 03 9093 8697



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rafael Faria
Sent: Monday, 8 September 2008 3:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Changing Root Node attributes



Hello All,

I need your help again.

I make a call and get in return a XML. With this XML, i feed my tree's
dataprovider. It is something like this:

root sids=58
module url=home label=Home sid=52/
module url=grantees label=Grantees sid=53/
module url=multimedia label=Multimedia sid=54/
page label=Contact Us id=2 redirect=contact sid=55/
page label=Privacy Policy id=7 redirect=privacy sid=56/
page label=Apply for Grants id=5 redirect=apply sid=57/
/root

The thing is, at some point i need to get the sids from the root
node (so far no problem, i'm using
XML(tree.dataProvider).attribute('sids').toXMLString() and it works) 
but the catch is that i need to change it to 59 and i can't manage to
change it no matter what.

Any one could throw some ideas so i can solve my problem ? please? :P

thanks
Raf



 


[flexcoders] Re: Using a different image for a slider (not thumb, but the slider itself)

2008-09-08 Thread Tim Hoff
Very cool Jo,  My hope is that you pay it forward.

-TH

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

 Thanks Tim Hoff and Josh Tynjala. That was it!
 
 On Sun, Sep 7, 2008 at 9:32 AM, Tim Hoff [EMAIL PROTECTED] wrote:
 
Hi Jo,
 
  The slider has two parts; the track and the thumb.  You can skin
  either/both of those:
 
  HSlider
 
  {
   thumbDownSkin: Embed
(source=assets/images/slider_thumb_over.png);
   thumbUpSkin: Embed
(source=assets/images/slider_thumb_up.png);
   thumbOverSkin: Embed
(source=assets/images/slider_thumb_over.png);
   trackSkin: Embed(source=assets/images/slider_track.png,
scaleGridTop=9, scaleGridBottom=12, 
scaleGridLeft=20,scaleGridRight=
  200);
  }
 
  -TH
 
 
  --- In flexcoders@yahoogroups.com, Jo Morano jo.morano06@ 
wrote:
  
   Well the icon actually becomes the thumb skin so that's why it 
was
  behaving
   the way it did. I still have the unanswered question though, 
how to
  replace
   the slider itself with a thicker shaded line (basically use my 
own png).
  
   On Sun, Sep 7, 2008 at 12:09 AM, Jo Morano jo.morano06@ wrote:
  
Hi!
   
I want to use a slightly better looking image for the slider 
instead of
  the
standard (I'm not talking about the thumb, though I'll be 
changing that
too). I couldn't find any way to do it! I used setStyle
(icon,
this[mySliderIcon]) as I'd do for buttons, and I did see my 
image but
  I
also saw the original slider image and my image was a bit off 
to the
  left.
   
What's the best way to replace the slider's image?
   
Regards
   
  
   
 





Re: [flexcoders] Changing Root Node attributes

2008-09-08 Thread Josh McDonald
Can you not use [new QName(*,nodeName)] to get nodes regardless of
namespace in E4X? I haven't tried this, but it makes sense to me.

-Josh

On Mon, Sep 8, 2008 at 4:15 PM, Tim Rowe [EMAIL PROTECTED] wrote:

  I've just spent the last 8 hours attempting to get an XML document bound
 to a data provider, and fell into the following gotcha - my problem was that
 the default xmlns on the document can't be defined.  There may be other
 factors involved here, but what was happening was even though I was passing
 in a structure similar to yours below every XMLList property would end up
 with something like root sids=58 xmlns=MyDocument (even though it
 wasn't passed in via the actual XML).  I couldn't access anything via
 .Child(module), for example, until I had got rid of that default.

 While this might not necessarily be your problem, it certainly doesn't
 help, and took two of us ages to track down.  Needless to say, we won't be
 making that mistake again, and after getting that all sorted it was
 relatively painless to traverse the XML document of the elements we had in
 our DOM.

  *Tim Rowe*
 *Software Engineer*
 *carsales.com Ltd*

 Level 1, 109 Burwood Road
 Locked Bag 
 Hawthorn VIC 3211

 t: 03 9093 8600 (Reception)
 t: 03 9093 8757 (Direct)
 f: 03 9093 8697

  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Rafael Faria
 *Sent:* Monday, 8 September 2008 3:47 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Changing Root Node attributes

  Hello All,

 I need your help again.

 I make a call and get in return a XML. With this XML, i feed my tree's
 dataprovider. It is something like this:

 root sids=58
 module url=home label=Home sid=52/
 module url=grantees label=Grantees sid=53/
 module url=multimedia label=Multimedia sid=54/
 page label=Contact Us id=2 redirect=contact sid=55/
 page label=Privacy Policy id=7 redirect=privacy sid=56/
 page label=Apply for Grants id=5 redirect=apply sid=57/
 /root

 The thing is, at some point i need to get the sids from the root
 node (so far no problem, i'm using
 XML(tree.dataProvider).attribute('sids').toXMLString() and it works)
 but the catch is that i need to change it to 59 and i can't manage to
 change it no matter what.

 Any one could throw some ideas so i can solve my problem ? please? :P

 thanks
 Raf

 




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

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] Eh. How does this still work?!

2008-09-08 Thread Haykel BEN JEMIA
Hi,

in my understanding, FB only uses webroot for the deployment of your
application so that you don't need to copy the files to the server after
each compilation. Is it what you are doing now?

For the localhost question, if the uri of the endpoint doen not contain the
server address, then flex uses the one from which it is being loaded.

Bye.

On Sun, Sep 7, 2008 at 10:30 PM, nwebb [EMAIL PROTECTED] wrote:

   Hi,

 I skipped a step when setting up a flex-remoting (amfphp) project, but it
 still works.

 I didn't set up the Flex project to use PHP when I created it, and so
 didn't define the webroot or the root url at all.

 I added in the services-config file (see code at the bottom of this email)
 and I added the following additional compiler argument: -services
 services-config.xml and that was all I needed to get things working.

 Does anyone know if amfphp automatically assume the uri in the config file
 will start with http://localhost/ when not otherwise defined?

 The config file I used defines gateway.php as being in the amfphp folder
 in the webroot, but how does the Flex project know the location of my
 webroot?! (which by the way is C:\xampp\htdocs)


 Cheers.

 // SERVICES-CONFIG CODE
 ?xml version=1.0 encoding=UTF-8?
 services-config
 services
 service id=amfphp-flashremoting-service
 class=flex.messaging.services.RemotingService
 messageTypes=flex.messaging.messages.RemotingMessage

 destination id=amfphp
 channels
 channel ref=my-amfphp/
 /channels
 properties
 source*/source
 /properties
 /destination
 /service
 /services
 channels
 channel-definition id=my-amfphp
 class=mx.messaging.channels.AMFChannel
 endpoint uri=/amfphp/gateway.php
 class=flex.messaging.endpoints.AMFEndpoint/
 /channel-definition
 /channels
 /services-config
  



[flexcoders] Reg:Controller

2008-09-08 Thread vidhuparthi


In Server Side a Controller will be there to validate all the actions
there itself, and then it allows to perform actions in server, this
can be done if using HttpService,

Incase of remoteObject, its directly communicating between
ActionScript and Java Objects, and where or How this controller would
be used for validations...

Thanks in Advance..
 



[flexcoders] Hi..

2008-09-08 Thread Ajay dalal
Hi,
I am a new starter in Flex. I know the basics but could anybody give me
any tutorial to build a full featured RIA using Flex in very quick time.

Thanks in advance!!!

Cheers!!!
Ajay


  

Re: [flexcoders] Hi..

2008-09-08 Thread Johannes Nel
hire someone.

On Mon, Sep 8, 2008 at 8:51 AM, Ajay dalal [EMAIL PROTECTED] wrote:

   Hi,
 I am a new starter in Flex. I know the basics but could anybody give me any
 tutorial to build a full featured RIA using Flex in very quick time.

 Thanks in advance!!!

 Cheers!!!
 Ajay

  




-- 
j:pn
\\no comment


Re: [flexcoders] Hi..

2008-09-08 Thread Howard Fore
There are some good tutorials on the Adobe Flex Developer Center:
http://www.adobe.com/devnet/flex/.

Also, Google finds some: http://www.google.com/search?q=flex+tutorials.


On Mon, Sep 8, 2008 at 2:51 AM, Ajay dalal [EMAIL PROTECTED] wrote:

 Hi,
 I am a new starter in Flex. I know the basics but could anybody give me any 
 tutorial to build a full featured RIA
 using Flex in very quick time.



--
Howard Fore, [EMAIL PROTECTED]
The universe tends toward maximum irony. Don't push it. - Jeff Atwood


Re: [flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-08 Thread Tom Chiverton
On Saturday 06 Sep 2008, Fernando Ghisi wrote:
 http://livedocs.adobe.com/flex/3/html/help.html?content=charts_formatting_1
2.html
  I can´t agree with you.  Just take a look on the styles of
  ColumnSeries in
  http://livedocs.adobe.com/flex/3/langref/mx/charts/series/ColumnSeries.ht
 ml - itemRenderer=BoxItemRenderer

Aye, the ColumnSeries livedocs you pointed out might well list it 
under 'Styles' but very few people think of it as one.

-- 
Tom Chiverton



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.


Re: [flexcoders] Hi

2008-09-08 Thread Paul Andrews
Check out the Flex explorer - it has an example for you to follow.

http://examples.adobe.com/flex3/componentexplorer/explorer.html

Paul
- Original Message - 
From: raj balaji
To: Flex Coders
Sent: Monday, September 08, 2008 9:55 AM
Subject: [flexcoders] Hi



Hi all,
   I want to use the repeater control in Actionscript, where the 
repeater control should add the component dynamically, can u tell me how to 
do that,,,
I am getting the data from xml...

Thanks in advance 



[flexcoders] Hi

2008-09-08 Thread raj balaji
 Hi all, I want to use the repeater control in Actionscript, where the repeater control should add the component dynamically, can u
 tell me how to do that,,,I am getting the data from xml... Thanks in advance  


   Connect with friends all over the world.  Get Yahoo! India Messenger.

Re: [flexcoders] Hi..

2008-09-08 Thread Alan

http://www.totaltraining.com/?c=linksharen=affiliate

http://www.lynda.com/

On Sep 8, 2008, at 2:51 AM, Ajay dalal wrote:


Hi,
I am a new starter in Flex. I know the basics but could anybody give  
me any tutorial to build a full featured RIA using Flex in very  
quick time.




[flexcoders] Looking for a Flex forum.

2008-09-08 Thread timgerr
I have been using forums like PHPNuke and others.  I was wondering if
there was a Flex forum that people have used?

Thanks,
Tim  



[flexcoders] repairing pixelation on resized photos

2008-09-08 Thread David Pariente
Hello,

On my website i have lots of pics that i load and then resize to fit different 
SMALLER sizes.

The smaller pictures quality is really crapnot acceptable by my 
customer...not even by me...i never saw a program resize picture into smaller 
with so less quality like this in my whole life.

So my question is...is there a way to add a little more blur or a little more 
antialiasing to those pics so they look acceptable...even not perfect? is there 
a .quality property for those pics??

I can resize the pics on server...but server would explode...
I'm looking for a MXML or a easy AS3 solution instead.

thnx a lot!! :)



  

[flexcoders] Data change in GroupingCollection

2008-09-08 Thread Bernardo Salazar
Hello,
i would like to know if there is a way to modify the data source in a
GroupingCollection, in the same way that an ArrayCollection. For
example, if I have a DataGrid with an ArrayCollection as dataProvider,
and I make it editable, then when it is edited I can fire an Event
with CollectionChange because the arrayCollection is in fact changing.
That doesn't happen with the GroupingCollection, any ideas? Thanx in
advance.



[flexcoders] as3 code for the MXML

2008-09-08 Thread markflex2007
Hi,

I want to use AS 3 do the same thing with following MXML code:

mx:HTTPService url={myURL} id=myHTTPData method=GET
resultFormat=object
  mx:request
  mode{mode}/mode
  mode2{mode2}/mode2
  catid{catid}/catid
 /mx:request 
/mx:HTTPService

please give me a hit .Thanks for your help

MK



[flexcoders] Trouble applying background color to a spanned ADG column via custom renderer

2008-09-08 Thread Adrian Williams

Guys and gals,

   I'm stumped.  I am trying to apply a custom text and background 
color to (initially) a specific cell in my grouped ADG, using a renderer 
provider and a custom renderer.  The colors are coming from my dataset 
(part of the user's stored configuration preferences) and the text color 
is working perfectly.  However, nothing I do is rendering the cell's 
background color the same way that the text color is doing.  I've tried 
style functions, renderers, etc without luck.  Any ideas?!?!


Here is the code:

My ADG column def:
   mx:AdvancedDataGridColumn 
id=groupedKitNum dataField=KitNum headerText=Kit Number 
headerWordWrap=true textAlign=left width=75 editable=false /


My renderer provider:
   mx:AdvancedDataGridRendererProvider 
id=subgroupRenderer column={groupedKitNum} depth=1 columnIndex=1 
columnSpan=4 renderer=renderers.GAPSubgroups.SubgroupRenderer/


My renderer code:
?xml version=1.0 encoding=utf-8?
mx:Text xmlns:mx=http://www.adobe.com/2006/mxml; 
implements=mx.core.IFactory

   width=100% height=100% paddingLeft=2 paddingRight=2
   mx:Script
   ![CDATA[
   import mx.utils.ObjectProxy;
  
   override public function set data(dataItem:Object) : void

   {
   if (dataItem.children[0] is ObjectProxy)
   {
   htmlText = dataItem.children[0].Description;
   setStyle(color,dataItem.children[0].TextColor);
   setStyle(backgroundColor, 
dataItem.children[0].BackgroundColor);

   }
   }
  
   public function newInstance():*

   {
   return new SubgroupRenderer();
   }
   ]]
   /mx:Script
/mx:Text

When I've walked through the code in the debugger, I can verify that the 
the background color is indeed being passed in the data set...it's just 
being ignored!


Anyone have any ideas?!

Thanks,
Adrian



[flexcoders] Omit last element in DataGrid sort

2008-09-08 Thread Pierre Michel
Hi all,

I've got a problem with a custom overriden AdvancedDataGrid I've made
: I want to exclude, or omit the LAST element (that I've stored in a
property of my overriden DataGrid) in sorts.

For example, let's say that I'm going to sort column #1, which is
provided with strings, and all I want is the normal sort to occur,
except for the last item which is to stay where it is..

I also want this modification to be global (that's why I've overriden
the component).

I've tried several approaches :
  - Overriding the protected methods sortHandler and
headerReleaseHandler (found in AdvancedDataGrid).
  - Overriding the method addSortField.

The last attempt proved to work better, but alas doesn't sort more
than once : I can't revert the descending property of the SortField.

Any idea on how to do that ?

Big thanks in advance

Pierre



Re: [flexcoders] Problem syncing multiple sound objects playing simultaneously

2008-09-08 Thread Nate Beck
Hey Mat,
There is a whole slew of bugs that started popping up when Adobe made some
changes to how audio is handled.  The problems start around version 9.0.115
on.  That being said... the current version of flash player is still
affected, 9.0.124.  You can track these bugs here:

https://bugs.adobe.com/jira/browse/FP-33
https://bugs.adobe.com/jira/browse/FP-127

Some people have work-arounds posted (you can find them in the above links),
also it seems that Flash Player 10 has fixed this issue as well.  It is
unclear at this moment whether or not they will apply the fix to Flash
Player 9 in an update, or if we just have to wait until Flash Player 10 goes
public.

Cheers,
Nate

On Fri, Sep 5, 2008 at 9:49 PM, Mat Mikul [EMAIL PROTECTED] wrote:

   Hi!

 I have an application which plays 5 sound files together sort of like the
 following:

 var speech:Array = new Array();
 var sc:Array = new Array();
 var speechPath:Array = { x0.mp3, x1.mp3, x2.mp3, x3.mp3, x4.mp3
 };

 public function initApp():void
 {
  for (var i:int = 0; i  5; ++i) {
  speech[i] = new Sound(speechPath[0]);
  }
 }

 public function playSpeech():void
 {
 for (var i:int = 0; i  5; ++i) {
 sc[i] = speech[i].play();
 }
 }

 Over time, the files start to fall out of sync. I have a timer to move a
 slider marking the speech's progress, and in that, every once in a while, I
 trace the positions of the sound channels. I see variations of more than
 100ms. If I try to correct them I have to first stop that sound and then
 play it from the appropriate position, and that introduces a slight skip.

 The sounds get out of sync even more if I move the positions back and forth
 through a function that is controlled by the slider move event.

 Is there another way to keep these multiple sounds in sync?

 Mat

  



[flexcoders] Reuse standard assets

2008-09-08 Thread Alban Soupper
Hi all,

 

How to use, in my own components the standard assets like those in the
RichTextEditor:

Ex: icon=@Embed('assets/icon_style_bold.png')

 

 

Thanks by advance,

Alban.

 

 



This email and any files transmitted with it contain confidential information 
and are intended solely for the use of the individual or entity to whom they 
are addressed. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, use, or distribution of the information included 
in this message and any attachments is strictly prohibited. If you have 
received this email in error please notify the system manager at [EMAIL 
PROTECTED] or by reply email and immediately and permanently delete this 
message and any attachments. Email transmission cannot be guaranteed to be 
secure or error-free and may be susceptible to data corruption, delay, 
interception, unauthorised amendment, or contain viruses. The sender therefore 
does not accept liability for any errors, omissions or other such consequences 
which may arise as a result of this email transmission. 




RE: [flexcoders] Data change in GroupingCollection

2008-09-08 Thread Gregor Kiddie
Take a look back through the message archives. The problem is that the
HierarchicalData class doesn't do anything with the events broadcast by
the underlying ArrayCollection. I posted a class to fix the problem, so
take a search for it.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

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

Registered Number: 1788577

Registered in the UK

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

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



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Bernardo Salazar
Sent: 08 September 2008 15:21
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Data change in GroupingCollection

 

Hello,
i would like to know if there is a way to modify the data source in a
GroupingCollection, in the same way that an ArrayCollection. For
example, if I have a DataGrid with an ArrayCollection as dataProvider,
and I make it editable, then when it is edited I can fire an Event
with CollectionChange because the arrayCollection is in fact changing.
That doesn't happen with the GroupingCollection, any ideas? Thanx in
advance.

 



Re: [flexcoders] Hi..

2008-09-08 Thread Nate Beck
2nd for Lynda.com
Inexpensive yet quality.

On Mon, Sep 8, 2008 at 7:07 AM, Alan [EMAIL PROTECTED] wrote:

   http://www.totaltraining.com/?c=linksharen=affiliate

 http://www.lynda.com/

 On Sep 8, 2008, at 2:51 AM, Ajay dalal wrote:

 Hi,
 I am a new starter in Flex. I know the basics but could anybody give me any
 tutorial to build a full featured RIA using Flex in very quick time.


  



[flexcoders] How to terminate construction

2008-09-08 Thread rss181919
I'm new to flex and just getting my feet wet with AS3.  Today's 
questions are: 

How do I force a constuction request to fail?  
How do I make a property value required for construction?

For example, if I have a construction argument that must meet a certain 
standard and this standard is not enforced automatically in the type 
declaration, how do I prevent the object from being created if the 
standard is not met.

I assume a setter / getter combination could be applied if the standard 
is based specifically on the value of a property.  But even here, I 
don't know how to force the property to be a requirement for object 
creation.



Re: [flexcoders] as3 code for the MXML

2008-09-08 Thread Nate Beck
Create a really simple Flex project with just that code in it, and then use
the -keep-generated-actionscript compiler flag.
See
http://weblog.mrinalwadhwa.com/2007/07/09/flex-tip-of-the-day-keep-generated-actionscript/

Cheers,
Nate

On Mon, Sep 8, 2008 at 7:30 AM, markflex2007 [EMAIL PROTECTED] wrote:

   Hi,

 I want to use AS 3 do the same thing with following MXML code:

 mx:HTTPService url={myURL} id=myHTTPData method=GET
 resultFormat=object
 mx:request
 mode{mode}/mode
 mode2{mode2}/mode2
 catid{catid}/catid
 /mx:request
 /mx:HTTPService

 please give me a hit .Thanks for your help

 MK

  



[flexcoders] Re:Looking for a Flex forum.

2008-09-08 Thread Merrill, Jason
 I was wondering if there was a Flex forum that people have used?

 

I'm speechless.

 

Jason Merrill
Bank of America 
Enterprise Technology  Global Risk LLD
Instructional Technology  Media 

Join the Bank of America Flash Platform Developer Community
blocked::http://sharepoint.bankofamerica.com/sites/tlc/flash/default.as
px  

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  Innovative Learning Blog
blocked::http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.
aspx   subscribe
blocked::http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts
/SubNew.aspx?List=\%7b41BD3FC9-BB07-4763-B3AB-A6C7C99C5B8D\%7dSource=ht
tp://sharepoint.bankofamerica.com/sites/ddc/rd/blog/Lists/Posts/Archive.
aspx . 



Re: [flexcoders] Re:Looking for a Flex forum.

2008-09-08 Thread Michael Schmalle
I think he was talking about a Forum Implementation made in flex, like PHPBB
implemented in PHP. :)

Mike

On Mon, Sep 8, 2008 at 11:21 AM, Merrill, Jason 
[EMAIL PROTECTED] wrote:

 I was wondering if there was a Flex forum that people have used?



 I'm speechless.



 Jason Merrill
 *Bank of America *
 Enterprise Technology  Global Risk LLD
 Instructional Technology  Media

 *Join the Bank of America Flash Platform Developer Community*

 *Are you a Bank of America associate interested in innovative learning
 ideas and technologies?
 Check out our internal * Innovative Learning Blog* *** subscribe.
  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Custom vertical axis line on plot chart

2008-09-08 Thread kirilminevgroups
I need to have only one of my vertical lines on my plot chart. For
example when plotting my data points I need to make only the line on
30  visible on my grid and the rest hidden. Can that be accomplished. 

Technically I need to have one cross on my plot chart and all the
points plotted around it.

Thanks in advance.



[flexcoders] TimeZone offset

2008-09-08 Thread timgerr
Is there a component for method that if I give an time zone offset, it
will convert for GMT to that new time?

Thanks,
tim



[flexcoders] Re: Memory Thrashing during PRINT operations.

2008-09-08 Thread steve_kellogg_davita
Alex,

THANKS IN ADVANCE for asking around on this.  Please keep me posted,
as I'm trying to figure out why we're seeing such odd behavior from
FlexPrintJob.

Best

Steve



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

 I have no idea why you see that output.  I'll ask internally
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of steve_kellogg_davita
 Sent: Friday, September 05, 2008 11:08 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Memory Thrashing during PRINT operations.
 
 
 THANKS for your response.
 
 Our swf is called main.swf..
 
 There aren't any modules in my app (yet), so it's just one big SWF.
 
 I SUSPECT that it's loading, and unloading resources in the SWF
 (images, or something?) as needed to keep the movie running. Just to
 be clear, there aren't ANY images in the document pages that I'm
 trying to print.
 
 Does that make ANY sense from a Flash runtime perspective?
 
 Steve
 
 --- In
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex
Harui aharui@ wrote:
 
  Is you swf main.swf or could it be loading some sort of small
main.swf?
 
  From:
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com]
 On Behalf Of steve_kellogg_davita
  Sent: Friday, September 05, 2008 8:37 AM
  To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Memory Thrashing during PRINT operations.
 
 
  Hello,
 
  I'm running into some trouble that I hope you guys can offer some
  insight on.
 
  When using FlexPrintJob to print a document with multiple pages
  (typically, anything more than 2 or so), I'm seeing a bunch of trace
  messages that APPEAR to suggest that objects in memory are being
  loaded/unloaded, or that memory is otherwise getting thrashed
around...
 
  FOR EXAMPLE..
 
  The following code.. (page is a UIComponent)
 
  trace(+);
  myPrintJob.addObject(page, FlexPrintJobScaleType.MATCH_WIDTH) ;
  trace(-);
 
  is producing the following result..
 
  +
  [SWF] /htdocs/main.swf - 1,805 bytes after decompression
  [SWF] /htdocs/main.swf - 2,441 bytes after decompression
  [SWF] /htdocs/main.swf - 2,346 bytes after decompression
  [SWF] /htdocs/main.swf - 2,389 bytes after decompression
  [SWF] /htdocs/main.swf - 2,156 bytes after decompression
  [SWF] /htdocs/main.swf - 1,861 bytes after decompression
  -
 
  As you can see, I'm putting the +/- traces in to confirm that these
  other messages are being output DURING the addObject call.
 
  For EVERY page I add (after the first two), I see this EXACT sequence
  of [SWF] messages (including the exact bytecounts).
 
  In addition to just being annoying, this sequence takes 2-3 seconds
  per page, which obviously limits the total number of pages I can print
  before the 15 second timeout occurs..
 
  SO, here's the question... Does anyone have any insights into this?
  Are there any settings that I can use to alert the machine running my
  app that it needs to allocate more memory to the SWF's version of a
 heap?
 
  When I originally wrote the print wrapper dialog for this application
  (in Flex 2), I don't remember seeing any of this, and it was tested
  with HUNDREDS of pages per printJob, so I SUSPECT that this is a new
  behavior in Flex 3.
 
  Thanks in Advance for any assistance.
 
  Steve
 





[flexcoders] Passing an object to an ItemRenderer used by DataGridColumn inside a DataGrid

2008-09-08 Thread João
Hi,

I have a DataGrid where one of the columns has a custom ItemRenderer.
I need to pass an extra object to the item renderer (beside of the
data object, provided via the dataProvider). 
My first option was to extend the DataGridColumn and add a public
property to pass the needed object. But I was stuck on that point
since I don't know how to access that object from the ItemRenderer.
Any suggestions?

Thanks!,

João Saleiro



[flexcoders] Re: FlexPrintJob - Very Hit Miss

2008-09-08 Thread thatstephen
Hi,

Thank you for this advice. I have a similar problem and have tried to
follow your advice. 

However I have tried everything I can think of to make Flex and its
asynchronous events wait for the image load before adding the next
rendered page to the printjob using addObject.

How can you make the Flash Player wait for these events before adding
the page endered with the images correctly loaded?

I have noted that the otherwise good code for printing in the
Flexreport component only seems to use embedded images. 

Thanks 
  
--- In flexcoders@yahoogroups.com, Dmitri Girski [EMAIL PROTECTED] wrote:

 Hi Jeff,
 
 Your image simply is not ready to be rendered. It could be not loaded
 yet, it could be loaded, but positioned well off the Vbox etc.
 
 You have to wait for 2 events for this image:
 -creation Complete
 -updateComplete
 This would guarantee in 90% that your image will be printed. If you
 want 100%, then you have also to check the parent container
 updateComplete event.
 
 
 Cheers,
 Dmitri.
 
 
 
 
 --- In flexcoders@yahoogroups.com, Battershall, Jeff
 jeff.battershall@ wrote:
 
  Actually it is more miss than hit on OSX.  By muttering certain
  incantations I'm able to print a loaded bitmap about once out of
very 20
  tries.  Otherwise, blank pages. The image by the way has been
loaded for
  some time when this happens.
  
  Has anyone experienced this? A workaround?
  
  Jeff Battershall
  Application Architect
  Dow Jones Indexes
  jeff.battershall@
  (609) 520-5637 (p)
  (484) 477-9900 (c)
 





[flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-08 Thread Amy
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] 
wrote:

 On Saturday 06 Sep 2008, Fernando Ghisi wrote:
  http://livedocs.adobe.com/flex/3/html/help.html?
content=charts_formatting_1
 2.html
   I can´t agree with you.  Just take a look on the styles of
   ColumnSeries in
   
http://livedocs.adobe.com/flex/3/langref/mx/charts/series/ColumnSeries
.ht
  ml - itemRenderer=BoxItemRenderer
 
 Aye, the ColumnSeries livedocs you pointed out might well list it 
 under 'Styles' but very few people think of it as one.

I believe the reason so many things are styles in charting is so that 
you can use a styleFunction to set properties on a chart embedded in 
an AdvancedDataGrid.  IMO they should have overloaded things we 
expect to see as proprties so that they would act consistently with 
the rest of the framework but could still be set up via styleFunction.

-Amy



[flexcoders] object vs AsyncToken ?

2008-09-08 Thread markflex2007
Hi,

In the delegate of Cairngorm,what the different between the following
two statements in same function call .(one use object and one use
asynctoken).

Thanks

MK

1

 var call : Object = service.GetAll();
 call.addResponder( responder );

2

 var token:AsyncToken = service.ArrayGetAll();
 token.addResponder( responder);



[flexcoders] Re: Trouble applying background color to a spanned ADG column via custom renderer

2008-09-08 Thread Amy
--- In flexcoders@yahoogroups.com, Adrian Williams [EMAIL PROTECTED] 
wrote:

 Guys and gals,
 
 I'm stumped.  I am trying to apply a custom text and background 
 color to (initially) a specific cell in my grouped ADG, using a 
renderer 
 provider and a custom renderer.  The colors are coming from my 
dataset 
 (part of the user's stored configuration preferences) and the text 
color 
 is working perfectly.  However, nothing I do is rendering the 
cell's 
 background color the same way that the text color is doing.  I've 
tried 
 style functions, renderers, etc without luck.  Any ideas?!?!
 
 Here is the code:
 
 My ADG column def:
 mx:AdvancedDataGridColumn 
 id=groupedKitNum dataField=KitNum headerText=Kit Number 
 headerWordWrap=true textAlign=left width=75 
editable=false /
 
 My renderer provider:
 
mx:AdvancedDataGridRendererProvider 
 id=subgroupRenderer column={groupedKitNum} depth=1 
columnIndex=1 
 columnSpan=4 renderer=renderers.GAPSubgroups.SubgroupRenderer/
 
 My renderer code:
 ?xml version=1.0 encoding=utf-8?
 mx:Text xmlns:mx=http://www.adobe.com/2006/mxml; 
 implements=mx.core.IFactory
 width=100% height=100% paddingLeft=2 paddingRight=2
 mx:Script
 ![CDATA[
 import mx.utils.ObjectProxy;

 override public function set data(dataItem:Object) : 
void
 {
 if (dataItem.children[0] is ObjectProxy)
 {
 htmlText = dataItem.children[0].Description;
 setStyle(color,dataItem.children
[0].TextColor);
 setStyle(backgroundColor, 
 dataItem.children[0].BackgroundColor);
 }
 }

 public function newInstance():*
 {
 return new SubgroupRenderer();
 }
 ]]
 /mx:Script
 /mx:Text
 
 When I've walked through the code in the debugger, I can verify 
that the 
 the background color is indeed being passed in the data set...it's 
just 
 being ignored!
 
 Anyone have any ideas?!

This might or might not point you in the right direction:
http://flexdiary.blogspot.com/2008/06/musings-on-advanceddatagrid-
part-2.html

I think, though, that Text shouldn't have the same problems as 
TextField.

HTH;

Amy



RE: [flexcoders] Re: FlexPrintJob - Very Hit Miss

2008-09-08 Thread Battershall, Jeff
In my case, it was size related. Smaller images were fine but larger
ones could be problematic, and the behavior was restricted to the Adobe
PDF printer driver.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thatstephen
Sent: Monday, September 08, 2008 11:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: FlexPrintJob - Very Hit  Miss


Hi,

Thank you for this advice. I have a similar problem and have tried to
follow your advice. 

However I have tried everything I can think of to make Flex and its
asynchronous events wait for the image load before adding the next
rendered page to the printjob using addObject.

How can you make the Flash Player wait for these events before adding
the page endered with the images correctly loaded?

I have noted that the otherwise good code for printing in the Flexreport
component only seems to use embedded images. 

Thanks 
  
--- In flexcoders@yahoogroups.com, Dmitri Girski [EMAIL PROTECTED] wrote:

 Hi Jeff,
 
 Your image simply is not ready to be rendered. It could be not loaded 
 yet, it could be loaded, but positioned well off the Vbox etc.
 
 You have to wait for 2 events for this image:
 -creation Complete
 -updateComplete
 This would guarantee in 90% that your image will be printed. If you 
 want 100%, then you have also to check the parent container 
 updateComplete event.
 
 
 Cheers,
 Dmitri.
 
 
 
 
 --- In flexcoders@yahoogroups.com, Battershall, Jeff 
 jeff.battershall@ wrote:
 
  Actually it is more miss than hit on OSX.  By muttering certain 
  incantations I'm able to print a loaded bitmap about once out of
very 20
  tries.  Otherwise, blank pages. The image by the way has been
loaded for
  some time when this happens.
  
  Has anyone experienced this? A workaround?
  
  Jeff Battershall
  Application Architect
  Dow Jones Indexes
  jeff.battershall@
  (609) 520-5637 (p)
  (484) 477-9900 (c)
 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links





RE: [flexcoders] Re: FlexPrintJob - Very Hit Miss

2008-09-08 Thread Alex Harui
Due to a bug in FlashPlayer, you can't wait.  Preload images before starting  
the print job

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
thatstephen
Sent: Monday, September 08, 2008 8:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: FlexPrintJob - Very Hit  Miss


Hi,

Thank you for this advice. I have a similar problem and have tried to
follow your advice.

However I have tried everything I can think of to make Flex and its
asynchronous events wait for the image load before adding the next
rendered page to the printjob using addObject.

How can you make the Flash Player wait for these events before adding
the page endered with the images correctly loaded?

I have noted that the otherwise good code for printing in the
Flexreport component only seems to use embedded images.

Thanks

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Dmitri 
Girski [EMAIL PROTECTED] wrote:

 Hi Jeff,

 Your image simply is not ready to be rendered. It could be not loaded
 yet, it could be loaded, but positioned well off the Vbox etc.

 You have to wait for 2 events for this image:
 -creation Complete
 -updateComplete
 This would guarantee in 90% that your image will be printed. If you
 want 100%, then you have also to check the parent container
 updateComplete event.


 Cheers,
 Dmitri.




 --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
 Battershall, Jeff
 jeff.battershall@ wrote:
 
  Actually it is more miss than hit on OSX. By muttering certain
  incantations I'm able to print a loaded bitmap about once out of
very 20
  tries. Otherwise, blank pages. The image by the way has been
loaded for
  some time when this happens.
 
  Has anyone experienced this? A workaround?
 
  Jeff Battershall
  Application Architect
  Dow Jones Indexes
  jeff.battershall@
  (609) 520-5637 (p)
  (484) 477-9900 (c)
 




RE: [flexcoders] How to terminate construction

2008-09-08 Thread Alex Harui
Try throwing an error in the constructor

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
rss181919
Sent: Monday, September 08, 2008 8:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to terminate construction


I'm new to flex and just getting my feet wet with AS3. Today's
questions are:

How do I force a constuction request to fail?
How do I make a property value required for construction?

For example, if I have a construction argument that must meet a certain
standard and this standard is not enforced automatically in the type
declaration, how do I prevent the object from being created if the
standard is not met.

I assume a setter / getter combination could be applied if the standard
is based specifically on the value of a property. But even here, I
don't know how to force the property to be a requirement for object
creation.



[flexcoders] RE: Reuse standard assets

2008-09-08 Thread Alex Harui
I think assets.swf should be in the source.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alban 
Soupper
Sent: Monday, September 08, 2008 7:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Reuse standard assets

Hi all,

How to use, in my own components the standard assets like those in the 
RichTextEditor:
Ex: icon=@Embed('assets/icon_style_bold.png')


Thanks by advance,
Alban.





This email and any files transmitted with it contain confidential information 
and are intended solely for the use of the individual or entity to whom they 
are addressed. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, use, or distribution of the information included 
in this message and any attachments is strictly prohibited. If you have 
received this email in error please notify the system manager at [EMAIL 
PROTECTED] or by reply email and immediately and permanently delete this 
message and any attachments. Email transmission cannot be guaranteed to be 
secure or error-free and may be susceptible to data corruption, delay, 
interception, unauthorised amendment, or contain viruses. The sender therefore 
does not accept liability for any errors, omissions or other such consequences 
which may arise as a result of this email transmission.







[flexcoders] Re: Text selection on DataGrid cells

2008-09-08 Thread stuartward
Alex,
Thanks for your reply. I guess I'll have to sharpen up my coding 
skills and try to create something.

Most users expect to be able to highlight selected text from a table 
of data to make quick copy/paste actions. I'm a bit surprised this 
functionality was left out of the datagrid component.

Thanks again for your help.
Stuart

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

 There is no property or style that would turn on such a capability.
 
 It might be possible to code it yourself.  You'd have to track the 
mouse and set the text's selection appropriately or just draw your 
own selection rectangle and compute the selected text yourself.  
Another problem is that the right-click cut/copy/paste is only going 
to work on one textfield.
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of stuartward
 Sent: Thursday, September 04, 2008 11:51 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Text selection on DataGrid cells
 
 
 Is there a way to allow for selecting text within a cell (or across
 several cells in a row) in a DataGrid by clicking and dragging with 
the
 mouse and the cursor highlighting the selected text? The same 
method as
 you would do in a typical HTML table of data.
 Thanks,
 Stuart





Re: [flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-08 Thread Fernando Ghisi
The question here is not if charts uses styles for itemRenderers or
not - it´s fact, it really uses it.

It´s working like this: I created my CustomItemRenderer extending
BoxItemRenderer and I´m setting the series itemRenderers with setStyle
method, like this:

//For each columnSeries
series.setStyle(itemRenderer, new
ClassFactory(mx.charts.renderers.CustomtemRenderer));

See also: 
http://livedocs.adobe.com/flex/3/html/help.html?content=charts_formatting_12.html

It´s working, I repeat. But the question was how can I get a reference
for the series itemRenderes. On execution time, I have to modify an
attribute of the itemRenderes than, when the updateDisplayList is
executed again, the renderer will modify the draw made on each column
(based on the attribut setted).

If I use serie.getStyle(itemRenderer), it will return the
ClassFActorty, not the itemRenderer.


So, any idea people?


-- 
Fernando Benedet Ghisi


Re: [flexcoders] Re:Looking for a Flex forum.

2008-09-08 Thread Steve Mathews
 I think he was talking about a Forum Implementation made in flex, like
PHPBB implemented in PHP. :)
Yes, that is what I understand. I too am speechless.

On Mon, Sep 8, 2008 at 8:27 AM, Michael Schmalle [EMAIL PROTECTED]wrote:

  I think he was talking about a Forum Implementation made in flex, like
 PHPBB implemented in PHP. :)

 Mike

 On Mon, Sep 8, 2008 at 11:21 AM, Merrill, Jason 
 [EMAIL PROTECTED] wrote:

 I was wondering if there was a Flex forum that people have used?



 I'm speechless.



 Jason Merrill
 *Bank of America *
 Enterprise Technology  Global Risk LLD
 Instructional Technology  Media

 *Join the Bank of America Flash Platform Developer Community*

 *Are you a Bank of America associate interested in innovative learning
 ideas and technologies?
 Check out our internal * Innovative Learning Blog* *** subscribe.




 --
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the question'.
  



[flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-08 Thread Tim Hoff

Not arguing with you, but why would you use setStyle instead of:

mx:ColumnSeries id=mySeries
  itemRenderer=mx.charts.renderers.CustomtemRenderer/

Does mySeries.items[0] not give you a reference?

-TH

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

 The question here is not if charts uses styles for itemRenderers or
 not - it´s fact, it really uses it.

 It´s working like this: I created my CustomItemRenderer extending
 BoxItemRenderer and I´m setting the series itemRenderers with
setStyle
 method, like this:

 //For each columnSeries
 series.setStyle(itemRenderer, new
 ClassFactory(mx.charts.renderers.CustomtemRenderer));

 See also:
http://livedocs.adobe.com/flex/3/html/help.html?content=charts_formattin\
g_12.html

 It´s working, I repeat. But the question was how can I get a
reference
 for the series itemRenderes. On execution time, I have to modify an
 attribute of the itemRenderes than, when the updateDisplayList is
 executed again, the renderer will modify the draw made on each column
 (based on the attribut setted).

 If I use serie.getStyle(itemRenderer), it will return the
 ClassFActorty, not the itemRenderer.


 So, any idea people?


 --
 Fernando Benedet Ghisi





[flexcoders] Formatting a value in an ADG Summary Row cell

2008-09-08 Thread Tom McNeer
Hi,

I have an Advanced DataGrid using a Summary Row to sum up budget totals
according to some groupings. But I need to apply a Currency Formatter to the
value.

I've looked through the docs, but I can't find a way to access the value of
the summary function. It's obviously not a value within the ADG's data
scope, and I can't figure out how to grab it so I can format it.

Thanks in advance for your help.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Re: Passing an object to an ItemRenderer used by DataGridColumn inside a DataGrid

2008-09-08 Thread gaurav1146
You could have the property in the custom ItemRenderer itself. And
then use something like:

renderer.properties = {propertyName:propertyValue};

Regards,
Gaurav  

--- In flexcoders@yahoogroups.com, João [EMAIL PROTECTED] wrote:

 Hi,
 
 I have a DataGrid where one of the columns has a custom ItemRenderer.
 I need to pass an extra object to the item renderer (beside of the
 data object, provided via the dataProvider). 
 My first option was to extend the DataGridColumn and add a public
 property to pass the needed object. But I was stuck on that point
 since I don't know how to access that object from the ItemRenderer.
 Any suggestions?
 
 Thanks!,
 
 João Saleiro





[flexcoders] Re: HTTPService Synchronization

2008-09-08 Thread rupal_2381
I have a app which has multiple HTTPService calls where the service
calls are dependent on the result of previous service calls. Is it
possible that I can check the result of first service call before
invoking the second one.

Regards,

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

 Rupal
 The Flex CookBook could help you at here.

http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailsproductId=2postId=7184
 
 
 Regards
 Igor Costa
 www.igorcosta.org
 
 On Fri, Sep 5, 2008 at 7:02 PM, rupal_2381 [EMAIL PROTECTED] wrote:
 
Hi All,
 
  Is there any framework in place to make multiple HTTPService requests
  synchronous. Also, does making concurrency=last helps?
 
  Regards,
 
   
 
 
 
 
 -- 
 
 Igor Costa
 www.igorcosta.com
 www.igorcosta.org





[flexcoders] Re:Looking for a Flex forum.

2008-09-08 Thread timgerr
I am sorry that I might not have stated my question better.  I am
looking for a forum that is coded in Flex.  I have not seen any with
Google searches and was wondering what (if any) people are using.  

I am sorry that my question might not have been formulated to your
desire but that was a lousy answer.  If you are unable to reply with
any constructive responses, they why respond?  

Common, this form is for learning and asking questions. I was taught
that there are not dumb questions, except for the ones that are never
asked.  I guess since you create Instructional Technology  Media
software then all questions you answer in your software help people
that don't ask questions

I am sorry that you took your time to read my post, I am sorry that
you responded.

timgerr

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

  I was wondering if there was a Flex forum that people have used?
 
  
 
 I'm speechless.
 
  
 
 Jason Merrill
 Bank of America 
 Enterprise Technology  Global Risk LLD
 Instructional Technology  Media 
 
 Join the Bank of America Flash Platform Developer Community
 blocked::http://sharepoint.bankofamerica.com/sites/tlc/flash/default.as
 px  
 
 Are you a Bank of America associate interested in innovative learning
 ideas and technologies?
 Check out our internal  Innovative Learning Blog
 blocked::http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.
 aspx   subscribe
 blocked::http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts
 /SubNew.aspx?List=\%7b41BD3FC9-BB07-4763-B3AB-A6C7C99C5B8D\%7dSource=ht
 tp://sharepoint.bankofamerica.com/sites/ddc/rd/blog/Lists/Posts/Archive.
 aspx .





Re: [flexcoders] Re:Looking for a Flex forum.

2008-09-08 Thread Sherif Abdou
I don't think your going to see a Flex Forum for a while, Reason is flash does 
not get indexed by search engines... so unless your a powerhouse and get a 
billion hits a having a forum in flex is going to be worthless.  Now there is 
this http://www.tufat.com/s_flash_bulletin_board_phpbb_vbulletin.htm but I 
don't know if it satisfies you. 
--
Sherif Abdou
http://VadexFX.com
http://Sherifabdou.com
  - Original Message - 
  From: timgerr 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, September 08, 2008 12:52 PM
  Subject: [flexcoders] Re:Looking for a Flex forum.


  I am sorry that I might not have stated my question better. I am
  looking for a forum that is coded in Flex. I have not seen any with
  Google searches and was wondering what (if any) people are using. 

  I am sorry that my question might not have been formulated to your
  desire but that was a lousy answer. If you are unable to reply with
  any constructive responses, they why respond? 

  Common, this form is for learning and asking questions. I was taught
  that there are not dumb questions, except for the ones that are never
  asked. I guess since you create Instructional Technology  Media
  software then all questions you answer in your software help people
  that don't ask questions

  I am sorry that you took your time to read my post, I am sorry that
  you responded.

  timgerr

  --- In flexcoders@yahoogroups.com, Merrill, Jason
  [EMAIL PROTECTED] wrote:
  
I was wondering if there was a Flex forum that people have used?
   
   
   
   I'm speechless.
   
   
   
   Jason Merrill
   Bank of America 
   Enterprise Technology  Global Risk LLD
   Instructional Technology  Media 
   
   Join the Bank of America Flash Platform Developer Community
   blocked::http://sharepoint.bankofamerica.com/sites/tlc/flash/default.as
   px 
   
   Are you a Bank of America associate interested in innovative learning
   ideas and technologies?
   Check out our internal Innovative Learning Blog
   blocked::http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.
   aspx  subscribe
   blocked::http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts
   /SubNew.aspx?List=\%7b41BD3FC9-BB07-4763-B3AB-A6C7C99C5B8D\%7dSource=ht
   tp://sharepoint.bankofamerica.com/sites/ddc/rd/blog/Lists/Posts/Archive.
   aspx .
  



   

Re: [flexcoders] Re:Looking for a Flex forum.

2008-09-08 Thread Doug McCune
Tim,

I haven't seen any forums written in Flex, and I'd argue (as I think many
here would) that Flex is not a great technology for writing a forum
application. There are some things that Flex does incredibly well, and some
that it does not... and text-based content portals is one that Flex is not
great for. For the same reasons I'd argue that Flex is not a good choice if
you want to create a blogging platform. The SEO issues alone, not to mention
the text rendering issues, would prevent me suggesting using Flex.

Doug

On Mon, Sep 8, 2008 at 10:52 AM, timgerr [EMAIL PROTECTED] wrote:

   I am sorry that I might not have stated my question better. I am
 looking for a forum that is coded in Flex. I have not seen any with
 Google searches and was wondering what (if any) people are using.

 I am sorry that my question might not have been formulated to your
 desire but that was a lousy answer. If you are unable to reply with
 any constructive responses, they why respond?

 Common, this form is for learning and asking questions. I was taught
 that there are not dumb questions, except for the ones that are never
 asked. I guess since you create Instructional Technology  Media
 software then all questions you answer in your software help people
 that don't ask questions

 I am sorry that you took your time to read my post, I am sorry that
 you responded.

 timgerr

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Merrill, Jason

 [EMAIL PROTECTED] wrote:
 
   I was wondering if there was a Flex forum that people have used?
 
 
 
  I'm speechless.
 
 
 
  Jason Merrill
  Bank of America
  Enterprise Technology  Global Risk LLD
  Instructional Technology  Media
 
  Join the Bank of America Flash Platform Developer Community
  blocked::http://sharepoint.bankofamerica.com/sites/tlc/flash/default.as
  px
 
  Are you a Bank of America associate interested in innovative learning
  ideas and technologies?
  Check out our internal Innovative Learning Blog
  blocked::http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.
  aspx  subscribe
  blocked::http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts
  /SubNew.aspx?List=\%7b41BD3FC9-BB07-4763-B3AB-A6C7C99C5B8D\%7dSource=ht
  tp://sharepoint.bankofamerica.com/sites/ddc/rd/blog/Lists/Posts/Archive.
  aspx .
 

  



Re: [flexcoders] Re: HTTPService Synchronization

2008-09-08 Thread Tomas Lin
you can chain your calls in your result functions in either your
httpservice calls or using a framework like MATE

On Mon, Sep 8, 2008 at 1:29 PM, rupal_2381 [EMAIL PROTECTED] wrote:
 I have a app which has multiple HTTPService calls where the service
 calls are dependent on the result of previous service calls. Is it
 possible that I can check the result of first service call before
 invoking the second one.

 Regards,

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

 Rupal
 The Flex CookBook could help you at here.

 http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailsproductId=2postId=7184


 Regards
 Igor Costa
 www.igorcosta.org

 On Fri, Sep 5, 2008 at 7:02 PM, rupal_2381 [EMAIL PROTECTED] wrote:

  Hi All,
 
  Is there any framework in place to make multiple HTTPService requests
  synchronous. Also, does making concurrency=last helps?
 
  Regards,
 
 
 



 --
 
 Igor Costa
 www.igorcosta.com
 www.igorcosta.org


 


Re: [flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-08 Thread Fernando Ghisi
When you do this in a MXML, I almost sure that it will be transformed
on a setStyle(itemRenderer, ...) in actionscript.

There is no other way of doing this on actionscript.

To apply a renderer to a series in ActionScript, you use the
setStyle() method. In that method, you create a new ClassFactory and
pass the renderer to its constructor. Flex generates an instance of
this class to be the renderer. Be sure to import the appropriate
classes when using renderer classes.


But you gave me a solution - when I set the itemRenderer for one
serie, in fact I´m setting the itemRenderer for all items of this
serie. So, I can really get a reference using the serie´s items array,
like you said or, more especificaly, like this:

CustomItemRenderer(ColumnSeriesItem(ColumnSeries(chart.series[index]).items[index]).itemRenderer


That was easier than I thought it was.


Thanks for the light Tim!


Fernando Ghisi





2008/9/8 Tim Hoff [EMAIL PROTECTED]:
 Not arguing with you, but why would you use setStyle instead of:

 mx:ColumnSeries

 id=mySeries
  itemRenderer=mx.charts.renderers.CustomtemRenderer/

 Does mySeries.items[0] not give you a reference?

 -TH

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

 The question here is not if charts uses styles for itemRenderers or
 not - it´s fact, it really uses it.

 It´s working like this: I created my CustomItemRenderer extending
 BoxItemRenderer and I´m setting the series itemRenderers with setStyle
 method, like this:

 //For each columnSeries
 series.setStyle(itemRenderer, new
 ClassFactory(mx.charts.renderers.CustomtemRenderer));

 See also:
 http://livedocs.adobe.com/flex/3/html/help.html?content=charts_formatting_12.html

 It´s working, I repeat. But the question was how can I get a reference
 for the series itemRenderes. On execution time, I have to modify an
 attribute of the itemRenderes than, when the updateDisplayList is
 executed again, the renderer will modify the draw made on each column
 (based on the attribut setted).

 If I use serie.getStyle(itemRenderer), it will return the
 ClassFActorty, not the itemRenderer.


 So, any idea people?


 --
 Fernando Benedet Ghisi

 



-- 
Fernando Benedet Ghisi


[flexcoders] FP10 and Crossdomain

2008-09-08 Thread Rogerio Gonzalez
Hello!

I am having issues with FP10 and crossdomain (on Vista).
For some reason, when I try to use a php webservice on my other server (both
with crossdomain files) he give me the following message:

Erro: A solicitação de recurso em http://xxx.com/services.php pelo
solicitante de http://yyy.net/Rentabilidades.swf é negada devido à falta de
permissões do arquivo de diretivas.

I don´t know the message on english, but is something like it: The
solicitation of the resource in xxx.com by the yyy.net is denied because a
lack of permission on the directive file 

The crossdomain.xml file is this:

?xml version=1.0?
!DOCTYPE cross-domain-policy SYSTEM 
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd;
cross-domain-policy xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:noNamespaceSchemaLocation=
http://www.adobe.com/xml/schemas/PolicyFile.xsd;
  site-control permitted-cross-domain-policies=master-only/
  allow-access-from domain=yyy.net/
/cross-domain-policy


On the XP + FP9 is all working OK with that!

Thanks!

Regards,

Rogério Gonzalez


RE: [flexcoders] id of element inside repeater gives an error

2008-09-08 Thread Gordon Smith
Repeater works with objects that implement IRepeaterClient, and the UIComponent 
base class implements this interface. Is your GeometryGroup component a 
UIComponent? If not, you'd need to make it implement this IRepeaterClient.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David 
Pariente
Sent: Friday, September 05, 2008 5:54 PM
To: flexcoders
Subject: [flexcoders] id of element inside repeater gives an error

Hi all,


Im trying to make a repeater to show me some elements, and those elements 
include a jpg and a masking for it.

If i assign an id for the mask, in a simple way:

GeometryGroup id=ing_mask x=0 y=0  

complains that the id is not a visual child...

If i try to add the currentIndex value, for make the id allways different:

GeometryGroup id=ing_mask_{iIngredients.currentIndex} x=0 y=0  

complains that is not a valid identifier...

I guess i just dont know how should i write those IDsneither i know if they 
should really be different inside a repeater or no need.

Could somone help, plz?

thnx a lot




[flexcoders] Re: FP10 and Crossdomain

2008-09-08 Thread Rogerio Gonzalez
Sorry, I found it!

allow-http-request-headers-from domain=* headers=SOAPAction/

This line was needed to everything work OK again.

Regards,

Rogério Gonzalez


On Mon, Sep 8, 2008 at 3:21 PM, Rogerio Gonzalez [EMAIL PROTECTED]
 wrote:

 Hello!

 I am having issues with FP10 and crossdomain (on Vista).
 For some reason, when I try to use a php webservice on my other server
 (both with crossdomain files) he give me the following message:

 Erro: A solicitação de recurso em http://xxx.com/services.php pelo
 solicitante de http://yyy.net/Rentabilidades.swf é negada devido à falta
 de permissões do arquivo de diretivas.

 I don´t know the message on english, but is something like it: The
 solicitation of the resource in xxx.com by the yyy.net is denied because a
 lack of permission on the directive file 

 The crossdomain.xml file is this:

 ?xml version=1.0?
 !DOCTYPE cross-domain-policy SYSTEM 
 http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd;
 cross-domain-policy xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:noNamespaceSchemaLocation=
 http://www.adobe.com/xml/schemas/PolicyFile.xsd;
   site-control permitted-cross-domain-policies=master-only/
   allow-access-from domain=yyy.net/
 /cross-domain-policy


 On the XP + FP9 is all working OK with that!

 Thanks!

 Regards,

 Rogério Gonzalez



Re: [flexcoders] Re:Looking for a Flex forum.

2008-09-08 Thread Aaron Miller
Is SEO still an issue when writing a Flex application? I would argue that
it's not.
A) Google (Yahoo coming soon if not already) now indexes content within a
SWF. This includes dynamic content as well. Using dynamic deep linking and a
site map that points to different content in the SWF helps a great deal with
this.

B) If A isn't enough, you could always use mod_rewrite (or
similar technology) to take a link structure and pass parameters down into a
SWF to determine the view state and content. In addition, the server side
script could print an html version of the content in the background which
would allow search engines to index the content and give non-flash users
access to the information as well. The only down side to this approach is
you can not update the URL bar while the user browses through the
application since anchor links are not passed through to the server (to my
knowledge). This can be compensated for by displaying a link to this page
in the application.

Anyways, sorry I couldn't answer your original question better. But I think
the idea of a Flex based forum is definitely a realizable idea, and I didn't
want you to give up on it because of a few dissenters.


Best Regards,
~Aaron

On Mon, Sep 8, 2008 at 11:06 AM, Doug McCune [EMAIL PROTECTED] wrote:

   Tim,

 I haven't seen any forums written in Flex, and I'd argue (as I think many
 here would) that Flex is not a great technology for writing a forum
 application. There are some things that Flex does incredibly well, and some
 that it does not... and text-based content portals is one that Flex is not
 great for. For the same reasons I'd argue that Flex is not a good choice if
 you want to create a blogging platform. The SEO issues alone, not to mention
 the text rendering issues, would prevent me suggesting using Flex.

 Doug


 On Mon, Sep 8, 2008 at 10:52 AM, timgerr [EMAIL PROTECTED] wrote:

   I am sorry that I might not have stated my question better. I am
 looking for a forum that is coded in Flex. I have not seen any with
 Google searches and was wondering what (if any) people are using.

 I am sorry that my question might not have been formulated to your
 desire but that was a lousy answer. If you are unable to reply with
 any constructive responses, they why respond?

 Common, this form is for learning and asking questions. I was taught
 that there are not dumb questions, except for the ones that are never
 asked. I guess since you create Instructional Technology  Media
 software then all questions you answer in your software help people
 that don't ask questions

 I am sorry that you took your time to read my post, I am sorry that
 you responded.

 timgerr

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Merrill, Jason

 [EMAIL PROTECTED] wrote:
 
   I was wondering if there was a Flex forum that people have used?
 
 
 
  I'm speechless.
 
 
 
  Jason Merrill
  Bank of America
  Enterprise Technology  Global Risk LLD
  Instructional Technology  Media
 
  Join the Bank of America Flash Platform Developer Community
  blocked::
 http://sharepoint.bankofamerica.com/sites/tlc/flash/default.as
  px
 
  Are you a Bank of America associate interested in innovative learning
  ideas and technologies?
  Check out our internal Innovative Learning Blog
  blocked::
 http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.
  aspx  subscribe
  blocked::
 http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts
  /SubNew.aspx?List=\%7b41BD3FC9-BB07-4763-B3AB-A6C7C99C5B8D\%7dSource=ht
 
 tp://sharepoint.bankofamerica.com/sites/ddc/rd/blog/Lists/Posts/Archive.
  aspx .
 


  



-- 
Aaron Miller
Chief Technology Officer
Open Base Interactive, LLC.
[EMAIL PROTECTED]
http://www.openbaseinteractive.com


[flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-08 Thread Tim Hoff

Great Fernando.  Thanks for the info too.  I learned something as well.

-TH

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

 When you do this in a MXML, I almost sure that it will be transformed
 on a setStyle(itemRenderer, ...) in actionscript.

 There is no other way of doing this on actionscript.

 To apply a renderer to a series in ActionScript, you use the
 setStyle() method. In that method, you create a new ClassFactory and
 pass the renderer to its constructor. Flex generates an instance of
 this class to be the renderer. Be sure to import the appropriate
 classes when using renderer classes.


 But you gave me a solution - when I set the itemRenderer for one
 serie, in fact I´m setting the itemRenderer for all items of this
 serie. So, I can really get a reference using the serie´s items
array,
 like you said or, more especificaly, like this:


CustomItemRenderer(ColumnSeriesItem(ColumnSeries(chart.series[index]).it\
ems[index]).itemRenderer


 That was easier than I thought it was.


 Thanks for the light Tim!


 Fernando Ghisi





 2008/9/8 Tim Hoff [EMAIL PROTECTED]:
  Not arguing with you, but why would you use setStyle instead of:
 
  mx:ColumnSeries
 
  id=mySeries
  itemRenderer=mx.charts.renderers.CustomtemRenderer/
 
  Does mySeries.items[0] not give you a reference?
 
  -TH
 
  --- In flexcoders@yahoogroups.com, Fernando Ghisi fernandoghisi@
  wrote:
 
  The question here is not if charts uses styles for itemRenderers or
  not - it´s fact, it really uses it.
 
  It´s working like this: I created my CustomItemRenderer
extending
  BoxItemRenderer and I´m setting the series itemRenderers with
setStyle
  method, like this:
 
  //For each columnSeries
  series.setStyle(itemRenderer, new
  ClassFactory(mx.charts.renderers.CustomtemRenderer));
 
  See also:
 
http://livedocs.adobe.com/flex/3/html/help.html?content=charts_formattin\
g_12.html
 
  It´s working, I repeat. But the question was how can I get a
reference
  for the series itemRenderes. On execution time, I have to modify an
  attribute of the itemRenderes than, when the updateDisplayList is
  executed again, the renderer will modify the draw made on each
column
  (based on the attribut setted).
 
  If I use serie.getStyle(itemRenderer), it will return the
  ClassFActorty, not the itemRenderer.
 
 
  So, any idea people?
 
 
  --
  Fernando Benedet Ghisi
 
 



 --
 Fernando Benedet Ghisi






Re: [flexcoders] Re:Looking for a Flex forum.

2008-09-08 Thread Doug McCune
I'm not trying to be a complete glass is half empty kind of guy, so
if you want to build a Flex message board, go for it. But I do think
there are substantial reasons that you haven't seen a successful one
yet out in the wild (or has anyone seen one at all?).

 Is SEO still an issue when writing a Flex application? I would argue that 
 it's not.
 A) Google (Yahoo coming soon if not already) now indexes content within a 
 SWF. This includes dynamic content as well. Using dynamic deep linking and a 
 site map that points to different content in the SWF helps a great deal with 
 this.

Except nobody has gotten this to work yet (I assume it will work
eventually, but right now it's basically a pipe dream in the real
world). See: http://blog.digitalbackcountry.com/?p=1617
So yeah, in the future SEO might become less of an issue with Flex
sites, but for now it's as big an issue as it's ever been, and for me
is still a deal breaker if the site requires indexing.

 B) If A isn't enough, you could always use mod_rewrite (or similar 
 technology) to take a link structure and pass parameters down into a SWF to 
 determine the view state and content. In addition, the server side script 
 could print an html version of the content in the background which would 
 allow search engines to index the content and give non-flash users access to 
 the information as well. The only down side to this approach is you can not 
 update the URL bar while the user browses through the application since 
 anchor links are not passed through to the server (to my knowledge). This can 
 be compensated for by displaying a link to this page in the application.

Yeah, so this has long been the only real way to make your site search
engine friendly, and it certainly works, but in the end you're
building two websites, one for the search engine and a completely
different one in Flex for the users. Why bother building the flex one
then? esp if the application doesn't use anything that makes
Flex/Flash stand out? If you have a forum that was based on sharing
music or video, then maybe I could understand wanting to go with Flex
(although I'd probably still argue for just embedding little widgets
in HTML). But a standard forum works very well as an HTML app with a
scattering of AJAX. Esp when you compare the text capabilities, stuff
like HTML links, inline images within blocks of text, good support of
rich formatting within text blocks. It's all stuff that's a no brainer
with HTML, but either works sub-par or not at all in flash player.

 Anyways, sorry I couldn't answer your original question better. But I think 
 the idea of a Flex based forum is definitely a realizable idea, and I didn't 
 want you to give up on it because of a few dissenters.

:) certainly don't let me tell you what you can and can't do. If you
want to build it, go for it, just be aware of what you're getting
yourself into. And report back on your progress if you decide to take
the plung!

Doug


Re: [flexcoders] Re:Looking for a Flex forum.

2008-09-08 Thread Michael Schmalle
Well,

Last year when the Services module came out for Drupal, I pipped into the
node/forum API and created a nice forum in flex.

The problem with flex has always been RTE editing. We all know this. But, if
that hurdle was overcome and text rendering sped up, using an existing CMS
like drupal, there are no issues. You simply give two entrances to the
forum, google indexes your drupal/CMS site like normal.

I tend to agree with Doug and others about 'right now' but, the I'm
speechless part goes a bit to far.

Mike

On Mon, Sep 8, 2008 at 3:01 PM, Doug McCune [EMAIL PROTECTED] wrote:

   I'm not trying to be a complete glass is half empty kind of guy, so
 if you want to build a Flex message board, go for it. But I do think
 there are substantial reasons that you haven't seen a successful one
 yet out in the wild (or has anyone seen one at all?).


  Is SEO still an issue when writing a Flex application? I would argue that
 it's not.
  A) Google (Yahoo coming soon if not already) now indexes content within a
 SWF. This includes dynamic content as well. Using dynamic deep linking and a
 site map that points to different content in the SWF helps a great deal with
 this.

 Except nobody has gotten this to work yet (I assume it will work
 eventually, but right now it's basically a pipe dream in the real
 world). See: http://blog.digitalbackcountry.com/?p=1617
 So yeah, in the future SEO might become less of an issue with Flex
 sites, but for now it's as big an issue as it's ever been, and for me
 is still a deal breaker if the site requires indexing.

  B) If A isn't enough, you could always use mod_rewrite (or similar
 technology) to take a link structure and pass parameters down into a SWF to
 determine the view state and content. In addition, the server side script
 could print an html version of the content in the background which would
 allow search engines to index the content and give non-flash users access to
 the information as well. The only down side to this approach is you can not
 update the URL bar while the user browses through the application since
 anchor links are not passed through to the server (to my knowledge). This
 can be compensated for by displaying a link to this page in the
 application.

 Yeah, so this has long been the only real way to make your site search
 engine friendly, and it certainly works, but in the end you're
 building two websites, one for the search engine and a completely
 different one in Flex for the users. Why bother building the flex one
 then? esp if the application doesn't use anything that makes
 Flex/Flash stand out? If you have a forum that was based on sharing
 music or video, then maybe I could understand wanting to go with Flex
 (although I'd probably still argue for just embedding little widgets
 in HTML). But a standard forum works very well as an HTML app with a
 scattering of AJAX. Esp when you compare the text capabilities, stuff
 like HTML links, inline images within blocks of text, good support of
 rich formatting within text blocks. It's all stuff that's a no brainer
 with HTML, but either works sub-par or not at all in flash player.

  Anyways, sorry I couldn't answer your original question better. But I
 think the idea of a Flex based forum is definitely a realizable idea, and I
 didn't want you to give up on it because of a few dissenters.

 :) certainly don't let me tell you what you can and can't do. If you
 want to build it, go for it, just be aware of what you're getting
 yourself into. And report back on your progress if you decide to take
 the plung!

 Doug
  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Re: Hiding a row in an AdvancedDataGrid

2008-09-08 Thread whatabrain
It turns out that filtering out the parent node hides all the 
children too, so I guess this isn't what I want after all.


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

 --- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote:
 
  Calling refresh() did nothing.
  
  Note that if I choose to filter out all the child nodes, it works 
  perfectly. It's only the parent nodes I can't filter, because the 
  filter is never called for them.
 
 HierarchicalCollectionView has a showRoot property that you could 
 probably use to turn the parent nodes off.  I've cast 
HierarchcialData 
 to HierarchicalCollectionView in the past for other reasons ( 
 http://flexdiary.blogspot.com/2008/07/musings-on-advanceddatagrid-
part-
 5_03.html ), but I am not sure if this would work for you if you're 
not 
 using HierarchicalCollectionView already.  If you're using a 
 GroupingCollection, it could also potentially be cast in that way.
 
 HTH;
 
 Amy





[flexcoders] Re: Passing an object to an ItemRenderer used by DataGridColumn inside a DataGrid

2008-09-08 Thread Amy
--- In flexcoders@yahoogroups.com, João [EMAIL PROTECTED] wrote:

 Hi,
 
 I have a DataGrid where one of the columns has a custom ItemRenderer.
 I need to pass an extra object to the item renderer (beside of the
 data object, provided via the dataProvider). 
 My first option was to extend the DataGridColumn and add a public
 property to pass the needed object. But I was stuck on that point
 since I don't know how to access that object from the ItemRenderer.
 Any suggestions?
 
 Thanks!,
 
 João Saleiro


http://www.returnundefined.com/2006/11/creating-truly-reusable-
renderers-with-classfactory



[flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-08 Thread Amy
--- In flexcoders@yahoogroups.com, Fernando Ghisi 
[EMAIL PROTECTED] wrote:

 The question here is not if charts uses styles for itemRenderers or
 not - it´s fact, it really uses it.
 
 It´s working like this: I created my CustomItemRenderer extending
 BoxItemRenderer and I´m setting the series itemRenderers with 
setStyle
 method, like this:
 
 //For each columnSeries
 series.setStyle(itemRenderer, new
 ClassFactory(mx.charts.renderers.CustomtemRenderer));
 
 See also: http://livedocs.adobe.com/flex/3/html/help.html?
content=charts_formatting_12.html
 
 It´s working, I repeat. But the question was how can I get a 
reference
 for the series itemRenderes. On execution time, I have to modify an
 attribute of the itemRenderes than, when the updateDisplayList is
 executed again, the renderer will modify the draw made on each 
column
 (based on the attribut setted).
 
 If I use serie.getStyle(itemRenderer), it will return the
 ClassFActorty, not the itemRenderer.
 
 
 So, any idea people?

Did you look at the link I posted?  I believe it showed you how to 
get at the LegendData for each series, which should know this.

HTH;

Amy



Re: [flexcoders] Re:Looking for a Flex forum.

2008-09-08 Thread Mike Chabot
The biggest hurdle with creating a Flex forum is that the PHP forums
are fantastic, dominant, established, popular, they run on any OS,
come with many Web hosting packages, and some of the best ones are
free. Anything done in Flex is going to have to complete with the PHP
offerings and it would be challenging to justify the investment.

I also agree with what Doug M. and Mike S. wrote.

-Mike Chabot

On Mon, Sep 8, 2008 at 3:07 PM, Michael Schmalle
[EMAIL PROTECTED] wrote:
 Well,

 Last year when the Services module came out for Drupal, I pipped into the
 node/forum API and created a nice forum in flex.

 The problem with flex has always been RTE editing. We all know this. But, if
 that hurdle was overcome and text rendering sped up, using an existing CMS
 like drupal, there are no issues. You simply give two entrances to the
 forum, google indexes your drupal/CMS site like normal.

 I tend to agree with Doug and others about 'right now' but, the I'm
 speechless part goes a bit to far.

 Mike

 On Mon, Sep 8, 2008 at 3:01 PM, Doug McCune [EMAIL PROTECTED] wrote:

 I'm not trying to be a complete glass is half empty kind of guy, so
 if you want to build a Flex message board, go for it. But I do think
 there are substantial reasons that you haven't seen a successful one
 yet out in the wild (or has anyone seen one at all?).

  Is SEO still an issue when writing a Flex application? I would argue
  that it's not.
  A) Google (Yahoo coming soon if not already) now indexes content within
  a SWF. This includes dynamic content as well. Using dynamic deep linking 
  and
  a site map that points to different content in the SWF helps a great deal
  with this.

 Except nobody has gotten this to work yet (I assume it will work
 eventually, but right now it's basically a pipe dream in the real
 world). See: http://blog.digitalbackcountry.com/?p=1617
 So yeah, in the future SEO might become less of an issue with Flex
 sites, but for now it's as big an issue as it's ever been, and for me
 is still a deal breaker if the site requires indexing.

  B) If A isn't enough, you could always use mod_rewrite (or similar
  technology) to take a link structure and pass parameters down into a SWF to
  determine the view state and content. In addition, the server side script
  could print an html version of the content in the background which would
  allow search engines to index the content and give non-flash users access 
  to
  the information as well. The only down side to this approach is you can not
  update the URL bar while the user browses through the application since
  anchor links are not passed through to the server (to my knowledge). This
  can be compensated for by displaying a link to this page in the
  application.

 Yeah, so this has long been the only real way to make your site search
 engine friendly, and it certainly works, but in the end you're
 building two websites, one for the search engine and a completely
 different one in Flex for the users. Why bother building the flex one
 then? esp if the application doesn't use anything that makes
 Flex/Flash stand out? If you have a forum that was based on sharing
 music or video, then maybe I could understand wanting to go with Flex
 (although I'd probably still argue for just embedding little widgets
 in HTML). But a standard forum works very well as an HTML app with a
 scattering of AJAX. Esp when you compare the text capabilities, stuff
 like HTML links, inline images within blocks of text, good support of
 rich formatting within text blocks. It's all stuff that's a no brainer
 with HTML, but either works sub-par or not at all in flash player.

  Anyways, sorry I couldn't answer your original question better. But I
  think the idea of a Flex based forum is definitely a realizable idea, and I
  didn't want you to give up on it because of a few dissenters.

 :) certainly don't let me tell you what you can and can't do. If you
 want to build it, go for it, just be aware of what you're getting
 yourself into. And report back on your progress if you decide to take
 the plung!

 Doug



 --
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the question'.


RE: [flexcoders] id of element inside repeater gives an error

2008-09-08 Thread Tracy Spratt
When you get your component repeating, know that it will automatically
create an indexed array of references to the repeated components using
the base id string.  For example, doing:

GeometryGroup id=ing_mask...

You will be able to use ing_mask[n] to get a ref to each repeated
component.  n is the index of the item in the dataProvider.

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Monday, September 08, 2008 2:26 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] id of element inside repeater gives an error

 

Repeater works with objects that implement IRepeaterClient, and the
UIComponent base class implements this interface. Is your GeometryGroup
component a UIComponent? If not, you'd need to make it implement this
IRepeaterClient.

 

Gordon Smith

Adobe Flex SDK Team

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Pariente
Sent: Friday, September 05, 2008 5:54 PM
To: flexcoders
Subject: [flexcoders] id of element inside repeater gives an error

 

Hi all,


Im trying to make a repeater to show me some elements, and those
elements include a jpg and a masking for it.

If i assign an id for the mask, in a simple way:

GeometryGroup id=ing_mask x=0 y=0  

complains that the id is not a visual child...

If i try to add the currentIndex value, for make the id allways
different:

GeometryGroup id=ing_mask_{iIngredients.currentIndex} x=0 y=0


complains that is not a valid identifier...

I guess i just dont know how should i write those IDsneither i know
if they should really be different inside a repeater or no need.

Could somone help, plz?

thnx a lot

 

 



Re: [flexcoders] Re: Getting a reference to a itemRenderer of a chart series

2008-09-08 Thread Fernando Ghisi
Yeah, it´s a good link. I will use it now, for the next issues that I
have to solve (legend ones).

Thanks.


2008/9/8 Amy [EMAIL PROTECTED]:
 --- In flexcoders@yahoogroups.com, Fernando Ghisi
 [EMAIL PROTECTED] wrote:

 The question here is not if charts uses styles for itemRenderers or
 not - it´s fact, it really uses it.

 It´s working like this: I created my CustomItemRenderer extending
 BoxItemRenderer and I´m setting the series itemRenderers with
 setStyle
 method, like this:

 //For each columnSeries
 series.setStyle(itemRenderer, new
 ClassFactory(mx.charts.renderers.CustomtemRenderer));

 See also: http://livedocs.adobe.com/flex/3/html/help.html?
 content=charts_formatting_12.html

 It´s working, I repeat. But the question was how can I get a
 reference
 for the series itemRenderes. On execution time, I have to modify an
 attribute of the itemRenderes than, when the updateDisplayList is
 executed again, the renderer will modify the draw made on each
 column
 (based on the attribut setted).

 If I use serie.getStyle(itemRenderer), it will return the
 ClassFActorty, not the itemRenderer.


 So, any idea people?

 Did you look at the link I posted? I believe it showed you how to
 get at the LegendData for each series, which should know this.

 HTH;

 Amy

 



-- 
Fernando Benedet Ghisi


RE: [flexcoders] Re: HTTPService Synchronization

2008-09-08 Thread Tracy Spratt
I use a single HTTPService instance, and a single result handler.

 

The send() method returns an AsyncToken, which is a dynamic object to
which you add most any kind of property you want.  The result handler
function can access this AsyncToken and read those proerties.

 

I typically set a callId, which is a string that identifies the call,
and sometimes a nextaction property when I invoke a dataservice call.
In the result handler, I use a switch statement to conditionally work
with those properties to determine the next appropriate processing step,
which obviously can include another dataservice call.

 

The switch statement can get pretty long, but is easy to understand,
debug and modify. With a single breakpoint, I can monitor every result.

 

Tracy

 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tomas Lin
Sent: Monday, September 08, 2008 2:12 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: HTTPService Synchronization

 

you can chain your calls in your result functions in either your
httpservice calls or using a framework like MATE

On Mon, Sep 8, 2008 at 1:29 PM, rupal_2381 [EMAIL PROTECTED]
mailto:rupal_2381%40yahoo.com  wrote:
 I have a app which has multiple HTTPService calls where the service
 calls are dependent on the result of previous service calls. Is it
 possible that I can check the result of first service call before
 invoking the second one.

 Regards,

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

 Rupal
 The Flex CookBook could help you at here.


http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails
productId=2postId=7184
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetail
sproductId=2postId=7184 


 Regards
 Igor Costa
 www.igorcosta.org

 On Fri, Sep 5, 2008 at 7:02 PM, rupal_2381 [EMAIL PROTECTED] wrote:

  Hi All,
 
  Is there any framework in place to make multiple HTTPService
requests
  synchronous. Also, does making concurrency=last helps?
 
  Regards,
 
 
 



 --
 
 Igor Costa
 www.igorcosta.com
 www.igorcosta.org


 

 



RE: [flexcoders] object vs AsyncToken ?

2008-09-08 Thread Tracy Spratt
Not a whole lot of difference.  But using the more specific type will
provide code hinting and compile-time type checking.  Using the
narrowest type is best prectice.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markflex2007
Sent: Monday, September 08, 2008 11:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] object vs AsyncToken ?

 

Hi,

In the delegate of Cairngorm,what the different between the following
two statements in same function call .(one use object and one use
asynctoken).

Thanks

MK

1

var call : Object = service.GetAll();
call.addResponder( responder );

2

var token:AsyncToken = service.ArrayGetAll();
token.addResponder( responder);

 



RE: [flexcoders] as3 code for the MXML

2008-09-08 Thread Tracy Spratt
Here is a from memory, untested example:

private var _myHTTPService:HTTPService; //no ids when using AS, so use
this instance var to reference the object = new HTTPService;

 

private function init():void

_myHTTPService.url =  myURL;  //NOT a binding, but that is probably not
important

_myHTTPService.method = GET;

_myHTTPService.resultFormat = e4x;  //I refuse to use object

var oRequest:Object = {mode:mode,mode2:mode2,catid:catid};

... then going the rest of the way

var atCall:AsyncToken = _myHTTPService.send(oRequest);

atCall.callid = whatever

 

Now, I would suggest you do the initialization of the _myHTTPService
object once, in an init function, and then set the properties that
change, like the url and the request object, just before you invoke each
send.

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Nate Beck
Sent: Monday, September 08, 2008 11:06 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] as3 code for the MXML

 

Create a really simple Flex project with just that code in it, and then
use the -keep-generated-actionscript compiler flag.

 

See
http://weblog.mrinalwadhwa.com/2007/07/09/flex-tip-of-the-day-keep-gener
ated-actionscript/
http://weblog.mrinalwadhwa.com/2007/07/09/flex-tip-of-the-day-keep-gene
rated-actionscript/ 

 

Cheers,

Nate

 

On Mon, Sep 8, 2008 at 7:30 AM, markflex2007 [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Hi,

I want to use AS 3 do the same thing with following MXML code:

mx:HTTPService url={myURL} id=myHTTPData method=GET
resultFormat=object
mx:request
mode{mode}/mode
mode2{mode2}/mode2
catid{catid}/catid
/mx:request 
/mx:HTTPService

please give me a hit .Thanks for your help

MK

 

 



RE: [flexcoders] Flex courses

2008-09-08 Thread Eric Fickes
Flex video training
http://www.adobe.com/devnet/flex/videotraining/



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Giles Roadnight
Sent: Wednesday, September 03, 2008 11:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex courses



Hi All

My partner who has been a tester for 5 years wants to re-train in Flex.

She has done a post grad IT course in which she learnt OOD and C++ /
Visual Basic.

Can anyone recommend some good courses in the London area which she
can take to get her started?

Thanks

Giles Roadnight
http://giles.roadnight.name http://giles.roadnight.name 


 


[flexcoders] Framework RSLs -- Any Reason Not To Use? Any Problems Related to Their Use?

2008-09-08 Thread greg h
Hi,

I am on a team that is pushing into production a public facing Flex
application on the Internet. We have configured the app to use the Flash
Player's caching of the Framework RSL.

Before going live, I am posting here to see if anyone has experience that
causes them to caution against using the Framework RSL (e.g.
framework_3.0.0.477.swz)?

I have seen the following post by Dmitri Girski's with his analysis on where
RSLs offer the most benefit (Thanks Dmitri :-):
http://tech.groups.yahoo.com/group/flexcoders/message/108149

But I have not had luck tracking down any horror stories. I certainly am
heartened by this lack of horror stories. However, if by using the Framework
RSL we might be introducing any risks or pitfalls, we sure would prefer to
know before we go live, rather than hear about them from our customers ;-)

If anyone might have advice they are willing to share, we would be most
appreciative if you could be so kind as to share your experiences.

Thanks,

g


RE: [flexcoders] Dynamic ID RadioButtonGroup

2008-09-08 Thread Tracy Spratt
Correct, however, if you use a simple string for the id, repeater will
automatically build an indexed array of references to the component.
Example:

mx:RadioButtonGroup id=rb...

 

You can access the individual instances using rb[n], where n is iht
index of the dataProvider item.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Haykel BEN JEMIA
Sent: Saturday, September 06, 2008 11:40 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Dynamic ID RadioButtonGroup

 

The id property does not support binding and it should not contain any
white space or special characters.



On Sat, Sep 6, 2008 at 1:22 PM, Eugene Louw [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Hi All,

 

I'm trying to create multiple RadioButtonGroup(s) with the following
code,

 

mx:Repeater id=radioGroupRepeater
dataProvider={ModelLocator.getInstance().options}

mx:RadioButtonGroup
id={radioGroupRepeater.currentItem.handle} labelPlacement=left /

/mx:Repeater

 

But I'm getting the following error,

 

'{radioGroupRepeater.currentItem.handle}' is not a valid identifier.


 

Thanks for the help,


-- 

Eugene Louw


 

 



Re: [flexcoders] Framework RSLs -- Any Reason Not To Use? Any Problems Related to Their Use?

2008-09-08 Thread Matt Chotin
I haven't heard of any :-)


On 9/8/08 1:26 PM, greg h [EMAIL PROTECTED] wrote:




Hi,

I am on a team that is pushing into production a public facing Flex application 
on the Internet. We have configured the app to use the Flash Player's caching 
of the Framework RSL.

Before going live, I am posting here to see if anyone has experience that 
causes them to caution against using the Framework RSL (e.g. 
framework_3.0.0.477.swz)?

I have seen the following post by Dmitri Girski's with his analysis on where 
RSLs offer the most benefit (Thanks Dmitri :-):
http://tech.groups.yahoo.com/group/flexcoders/message/108149

But I have not had luck tracking down any horror stories. I certainly am 
heartened by this lack of horror stories. However, if by using the Framework 
RSL we might be introducing any risks or pitfalls, we sure would prefer to know 
before we go live, rather than hear about them from our customers ;-)

If anyone might have advice they are willing to share, we would be most 
appreciative if you could be so kind as to share your experiences.

Thanks,

g




Re: [flexcoders] Hi

2008-09-08 Thread Robert Thompson
That's a great example alright...many applications lend themselves  
well to this kind of structure.


HOWEVER: There does not appear to be a Right-Click VIew Source which  
brings up a left pane and then allows you to download source.


With a lot on most people's plate, this is a good starter example to  
save time.


-r

On Sep 8, 2008, at 5:22 AM, Paul Andrews wrote:


Check out the Flex explorer - it has an example for you to follow.

http://examples.adobe.com/flex3/componentexplorer/explorer.html

Paul
- Original Message -
From: raj balaji
To: Flex Coders
Sent: Monday, September 08, 2008 9:55 AM
Subject: [flexcoders] Hi

Hi all,
I want to use the repeater control in Actionscript, where the
repeater control should add the component dynamically, can u tell me  
how to

do that,,,
I am getting the data from xml...

Thanks in advance







[flexcoders] passing objects to amfphp browser

2008-09-08 Thread dnk
has anyone had any luck passing objects to the amfphp browser for  
testing classes? I read a few articles that you need to use valid JSON  
for passing in

So I am typing in something like:


{id: 3, category: 'a cat'}

Has anyone been able to do this? The above does not work. I am juts  
testing my php classes via the browser before i start to write the  
flex portion.

dnk






[flexcoders] ArrayCollection.refresh breaks scrollbar in ADG

2008-09-08 Thread whatabrain
1) I call disableAutoUpdate() on an ADG's dataProvider (an 
ArrayCollection added as mx:HierarchicalData).

2) I add a thousand items to the grid.

3a) If I now call items.enableAutoUpdate(), things work fine, but the 
refresh takes a really long time, because a thousand events are 
fired. There's actually a comment in the ListCollectionView code 
saying this might be a problem.

3b) So instead, I call refresh() on the ArrayCollection. The thousand 
items get added very quickly, but the grid has no vertical scrollbar. 
I can tell the items are there, because a few of them appear when I 
resize the grid.

In ListCollectionView.internalRefresh(), it looks like very little 
happens unless there's a sort or filter function. The pending updates 
queue is deleted, and a COLLECTION_CHANGE event is dispatched. Maybe 
that's enough...

Is there anything I can do about this? Is there a function which will 
specificall recalculate and render the scrollbar? Or do I have to 
optimize ListCollectionView.handlePendingUpdates myself?



[flexcoders] textinput, validation, event

2008-09-08 Thread timgerr
Hey all,
I have a question for you.  I am trying to trigger an event when a
textinput validate is incorrect.  Here is my code

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

private function ErrorAdd(event:Event):void
{
trace('working');
trace(event.target);
}

private function MeChild():void
{
var getChild:Array = CVS.getChildren();
trace(getChild.length); 


}
]]
/mx:Script
mx:Canvas id=CVS x=74.5 y=10 width=478 height=373
mx:TextInput id=t1 valid=ErrorAdd(event);/
mx:TextInput id=t2 y=30/
mx:Button label=Press ME click=MeChild() x=95.5 y=185/
/mx:Canvas
mx:StringValidator id=t1v source={t1} property=text
minLength=2 maxLength=10/
/mx:Application

When I enter the correct informatin into t1, ErrorAdd should kick off
one of the traces.  I am not sure why not, what am I doing wrong.

Thanks,
timgettt



Re: [flexcoders] Hi

2008-09-08 Thread Paul Andrews
- Original Message - 
  From: Robert Thompson 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, September 08, 2008 9:38 PM
  Subject: Re: [flexcoders] Hi


  That's a great example alright...many applications lend themselves well to 
this kind of structure.


  HOWEVER: There does not appear to be a Right-Click VIew Source which brings 
up a left pane and then allows you to download source.

Robert, every single example in the explorer comes with copyable source code 
shown in the bottom right pane of the explorer.

Paul


  With a lot on most people's plate, this is a good starter example to save 
time.


  -r


  On Sep 8, 2008, at 5:22 AM, Paul Andrews wrote:


Check out the Flex explorer - it has an example for you to follow.

http://examples.adobe.com/flex3/componentexplorer/explorer.html

Paul
- Original Message - 
From: raj balaji
To: Flex Coders
Sent: Monday, September 08, 2008 9:55 AM
Subject: [flexcoders] Hi

Hi all,
I want to use the repeater control in Actionscript, where the 
repeater control should add the component dynamically, can u tell me how to 
do that,,,
I am getting the data from xml...

Thanks in advance 





   

Re: [flexcoders] Framework RSLs -- Any Reason Not To Use? Any Problems Related to Their Use?

2008-09-08 Thread Doug McCune
I think mainly you just need to be aware of the size implications
(both good and bad). By using the framework RSL you are removing the
framework from your SWF, which will reduce your SWF size by quite a
bit. However, you are also requiring the loading of the full framework
RSL. The full RSL includes all the framework classes, not just those
used in your SWF, so this RSL is actually larger than the savings that
you have gotten with your smaller swf. But this framework RSL can be
cached and can even be cached from other people's apps.

So if someone visits your app without ever having loaded the RSL
(either from you or another person's app) then their initial load time
will actually be longer than if you did not use the RSL. However,if
they have viewed another Flex app that used the RSL, then your load
time will be faster.

The other thing that I've heard is that you can't monkey patch
framework classes if using the RSL, since that gets loaded after your
main app, the RSL framework classes take precedence.

Doug

On Mon, Sep 8, 2008 at 1:35 PM, Matt Chotin [EMAIL PROTECTED] wrote:
 I haven't heard of any :-)

 On 9/8/08 1:26 PM, greg h [EMAIL PROTECTED] wrote:

 Hi,

 I am on a team that is pushing into production a public facing Flex
 application on the Internet. We have configured the app to use the Flash
 Player's caching of the Framework RSL.

 Before going live, I am posting here to see if anyone has experience that
 causes them to caution against using the Framework RSL (e.g.
 framework_3.0.0.477.swz)?

 I have seen the following post by Dmitri Girski's with his analysis on where
 RSLs offer the most benefit (Thanks Dmitri :-):
 http://tech.groups.yahoo.com/group/flexcoders/message/108149

 But I have not had luck tracking down any horror stories. I certainly am
 heartened by this lack of horror stories. However, if by using the Framework
 RSL we might be introducing any risks or pitfalls, we sure would prefer to
 know before we go live, rather than hear about them from our customers ;-)

 If anyone might have advice they are willing to share, we would be most
 appreciative if you could be so kind as to share your experiences.

 Thanks,

 g

 


RE: [flexcoders] Framework RSLs -- Any Reason Not To Use? Any Problems Related to Their Use?

2008-09-08 Thread Kyle Quevillon
True regarding not being able to monkey patch the cached framework rsl.
It is always loaded first.

-Kyle

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug 
McCune
Sent: Monday, September 08, 2008 4:15 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Framework RSLs -- Any Reason Not To Use? Any Problems 
Related to Their Use?


I think mainly you just need to be aware of the size implications
(both good and bad). By using the framework RSL you are removing the
framework from your SWF, which will reduce your SWF size by quite a
bit. However, you are also requiring the loading of the full framework
RSL. The full RSL includes all the framework classes, not just those
used in your SWF, so this RSL is actually larger than the savings that
you have gotten with your smaller swf. But this framework RSL can be
cached and can even be cached from other people's apps.

So if someone visits your app without ever having loaded the RSL
(either from you or another person's app) then their initial load time
will actually be longer than if you did not use the RSL. However,if
they have viewed another Flex app that used the RSL, then your load
time will be faster.

The other thing that I've heard is that you can't monkey patch
framework classes if using the RSL, since that gets loaded after your
main app, the RSL framework classes take precedence.

Doug

On Mon, Sep 8, 2008 at 1:35 PM, Matt Chotin [EMAIL 
PROTECTED]mailto:mchotin%40adobe.com wrote:
 I haven't heard of any :-)

 On 9/8/08 1:26 PM, greg h [EMAIL PROTECTED]mailto:flexsavvy%40gmail.com 
 wrote:

 Hi,

 I am on a team that is pushing into production a public facing Flex
 application on the Internet. We have configured the app to use the Flash
 Player's caching of the Framework RSL.

 Before going live, I am posting here to see if anyone has experience that
 causes them to caution against using the Framework RSL (e.g.
 framework_3.0.0.477.swz)?

 I have seen the following post by Dmitri Girski's with his analysis on where
 RSLs offer the most benefit (Thanks Dmitri :-):
 http://tech.groups.yahoo.com/group/flexcoders/message/108149

 But I have not had luck tracking down any horror stories. I certainly am
 heartened by this lack of horror stories. However, if by using the Framework
 RSL we might be introducing any risks or pitfalls, we sure would prefer to
 know before we go live, rather than hear about them from our customers ;-)

 If anyone might have advice they are willing to share, we would be most
 appreciative if you could be so kind as to share your experiences.

 Thanks,

 g



inline: image001.jpginline: image002.jpg

Re: [flexcoders] Framework RSLs -- Any Reason Not To Use? Any Problems Related to Their Use?

2008-09-08 Thread greg h
Hi Doug,

Thanks!

My apology for not including in my initial post the analysis that you have
so graciously provided.

In our case, we have done the analysis that you indicated, and yes there are
cases where visitors downloads will be increased by our use of the Framework
RSLs.
*-- First Time Visitor.*  First time visitor for whom our app is the first
app using that version of the Framework RSL.
*-- Flash Player Earlier Than 9.0.115.*  All visitors using earlier versions
of Flash Player than 9.0.115 will download the swf version of the RSL in all
cases.

The above being understood, we have decided to proceed with using the
Framework RSL because repeat visitors, and hopefully even many first time
visitors will enjoy smaller and therefore faster downloads.

Regarding monkey patching we have not done that in this app.  We certainly
will be mindful of this if we should we, in the future, do any monkey
patching (aka underriding core framework
classeshttp://dougmccune.com/blog/2007/08/17/my-360flex-slides-and-code/
).

Again, thank you for sharing.

g


Re: [flexcoders] Framework RSLs -- Any Reason Not To Use? Any Problems Related to Their Use?

2008-09-08 Thread Doug McCune
A related question for Matt or someone from Adobe... didn't Google
announce sometime back that they are hosting common JavaScript
frameworks? The idea being that people could link to those to ensure
that download speed was super fast and that they could be cached more
easily?

Any thoughts on Adobe hosting a version of the framework RSL on a
super duper balls to the walls fast network, so we never have to worry
about the 500+k loading being a bottleneck on our end?

Doug


On Mon, Sep 8, 2008 at 2:36 PM, greg h [EMAIL PROTECTED] wrote:
 Hi Doug,

 Thanks!

 My apology for not including in my initial post the analysis that you have
 so graciously provided.

 In our case, we have done the analysis that you indicated, and yes there are
 cases where visitors downloads will be increased by our use of the Framework
 RSLs.
 -- First Time Visitor.  First time visitor for whom our app is the first app
 using that version of the Framework RSL.
 -- Flash Player Earlier Than 9.0.115.  All visitors using earlier versions
 of Flash Player than 9.0.115 will download the swf version of the RSL in all
 cases.

 The above being understood, we have decided to proceed with using the
 Framework RSL because repeat visitors, and hopefully even many first time
 visitors will enjoy smaller and therefore faster downloads.

 Regarding monkey patching we have not done that in this app.  We certainly
 will be mindful of this if we should we, in the future, do any monkey
 patching (aka underriding core framework classes).

 Again, thank you for sharing.

 g
 


Re: [flexcoders] passing objects to amfphp browser

2008-09-08 Thread dnk

On 8-Sep-08, at 1:55 PM, dnk wrote:

 has anyone had any luck passing objects to the amfphp browser for
 testing classes? I read a few articles that you need to use valid JSON
 for passing in

 So I am typing in something like:

 {id: 3, category: 'a cat'}

 Has anyone been able to do this? The above does not work. I am juts
 testing my php classes via the browser before i start to write the
 flex portion.

 dnk



I made a little progress by simply submitting it like:

{id: 3, category: a cat}

So now i can submit it as an object. According to service capture...  
it is submitting an object. but now upon return, i am getting:

(Object)#0
   message = faultCode:AMFPHP_RUNTIME_ERROR faultString:'AMFPHP  
Remoting 'elib' class database UPDATE query error: 1054' faultDetail:'/ 
home/sites/ws.dom.com/web/amfphp/services/Elib.php on line 236'
   name = Error
   rootCause = (null)

So it seems like amfphp is choking on the double quotes, but does not  
like the single quotes (invalid JSON?).

Ideas?

d




[flexcoders] Alert error loading Flickr geo feed into XML object

2008-09-08 Thread bennettberlin
Hi,

Yahoo maps, Flex, AS3, Flickr georss.

I'm getting the following Alert error when I attempt to parse a geofeed
from Flickr:

GeoRSS: Error #1083: The prefix georss for element georss:point is
not bound

It seems to be happening when I load the rss_200 feed into an XML
object, but before I parse the XML:

private function handleComplete(e:Event):void{

try{
trace(  data  + e.target.data); // trace shows correct
XML/Namespaces
var xmlData:XML = new XML(e.target.data); //Problem
code. Worked previously!
parseData(xmlData);
}
catch(e:Error){
Alert.show(e.message);
}
}

I've been off this project for a couple of weeks. The code worked
previously and all the markers appeared on the map?

Any help appreciated.


===

Here's some snippets how my code works (or not):

MAIN FLEX MXML
private function handleMapInitialize(event:YahooMapEvent):void
{
_yahooMap.y = 0;
_yahooMap.height = 490;
_yahooMap.zoomLevel = 4;
_yahooMap.centerLatLon = new LatLon(52.23816, 20.99896);
mapContainer.addChild(_yahooMap);

_geoparser = new GeoFeedParser(); //GEOFEED PARSER CLASS
_geoparser.addEventListener(ParserEvent.COMPLETE,
handleFeedData);

_geoparser.load(http://api.flickr.com/services/feeds/geo/[EMAIL PROTECTED]
8format=rss_200);
}

private function handleFeedData(e:ParserEvent):void
{
var data:Array = _geoparser.getItems();
var _markerList = new Array();
for each(var item:Object in data){
var tmp:ImageMarker = new ImageMarker(item);
_markerList.push(tmp);
_yahooMap.markerManager.addMarker(tmp);
}
imageTiles.dataProvider = (data );
}

GEOFEED PARSER CLASS
public function load(url:String):void{

_items = new Array();
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.addEventListener(Event.COMPLETE, handleComplete);
loader.load(new URLRequest(url));
}

private function handleComplete(e:Event):void{

try{
trace(  data  + e.target.data); // XML seems fine.
var xmlData:XML = new XML(e.target.data); //Fails here
parseData(xmlData);
}
catch(e:Error){
Alert.show(e.message);
}
}





[flexcoders] function / method argument validation

2008-09-08 Thread rss181919
Let's say I have the following call

s myvar = myfuntion (arg1:x)

Of course arg1 must be of type x or you get a compile time error.  Is 
there any way to force arg1 to be of a certain value range within type 
x and have it checked at compile time?

For example, is there a way to create a group of constants or value 
objects that the system would validate when compiling the function call?



[flexcoders] datagrid, itemrenderer images and events, . looking for a solution

2008-09-08 Thread Sanjay Hora
Hi,

My custom itemRenderer shows an image in the first column of my
datagrid when mouseover happens. I need to know the index of the
underlying data (basically image on which row was clicked) when the
image is clicked but I am not sure how to get it. Is there any way to
do it without making the end user click on the column of the grid itself.

I know it is possible because I have seen an example somewhere.

I really appreciate any help.
cheers,
sanjay




[flexcoders] Re: Framework RSLs -- Any Reason Not To Use? Any Problems Related to Their Use?

2008-09-08 Thread nathanpdaniel
You may also look out for an issue we ran into.  The path to our 
framework RSL was not the default (same folder as main app swf).  For 
some reason when compiling on FB3, we would get framework RSLs in 
both the path we wanted and the default (same folder as main app 
swf).  The framework RSLs in the path we wanted were bad and 
wouldn't load when trying to load the web page.  As it turned out, 
the RSLs in the path were copies of those that come with the 
framework.  It has to do with matching digests (all security 
concerns).  So in our release build, we'd get those extra RSLs with 
our main swf, and RSLs where we wanted them.  A simple cut/paste 
fixed the issue, but it took us a few hours and builds to realize 
what was going on with the framework RSLs - no fun that's for sure! :D

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

 I think mainly you just need to be aware of the size implications
 (both good and bad). By using the framework RSL you are removing the
 framework from your SWF, which will reduce your SWF size by quite a
 bit. However, you are also requiring the loading of the full 
framework
 RSL. The full RSL includes all the framework classes, not just those
 used in your SWF, so this RSL is actually larger than the savings 
that
 you have gotten with your smaller swf. But this framework RSL can be
 cached and can even be cached from other people's apps.
 
 So if someone visits your app without ever having loaded the RSL
 (either from you or another person's app) then their initial load 
time
 will actually be longer than if you did not use the RSL. However,if
 they have viewed another Flex app that used the RSL, then your load
 time will be faster.
 
 The other thing that I've heard is that you can't monkey patch
 framework classes if using the RSL, since that gets loaded after 
your
 main app, the RSL framework classes take precedence.
 
 Doug
 
 On Mon, Sep 8, 2008 at 1:35 PM, Matt Chotin [EMAIL PROTECTED] wrote:
  I haven't heard of any :-)
 
  On 9/8/08 1:26 PM, greg h [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I am on a team that is pushing into production a public facing 
Flex
  application on the Internet. We have configured the app to use 
the Flash
  Player's caching of the Framework RSL.
 
  Before going live, I am posting here to see if anyone has 
experience that
  causes them to caution against using the Framework RSL (e.g.
  framework_3.0.0.477.swz)?
 
  I have seen the following post by Dmitri Girski's with his 
analysis on where
  RSLs offer the most benefit (Thanks Dmitri :-):
  http://tech.groups.yahoo.com/group/flexcoders/message/108149
 
  But I have not had luck tracking down any horror stories. I 
certainly am
  heartened by this lack of horror stories. However, if by using 
the Framework
  RSL we might be introducing any risks or pitfalls, we sure would 
prefer to
  know before we go live, rather than hear about them from our 
customers ;-)
 
  If anyone might have advice they are willing to share, we would 
be most
  appreciative if you could be so kind as to share your experiences.
 
  Thanks,
 
  g
 
 





[flexcoders] Embedding SWF with Assets Code

2008-09-08 Thread Sceneshift

Hi guys,

I'm trying to embed a SWF into my Flex project so that I can use the library
symbols with the code intact. I would also like the path of the embed to by
dynamic, something like this perhaps:

[Embed[source={swf_path}]];

I managed to get this to work using a bindable variable, but I haven no idea
how I load the library assets from the embedded SWF.

Anyone help me out?
-- 
View this message in context: 
http://www.nabble.com/Embedding-SWF-with-Assets---Code-tp19378019p19378019.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: Embedding SWF with Assets Code

2008-09-08 Thread nathanpdaniel
I don't think you can use Embed with a dynamic path (you can't embed 
at run time)... also, what exactly do you mean by:
 I managed to get this to work using a bindable variable, but ...
:D

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

 
 Hi guys,
 
 I'm trying to embed a SWF into my Flex project so that I can use 
the library
 symbols with the code intact. I would also like the path of the 
embed to by
 dynamic, something like this perhaps:
 
 [Embed[source={swf_path}]];
 
 I managed to get this to work using a bindable variable, but I 
haven no idea
 how I load the library assets from the embedded SWF.
 
 Anyone help me out?
 -- 
 View this message in context: http://www.nabble.com/Embedding-SWF-
with-Assets---Code-tp19378019p19378019.html
 Sent from the FlexCoders mailing list archive at Nabble.com.





RE: [flexcoders] function / method argument validation

2008-09-08 Thread Gordon Smith
No, AS3 doesn't support this.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
rss181919
Sent: Monday, September 08, 2008 11:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] function / method argument validation


Let's say I have the following call

s myvar = myfuntion (arg1:x)

Of course arg1 must be of type x or you get a compile time error. Is
there any way to force arg1 to be of a certain value range within type
x and have it checked at compile time?

For example, is there a way to create a group of constants or value
objects that the system would validate when compiling the function call?



Re: [flexcoders] passing objects to amfphp browser

2008-09-08 Thread dnk

On 8-Sep-08, at 1:55 PM, dnk wrote:

 has anyone had any luck passing objects to the amfphp browser for
 testing classes? I read a few articles that you need to use valid JSON
 for passing in

 So I am typing in something like:

 {id: 3, category: 'a cat'}

 Has anyone been able to do this? The above does not work. I am juts
 testing my php classes via the browser before i start to write the
 flex portion.

 dnk


Ok, for reference in the archives

The proper syntax is:

{id: 3, category: a cat}

In my specific case, I had a quoting error in the sql statement i had  
in my php class.

So I guess lesson is... be sure the php is right before thinking it is  
the gateway.

d


Re: [flexcoders] repairing pixelation on resized photos

2008-09-08 Thread Guy Morton
You need to turn on bitmap smoothing. Look at the BitMap class in the  
help docs. eg


  var bitmap:Bitmap = imageObject.content as Bitmap;
  bitmap.smoothing = true;



On 09/09/2008, at 12:16 AM, David Pariente wrote:



Hello,

On my website i have lots of pics that i load and then resize to fit  
different SMALLER sizes.


The smaller pictures quality is really crapnot acceptable by my  
customer...not even by me...i never saw a program resize picture  
into smaller with so less quality like this in my whole life.


So my question is...is there a way to add a little more blur or a  
little more antialiasing to those pics so they look  
acceptable...even not perfect? is there a .quality property for  
those pics??


I can resize the pics on server...but server would explode...
I'm looking for a MXML or a easy AS3 solution instead.

thnx a lot!! :)







Re: [flexcoders] How to terminate construction

2008-09-08 Thread Josh McDonald
IIRC, if you throw an error from the constructor the object will still be
instantiated but not constructed: ie, memory allocated, instance
initialisers run (the code after the = in public var memberVariable :
Object =  but the constructor function will be aborted, and there'll be
no reference to the instantiated instance, so it'll be scheduled for garbage
collection. So if there's something you want to make sure doesn't happen,
make sure it's done in the constructor and not on a variable definition.
Just something to keep in mind :)

-Josh

On Tue, Sep 9, 2008 at 2:53 AM, Alex Harui [EMAIL PROTECTED] wrote:

  Try throwing an error in the constructor



 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *rss181919
 *Sent:* Monday, September 08, 2008 8:02 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] How to terminate construction



 I'm new to flex and just getting my feet wet with AS3. Today's
 questions are:

 How do I force a constuction request to fail?
 How do I make a property value required for construction?

 For example, if I have a construction argument that must meet a certain
 standard and this standard is not enforced automatically in the type
 declaration, how do I prevent the object from being created if the
 standard is not met.

 I assume a setter / getter combination could be applied if the standard
 is based specifically on the value of a property. But even here, I
 don't know how to force the property to be a requirement for object
 creation.

  




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

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Issue when converting HashMap(Java) into Object (ActionScript)

2008-09-08 Thread dmiramontesval
I have this weird issue and i can't figure it out, let me explain:

I have a java object A which has a HashMap variable myMap, this map
will hold objects of class B. In ActionScript i have the corresponding
class A which has a variable myMap but since there is no HashMap in
ActionScript its type is Object and i also have the corresponding class B.

[RemoteClass(alias=com.test.A)]
public class A {
  public var myMap:Object; // this is the HashMap in Java
}

[RemoteClass(alias=com.test.B)]
public class B {
  public var id:Number;
  public var name:String;
}

I need to put the objects B contained in the map inside a DataGrid so
i am obtaining the object of class A using a RemoteObject and then i
iterate over the myMap property using a for each in loop, like this:

for each(var i:* in objectA.myMap) {
someArrayCollection.add(i);
}

The first issue appears here, suppose the java HashMap contains 3
elements, in the ActionScript loop i get 4 elements, the fourth one
being a reference to the A object (its key appears as owner). In
order to avoid this i use the is operator like this:

for each(var i:* in objectA.myMap) {
   if (i is B) {
 someArrayCollection.add(i);
   }
}

Now here is the real issue, when i do this the B objects contained in
the myMap property are reset to their initial values (NaN and empty
string according to the B class). I changed the if condition to this
and worked:

for each(var i:* in objectA.myMap) {
   if (!(i is A)) {
someArrayCollection.add(i);
   }
}
When i did this the DataGrid shows the elements in the
someArrayCollection perfectly fine. I did a little more testing and i
figured out the issue, if i use an instance of class B anywhere in
my application, the values of the B objects inside the myMap property
are reset, for example:

for each(var i:* in objectA.myMap) {
   if (i is B) {
  someArrayCollection.add(i);
   }
}
var test:B = new B();

This resets the B objects inside the myMap property of the A object
which makes no absolute sense, this is why when i used the B class in
the if condition the objects reset their values.

So the thing is whenever i use the B class, which is the class of the
objects inside myMap, the B objects are reset Does anyone know how
to fix this?

I am using Flex 2.01 hotfix 3, i wonder if this is some kind of bug
that was solved in a later release.

Any help would be appreciated.



[flexcoders] Is it possible to increase the heigth and width of scroll bars in any container?

2008-09-08 Thread anuj181
Hi Guys
I have a general question. In general any scroll bar in
container(either VBOX or HBOX etc)is (by default)16 pixels wide. Is it
possible to change the width and height of any scroll bar for in built
containers. Also for styling those scroll bars and scroll er within
the container do i have to use CSS or there is any other way too.(By
styling i mean if I can give my own look and feel and color to the
scroll bars in containers).
Reply will be appreciated.
Thanks guys
Anuj



Re: [flexcoders] Issue when converting HashMap(Java) into Object (ActionScript)

2008-09-08 Thread Josh McDonald
The problem I think is you're using the wrong data structures.

If your Java map looks like this:

HashMapint, String myMap;

What you'll get in Flex isn't what you've got below, it's an object like
this:

var mymap : Object =
  {
1: String 1,
2: String 2,
79: Blue
  }

Not the structure that you're trying to coerce it to based on the code you
posted. But since this is clearly just example Flex code and I have no
idea about what your Java looks like, I'm just guessing.

-Josh

On Tue, Sep 9, 2008 at 8:46 AM, dmiramontesval
[EMAIL PROTECTED]wrote:

 I have this weird issue and i can't figure it out, let me explain:

 I have a java object A which has a HashMap variable myMap, this map
 will hold objects of class B. In ActionScript i have the corresponding
 class A which has a variable myMap but since there is no HashMap in
 ActionScript its type is Object and i also have the corresponding class B.

 [RemoteClass(alias=com.test.A)]
 public class A {
  public var myMap:Object; // this is the HashMap in Java
 }

 [RemoteClass(alias=com.test.B)]
 public class B {
  public var id:Number;
  public var name:String;
 }

 I need to put the objects B contained in the map inside a DataGrid so
 i am obtaining the object of class A using a RemoteObject and then i
 iterate over the myMap property using a for each in loop, like this:

 for each(var i:* in objectA.myMap) {
 someArrayCollection.add(i);
 }

 The first issue appears here, suppose the java HashMap contains 3
 elements, in the ActionScript loop i get 4 elements, the fourth one
 being a reference to the A object (its key appears as owner). In
 order to avoid this i use the is operator like this:

 for each(var i:* in objectA.myMap) {
   if (i is B) {
 someArrayCollection.add(i);
   }
 }

 Now here is the real issue, when i do this the B objects contained in
 the myMap property are reset to their initial values (NaN and empty
 string according to the B class). I changed the if condition to this
 and worked:

 for each(var i:* in objectA.myMap) {
   if (!(i is A)) {
someArrayCollection.add(i);
   }
 }
 When i did this the DataGrid shows the elements in the
 someArrayCollection perfectly fine. I did a little more testing and i
 figured out the issue, if i use an instance of class B anywhere in
 my application, the values of the B objects inside the myMap property
 are reset, for example:

 for each(var i:* in objectA.myMap) {
   if (i is B) {
  someArrayCollection.add(i);
   }
 }
 var test:B = new B();

 This resets the B objects inside the myMap property of the A object
 which makes no absolute sense, this is why when i used the B class in
 the if condition the objects reset their values.

 So the thing is whenever i use the B class, which is the class of the
 objects inside myMap, the B objects are reset Does anyone know how
 to fix this?

 I am using Flex 2.01 hotfix 3, i wonder if this is some kind of bug
 that was solved in a later release.

 Any help would be appreciated.


 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






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

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Re: Issue when converting HashMap(Java) into Object (ActionScript)

2008-09-08 Thread dmiramontesval
They keys in the Java map are Strings and the values are B objects,
you could say it is HashMapString, B.
So suppose in Java i do this:

A objectA = new A();
objectA.myMap = new HashMap();
B objectB1 = new B();
objectB1.id = 1;
objectB1.name = Test;
myMap.put(key1, objectB1);

In Flex if i iterate over the myMap property:

for each(var i:* in objectA.myMap) {
   if (i is B) {
 trace(i.id +   + i.name);
   }
}

Doing this resets the B object inside myMap, so the trace prints NaN
and empty string.

If i dont use an instance of B:

for each(var i:* in objectA.myMap) {
   if (!(i is A)) {
 trace(i.id +   + i.name);
   }
}

The trace prints 1 Test.

The main issue is that if i create an instance of B anywhere in my
code, the B object inside myMap resets.

The second issue is that inside the myMap property there are two
objects instead of just one, this additional object is a reference to
A and its key is owner, so the myMap property looks like:

var myMap:Object = {owner:the A object, key1: the B object};


I have no idea where this reference to the A object comes from, but i
can live with that, the main issue is that i can't use the B class
because if i do the B objects inside the map are reset.


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

 The problem I think is you're using the wrong data structures.
 
 If your Java map looks like this:
 
 HashMapint, String myMap;
 
 What you'll get in Flex isn't what you've got below, it's an object like
 this:
 
 var mymap : Object =
   {
 1: String 1,
 2: String 2,
 79: Blue
   }
 
 Not the structure that you're trying to coerce it to based on the
code you
 posted. But since this is clearly just example Flex code and I have no
 idea about what your Java looks like, I'm just guessing.
 
 -Josh
 
 On Tue, Sep 9, 2008 at 8:46 AM, dmiramontesval
 [EMAIL PROTECTED]wrote:
 
  I have this weird issue and i can't figure it out, let me explain:
 
  I have a java object A which has a HashMap variable myMap, this map
  will hold objects of class B. In ActionScript i have the corresponding
  class A which has a variable myMap but since there is no HashMap in
  ActionScript its type is Object and i also have the corresponding
class B.
 
  [RemoteClass(alias=com.test.A)]
  public class A {
   public var myMap:Object; // this is the HashMap in Java
  }
 
  [RemoteClass(alias=com.test.B)]
  public class B {
   public var id:Number;
   public var name:String;
  }
 
  I need to put the objects B contained in the map inside a DataGrid so
  i am obtaining the object of class A using a RemoteObject and then i
  iterate over the myMap property using a for each in loop, like this:
 
  for each(var i:* in objectA.myMap) {
  someArrayCollection.add(i);
  }
 
  The first issue appears here, suppose the java HashMap contains 3
  elements, in the ActionScript loop i get 4 elements, the fourth one
  being a reference to the A object (its key appears as owner). In
  order to avoid this i use the is operator like this:
 
  for each(var i:* in objectA.myMap) {
if (i is B) {
  someArrayCollection.add(i);
}
  }
 
  Now here is the real issue, when i do this the B objects contained in
  the myMap property are reset to their initial values (NaN and empty
  string according to the B class). I changed the if condition to this
  and worked:
 
  for each(var i:* in objectA.myMap) {
if (!(i is A)) {
 someArrayCollection.add(i);
}
  }
  When i did this the DataGrid shows the elements in the
  someArrayCollection perfectly fine. I did a little more testing and i
  figured out the issue, if i use an instance of class B anywhere in
  my application, the values of the B objects inside the myMap property
  are reset, for example:
 
  for each(var i:* in objectA.myMap) {
if (i is B) {
   someArrayCollection.add(i);
}
  }
  var test:B = new B();
 
  This resets the B objects inside the myMap property of the A object
  which makes no absolute sense, this is why when i used the B class in
  the if condition the objects reset their values.
 
  So the thing is whenever i use the B class, which is the class of the
  objects inside myMap, the B objects are reset Does anyone know how
  to fix this?
 
  I am using Flex 2.01 hotfix 3, i wonder if this is some kind of bug
  that was solved in a later release.
 
  Any help would be appreciated.
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
  Links
 
 
 
 
 
 
 -- 
 Therefore, send not to know For whom the bell tolls. It tolls for
thee.
 
 http://flex.joshmcdonald.info/
 
 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]





Re: [flexcoders] Re: Issue when converting HashMap(Java) into Object (ActionScript)

2008-09-08 Thread Josh McDonald
Right, I see. I suppose you may be doing something funky in the constructor
for your actual impl of A or B. Try commenting out the constructor and see
if you have the same problem.

-Josh

On Tue, Sep 9, 2008 at 9:17 AM, dmiramontesval
[EMAIL PROTECTED]wrote:

 They keys in the Java map are Strings and the values are B objects,
 you could say it is HashMapString, B.
 So suppose in Java i do this:

 A objectA = new A();
 objectA.myMap = new HashMap();
 B objectB1 = new B();
 objectB1.id = 1;
 objectB1.name = Test;
 myMap.put(key1, objectB1);

 In Flex if i iterate over the myMap property:

 for each(var i:* in objectA.myMap) {
   if (i is B) {
  trace(i.id +   + i.name);
   }
 }

 Doing this resets the B object inside myMap, so the trace prints NaN
 and empty string.

 If i dont use an instance of B:

 for each(var i:* in objectA.myMap) {
   if (!(i is A)) {
  trace(i.id +   + i.name);
   }
 }

 The trace prints 1 Test.

 The main issue is that if i create an instance of B anywhere in my
 code, the B object inside myMap resets.

 The second issue is that inside the myMap property there are two
 objects instead of just one, this additional object is a reference to
 A and its key is owner, so the myMap property looks like:

 var myMap:Object = {owner:the A object, key1: the B object};


 I have no idea where this reference to the A object comes from, but i
 can live with that, the main issue is that i can't use the B class
 because if i do the B objects inside the map are reset.


 --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote:
 
  The problem I think is you're using the wrong data structures.
 
  If your Java map looks like this:
 
  HashMapint, String myMap;
 
  What you'll get in Flex isn't what you've got below, it's an object like
  this:
 
  var mymap : Object =
{
  1: String 1,
  2: String 2,
  79: Blue
}
 
  Not the structure that you're trying to coerce it to based on the
 code you
  posted. But since this is clearly just example Flex code and I have no
  idea about what your Java looks like, I'm just guessing.
 
  -Josh
 
  On Tue, Sep 9, 2008 at 8:46 AM, dmiramontesval
  [EMAIL PROTECTED]wrote:
 
   I have this weird issue and i can't figure it out, let me explain:
  
   I have a java object A which has a HashMap variable myMap, this map
   will hold objects of class B. In ActionScript i have the corresponding
   class A which has a variable myMap but since there is no HashMap in
   ActionScript its type is Object and i also have the corresponding
 class B.
  
   [RemoteClass(alias=com.test.A)]
   public class A {
public var myMap:Object; // this is the HashMap in Java
   }
  
   [RemoteClass(alias=com.test.B)]
   public class B {
public var id:Number;
public var name:String;
   }
  
   I need to put the objects B contained in the map inside a DataGrid so
   i am obtaining the object of class A using a RemoteObject and then i
   iterate over the myMap property using a for each in loop, like this:
  
   for each(var i:* in objectA.myMap) {
   someArrayCollection.add(i);
   }
  
   The first issue appears here, suppose the java HashMap contains 3
   elements, in the ActionScript loop i get 4 elements, the fourth one
   being a reference to the A object (its key appears as owner). In
   order to avoid this i use the is operator like this:
  
   for each(var i:* in objectA.myMap) {
 if (i is B) {
   someArrayCollection.add(i);
 }
   }
  
   Now here is the real issue, when i do this the B objects contained in
   the myMap property are reset to their initial values (NaN and empty
   string according to the B class). I changed the if condition to this
   and worked:
  
   for each(var i:* in objectA.myMap) {
 if (!(i is A)) {
  someArrayCollection.add(i);
 }
   }
   When i did this the DataGrid shows the elements in the
   someArrayCollection perfectly fine. I did a little more testing and i
   figured out the issue, if i use an instance of class B anywhere in
   my application, the values of the B objects inside the myMap property
   are reset, for example:
  
   for each(var i:* in objectA.myMap) {
 if (i is B) {
someArrayCollection.add(i);
 }
   }
   var test:B = new B();
  
   This resets the B objects inside the myMap property of the A object
   which makes no absolute sense, this is why when i used the B class in
   the if condition the objects reset their values.
  
   So the thing is whenever i use the B class, which is the class of the
   objects inside myMap, the B objects are reset Does anyone know how
   to fix this?
  
   I am using Flex 2.01 hotfix 3, i wonder if this is some kind of bug
   that was solved in a later release.
  
   Any help would be appreciated.
  
  
   
  
   --
   Flexcoders Mailing List
   FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
   

[flexcoders] Streaming images

2008-09-08 Thread tloqueh
I'm tryng to make a desktop-share app with flex, java and red5, I
have a java program that captures the screen and saves it to a jpeg
file, but now, I'd like to stream a set of images captured by my java
program to a NetStream but... I don't know how to do it, 

How can I stream images to my server??



[flexcoders] Re: Changing Root Node attributes

2008-09-08 Thread Rafael Faria
That's the thing. I thought it would but it doesnt.

No idea why i can't change the root node of the xml.

Any other suggestion?!

raf


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

 Have you tried:
 
 [EMAIL PROTECTED] = 59;
 
 And it didn't work?
 
 -Josh
 
 On Mon, Sep 8, 2008 at 3:46 PM, Rafael Faria
 [EMAIL PROTECTED]wrote:
 
  Hello All,
 
  I need your help again.
 
  I make a call and get in return a XML. With this XML, i feed my tree's
  dataprovider. It is something like this:
 
  root sids=58
   module url=home label=Home sid=52/
   module url=grantees label=Grantees sid=53/
   module url=multimedia label=Multimedia sid=54/
   page label=Contact Us id=2 redirect=contact sid=55/
   page label=Privacy Policy id=7 redirect=privacy sid=56/
   page label=Apply for Grants id=5 redirect=apply sid=57/
  /root
 
  The thing is, at some point i need to get the sids from the root
  node (so far no problem, i'm using
  XML(tree.dataProvider).attribute('sids').toXMLString() and it works)
  but the catch is that i need to change it to 59 and i can't manage to
  change it no matter what.
 
  Any one could throw some ideas so i can solve my problem ? please? :P
 
  thanks
  Raf
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
  Links
 
 
 
 
 
 
 -- 
 Therefore, send not to know For whom the bell tolls. It tolls for
thee.
 
 http://flex.joshmcdonald.info/
 
 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]





Re: [flexcoders] Re: Changing Root Node attributes

2008-09-08 Thread Josh McDonald
Can you change other nodes? It could be something to do with the source of
your XML... Perhaps you can .copy() it first?

-Josh

On Tue, Sep 9, 2008 at 9:38 AM, Rafael Faria
[EMAIL PROTECTED]wrote:

 That's the thing. I thought it would but it doesnt.

 No idea why i can't change the root node of the xml.

 Any other suggestion?!

 raf


 --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote:
 
  Have you tried:
 
  [EMAIL PROTECTED] = 59;
 
  And it didn't work?
 
  -Josh
 
  On Mon, Sep 8, 2008 at 3:46 PM, Rafael Faria
  [EMAIL PROTECTED]wrote:
 
   Hello All,
  
   I need your help again.
  
   I make a call and get in return a XML. With this XML, i feed my tree's
   dataprovider. It is something like this:
  
   root sids=58
module url=home label=Home sid=52/
module url=grantees label=Grantees sid=53/
module url=multimedia label=Multimedia sid=54/
page label=Contact Us id=2 redirect=contact sid=55/
page label=Privacy Policy id=7 redirect=privacy sid=56/
page label=Apply for Grants id=5 redirect=apply sid=57/
   /root
  
   The thing is, at some point i need to get the sids from the root
   node (so far no problem, i'm using
   XML(tree.dataProvider).attribute('sids').toXMLString() and it works)
   but the catch is that i need to change it to 59 and i can't manage to
   change it no matter what.
  
   Any one could throw some ideas so i can solve my problem ? please? :P
  
   thanks
   Raf
  
  
  
   
  
   --
   Flexcoders Mailing List
   FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
   http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
   Links
  
  
  
  
 
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls for
 thee.
 
  http://flex.joshmcdonald.info/
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED]
 



 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






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

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Re: Issue when converting HashMap(Java) into Object (ActionScript)

2008-09-08 Thread dmiramontesval
Um actually my example is wrong, i was missing something, let me
explain again:

I have 3 classes as a matter of fact, classes A and B are correct but
i forgot to mention that inside B there is an object C:

[RemoteClass(alias=com.test.B)]
public class B {
public var id:Number;
public var name:String;
public var myC:C
}

[RemoteClass(alias=com.test.C)]
public class C {
public var testVar1:Number;
public var testVar2:String;
}


A objectA = new A();
objectA.myMap = new HashMap();
B objectB1 = new B();
C objectC1 = new C();
objectB1.id = 1;
objectB1.name = Test;
objectC1.testVar1 = 2;
objectC1.testVar2 = Hello;
objectB1.myC = objectC1;
myMap.put(key1, objectB1);


Now here is the deal, the only property being reset is the C object,
the id and name properties are not reset


for each(var i:* in objectA.myMap) {
   if (i is B) {
 trace(i.id +   + i.name);
 trace(i.myC.testVar1 +   + i.myC.testVar2);
   }
}

The first trace works fine, but the second trace shows NaN and empty
string.
If i change the code to:

for each(var i:* in objectA.myMap) {
   if (!(i is A)) {
 trace(i.id +   + i.name);
 trace(i.myC.testVar1 +   + i.myC.testVar2);
   }
}

Both traces work fine, prints 1 Test and 2 Hello.

Like you said i have some logic inside the B constructor:

public function B() {
   myC = new C();
}

I commented the constructor and instead of getting the values reset i
got an error saying i tried to access a null reference, since C is
null (if i don't use an instance of B then it works fine).

So i am kinda back where i started, when i use the B class the C
object inside each B object is reset.


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

 Right, I see. I suppose you may be doing something funky in the
constructor
 for your actual impl of A or B. Try commenting out the constructor
and see
 if you have the same problem.
 
 -Josh
 
 On Tue, Sep 9, 2008 at 9:17 AM, dmiramontesval
 [EMAIL PROTECTED]wrote:
 
  They keys in the Java map are Strings and the values are B objects,
  you could say it is HashMapString, B.
  So suppose in Java i do this:
 
  A objectA = new A();
  objectA.myMap = new HashMap();
  B objectB1 = new B();
  objectB1.id = 1;
  objectB1.name = Test;
  myMap.put(key1, objectB1);
 
  In Flex if i iterate over the myMap property:
 
  for each(var i:* in objectA.myMap) {
if (i is B) {
   trace(i.id +   + i.name);
}
  }
 
  Doing this resets the B object inside myMap, so the trace prints NaN
  and empty string.
 
  If i dont use an instance of B:
 
  for each(var i:* in objectA.myMap) {
if (!(i is A)) {
   trace(i.id +   + i.name);
}
  }
 
  The trace prints 1 Test.
 
  The main issue is that if i create an instance of B anywhere in my
  code, the B object inside myMap resets.
 
  The second issue is that inside the myMap property there are two
  objects instead of just one, this additional object is a reference to
  A and its key is owner, so the myMap property looks like:
 
  var myMap:Object = {owner:the A object, key1: the B object};
 
 
  I have no idea where this reference to the A object comes from, but i
  can live with that, the main issue is that i can't use the B class
  because if i do the B objects inside the map are reset.
 
 
  --- In flexcoders@yahoogroups.com, Josh McDonald dznuts@ wrote:
  
   The problem I think is you're using the wrong data structures.
  
   If your Java map looks like this:
  
   HashMapint, String myMap;
  
   What you'll get in Flex isn't what you've got below, it's an
object like
   this:
  
   var mymap : Object =
 {
   1: String 1,
   2: String 2,
   79: Blue
 }
  
   Not the structure that you're trying to coerce it to based on the
  code you
   posted. But since this is clearly just example Flex code and I
have no
   idea about what your Java looks like, I'm just guessing.
  
   -Josh
  
   On Tue, Sep 9, 2008 at 8:46 AM, dmiramontesval
   dmiramontesval@wrote:
  
I have this weird issue and i can't figure it out, let me explain:
   
I have a java object A which has a HashMap variable myMap,
this map
will hold objects of class B. In ActionScript i have the
corresponding
class A which has a variable myMap but since there is no
HashMap in
ActionScript its type is Object and i also have the corresponding
  class B.
   
[RemoteClass(alias=com.test.A)]
public class A {
 public var myMap:Object; // this is the HashMap in Java
}
   
[RemoteClass(alias=com.test.B)]
public class B {
 public var id:Number;
 public var name:String;
}
   
I need to put the objects B contained in the map inside a
DataGrid so
i am obtaining the object of class A using a RemoteObject and
then i
iterate over the myMap property using a for each in loop, like
this:
   
for each(var i:* in objectA.myMap) {
someArrayCollection.add(i);
}
   
The first issue appears here, suppose the java HashMap contains 3
elements, 

Re: [flexcoders] Re: Issue when converting HashMap(Java) into Object (ActionScript)

2008-09-08 Thread Josh McDonald
Sounds to me like you're accidentally declaring b.myC as a static, perhaps.

Actually, double check your examples (perhaps using the link report option
on MXMLC). It might be that you're not actually referencing B and it's not
becoming part of your SWF, in which case you're getting a best guess
object where you think you're getting an instance of B (you can't check for
is B without including it in your swf, but you can check for !(is A)
without including the B class.

In which case, it's the unmarshaller that's killing your data when trying to
convert it to a B (becuase now it knows to do it, once you've referenced the
class and it's in your SWF). Double check how you're defining C in your Flex
*and in your Java*.

Also, if it's the unmarshaller that's the problem, I'd definitely try a
compile against Flex 3.01 and see if the problem goes away. If you've got a
smallest-failiing case project for this bug it should only take you a few
minutes.

-Josh

On Tue, Sep 9, 2008 at 9:53 AM, dmiramontesval
[EMAIL PROTECTED]wrote:

 Um actually my example is wrong, i was missing something, let me
 explain again:

 I have 3 classes as a matter of fact, classes A and B are correct but
 i forgot to mention that inside B there is an object C:

 [RemoteClass(alias=com.test.B)]
 public class B {
 public var id:Number;
 public var name:String;
 public var myC:C
 }

 [RemoteClass(alias=com.test.C)]
 public class C {
 public var testVar1:Number;
 public var testVar2:String;
 }


 A objectA = new A();
 objectA.myMap = new HashMap();
 B objectB1 = new B();
 C objectC1 = new C();
 objectB1.id = 1;
 objectB1.name = Test;
 objectC1.testVar1 = 2;
 objectC1.testVar2 = Hello;
 objectB1.myC = objectC1;
 myMap.put(key1, objectB1);


 Now here is the deal, the only property being reset is the C object,
 the id and name properties are not reset


 for each(var i:* in objectA.myMap) {
   if (i is B) {
 trace(i.id +   + i.name);
  trace(i.myC.testVar1 +   + i.myC.testVar2);
   }
 }

 The first trace works fine, but the second trace shows NaN and empty
 string.
 If i change the code to:

 for each(var i:* in objectA.myMap) {
   if (!(i is A)) {
 trace(i.id +   + i.name);
  trace(i.myC.testVar1 +   + i.myC.testVar2);
   }
 }

 Both traces work fine, prints 1 Test and 2 Hello.

 Like you said i have some logic inside the B constructor:

 public function B() {
   myC = new C();
 }

 I commented the constructor and instead of getting the values reset i
 got an error saying i tried to access a null reference, since C is
 null (if i don't use an instance of B then it works fine).

 So i am kinda back where i started, when i use the B class the C
 object inside each B object is reset.


 --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote:
 
  Right, I see. I suppose you may be doing something funky in the
 constructor
  for your actual impl of A or B. Try commenting out the constructor
 and see
  if you have the same problem.
 
  -Josh
 
  On Tue, Sep 9, 2008 at 9:17 AM, dmiramontesval
  [EMAIL PROTECTED]wrote:
 
   They keys in the Java map are Strings and the values are B objects,
   you could say it is HashMapString, B.
   So suppose in Java i do this:
  
   A objectA = new A();
   objectA.myMap = new HashMap();
   B objectB1 = new B();
   objectB1.id = 1;
   objectB1.name = Test;
   myMap.put(key1, objectB1);
  
   In Flex if i iterate over the myMap property:
  
   for each(var i:* in objectA.myMap) {
 if (i is B) {
trace(i.id +   + i.name);
 }
   }
  
   Doing this resets the B object inside myMap, so the trace prints NaN
   and empty string.
  
   If i dont use an instance of B:
  
   for each(var i:* in objectA.myMap) {
 if (!(i is A)) {
trace(i.id +   + i.name);
 }
   }
  
   The trace prints 1 Test.
  
   The main issue is that if i create an instance of B anywhere in my
   code, the B object inside myMap resets.
  
   The second issue is that inside the myMap property there are two
   objects instead of just one, this additional object is a reference to
   A and its key is owner, so the myMap property looks like:
  
   var myMap:Object = {owner:the A object, key1: the B object};
  
  
   I have no idea where this reference to the A object comes from, but i
   can live with that, the main issue is that i can't use the B class
   because if i do the B objects inside the map are reset.
  
  
   --- In flexcoders@yahoogroups.com, Josh McDonald dznuts@ wrote:
   
The problem I think is you're using the wrong data structures.
   
If your Java map looks like this:
   
HashMapint, String myMap;
   
What you'll get in Flex isn't what you've got below, it's an
 object like
this:
   
var mymap : Object =
  {
1: String 1,
2: String 2,
79: Blue
  }
   
Not the structure that you're trying to coerce it to based on the
   code you
posted. But since this is clearly just example Flex code and I
 have no
idea about 

  1   2   >