Re: [flexcoders] ToolTip for each row in a DataGrid

2008-06-09 Thread Josh McDonald
Your renderer should be able to get column.dataTipField or
column.dataTipFunction and act accordingly - or you might be able to extend
some base columnRenderer rather than Canvas or whatever you're using now and
inherit the behaviour. Or, it might be implemented in the datagrid rendering
pipeline rather than in the default column renderer. A few quick tests
should let you know either way anyway I think.

-Josh

On Mon, Jun 9, 2008 at 3:26 PM, Manu Dhanda [EMAIL PROTECTED]
wrote:


 So, if you are using itemrenderer, then it won't work for that particular
 column??
 Unless you define each tooltip for those in the renderer itself?

 Or Is there anyway to handle the datatips for the columns(with renderer) at
 one place(as using the same function as for other columns).

 Thanks.


 j_lafferty wrote:
 
  Use dataTips for DataGrid rather than tooltip. You can determine what
  each dataTip displays for a particular row by specifying the
  dataTipField or dataTipFunction.
 
 
 
  
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
  Behalf Of Manu Dhanda
  Sent: Sunday, June 08, 2008 9:16 PM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] ToolTip for each row in a DataGrid
 
 
 
 
  Hii,
 
  How can I make a tooltip that will work for each row of datagrid??
  Right now, the tooltip is displaying the same data for each row, as I
  point
  to some row.
 
  So, it is picking the data from the very first row that I point and once
  I
  move to any other row, it displays the same data. And once I click on
  some
  row or anywhere, it disappears and doesn't show up when I 'll move my
  pointer to other rows.
 
  Here are the code lines:
 
  public function init():void
  {
  flatADG.addEventListener(ToolTipEvent.TOOL_TIP_SHOW, myToolTipChanger)
  }
 
  public function myToolTipChanger(event:ToolTipEvent):void {
  ToolTipManager.currentToolTip.text = Info:,  +
 
  mx.core.Application.application.tabPanel.recordsPanel.flatADG.selectedIt
  em.flatId;
  }
 
  mx:AdvancedDataGrid id=flatADG rowHeight=26
  dataProvider={ModelLocator.ALL_FLATS}
  change=trackSelectedItem(event) toolTip=  width=100%
  height=100%
 
  Any tips?? for this tooltip??
 
  Thanks,
  Manu.
 
  --
  View this message in context:
  http://www.nabble.com/ToolTip-for-each-row-in-a-DataGrid-tp17726100p1772
  6100.html
  http://www.nabble.com/ToolTip-for-each-row-in-a-DataGrid-tp17726100p177
  26100.html
  Sent from the FlexCoders mailing list archive at Nabble.com.
 
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/ToolTip-for-each-row-in-a-DataGrid-tp17726100p17726531.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

  




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

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


[flexcoders] Re: Itemrenderer combo's dataprovider from ModelLocator???

2008-06-09 Thread slash_n_rose
Thank you Daniel and Tim

My List's dataprovider is an arraycollection of value objects. So do I
need to add a field in the VO for the combo's dataprovider? 


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

 I believe in using MVC in whatever way feels right for the
application. A
 lot of times it's just easier to grab an instance of the model from
wherever
 you need it.
 
 That being said, whenever possible I try to follow the pattern of
top level
 display objects referencing the model and then handing data out to its
 children. In your case I might put a variable referencing the model
list in
 the objects contained in the dataProvider for the list and therefore
have
 access to them in the data property of the itemRenderer as Tim mentioned
 above.




[flexcoders] Deep Zoom (Silverlght) in Flex??

2008-06-09 Thread slash_n_rose
Hi All

Is there any flex component like a Silverlight Deep Zoom?

Regards
Jerry



Re: [flexcoders] Deep Zoom (Silverlght) in Flex??

2008-06-09 Thread Josh McDonald
It's not the client-size zoom that contains the pixie dust, it's the badass
streaming image server required to support it.

On Mon, Jun 9, 2008 at 4:50 PM, slash_n_rose [EMAIL PROTECTED] wrote:

   Hi All

 Is there any flex component like a Silverlight Deep Zoom?

 Regards
 Jerry

  




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

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


[flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-09 Thread b_alen
Rob, this is exactly how I plan to use it. Can you explain Parallels
and partitions a bit. If I run both OS's in tandem, how do they share
RAM and CPU resources? How did you set that up? 

One big show stopper for me is how Mac handles windows resizing, i.e.
no full screen mode. Is there a plugin or something that can be used
to get around that? I know the Mac fanatics say you don't really need
that and it's better with no full screen, but not for me. I want to
have that option and I if I want to have more windows visible I can
still choose to do so.

Thanks



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

 For years I said that I couldn't/wouldn't switch to a Mac because I
always
 need to do Windows specific tasks. But, with the Intel-based MacBook
Pro and
 Parallels, I have install Windows XP SP3 on a separate partition and
can run
 the two OS in tandem.
 
 So I've been on a Mac for a little over a year now. I love the form
factor
 of the machine; light and small. It is very powerful. I can test
alpha/beta
 software on Windows and Mac. I can do .NET development on Windows. I do
 Flex/AIR development on both platforms.
 
 I'd say that I'm fat and happy, but I only weigh a buck forty. But
I'm am
 happy!
 
 The down side, Macs are a little pricey.
 
 Regards,
 Rob
 
 On Thu, Jun 5, 2008 at 4:20 PM, Josh McDonald [EMAIL PROTECTED] wrote:
 
Anecdote of the minute: I'm fine on my bigass iMac, but there's
2 or 3
  vista laptops in the office, and soapUI seems to have some Vista
  incompatibilities. Could be the fact we're using 2.0.3 which AFAIK
is still
  unreleased, but it could be Vista too :)
 
  On Fri, Jun 6, 2008 at 4:54 AM, Nancy Gill [EMAIL PROTECTED] wrote:
 
 Microsoft is already on record as pushing Windows 7 out the
door as
  soon as possible (probably late 2009) due to the Vista debacle ..
remember
  Windows ME?   :)
 
  Nancy
 
 
  - Original Message -
   *From:* Joseph Balderson [EMAIL PROTECTED]
  *To:* flexcoders@yahoogroups.com
  *Sent:* Thursday, June 05, 2008 11:20 AM
  *Subject:* Re: [flexcoders] Re: Thinking about going to the dark
  sideApple Mac Book
 
   I'm not trying to be glib, but don't use Vista. Use XP SP3.
 
  
 
  Joseph Balderson | http://joeflash.ca | 705-466-6345
 
  b_alen wrote:
   Interesting. Me and my colleagues are also thinking of switching to
   Mac due to Vista crappiness. In fact we're 80% sure that next
laptops
   will be Macs. My only concern is how to do .Net development and
   integration with Flex then. Anyone has a solution to that?
  
  
  
  
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  scottyale2008 scottyale2008@
   wrote:
   How many Flex developers here are using a Mac for development?
I've
   been a die hard Microsoft guy since ... well, since Microsoft
first
   started. I went from CPM on a Morrow Meadows to Microsoft DOS (on
   computers with a Turbo button!), then Windows, now Vista. I do
have an
   iPhone and it is an incredible device and the GUI is extremely
well
   done. I've never used a Mac, but many of my friends have taken the
   plunge. Is it time to make the switch? I'm thinking about a
Mac Book
   Pro. Is a Mac Book even worth considering for a Flex dev
machine or is
   a Mac Book Pro the way to go? Anybody else make the switch
recently
   from Windows to Mac?
  
  
  
  
   
  
   --
   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
  
  
  
  
 
 
  __ Information from ESET NOD32 Antivirus, version of virus
  signature database 3162 (20080605) __
 
  The message was checked by ESET NOD32 Antivirus.
 
  http://www.eset.com
 
 
 
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls for
thee.
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED]
  
 
 
 
 
 -- 
 -- 
 Regards,
 Rob Rusher
 
 Adobe Certified AIR, Connect, ColdFusion MX and Flex Instructor
 m: 303-885-7044
 im: robrusher





[flexcoders] Re: Possible to add some data to load to the default preloader?

2008-06-09 Thread b_alen
Can't do that, data is coming from aspx. In fact the only way this
could work is to add info* to swf which data has to be loaded with the
swf itself. Then the Flash Player would read that, calculate the size
of data and add it to the preloader of the main swf. Once the whole
bunsh is downloaded, data would be there in the native format on the
root of the app. Am I dreaming?


* How to add this info is the question. It can't be through AS that's
for sure, because AS is not running until the app is loaded. Write in
the header of the swf? Write in the HTML embed directives?


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

 Put the data in an RSL?
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of b_alen
 Sent: Thursday, June 05, 2008 3:23 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Possible to add some data to load to the default
 preloader?
 
  
 
 I always have some stuff to load before the app can be used. Is it
 possible to stick that loading into the default preloader? So the swf
 would know that it has to load other files also before it dispatches
 the event that it's fully loaded. Maybe some compiler directives, I
 don't know.
 
 Thanks





[flexcoders] Re: FileReference / upload problem in Mozilla Firefox

2008-06-09 Thread b_alen
It seems there's no way to pass the sessionID back to .NET. I tried
couple of things and it didn't work out. What I did though is I
bypassed the user authentication in upload.aspx with session. Instead
I check the userid on upload.aspx by passing it as the get var.






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

 That's nasty!
 
 Any idea how I should name the session ID for it to be picked up by
.NET?
 
 
 
 
 --- In flexcoders@yahoogroups.com, Marcelo Savioli
 marcelo.savioli@ wrote:
 
  Its a session issue.
  
  This might help: http://thanksmister.com/?p=59
  
  On Tue, May 27, 2008 at 9:02 AM, b_alen alen.balja@ wrote:
  
 The title says it all.The Flex app does not want to upload files
 from
   Mozilla using FileReference. It works on IE, but not on Firefox.
I was
   doing the Googling and found only the same questions but not
answers.
   I use Firefox 2.0.0.14 and FlexBuilder 3.
  
   Thanks
  

  
  
  
  
  -- 
  Marcelo Curi Savioli
  D-Click Web  Mobile Solutions
  marcelo.savioli@
  www.dclick.com.br/blog
  www.dclick.com.br
 





[flexcoders] Re: Deep Zoom (Silverlght) in Flex??

2008-06-09 Thread Cato Paus
http://theflashblog.com/?p=351 


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

 Hi All
 
 Is there any flex component like a Silverlight Deep Zoom?
 
 Regards
 Jerry





[flexcoders] Re: Flex Unload SWFLoader issues

2008-06-09 Thread benreed83
Ooops forgot to include the code sorry! See below doesnt soudn too
encouraging tho, seems like a little bit of an omission on Adobes part?

?xml version=1.0 encoding=utf-8?
mx:Application 
xmlns:mx=http://www.adobe.com/2006/mxml;
horizontalAlign=center verticalAlign=center 
height=100% 
width=100% 
layout=absolute
creationComplete=init()

mx:Script
![CDATA[

//import the necessary youtube API classes
import ca.newcommerce.youtube.data.*;
import ca.newcommerce.youtube.events.*;
import ca.newcommerce.youtube.feeds.*;
import ca.newcommerce.youtube.iterators.*;
import ca.newcommerce.youtube.webservice.YouTubeClient;

import mx.collections.ArrayCollection;

public var videoArray:Array;

//declare your variables
[Bindable]
public var webservice:YouTubeClient;
[Bindable]
public var feed:VideoFeed;
[Bindable]
public var video:VideoData;

public var myVideoArray:Array = new Array();

[Bindable]
public var dgData:ArrayCollection;



//functions to go here
private function init():void{

webservice = YouTubeClient.getInstance();


webservice.addEventListener(VideoFeedEvent.USER_FAVORITES_DATA_RECEIVED,
doStuff);


webservice.getUserFavorites(RuralGateway,null,null,1,10);
}

private function doStuff(evt:VideoFeedEvent):void{
//store the feed
feed = evt.feed;

while(video = feed.next()){
myVideoArray.push({Title:video.title,

Duration:video.duration,

URL:video.swfUrl});
}

dgData = new ArrayCollection(myVideoArray);

dg.dataProvider = dgData;
}

private function changeSWF():void {
myLoader.source = dg.selectedItem.URL;
}
 
]]
/mx:Script

mx:DataGrid width=100% id=dg change=changeSWF()

/mx:DataGrid

mx:Label text={dg.selectedItem.URL} x=300 y=200/

mx:SWFLoader id=myLoader
x=200
y=160
width=200
height=150
/
 

/mx:Application


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

 I don't see any code, but in general, if the SWF you loaded does not
 clean up after itself, there's no way to force it to unload.  You'll
 need to find a way to stop the video and audio before loading something
 else.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Ben Reed
 Sent: Friday, June 06, 2008 11:31 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex Unload SWFLoader issues
 
  
 
 Hi guys,
 
 I have just today signed up with this mailing list after stumbling
 across an issue I cannot resolve! Seems to be a flaw with the SWFLoader
 in Flex 3. Basically my problem is this, I have to create a youtube
 player for a client and am using the wrapper classes from martin legris
 to aid me. All is working ok, I have a datagrid being populated by an
 array, and when a video is selected, the SWFLoader loads it into place
 as it should. The problem comes when selecting another video from the
 list, several things happen (or dont!), the loaded Youtube player
 disappears as if another one will be loaded into its place (the desired
 effect) but nothing is loaded, also the sound from the original swf is
 still audible.
 
 Any suggestions or modifications to the code below would be most
 welcome. I have read that possibly using Loader as oppose to SWFLoader
 could be the way to go, or maybe Module Loader? I am ver new to flex but
 not to actionscript and I seem to recall a similar problem once before
 but I am damned if I can remember how (or if) i resolved it.
 
 Anyway, I hope this hasn't been answered ages ago and if it has please
 accept my apologies. I hope I can be of some use to some of you in
 future postings! 
 
 Cheers
 

Re: [flexcoders] know if .browse() was executed or not

2008-06-09 Thread David Pariente
hi, thnx for ur answer.

I think that is a good idea to do.
The only problem is that if user selects a file several times in the same 
file_select button, it would keep getting files inside that array, even i just 
need the last one that he chooses.

thnx


- Mensaje original 
De: Jon Bradley [EMAIL PROTECTED]
Para: flexcoders@yahoogroups.com
Enviado: viernes, 6 de junio, 2008 14:18:19
Asunto: Re: [flexcoders] know if .browse() was executed or not




On Jun 6, 2008, at 4:26 AM, David Pariente wrote:

The point is that, IN ANOTHER POINT OF THE CODE, i wanna send the files.
the on_select is not useful for me. i will not send anything on_select, just 
put a pair of lines of code there.


My opinion is that you are thinking about this too much. You do not need to 
have a boolean to determine if a file was selected.

What you need is an array that you populate with the filled FileReference 
instances in the Event.SELECTED event handler. When the user clicks SEND on 
your application, you loop over your array of stored FileReference instances 
and upload each of them.

So in the onSelect function for Event.SELECTED, just push the FileReference 
into the array. Event.SELECTED shouldn't get broadcast unless a file is 
actually selected anyway.

Whether or not your FileReference elements are stored in different views 
doesn't matter - just so long as your array is accessible by all of them so the 
FileReference instance can be added.

private var fileList:Array = new Array();
private function onSelectFile( event:Event) :void
{
var file:FileReference = FileReference( event.target) ;
  fileList.push( file);
}


jon


  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

[flexcoders] Single and Double Quotes and Tokens and SQLite

2008-06-09 Thread Dustin
Does anyone have any suggestions on how to insert data into a SQLite
DB in AIR if the data being inserted or updated contains single or
double quotes using a token based update string like this:

UPDATE SITE SET name='{0}',description='{1}', url='{2}'

If I use a statement helper to create my update statement like this:

public static function create(statement:String, ...args) : String
{
 return StringUtil.substitute(statement, args);
}

and a single quote is in the description (for example) the update
statement fails. If I change the above UPDATE statement to look like this:

UPDATE SITE SET name={0},description={1}, url={2}

I can use single quotes in my arguments but I can't use double quotes
in my arguments. Any advice?



Re: [flexcoders] know if .browse() was executed or not

2008-06-09 Thread David Pariente
I tryed that before and thought it would work, but it crashes.

Seems there is a name property, but if file not browsed, it crashes when 
accessing it :(


- Mensaje original 
De: Alberto Brealey-Guzmán [EMAIL PROTECTED]
Para: flexcoders@yahoogroups.com
Enviado: viernes, 6 de junio, 2008 22:28:53
Asunto: Re: [flexcoders] know if .browse() was executed or not


On Fri, Jun 6, 2008 at 2:26 AM, David Pariente xxmapachexx@ yahoo.es wrote:
 i tried this, but crashes when file is not selected:

 if (myFileReference. name.length 0) { myFileReference. upload() }

It raises a runtime error because if you haven't selected a file
fileReference. name is null. you should check for this condition:

if (myFileReference. name  myFileReference. name.length  0)
myFileReference. upload();

hope this helps,

-- 
Alberto Brealey-Guzmá n



  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

[flexcoders] Does IE have some problem?

2008-06-09 Thread Manu Dhanda

Hii guyz,

I am just experimenting with some stuff as in here:
http://flats.e-zone.co.in/
It is working very nicely in Firefox whereas if I 'll do couple of clicks
frequently in IE, it keeps on jumping from one screen to another.(Play with
clicking tabs and accordion).
Am using IE version 7.0.5730.11
Also, in IE, it keeps on making tik-tik sounds(maybe thats just the browser
configuration on my side).

Any tips for this IE jumpings?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Does-IE-have-some-problem--tp17728937p17728937.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Bitmap.draw

2008-06-09 Thread reflexactions
If I draw the contents of a target DisplayObjectContainer into a Bitmap 
is the rendered image affected by the alpha state of any parent 
container of the target.

i.e. the targets alpha may be 1 but say somewhere above it a parent 
container has its alpha set to .5 does the bitmap image look like the 
target with an alpha of 1 or .5?

tks






RE: [flexcoders] Making Y-Axis Invisible on LineChart

2008-06-09 Thread Sunil Bannur
The default behavior of charts is that, if no axis renderers are specified, it 
draws its own, If you feel that an axis need not be drawn if nothing is 
specified, can you pls. file an enhancement at bugs.adobe.com/flex and vote for 
it.

Thanks
-Sunil

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard 
Rodseth
Sent: Monday, June 09, 2008 2:35 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Making Y-Axis Invisible on LineChart


You can use the visible property on AxisRenderer

mx:verticalAxisRenderers

mx:AxisRenderer placement=right axis={myAxis}
visible={showAxis} includeInLayout={showAxis}/
/mx:verticalAxisRenderers

Unfortunately, includeInLayout doesn't seem to work here. The
invisible axis still talkes up space.

On Sun, Jun 8, 2008 at 1:28 PM, kenny14390 [EMAIL 
PROTECTED]mailto:kenny14390%40yahoo.com wrote:
 I've got a graph and I'd like to remove the y-axis. I still want to
 see the actual line graph, but just not the y-axis.



inline: ~WRD000.jpginline: image001.jpginline: image002.jpg

Re: [flexcoders] Single and Double Quotes and Tokens and SQLite

2008-06-09 Thread Tom Chiverton
On Monday 09 Jun 2008, Dustin wrote:
 If I use a statement helper to create my update statement like this:

Umm, AIR supports bind parameters natively, doesn't it ?

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: Bitmap.draw

2008-06-09 Thread b_alen
No, it shouldn't be affected. You can draw the nested object and its
owners will not affect how it looks. 




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

 If I draw the contents of a target DisplayObjectContainer into a Bitmap 
 is the rendered image affected by the alpha state of any parent 
 container of the target.
 
 i.e. the targets alpha may be 1 but say somewhere above it a parent 
 container has its alpha set to .5 does the bitmap image look like the 
 target with an alpha of 1 or .5?
 
 tks





Re: [flexcoders] know if .browse() was executed or not

2008-06-09 Thread Jon Bradley

On Jun 9, 2008, at 4:40 AM, David Pariente wrote:

 The only problem is that if user selects a file several times in  
 the same file_select button, it would keep getting files inside  
 that array, even i just need the last one that he chooses.

Not if you make sure the file doesn't already exist in the array.

This is where you'd use the .name property to check to see if it's  
already in the array - if so, skip it or throw up an Alert dialog or  
something. Otherwise, push it into the array.

- jb


Re: [flexcoders] know if .browse() was executed or not (solved!)

2008-06-09 Thread David Pariente
Hi, thnx everyone for the help.

I finally did an array, with one element per file. on select, i wrote the name 
of the file on it's element in the array.

Later i just check if the element of the array is empty or has a name inside :)

pretty close to the array.push version of the solution, but this way i can 
control more each of the file uploads.

Thnx!



- Mensaje original 
De: David Pariente [EMAIL PROTECTED]
Para: flexcoders@yahoogroups.com
Enviado: lunes, 9 de junio, 2008 10:56:07
Asunto: Re: [flexcoders] know if .browse() was executed or not


I tryed that before and thought it would work, but it crashes.

Seems there is a name property, but if file not browsed, it crashes when 
accessing it :(


- Mensaje original 
De: Alberto Brealey-Guzmá n alberto.brealey@ gmail.com
Para: [EMAIL PROTECTED] ups.com
Enviado: viernes, 6 de junio, 2008 22:28:53
Asunto: Re: [flexcoders] know if .browse() was executed or not


On Fri, Jun 6, 2008 at 2:26 AM, David Pariente xxmapachexx@ yahoo.es wrote:
 i tried this, but crashes when file is not selected:

 if (myFileReference. name.length 0) { myFileReference. upload() }

It raises a runtime error because if you haven't selected a file
fileReference. name is null. you should check for this condition:

if (myFileReference. name  myFileReference. name.length  0)
myFileReference. upload();

hope this helps,

-- 
Alberto Brealey-Guzmá n



Enviado desde Correo Yahoo!
La bandeja de entrada más inteligente.
 


  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

Re: [flexcoders] know if .browse() was executed or not

2008-06-09 Thread David Pariente
thnx, i did like that...
well, i just made the array with 2 elements, 0, and 1, for the 2 files i use. 
and the i just overwrite them with the name. Same as u adviced but without the 
push.

Its just a pity than cant access the name property of a fileReference object, 
returnin  if not browsed :P

thnx a lot to all for the help


- Mensaje original 
De: Jon Bradley [EMAIL PROTECTED]
Para: flexcoders@yahoogroups.com
Enviado: lunes, 9 de junio, 2008 13:19:31
Asunto: Re: [flexcoders] know if .browse() was executed or not



On Jun 9, 2008, at 4:40 AM, David Pariente wrote:

 The only problem is that if user selects a file several times in 
 the same file_select button, it would keep getting files inside 
 that array, even i just need the last one that he chooses.

Not if you make sure the file doesn't already exist in the array.

This is where you'd use the .name property to check to see if it's 
already in the array - if so, skip it or throw up an Alert dialog or 
something. Otherwise, push it into the array.

- jb



  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

[flexcoders] Cannot access a property or method of a null object reference?

2008-06-09 Thread xaero
Hi
I'my working whit flex and amfphp.
In my exercise, the flex debug say this error:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
 at cys/changeHandler()[D:\My
Documents\FlexBuilder3\cys\src\cys.mxml:51]
 at cys/__atclass_close()[D:\My
Documents\FlexBuilder3\cys\src\cys.mxml:70]

line around 51:

public function changeHandler(event:Event):void
 {
 var atClass:Object = new Object;
 atClass.atcls =
ComboBox(event.target).selectedItem.data;

 gateway.call(Cys.getStudents, new Responder(getResult,
onFault), atClass); // this is line 51
 }

getResult is another function that give the result to ComboBox's
dataProvider:
public function getResult(result:Array):void
 {
 ssProvider = result;
 }

onFault:
public function onFault(fault:String ):void
 {
 trace(fault);
 }

line 70:
mx:ComboBox y=202 id=atclass close=changeHandler(event);
dataProvider={atClassProvider} fontSize=12 x=40/mx:ComboBox
this comboBox can display properly.

Cys is a Class, it is under amfphp/services  and its file code:
?php
Define('DATABASE_SERVER', 'localhost');
Define('DATABASE_USERNAME', 'root');
Define('DATABASE_PASSWORD', '123456');
Define('DATABASE_NAME', 'cys');

class Cys
{
 var $mysqli;

 function Cys()
 {
 # Connect to MySQL database
 $this-mysqli = new mysqli(DATABASE_SERVER, DATABASE_USERNAME,
DATABASE_PASSWORD, DATABASE_NAME);
 # Check MySQL connection
 if (mysqli_connect_errno()) {
 # Dont use die (Fatal Error), return useful info to the
client
 trigger_error(AMFPHP Remoting class could not connect:  .
mysqli_connect_error());
 }
 }
 function getStudents($atClass) {
 # Return a list of all the users
 $atcls =
$this-mysqli-real_escape_string(trim($atClass['atcls']));
 $sql = SELECT * from students where atclass = '.$atcls.';
 if ([EMAIL PROTECTED]mysqli-query($sql)) {
 $errno=$this-mysqli-errno;
 $this-mysqli-close();
 trigger_error(AMFPHP Remoting class database SELECT query
error:  . $errno);
 }
 while ($row = $result-fetch_assoc()) {
 $user_array[] = $row;
 }
 return($user_array);
 }
}
?



[flexcoders] Re: How to populate a ComboBox?

2008-06-09 Thread xaero
in the amfphp Services Broswer, I can get the result:
http://farm4.static.flickr.com/3081/2564060018_97befed34f_o.gif

But how to populate the ComboBox? Please give me some help
Thank you in advanced!



[flexcoders] Re: Flex Css Html Css

2008-06-09 Thread xaero
And then How can I set the page's background like in the HTML Css?
That is: 
background-repeat: repeat-x;
background-PositionX: left;
background-PositionY: bottom;

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

 No, you can't do this.
 
 Flex CSS is not 'real' css and does not conform to WC3.
 
 Mike
 




[flexcoders] Re: How to populate a ComboBox?

2008-06-09 Thread xaero
Sherif Abdou:

Thank you very much for your timely answer!
I'm a beginner, it is my first practice.
I get confused.I will tell you what I want to do.

There are 4 classes (class 1, class 2, class 3 and class 4) in my
example,  and there are about 50 students in each class.
I want to display the students' name in the ComboBox when I select a
class:
http://farm4.static.flickr.com/3181/2563857208_648f54fab6_o.gif
a href=http://www.flickr.com/photos/xybeta/2563857208/;
title=combobox by xaero, on Flickrimg
src=http://farm4.static.flickr.com/3181/2563857208_648f54fab6_o.gif;
width=307 height=204 alt=combobox //a

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

 import flash.net.Responder;
 import mx.controls.Alert;

 public var gateway:NetConnection;

 //The first ComboBox's dataProvider that display the
classes' name
 [Bindable]
 public var atClassProvider:Array = new Array(
 {label:Please Choose Your Class, data:},
 {label:Class 1,data:1},
 {label:Class 2,data:2},
 {label:Class 3,data:3},
 {label:Class 4,data:4});

 //The second ComboBox's dataProvider that display the
students' name
 [Bindable]
 public var ssProvider:Array;

 public function onInit():void
 {
 gateway = new NetConnection();

gateway.connect(../php_ria_sdk_by_adobe/libraries/amfphp/gateway.php);
 }
 private function changeHandler(event:Event):void
 {
 var atClass:Object = new Object();
 atClass.atcls =
ComboBox(event.target).selectedItem.data;
 //Alert.show(atClass[atcls],ALERT);
 gateway.call(Cys.getStudents, new Responder(getResult,
onFault),atClass);
 }
 public function getResult(result:Array):void
 {
 ssProvider = result;
 }
 public function onFault(fault:String ):void
 {
 //errorMsg = fault;
 trace(fault);
 }
 ]]
 /mx:Script
 mx:ComboBox x=83 y=96 id=atclass
change=changeHandler(event);
dataProvider={atClassProvider}/mx:ComboBox
 mx:ComboBox x=83 y=160 id=ssname
dataProvider={ssProvider}/mx:ComboBox

/mx:Application

The Cys.php under amfphp/services:
?php
Define('DATABASE_SERVER', 'localhost');
Define('DATABASE_USERNAME', 'root');
Define('DATABASE_PASSWORD', '123456');
Define('DATABASE_NAME', 'cys');

class Cys
{
 var $mysqli;

 function Cys()
 {
 # Connect to MySQL database
 $this-mysqli = new mysqli(DATABASE_SERVER, DATABASE_USERNAME,
DATABASE_PASSWORD, DATABASE_NAME);
 # Check MySQL connection
 if (mysqli_connect_errno()) {
 # Dont use die (Fatal Error), return useful info to the
client
 trigger_error(AMFPHP Remoting class could not connect:  .
mysqli_connect_error());
 }
 }
 function getStudents($atClass) {
 # Return a list of all the students

$atcls=$this-mysqli-real_escape_string(trim($atClass['atcls']));
 $sql = SELECT * from students where atclass = '.$atcls.';
 if ([EMAIL PROTECTED]mysqli-query($sql)) {
 $errno=$this-mysqli-errno;
 $this-mysqli-close();
 trigger_error(AMFPHP Remoting class database SELECT query
error:  . $errno);
 }
 while ($row = $result-fetch_assoc()) {
 $user_array[] = $row;
 }
 return($user_array);
 }
}
?

The sample above can't work properly.
I think, it because the returned array $user_array can't be populated
into the ComboBox properly... Am I right?
How to correct it?
Thank you for taking so much time in my problems!

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

 well i do not know how advanced you are but i am assuming you did not
do this, put a result handler then
 private function popCombo(event:ResultEvent):void
 {
 var arrayCollection:ArrayCollection = event.result.whatever you
need to get todwn then
 myComboBox.dataProvider = arrayCollection;
 }





[flexcoders] Duplicating classes from the Flex framework / DateChooser customization

2008-06-09 Thread Fiouz
Hi,

What is the appropriate approach to compile the Flex (3) ActionScript sources?
Actually, my original problem is the following: I need to emphasize
specific days in a DateChooser control.

Alas, as of Flex 3.0.0, the DateChooser control does not offer this
functionality. Furthermore, the DateChooser control makes usage of
unsupported API/support classes such as mx.controls.CalendarLayout
through the use of private members/mx_internal namespace.
Consequently, I can hardly make use of these classes (since they don't
apply for the OOP open/closed principle) and I need another way to
achieve my goal.
As a workaround, I found that I could create alternate implementations
of the DateChooser/CalendarLayout classes, mainly by copying the
existing ones and modifying the appropriate methods. Then I started to
rename DateChooser/CalendarLayout to MyDateChooser/MyCalendarLayout
and replacing names (s/DateChooser/MyDateChooser/ 
s/CalendarLayout/MyCalendarLayout/) ; I even copied the entire
frameworks\projects\framework\src directory (from the Flex 3 SDK) to
my build path. The problem with this approach is that my
implementation seems somehow incomplete and is missing some graphical
data (invisible buttons, wrong colors, wrong size) when added to the
project.

Any hint on how I could gain correct graphics from my implementation?
Or is there a better way to achieve my DateChooser customization?

Thanks,
Regards

-- 
Fiouz


Re: [flexcoders] How do I bind a Remore Object ArrayColletion item to some popUpWindow form items?

2008-06-09 Thread rreyes

I am using BlazeDS. The thing is that I am loading the array in the main mxml
(I show the array in a grid) but I am editing the item in a PopUp Window
Form. Think this as a master-detail (grid-popUp Window form) app. Still,
when you edit the item using the PopUpWindow Form, nothing happens in the
original array (or at least, no change appears in the grid).

The PopUpWindow variable which holds the item is marked [Bindable]. Any
ideas?


Sherif Abdou wrote:
 
 Are you using LiveCycle? because i do not think that it matters if you
 update in the remote, you would need to resend it again. 
 
 
 - Original Message 
 From: rreyes [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Sunday, June 8, 2008 1:59:47 PM
 Subject: [flexcoders] How do I bind a Remore Object ArrayColletion item to
 some popUpWindow form items?
 
 
 
 I am having problems binding an item from a Remote Object ArrayCollection
 to
 some form items in a PopUpWindow. The Remote Object makeObjectsBindabl e
 property is set to true and the PopUp Window object has a variable which
 holds the item that is also marked [bindable]. The information from the
 item
 is being shown in the form items, but when I make changes, nothing happens
 to the object in the ArrayCollection.
 
 Thanx in advance for any fresh ideas to try... 
 -- 
 View this message in context: http://www.nabble. com/How-do- I-bind-a-
 Remore-Object- ArrayColletion- item-to-some- popUpWindow- form-items-
 -tp17710892p1771 0892.html
 Sent from the FlexCoders mailing list archive at Nabble.com.
 
 
 
 
   
 

-- 
View this message in context: 
http://www.nabble.com/How-do-I-bind-a-Remore-Object-ArrayColletion-item-to-some-popUpWindow-form-items--tp17710892p17732273.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: Deep Zoom (Silverlght) in Flex??

2008-06-09 Thread slash_n_rose
Thanks

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

 It's not the client-size zoom that contains the pixie dust, it's the
badass
 streaming image server required to support it.
 




Re: [flexcoders] Re: Flex Css Html Css

2008-06-09 Thread Michael Schmalle
Hi,

Well.. you can't really unless you create a custom skin. There are some open
source stuff out there that allows you to use a background repeat algorithm.

There is no background position styles either.

So really, what you want to do cannot be done with Flex3 css.

Mike

On Mon, Jun 9, 2008 at 1:27 AM, xaero [EMAIL PROTECTED] wrote:

   And then How can I set the page's background like in the HTML Css?
 That is:
 background-repeat: repeat-x;
 background-PositionX: left;
 background-PositionY: bottom;

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael
 Schmalle

 [EMAIL PROTECTED] wrote:
 
  No, you can't do this.
 
  Flex CSS is not 'real' css and does not conform to WC3.
 
  Mike
 

  




-- 
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: How should we access our Flex apps from the browser?

2008-06-09 Thread Dan
That is correct.

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

 So, if you provide a url where the file is an .mxml file to the
browser, it 
 runs your application - you don't see the source file?
 
 Paul
 - Original Message - 
 From: Dan [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Friday, June 06, 2008 5:33 PM
 Subject: [flexcoders] Re: How should we access our Flex apps from the 
 browser?
 
 
  Nope, Flex 3.
 
  --- In flexcoders@yahoogroups.com, Paul Andrews paul@ wrote:
 
  It's not Flex 1.5 is it?
 
  Paul
  - Original Message - 
  From: Dan dan.dandrea@
  To: flexcoders@yahoogroups.com
  Sent: Friday, June 06, 2008 3:39 PM
  Subject: [flexcoders] Re: How should we access our Flex apps from the
  browser?
 
 
   Paul,
  
   Thanks for your reply.
  
   When I access the .mxml file through my browser, it doesn't
serve up
   the source.  Instead, it serves up a functioning Flex application.
  
   Per your advice however, I'll focus on accessing the
application via
   it's HTML wrapper.
  
   --Dan
  
   --- In flexcoders@yahoogroups.com, Paul Andrews paul@ wrote:
  
   The swf file is what is run by the flash player plugin, it's not
   usual to
   run this directly in the browser.
   The mxm file is the source used within your application - it
won't be
   usefull to look at this in a browser.
   The html file checks the users environment for the flash
player and
   calls
   your .swf file.
  
   html is the way to go.
  
   Paul
   - Original Message - 
   From: Dan dan.dandrea@
   To: flexcoders@yahoogroups.com
   Sent: Friday, June 06, 2008 3:01 PM
   Subject: [flexcoders] How should we access our Flex apps from the
   browser?
  
  
Hello,
   
It's not clear to me how we should access our Flex apps from the
browser.  It appears that accessing them using .swf, .mxml and
  .html
all work but each with slightly different effects.
   
For example, I can access a Flex application helloWorld
using the
following URLs.  They all work (to varying degrees) but which
  one am I
actually supposed to use?
   
http://localhost/helloWorld.swf
http://localhost/helloWorld.mxml
http://localhost/helloWorld.html
   
--Dan
   
   

   
--
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
   
   
   
   
  
  
  
  
   
  
   --
   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
  
  
  
  
 
 
 
 
  
 
  --
  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] Cannot access a property or method of a null object reference?

2008-06-09 Thread Michael Schmalle
Hi,

From the look if it

;ComboBox(event.target).selectedItem

seems to be where the null pointer is. Make sure you actually have a
selectedItem in the list.

I have actually done this myself when testing and actually forgot to
'select' an item before a service call.

Mike

On Mon, Jun 9, 2008 at 6:52 AM, xaero [EMAIL PROTECTED] wrote:

   Hi
 I'my working whit flex and amfphp.
 In my exercise, the flex debug say this error:

 TypeError: Error #1009: Cannot access a property or method of a null object
 reference.
 at cys/changeHandler()[D:\My
 Documents\FlexBuilder3\cys\src\cys.mxml:51]
 at cys/__atclass_close()[D:\My
 Documents\FlexBuilder3\cys\src\cys.mxml:70]

 line around 51:

 public function changeHandler(event:Event):void
 {
 var atClass:Object = new Object;
 atClass.atcls = ComboBox(event.target).selectedItem.data;

 gateway.call(Cys.getStudents, new Responder(getResult,
 onFault), atClass); // this is line 51
 }

 getResult is another function that give the result to ComboBox's
 dataProvider:
 public function getResult(result:Array):void
 {
 ssProvider = result;
 }

 onFault:
 public function onFault(fault:String ):void
 {
 trace(fault);
 }

 line 70:
 mx:ComboBox y=202 id=atclass close=changeHandler(event);
 dataProvider={atClassProvider} fontSize=12 x=40/mx:ComboBox
 this comboBox can display properly.

 Cys is a Class, it is under amfphp/services  and its file code:
 ?php
 Define('DATABASE_SERVER', 'localhost');
 Define('DATABASE_USERNAME', 'root');
 Define('DATABASE_PASSWORD', '123456');
 Define('DATABASE_NAME', 'cys');

 class Cys
 {
 var $mysqli;

 function Cys()
 {
 # Connect to MySQL database
 $this-mysqli = new mysqli(DATABASE_SERVER, DATABASE_USERNAME,
 DATABASE_PASSWORD, DATABASE_NAME);
 # Check MySQL connection
 if (mysqli_connect_errno()) {
 # Dont use die (Fatal Error), return useful info to the client
 trigger_error(AMFPHP Remoting class could not connect:  .
 mysqli_connect_error());
 }
 }
 function getStudents($atClass) {
 # Return a list of all the users
 $atcls =
 $this-mysqli-real_escape_string(trim($atClass['atcls']));
 $sql = SELECT * from students where atclass = '.$atcls.';
 if ([EMAIL PROTECTED]mysqli-query($sql)) {
 $errno=$this-mysqli-errno;
 $this-mysqli-close();
 trigger_error(AMFPHP Remoting class database SELECT query
 error:  . $errno);
 }
 while ($row = $result-fetch_assoc()) {
 $user_array[] = $row;
 }
 return($user_array);
 }
 }
 ?
  




-- 
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: How should we access our Flex apps from the browser?

2008-06-09 Thread Dan
Tracy,

We are using LCDS so maybe that is what is happening.

--Dan

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

 Dan, unless you are using the LCDS web tier compiler, or the Apache
 equivalent, what you are describing is pretty much impossible.  The
 browser cannot interpret mxml.
 
  
 
 But calling the html wrapper is the normal way to access a flex app
 through a browser.
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Paul Andrews
 Sent: Friday, June 06, 2008 3:05 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: How should we access our Flex apps from
 the browser?
 
  
 
 So, if you provide a url where the file is an .mxml file to the browser,
 it 
 runs your application - you don't see the source file?
 
 Paul
 - Original Message - 
 From: Dan [EMAIL PROTECTED] mailto:dan.dandrea%40gmail.com 
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Sent: Friday, June 06, 2008 5:33 PM
 Subject: [flexcoders] Re: How should we access our Flex apps from the 
 browser?
 
  Nope, Flex 3.
 
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com , Paul Andrews paul@ wrote:
 
  It's not Flex 1.5 is it?
 
  Paul
  - Original Message - 
  From: Dan dan.dandrea@
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 
  Sent: Friday, June 06, 2008 3:39 PM
  Subject: [flexcoders] Re: How should we access our Flex apps from the
  browser?
 
 
   Paul,
  
   Thanks for your reply.
  
   When I access the .mxml file through my browser, it doesn't serve
 up
   the source. Instead, it serves up a functioning Flex application.
  
   Per your advice however, I'll focus on accessing the application
 via
   it's HTML wrapper.
  
   --Dan
  
   --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com , Paul Andrews paul@ wrote:
  
   The swf file is what is run by the flash player plugin, it's not
   usual to
   run this directly in the browser.
   The mxm file is the source used within your application - it won't
 be
   usefull to look at this in a browser.
   The html file checks the users environment for the flash player
 and
   calls
   your .swf file.
  
   html is the way to go.
  
   Paul
   - Original Message - 
   From: Dan dan.dandrea@
   To: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
   Sent: Friday, June 06, 2008 3:01 PM
   Subject: [flexcoders] How should we access our Flex apps from the
   browser?
  
  
Hello,
   
It's not clear to me how we should access our Flex apps from the
browser. It appears that accessing them using .swf, .mxml and
  .html
all work but each with slightly different effects.
   
For example, I can access a Flex application helloWorld using
 the
following URLs. They all work (to varying degrees) but which
  one am I
actually supposed to use?
   
http://localhost/helloWorld.swf
 http://localhost/helloWorld.swf 
http://localhost/helloWorld.mxml
 http://localhost/helloWorld.mxml 
http://localhost/helloWorld.html
 http://localhost/helloWorld.html 
   
--Dan
   
   

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





Re: [flexcoders] Error #2044: Unhandled ioError:. text=Error #2032: Stream Error.

2008-06-09 Thread Mark Doberenz
I came to find out that this is a general error that gets sent to Flex when
an error is getting generated by the server.
Essentially, the error is throwing an error.  I'd suggest using Fiddler to
see what the communication is and what the actual error is.
A limitation of IE/Firefox hosting a Flex app is that the browsers do not
send the data to the Flex app.

What needs to happen is that you need to try to send the fault back as a 200
MSG_OK that contains the fault information.  Flex will then parse the info
and throw an error.

That's what I had to do recently using Axis and I'd assume Spring is
similar.

Mark

On Sun, Jun 8, 2008 at 1:59 PM, rreyes [EMAIL PROTECTED] wrote:


 I am getting this error when connecting to a Spring MVC page for uploading
 data. Still, Spring is telling me everything is working fine. Any idea what
 could be wrong? This is happening on a localhost app on Firefox and IE. I
 have looked around for an answer in this forum and other forums but no luck
 so far. Please help...
 --
 View this message in context:
 http://www.nabble.com/Error--2044%3A-Unhandled-ioError%3A.-text%3DError--2032%3A-Stream-Error.-tp17710850p17710850.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

  



[flexcoders] Re: VerifyError: Error #1063: Argument count mismatch on ... ResourceBundle().

2008-06-09 Thread Dan
Gordon,

I actually wasn't even planning to use resources.  In fact I went as
far as trying to remove the locale compiler argument because at this
point we have no intention to use i18n.  That's what confuses me, why
this is coming up in the first place.  I suspect it might be a red
herring.

--Dan

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

 Where are your resources coming from? Are you compiling them from
 .properties files? Or linking against resource bundle SWCs? Where did
 the SWCs come from? Were they compiled with Flex 2?
 
  
 
 Gordon Smith
 
 Adobe Flex SDK Team
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Dan
 Sent: Friday, June 06, 2008 6:34 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: VerifyError: Error #1063: Argument count
 mismatch on ... ResourceBundle().
 
  
 
 Gordon,
 
 Thanks for your reply.
 
 Could you please help me understand how this might be happening? Are
 there for instance some settings within Eclipse/Flexbuilder that I
 could verify?
 
 --Dan
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Gordon Smith gosmith@ wrote:
 
  The constructor for the ResourceBundle class had no arguments in Flex
 2
  but two optional arguments were added in Flex 3. So it sounds like you
  are somehow mixing Flex 2 and Flex 3 code.
  
  
  
  Gordon Smith
  
  Adobe Flex SDK Team
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of Dan
  Sent: Thursday, June 05, 2008 8:14 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] VerifyError: Error #1063: Argument count
 mismatch
  on ... ResourceBundle().
  
  
  
  Hello,
  
  I'm wondering if someone can please help me. I'm quite new to Flex
  development. I am working on a Flex 3 project and am getting the
  following error when trying to load modules using mx:ModuleLoader. 
  I've been hitting my head against the wall on this issue for several
  hours now.
  
  Thanks,
  Dan
  
  VerifyError: Error #1063: Argument count mismatch on
  mx.resources::ResourceBundle(). Expected 0, got 2.
  
  at en_US$collections_properties()
  at
 
 mx.resources::ResourceManagerImpl/http://www.adobe.com/2006/flex/mx/inte
 http://www.adobe.com/2006/flex/mx/inte 
  rnal::installCompiledResourceBundle
 
 http://www.adobe.com/2006/flex/mx/internal::installCompiledResourceBund
 http://www.adobe.com/2006/flex/mx/internal::installCompiledResourceBund
  
  le
 
 ()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\resources\ResourceM
  anagerImpl.as:310]
  at
 
 mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E:\de
 
 v\3.0.x\frameworks\projects\framework\src\mx\resources\ResourceManagerIm
  pl.as:234]
  at
 
 mx.core::FlexModuleFactory/installCompiledResourceBundles()[E:\dev\3.0.x
  \frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:441]
  at
 
 mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\3.0.x\frameworks\pro
  jects\framework\src\mx\core\FlexModuleFactory.as:411]
 





[flexcoders] AIR Update Problem

2008-06-09 Thread M.Javed
Hi all, 
just a little query if anyone can help, I am currently new on AIR applications 
but have worked on flex web applications alot, I was just making a sample 
application for my project, when I made the release build with .air extension 
and tried to install it, it gave me an error saying This application requires 
an update to Adobe AIR but downloading that update was not successful, 
actually its trying to connect to internet for the update, though it works fine 
if I install it on a system with internet connection but my question is why on 
the very first place its asking for update, I have downloaded the most recent 
version of AIR.
any comments on this are most appreciated,
nbsp;
Regards,
Javed hussain


  

[flexcoders] Re: How to expose Hibernate 'non' conventional beans into flex apps via remoting

2008-06-09 Thread Mehdi
Sounds good,

Will give it a try as soon as it is out.
thanks.

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


 
   Robert, I am going to try out the DTO/Assembler approach (Something
   tells me it is worth the initial investment). Any pointers, samples,
   whatever will be great. If you dont have anything, no worries, will
   figure it out. Thank you.
   And again, great Blog...! Will be adding my experience once I am done
   looking at the second alternative.
 
 While this isn't going to help you now, you might be interested in
 that we intend to solve a lot of these issues with our forthcoming
 Pimento data management framework (Open Source):
 
 http://www.spicefactory.org/pimento/
 
 The problems with closed sessions and huge object graphs will be
 solved through FetchPlans. There will be a default fetch plan which
 is to not serialize any uninitialized Hibernate proxy or collection
 but to include all simple properties and initialized associations.
 But the default can be overwritten for individual calls with FetchPlan
 instances created in AS3.
 
 
 Jens Halm
 Spicefactory





[flexcoders] Re: Flex Css Html Css

2008-06-09 Thread xaero
Thank you very much, Mike.

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

 Hi,
 
 Well.. you can't really unless you create a custom skin. There are
some open
 source stuff out there that allows you to use a background repeat
algorithm.
 
 There is no background position styles either.
 
 So really, what you want to do cannot be done with Flex3 css.
 
 Mike
 
 On Mon, Jun 9, 2008 at 1:27 AM, xaero [EMAIL PROTECTED] wrote:
 
And then How can I set the page's background like in the HTML Css?
  That is:
  background-repeat: repeat-x;
  background-PositionX: left;
  background-PositionY: bottom;
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Michael
  Schmalle
 
  teoti.graphix@ wrote:
  
   No, you can't do this.
  
   Flex CSS is not 'real' css and does not conform to WC3.
  
   Mike
  
 
   
 
 
 
 
 -- 
 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: Cannot access a property or method of a null object reference?

2008-06-09 Thread xaero
I add an Alert.show, and delete the CALL function, like this:

var atClass:Object = new Object();
atClass.atcls = ComboBox(event.target).selectedItem.data;
Alert.show(atClass[atcls],ALERT);
//gateway.call(cys.getStudents, new Responder(onResult, onFault),
atClass); //line 51

It can show the data of the item I selected!

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

 Hi,
 
 From the look if it
 
 ;ComboBox(event.target).selectedItem
 
 seems to be where the null pointer is. Make sure you actually have a
 selectedItem in the list.
 
 I have actually done this myself when testing and actually forgot to
 'select' an item before a service call.
 
 Mike
 




[flexcoders] Re: setting fillcolor with actionscript and stylename

2008-06-09 Thread netdeep


Perhaps I am not understanding this properly.  When I add the following style 
to my Panel:

mx:Style
.gradientBgrd { 
borderStyle: applicationControlBar; 
fillColors: #003483,#a9a7ff; 
fillAlphas: 0.6, 0.6; highlightAlphas: 0, 0; 
}   
/mx:Style

It renders with a nice gradient background because the borderStyle is set to 
applicationControlBar. 

But how do I access the named .gradientBgrd style in my setStyle commands in 
actionscript?  I believe if I could do that, I could effectively set the 
fillColors in the panel 
with Actionscript.



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

 
 Hi,
 
 fillColors is not a supported property (style) for a Panel.  Unless you
 draw your own gradiant background with a programatic skin (borderSkin)
 or use a background image, you're going to be stuck with a solid
 backgroundColor on a container; except the Application tag.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, netdeep deepnet@ wrote:
 
  I have a panel component:
 
  mx:Panel id=panel styleName=gradientBgrd
  mx:Style
  .gradientBgrd {
  borderStyle: applicationControlBar;
  }
  /mx:Style
 
  And I want to update the fillColors in actionscript:
 
  panel.setStyle(fillColors, [0xFF, 0x00]);
 
  but this doesn't work. What is the proper syntax?
 
  Thanks.
 






[flexcoders] Error in Image path reference. text=Error #2035: URL Not Found.

2008-06-09 Thread gavinscott523
Can anyone explain why I cannot reference this image in my code? I 
have changed it from ../../assets/image1.jpg 
to ../assets/image1.jpg to just plain assets/image1.jpg. None of 
them work. The assests folder sits on the root. I feel stupid asking 
this question because I cannot find any one else in the forum getting 
this error. Thanks in advance for any help.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute
mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; 
width=300 creationComplete=createFill() height=400 
cornerRadius=20
mx:Script
![CDATA[

import flash.net.URLRequest;
private var loader:Loader;
private function createFill():void
{
loader = new Loader();

loader.contentLoaderInfo.addEventListener
(Event.COMPLETE,completeLoad);
loader.load(new URLRequest
(../assets/image1.jpg));
}
private function completeLoad
(event:Event):void
{
var bm:BitmapData = new 
BitmapData(loader.width, loader.height, true, 0x00);
bm.draw(this.loader);
var m:Matrix = new Matrix();
m.createBox
(this.width/loader.width, this.height/loader.height);
this.graphics.beginBitmapFill
(bm, m, true, true);

this.graphics.drawRoundRectComplex(0, 0, this.width, 
this.height, 20, 20, 20, 20);
this.graphics.endFill();

}

]]
/mx:Script
/mx:HBox
/mx:Application



[flexcoders] multiline label for mx:TabBar

2008-06-09 Thread kilian.schumm
Hi,

I need to create a tabbar with multiline text labels. Any ideas how to
do this?

Kilian



RE: [flexcoders] multiline label for mx:TabBar

2008-06-09 Thread Gregor Kiddie
You can follow a similar process to creating multiline buttons.

http://www.google.co.uk/search?hl=ensa=Xoi=spellresnum=0ct=resultcd
=1q=flex+multiline+buttonsspell=1

It's pretty straightforward.

 

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 kilian.schumm
Sent: 09 June 2008 15:46
To: flexcoders@yahoogroups.com
Subject: [flexcoders] multiline label for mx:TabBar

 

Hi,

I need to create a tabbar with multiline text labels. Any ideas how to
do this?

Kilian

 



[flexcoders] AdvancedDataGrid (DataGrid) Change cell editability at run time

2008-06-09 Thread gene_belor
Hi,

I think the way AdvancedDataGrid (DataGrid) allows cells to be
editable through AdvancedDataGridColumn (DataGridColumn)'s editable
property is restrictive because the property works on the whole column

I was wondering what is the best approach for dynamically changing
whether a cell is editable or not based on a selection in another cell
of the same row. 

For example the following grid:
1) TYPE column is a drop down
2) VALUE column is editable column
3) TYPE column options are Keep and Change
4) Keep option makes associated cell of VALUE column non editable
5) Change option makes associated cell of VALUE column editable
6) As user changes selected option in TYPE column, editability of
VALUE cells change

TYPE  VALUE
  --
KEEP  1 (non editable)
CHANGE2 (editable)  

Thanks!



[flexcoders] notification to a non-instanciate object

2008-06-09 Thread y.mauron
Dear all, 

My question is a little bit frustrating as it seems to be very simple. 

I've got a TabNavigator and one of the tab content is a component
coming from a swc archive. From the tab number 1 I'd like to act on
the content of the tab number two (let's say the tab that contains my
swc component). When I try to do that my debugger states that the
targeted object is null. 

It seems to be conceivable, but how can I work around this situation ?
Any Idea ?


Thanks in advance. 



[flexcoders] Can Array or ArrayCollection be populated into ComboBox?

2008-06-09 Thread xaero
Hi, everyone!
In my PHP file, there is a function that returns an Array $user_array
the data in this Array is something like this:
[0] 
atclass = 1
sid = 3
ssname = Joe
[1] 
atclass = 1
sid = 4
ssname = Sam
[2] 
atclass = 1
sid = 5
ssname = Simth

And I want to add the `sid` and `ssname` into the ComboBox.
So in the flex, I use 'result' in the function to receive the data:

public ssProvider:Array;
...
gateway.call(cys.getStudents, new Responder(onResult,
onFault),atClass); //It gets the data from database
...
public function onResult(result:Array):void
{
ssProvider = result;
}
...
mx:ComboBox dataProvider={ssProvider}/

And it just display [object][object], nothing else
How to fix it?



RES: [flexcoders] Can Array or ArrayCollection be populated into ComboBox?

2008-06-09 Thread DANIEL CREDIDIO - INFORMATICA
Put this in the combobox -- labelField =ssname

 

De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em
nome de xaero
Enviada em: segunda-feira, 9 de junho de 2008 12:16
Para: flexcoders@yahoogroups.com
Assunto: [flexcoders] Can Array or ArrayCollection be populated into
ComboBox?

 

Hi, everyone!
In my PHP file, there is a function that returns an Array $user_array
the data in this Array is something like this:
[0] 
atclass = 1
sid = 3
ssname = Joe
[1] 
atclass = 1
sid = 4
ssname = Sam
[2] 
atclass = 1
sid = 5
ssname = Simth

And I want to add the `sid` and `ssname` into the ComboBox.
So in the flex, I use 'result' in the function to receive the data:

public ssProvider:Array;
...
gateway.call(cys.getStudents, new Responder(onResult,
onFault),atClass); //It gets the data from database
...
public function onResult(result:Array):void
{
ssProvider = result;
}
...
mx:ComboBox dataProvider={ssProvider}/

And it just display [object][object], nothing else
How to fix it?

 



[flexcoders] AIR deployment on server

2008-06-09 Thread netdeep
I have a Flex app which needs to run on the server in the background.  I was 
thinking of 
turning into an AIR app since it really doesn't need to run on the browser.  
But how could I 
deploy this.  

I am sending my entire flex project as a .war file to deploy on the server and 
am using 
BlazeDS to work with some java backend code.  But all of the tutorials for AIR 
seem to 
assume some sort of manual install method and I just want to bundle it with my 
current 
project.  Is this possible?  And if so, how is this done?  

As a side note, I don't know if there is a separate AIR group or forum 
somewhere that might 
be a better place to ask about these things.  If you know of one, please let me 
know.



[flexcoders] Re: setting fillcolor with actionscript and stylename

2008-06-09 Thread Amy
--- In flexcoders@yahoogroups.com, netdeep [EMAIL PROTECTED] wrote:

 
 
 Perhaps I am not understanding this properly.  When I add the 
following style to my Panel:
 
 mx:Style
   .gradientBgrd { 
   borderStyle: applicationControlBar; 
   fillColors: #003483,#a9a7ff; 
   fillAlphas: 0.6, 0.6; highlightAlphas: 0, 0; 
   }   
   /mx:Style
 
 It renders with a nice gradient background because the borderStyle 
is set to 
 applicationControlBar. 
 
 But how do I access the named .gradientBgrd style in my setStyle 
commands in 
 actionscript?  I believe if I could do that, I could effectively 
set the fillColors in the panel 
 with Actionscript.

this.styleName='gradientBgrd';

???

You may find this helpful if that doesn't work:

http://livedocs.adobe.com/flex/3/html/help.html?
content=skinstyle_3.html



[flexcoders] Howto Create Flex Builder Custom Component folders?

2008-06-09 Thread Mark Doberenz
I'm creating a Flex library project for work and it's ending up being a
BUNCH of little custom components.  So, when I use the library in a Flex app
project, there are all of those components in the Custom Components
folder.

Is there any way to create a new folder in the Components tab in Flex
Builder?  I tried searching for this before I'm posting this, but I can't
find anything about it on the web.

Any help would be greatly appreciated.

Mark Doberenz


Re: [flexcoders] Howto Create Flex Builder Custom Component folders?

2008-06-09 Thread Michael Schmalle
Hi,

Nope, component devs are out of luck with this.

You could file an enhancement request for Flex Builder 4. :)

Mike

On Mon, Jun 9, 2008 at 11:26 AM, Mark Doberenz [EMAIL PROTECTED] wrote:

   I'm creating a Flex library project for work and it's ending up being a
 BUNCH of little custom components.  So, when I use the library in a Flex app
 project, there are all of those components in the Custom Components
 folder.

 Is there any way to create a new folder in the Components tab in Flex
 Builder?  I tried searching for this before I'm posting this, but I can't
 find anything about it on the web.

 Any help would be greatly appreciated.

 Mark Doberenz
  




-- 
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] Re: How should we access our Flex apps from the browser?

2008-06-09 Thread Tom Chiverton
On Friday 06 Jun 2008, Paul Andrews wrote:
 So, if you provide a url where the file is an .mxml file to the browser, it
 runs your application - you don't see the source file?

No if he's using the web tier compiler, no.

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



Re: [flexcoders] Howto Create Flex Builder Custom Component folders?

2008-06-09 Thread Johannes Nel
or you could create your own exlipse plugin to go with your components to
manage this.

On Mon, Jun 9, 2008 at 5:33 PM, Michael Schmalle [EMAIL PROTECTED]
wrote:

   Hi,

 Nope, component devs are out of luck with this.

 You could file an enhancement request for Flex Builder 4. :)

 Mike


 On Mon, Jun 9, 2008 at 11:26 AM, Mark Doberenz [EMAIL PROTECTED]
 wrote:

   I'm creating a Flex library project for work and it's ending up being a
 BUNCH of little custom components.  So, when I use the library in a Flex app
 project, there are all of those components in the Custom Components
 folder.

 Is there any way to create a new folder in the Components tab in Flex
 Builder?  I tried searching for this before I'm posting this, but I can't
 find anything about it on the web.

 Any help would be greatly appreciated.

 Mark Doberenz




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

  




-- 
j:pn
\\no comment


Re: [flexcoders] DataGrid What is the limit?

2008-06-09 Thread Tom Chiverton
On Wednesday 04 Jun 2008, Fidel Viegas wrote:
 This topic has been discussed several times. Just do a search on the
 group and you will find quite a lot of answers to that.

And the answer is always 'more than the maximum number of rows or columns you 
should ever present a user with'.

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



Re: [flexcoders] Re: Cannot access a property or method of a null object reference?

2008-06-09 Thread Michael Schmalle
Is the gateway property defined?

Other than that... from the code you have shown, I don't have a clue. ;-)

Mike

On Mon, Jun 9, 2008 at 9:39 AM, xaero [EMAIL PROTECTED] wrote:

   I add an Alert.show, and delete the CALL function, like this:


 var atClass:Object = new Object();
 atClass.atcls = ComboBox(event.target).selectedItem.data;
 Alert.show(atClass[atcls],ALERT);
 //gateway.call(cys.getStudents, new Responder(onResult, onFault),
 atClass); //line 51

 It can show the data of the item I selected!

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael
 Schmalle
 [EMAIL PROTECTED] wrote:
 
  Hi,
 
  From the look if it
 
  ;ComboBox(event.target).selectedItem
 
  seems to be where the null pointer is. Make sure you actually have a
  selectedItem in the list.
 
  I have actually done this myself when testing and actually forgot to
  'select' an item before a service call.
 
  Mike
 

  




-- 
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] Re: SWC Encrypt 2.0 - Does it work?

2008-06-09 Thread Tom Chiverton
On Wednesday 04 Jun 2008, Joseph Balderson wrote:
 Ah. I thought he was talking about SWCEncrypt, which is actually an
 obfuscator. 

Yeah, but SWFObfuscator isn't as cool a product name, so I guess they went 
with being confusing...

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



Re: [flexcoders] fail to use ant build

2008-06-09 Thread Tom Chiverton
On Tuesday 03 Jun 2008, coder3 wrote:
 but when i build it, it gave me Command not found: mxmlc

Add the SDK bin directory to your $PATH ?

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: Altering a textarea on certain keyboardevents...

2008-06-09 Thread miltoon71
--- In flexcoders@yahoogroups.com, miltoon71 [EMAIL PROTECTED] wrote:

 Hi
 Trying to insert some characters on every new row when the user hits enter... 
 The following does not work:
 
 // Define a textarea: 
 mx:TextArea id=myTextArea
 
 // Add a keystroke listener
 myTextArea.addEventListener(KeyboardEvent.KEY_DOWN,keyHandler);
 
 // Handle keystrokes
 private function keyHandler(event:KeyboardEvent):void{
   if(event.keyCode == Keyboard.ENTER){
   this.myTextArea.text += added text;
   }
 }
 
 
 However, if you add a random alert message in the middle, it suddenly works:
 
 private function keyHandler(event:KeyboardEvent):void{
   Alert.show(Dummy message);
   if(event.keyCode == Keyboard.ENTER){
   this.myTextArea.text += added text;
   }
 }
 
 
 Isn't this strange?



Issue fixed by using TextRange class instead...





[flexcoders] Alert.show - how to pass extra parameter to Alert event handler?

2008-06-09 Thread djohnson29
I have an alert popup with your basic ok / cancel functionality.  The
alert calls an event handler which receives a close event as a
parameter like so:

Alert.show(You have unsaved changed. Continue?  ,My popup,
Alert.OK | Alert.CANCEL, this, cancelEventHandler);

private function cancelEventHandler(event:CloseEvent):void{

  if(event.detail == Alert.OK){
// do whatever you need to do here. 
  }
  else{
 // cancel
  }


I want to be able to pass an additional parameter to the cancel event
handler.  Is there a way to do this?  

For example if I prompt the user to save changes, I may want to pass
in an ID value.





[flexcoders] Need help in a column chart thats reads from a xml file

2008-06-09 Thread hdias_esparga
Can someone plz indicate me a good tutorial to make a Column Chart
that reads data from a XML file?

I'm driving nuts to put this working...

a simple XML file would be like this... ( i need to show the
'Pontuacoes' Tag in the chart)

Relatorios
Relatorio
Pontuacoes
Acolhimento
Pontuacao17/Pontuacao
/Acolhimento
Produto
Pontuacao14/Pontuacao
/Produto
Ensaio
Pontuacao16/Pontuacao
/Ensaio
Negociacao
Pontuacao13/Pontuacao
/Negociacao
/Pontuacoes
/Relatorio
Relatorio
Pontuacoes
Acolhimento
Pontuacao12/Pontuacao
/Acolhimento
Produto
Pontuacao19/Pontuacao
/Produto
Ensaio
Pontuacao17/Pontuacao
/Ensaio
Negociacao
Pontuacao14/Pontuacao
/Negociacao
/Pontuacoes
/Relatorio
/Relatorios 



RES: [flexcoders] notification to a non-instanciate object

2008-06-09 Thread Luciano Manerich Junior
Hi,
 
its because the default instanciation of the objects (auto). its only
the tab that you have navegated into.
 
You may add a creationPolicy property in the tabnavigator to work
aroung this situation.
 
mx:TabNavigator creationPolicy=all



De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em
nome de y.mauron
Enviada em: segunda-feira, 9 de junho de 2008 12:13
Para: flexcoders@yahoogroups.com
Assunto: [flexcoders] notification to a non-instanciate object



Dear all, 

My question is a little bit frustrating as it seems to be very simple. 

I've got a TabNavigator and one of the tab content is a component
coming from a swc archive. From the tab number 1 I'd like to act on
the content of the tab number two (let's say the tab that contains my
swc component). When I try to do that my debugger states that the
targeted object is null. 

It seems to be conceivable, but how can I work around this situation ?
Any Idea ?

Thanks in advance. 



 


RE: [flexcoders] Error in Image path reference. text=Error #2035: URL Not Found.

2008-06-09 Thread Alex Harui
Paths should be relative to the swf.  Where is the swf file and the
image?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gavinscott523
Sent: Monday, June 09, 2008 7:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Error in Image path reference. text=Error #2035:
URL Not Found.

 

Can anyone explain why I cannot reference this image in my code? I 
have changed it from ../../assets/image1.jpg 
to ../assets/image1.jpg to just plain assets/image1.jpg. None of 
them work. The assests folder sits on the root. I feel stupid asking 
this question because I cannot find any one else in the forum getting 
this error. Thanks in advance for any help.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  
layout=absolute
mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  
width=300 creationComplete=createFill() height=400 
cornerRadius=20
mx:Script
![CDATA[

import flash.net.URLRequest;
private var loader:Loader;
private function createFill():void
{
loader = new Loader();

loader.contentLoaderInfo.addEventListener
(Event.COMPLETE,completeLoad);
loader.load(new URLRequest
(../assets/image1.jpg));
}
private function completeLoad
(event:Event):void
{
var bm:BitmapData = new 
BitmapData(loader.width, loader.height, true, 0x00);
bm.draw(this.loader);
var m:Matrix = new Matrix();
m.createBox
(this.width/loader.width, this.height/loader.height);
this.graphics.beginBitmapFill
(bm, m, true, true);

this.graphics.drawRoundRectComplex(0, 0, this.width, 
this.height, 20, 20, 20, 20);
this.graphics.endFill();

}

]]
/mx:Script
/mx:HBox
/mx:Application

 



[flexcoders] Re: Error #2044: Unhandled ioError:. text=Error #2032: Stream Error.

2008-06-09 Thread Dmitri Girski
This is a general type socket error and it could be many reasons for it.

- Check server logs for errors
- set the fault handler for the HTTPService 
- use any sniffer to check the server response (you need to setup a
standalone server for it as it is quite hard to debug localhost
connections)

Cheers,
Dmitri.


-- http://mitek.id.au/whingingpom



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

 
 I am getting this error when connecting to a Spring MVC page for
uploading
 data. Still, Spring is telling me everything is working fine. Any
idea what
 could be wrong? This is happening on a localhost app on Firefox and
IE. I
 have looked around for an answer in this forum and other forums but
no luck
 so far. Please help...
 -- 
 View this message in context:
http://www.nabble.com/Error--2044%3A-Unhandled-ioError%3A.-text%3DError--2032%3A-Stream-Error.-tp17710850p17710850.html
 Sent from the FlexCoders mailing list archive at Nabble.com.





RE: [flexcoders] Duplicating classes from the Flex framework / DateChooser customization

2008-06-09 Thread Alex Harui
You probaby just need to copy the type-selector from defaults.css

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Fiouz
Sent: Monday, June 09, 2008 5:48 AM
To: Flexcoders
Subject: [flexcoders] Duplicating classes from the Flex framework /
DateChooser customization

 

Hi,

What is the appropriate approach to compile the Flex (3) ActionScript
sources?
Actually, my original problem is the following: I need to emphasize
specific days in a DateChooser control.

Alas, as of Flex 3.0.0, the DateChooser control does not offer this
functionality. Furthermore, the DateChooser control makes usage of
unsupported API/support classes such as mx.controls.CalendarLayout
through the use of private members/mx_internal namespace.
Consequently, I can hardly make use of these classes (since they don't
apply for the OOP open/closed principle) and I need another way to
achieve my goal.
As a workaround, I found that I could create alternate implementations
of the DateChooser/CalendarLayout classes, mainly by copying the
existing ones and modifying the appropriate methods. Then I started to
rename DateChooser/CalendarLayout to MyDateChooser/MyCalendarLayout
and replacing names (s/DateChooser/MyDateChooser/ 
s/CalendarLayout/MyCalendarLayout/) ; I even copied the entire
frameworks\projects\framework\src directory (from the Flex 3 SDK) to
my build path. The problem with this approach is that my
implementation seems somehow incomplete and is missing some graphical
data (invisible buttons, wrong colors, wrong size) when added to the
project.

Any hint on how I could gain correct graphics from my implementation?
Or is there a better way to achieve my DateChooser customization?

Thanks,
Regards

-- 
Fiouz

 



RE: [flexcoders] Re: Flex Unload SWFLoader issues

2008-06-09 Thread Alex Harui
Yes. The player team is looking in to it

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of benreed83
Sent: Monday, June 09, 2008 1:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex Unload SWFLoader issues

 

Ooops forgot to include the code sorry! See below doesnt soudn too
encouraging tho, seems like a little bit of an omission on Adobes part?

?xml version=1.0 encoding=utf-8?
mx:Application 
xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
horizontalAlign=center verticalAlign=center 
height=100% 
width=100% 
layout=absolute
creationComplete=init()

mx:Script
![CDATA[

//import the necessary youtube API classes
import ca.newcommerce.youtube.data.*;
import ca.newcommerce.youtube.events.*;
import ca.newcommerce.youtube.feeds.*;
import ca.newcommerce.youtube.iterators.*;
import ca.newcommerce.youtube.webservice.YouTubeClient;

import mx.collections.ArrayCollection;

public var videoArray:Array;

//declare your variables
[Bindable]
public var webservice:YouTubeClient;
[Bindable]
public var feed:VideoFeed;
[Bindable]
public var video:VideoData;

public var myVideoArray:Array = new Array();

[Bindable]
public var dgData:ArrayCollection;



//functions to go here
private function init():void{

webservice = YouTubeClient.getInstance();


webservice.addEventListener(VideoFeedEvent.USER_FAVORITES_DATA_RECEIVED,
doStuff);

webservice.getUserFavorites(RuralGateway,null,null,1,10);
}

private function doStuff(evt:VideoFeedEvent):void{
//store the feed
feed = evt.feed;

while(video = feed.next()){
myVideoArray.push({Title:video.title,
Duration:video.duration,
URL:video.swfUrl});
}

dgData = new ArrayCollection(myVideoArray);

dg.dataProvider = dgData;
}

private function changeSWF():void {
myLoader.source = dg.selectedItem.URL;
}

]]
/mx:Script

mx:DataGrid width=100% id=dg change=changeSWF()

/mx:DataGrid

mx:Label text={dg.selectedItem.URL} x=300 y=200/

mx:SWFLoader id=myLoader
x=200
y=160
width=200
height=150
/


/mx:Application

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

 I don't see any code, but in general, if the SWF you loaded does not
 clean up after itself, there's no way to force it to unload. You'll
 need to find a way to stop the video and audio before loading
something
 else.
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Ben Reed
 Sent: Friday, June 06, 2008 11:31 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Flex Unload SWFLoader issues
 
 
 
 Hi guys,
 
 I have just today signed up with this mailing list after stumbling
 across an issue I cannot resolve! Seems to be a flaw with the
SWFLoader
 in Flex 3. Basically my problem is this, I have to create a youtube
 player for a client and am using the wrapper classes from martin
legris
 to aid me. All is working ok, I have a datagrid being populated by an
 array, and when a video is selected, the SWFLoader loads it into place
 as it should. The problem comes when selecting another video from the
 list, several things happen (or dont!), the loaded Youtube player
 disappears as if another one will be loaded into its place (the
desired
 effect) but nothing is loaded, also the sound from the original swf is
 still audible.
 
 Any suggestions or modifications to the code below would be most
 welcome. I have read that possibly using Loader as oppose to SWFLoader
 could be the way to go, or maybe Module Loader? I am ver new to flex
but
 not to actionscript and I seem to recall a similar problem once before
 but I am damned if I can remember how (or if) i resolved it.
 
 Anyway, I hope this hasn't been answered ages ago and if it has please
 accept my apologies. I hope I can be of some use to some of you in
 future postings! 
 
 Cheers
 
 Ben Reed


 



RE: [flexcoders] Re: Possible to add some data to load to the default preloader?

2008-06-09 Thread Alex Harui
Why does it need to be done at preloader time?  You could simply make
the first screen/state of your app a UI that waits for the ASPX data.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of b_alen
Sent: Monday, June 09, 2008 12:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Possible to add some data to load to the
default preloader?

 

Can't do that, data is coming from aspx. In fact the only way this
could work is to add info* to swf which data has to be loaded with the
swf itself. Then the Flash Player would read that, calculate the size
of data and add it to the preloader of the main swf. Once the whole
bunsh is downloaded, data would be there in the native format on the
root of the app. Am I dreaming?

* How to add this info is the question. It can't be through AS that's
for sure, because AS is not running until the app is loaded. Write in
the header of the swf? Write in the HTML embed directives?

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

 Put the data in an RSL?
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of b_alen
 Sent: Thursday, June 05, 2008 3:23 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Possible to add some data to load to the default
 preloader?
 
 
 
 I always have some stuff to load before the app can be used. Is it
 possible to stick that loading into the default preloader? So the swf
 would know that it has to load other files also before it dispatches
 the event that it's fully loaded. Maybe some compiler directives, I
 don't know.
 
 Thanks


 



[flexcoders] Setting a HSliders value when it's used by a DataGrid's ItemRenderer

2008-06-09 Thread gbkpicasso
I have custom component HSlider that I'm using in a Datagrid. The 
only way I can get the HSlider to show up in the datagrid is to use a 
VBox as the base class of the component. I'm not sure if that bit of 
info relates to my question.

How do I get the value of the slider in my data grid to reflect the 
value in the amount field in my ArrayCollection called layer?

Thanks for any help in this area.
Greg


var layers:ArrayCollection = new ArrayCollection();
var myObj1:Object = new Object();
var myObj2:Object = new Object();

private function init():void
{
myObj1.name = Layer 1;
myObj1.amount = .5;
layers.addItem(myObj1);

myObj2.name = Layer 2;
myObj2.amount = .75;
layers.addItem(myObj2);
}

This is the component code in a file called comps.mySlider.mxml:
mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100% 
height=100%
mx:HSlider id=mySlider width=100 minimum=0 
maximum=1.25 /
/mx:VBox

My Datagrid code is below:
mx:DataGrid dataProvider={layers} id=dgSliders
mx:columns
mx:DataGridColumn headerText=Layer dataField=name /
mx:DataGridColumn headerText=Mix dataField=amount 
itemRenderer=comps.mySlider/ 
/mx:columns
/mx:DataGrid



[flexcoders] Re: Don't want to sort the tree in my Advanced Datagrid

2008-06-09 Thread memecpi
I don't know of a way to disable the auto-sorting, but you can provide 
a compareFunction to the Grouping to sort it correctly.  

I experienced the same problem and had to provide a compareFunction to 
fix the sorting.  If anyone found how to disable the auto-sort I would 
be interested too.

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

 Hello, I have an ArrayCollection I want to display in an Advanced
 Datagrid. I use a grouping collection containing a single grouping
 field. I want to display and keep my rows in the same order as the one
 in my dataprovider.
 The problem is that the tree is automatically sorted in the ADG
 without any user action: all the top level nodes are alphabetically
 sorted. And the children order is not kept.
 How to disable this sorting?
 
 Thanks
 Sophany





[flexcoders] Image.source. bug or not?

2008-06-09 Thread Carlo Gulliani
everybody, hi. trying use mx:Image on MacOSX. When I use path of my app's 
directory in source's property, then it's ok, but when I use my special path, 
i.e. path of folder, which is in my Documents directory, then I've not got my 
Image.

looks:

mx:Image id=pic

...

my picture is in //Users//myName//Documents//test//picture.jpg

private function initApp():void{
var imgdir:File = File.documentsDirectory.resolvePath(test);
pic.source = imgdir.nativePath+/picture.jpg;
trace(imgdir.nativePath+/picture.jpg); // 
//Users//myName//Documents//test//picture.jpg
}

when I launch it in Windows - it's working, in MacOSX - not working

what to do?


  

Re: [flexcoders] Howto Create Flex Builder Custom Component folders?

2008-06-09 Thread Mark Doberenz
Johannes,
  I was actually thinking that this would be what I'd need to do.  Do you
have any more info on what this would look like?
  Creating an installer for this library wouldn't be a big deal, so
packaging up the eclipse plugin and the swc wouldn't be out of the
question.  I just don't know how to do it.

Mark

On Mon, Jun 9, 2008 at 10:35 AM, Johannes Nel [EMAIL PROTECTED]
wrote:

   or you could create your own exlipse plugin to go with your components
 to manage this.


 On Mon, Jun 9, 2008 at 5:33 PM, Michael Schmalle [EMAIL PROTECTED]
 wrote:

   Hi,

 Nope, component devs are out of luck with this.

 You could file an enhancement request for Flex Builder 4. :)

 Mike


 On Mon, Jun 9, 2008 at 11:26 AM, Mark Doberenz [EMAIL PROTECTED]
 wrote:

   I'm creating a Flex library project for work and it's ending up being
 a BUNCH of little custom components.  So, when I use the library in a Flex
 app project, there are all of those components in the Custom Components
 folder.

 Is there any way to create a new folder in the Components tab in Flex
 Builder?  I tried searching for this before I'm posting this, but I can't
 find anything about it on the web.

 Any help would be greatly appreciated.

 Mark Doberenz




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




 --
 j:pn
 \\no comment
 



[flexcoders] Creating Data Grid Columns Dynamically?

2008-06-09 Thread Ethan Miller
Greetings -

I need to construct data grid columns on the fly, ie build the table from the 
data. WAs 
thinking I could make column class and that run a for each in loop adding the 
columns as 
children to myGrid.columns (as it were). Doesn't work for a variety of reasons.

Anyone here know how to do this? Sample code perhaps?

thanks, ethan



[flexcoders] Re: Flex + WebORB for PHP, A very strage problem

2008-06-09 Thread valdhor
I just came across this myself and figured out the problem.

PHP retrieved the data from my database and even though the entry in
the database was boolean PHP (Because it is a loosely typed language)
returned the entry as a string with the value of 0. When this was
returned, Flex coerced this string value to a boolean. As 0 is a non
empty string, Flex coerced it to true (Which is what it should do for
any non-empty string).

The Fix is to coerce the value to an int at the PHP end. For example:

$myObject-booleanField = (int)$row['booleanField'];

Now, when the number 0 comes in, Flex correctly coerces it to false.



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

 
 Hii,
 
 I tried it the same way as suggested by Uber Nick. But the solution
din't
 worked until I made some changes in my database field types as well
as on my
 Flex VO class.
 Now I set this field as integer in db and Number in my VO class and
 receiving the values as Number.
 
 like below:
 
 vo.aircon = int(list[i].aircon);
 
 Now, flex can easily interpret a number other than ZERO as TRUE and
Numbers
 ZERO as FALSE.
 
 But I suppose, the culprit part remains with the WebORB implementation.
 
 Thanks for helping.
 Manu.
 
 
 
 jmfillman wrote:
  
  Manu,
  
  First thing I'd do is trace (list[i].aircon) or bind the 
  ArrayCollection to a dataGrid to see what is actually being returned.
  
  My suspicion is that you are getting the correct true and false data 
  in the result, but as Uber_Nick suggested, it's a string value, so 
  you'll need to add an if statement, like this:
  
  if (list[i].aircon == 'true') {
  vo.aircon = true;
  }
  else if (list[i].aircon == 'false') {
  vo.aircon = false;
  }
  
  JF
  --- In flexcoders@yahoogroups.com, Manu Dhanda manuraj.dhanda@ 
  wrote:
 
  
  Hii..
  
  Anyone of you experts with a solution for my problem??
  Am really worried for this little boolean problem.
  
  Manu.
  
  
  
  Uber_Nick wrote:
   
   Manu,
   
   Note the following.
   trace(Boolean('TRUE')); // returns true
   trace(Boolean('FALSE')); // also returns true
   
   Flex is interpreting the result from your PHP call as a String.  
  Try
   returning lower-case 'true' and 'false'.  Also, try using:
   list[i].aircon as Boolean 
   instead of:
   Boolean(list[i].aircon)
   The former will not always convert to true (but will return null 
  if it
   can't convert).  Lastly, if you can't make it work, just try this
   workaround:
   vo.aircon = (''+list[i].aircon).toLowerCase()=='true';
   
   -Nick Matelli
   Amentra, Inc
   
   --- In flexcoders@yahoogroups.com, Manu Dhanda manuraj.dhanda@ 
  wrote:
  
   
   Code for my Responder, where I am receiving the result:
   public function result(data:Object):void
   {
   //TODO: implement function
   var objList:ArrayCollection = new 
  ArrayCollection();
   var list:ArrayCollection = new ArrayCollection
  (data.result as Array);
   var vo:FlatVO;
   for(var i:int=0; ilist.length; i++){
   vo = new FlatVO();
   vo.userId = int(list[i].userId);
   vo.aircon = Boolean(list[i].aircon);
   objList.addItem(vo);
   }
   
   In here, I supposed to get vo.aircon as boolean[values as 
  true/false for
   different rows/objects in FlatVO]. But, the strange thing is 
  that I am
   receiving all the values for my boolean type as TRUE only.
   
   I had verified on my server side PHP code, and it is returning 
  the
   corresponding values fine [as in TRUE and FALSE accordingly].
   
   I am using WebORB for PHP with Flex. and in there, I had 
  verified in the
   Services as well, that my service returning this object has the 
  right
   values. Then how come I am receiving all the values as TRUE, I 
  can not
   understand this.
   
   Any help will be great.
   Thanks.
   
   Igor Costa-2 wrote:

If you paste a part of your code someone here in the list can
   answer you
but
it's hard to get what you really need.


Regards
Igor

On Tue, Jun 3, 2008 at 11:45 AM, Manu Dhanda manuraj.dhanda@
wrote:

   
Hii,
   
In short, In Weborb Mgmt Services, I can see the object 
  having a
   value of
boolean type correctly.( that is it is returned correctly from
   the db).
But when I receive it on Flex side, all is returned as true.
   
How should I resolve this?
   
Appreciate your time.. to respond it.
   
thanks.
   
--
View this message in context:
   
   http://www.nabble.com/Flex-%2B-WebORB-for-PHP%2C-A-very-strage-
  problem-tp17625304p17625304.html
Sent from the FlexCoders mailing list archive at Nabble.com.
   

   



-- 


RE: [flexcoders] Creating Data Grid Columns Dynamically?

2008-06-09 Thread Tracy Spratt
Below is a very simple example.  One key is to re-assign the modified
array to the columns property.  Do not miss that step.

http://www.cflex.net/showFileDetails.cfm?ObjectID=552

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ethan Miller
Sent: Monday, June 09, 2008 1:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Creating Data Grid Columns Dynamically?

 

Greetings -

I need to construct data grid columns on the fly, ie build the table
from the data. WAs 
thinking I could make column class and that run a for each in loop
adding the columns as 
children to myGrid.columns (as it were). Doesn't work for a variety of
reasons.

Anyone here know how to do this? Sample code perhaps?

thanks, ethan

 



[flexcoders] new to VO's, why won't this cast?

2008-06-09 Thread Derrick Anderson
hi, i am trying to incorporate value objects into my programming- i have a
very simple one set up

[Bindable]
public class EmployeeVO
{
public var employeeID:uint;
public var roleID:Number;
public var employeeTypeID:Number;
public var employeeStatusID:Number;

and i'm trying to cast a datagrid item which contains these 4 values onclick
like:

var testVO:EmployeeVO = DataGrid(event.currentTarget).selectedItem as
EmployeeVO;

testVO is always null, and I can't figure out why.  the selectedItem
properties are (as they are seen in debugger):

employeeID = 1830 [0x726]
employeeStatusID = 2
employeeTypeID = 1
mx_internal_uid = D3C
roleID = 3

can anyone see what i'm doing wrong here?

tia.
d.


[flexcoders] HELP change mouse pointer over text object

2008-06-09 Thread Body Works Studio
Hi all,

in the result list we use to use the linkButton to display the name of
the doc coming back in the rss. Problem was the button would either
extend into the next object to the right, r if we sized the button we
got the truncated text with ... at the end.

So as a workaround I make the rss url a text object. Now the problem
is we loose the pointer cursor and have the editable text cursor.

Does any have solution to either make a link button contain multiple
lines of text, or change the muse pointer on mouse over?

Thanks

Jeff



RE: [flexcoders] Can Array or ArrayCollection be populated into ComboBox?

2008-06-09 Thread Tracy Spratt
And best practice is to wrap the array in an ArrayCollection:

public _acStudents:ArrayCollection;

var aStudents:Array = result; //This will have a problem if there is a
single element in the array. Look into toArray()

...

_acStudents = new ArrayCollection(aStudents);

...

dataProvider={_acStudents }

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of DANIEL CREDIDIO - INFORMATICA
Sent: Monday, June 09, 2008 11:19 AM
To: flexcoders@yahoogroups.com
Subject: RES: [flexcoders] Can Array or ArrayCollection be populated
into ComboBox?

 

Put this in the combobox -- labelField =ssname

 

De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em
nome de xaero
Enviada em: segunda-feira, 9 de junho de 2008 12:16
Para: flexcoders@yahoogroups.com
Assunto: [flexcoders] Can Array or ArrayCollection be populated into
ComboBox?

 

Hi, everyone!
In my PHP file, there is a function that returns an Array $user_array
the data in this Array is something like this:
[0] 
atclass = 1
sid = 3
ssname = Joe
[1] 
atclass = 1
sid = 4
ssname = Sam
[2] 
atclass = 1
sid = 5
ssname = Simth

And I want to add the `sid` and `ssname` into the ComboBox.
So in the flex, I use 'result' in the function to receive the data:

public ssProvider:Array;
...
gateway.call(cys.getStudents, new Responder(onResult,
onFault),atClass); //It gets the data from database
...
public function onResult(result:Array):void
{
ssProvider = result;
}
...
mx:ComboBox dataProvider={ssProvider}/

And it just display [object][object], nothing else
How to fix it?

 



RE: [flexcoders] HELP change mouse pointer over text object

2008-06-09 Thread Tracy Spratt
This takes some combination of the following on the Text component. Try
them in that order:

mouseChildren=false

buttonMode=true

useHandCursor=true

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Body Works Studio
Sent: Monday, June 09, 2008 1:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HELP change mouse pointer over text object

 

Hi all,

in the result list we use to use the linkButton to display the name of
the doc coming back in the rss. Problem was the button would either
extend into the next object to the right, r if we sized the button we
got the truncated text with ... at the end.

So as a workaround I make the rss url a text object. Now the problem
is we loose the pointer cursor and have the editable text cursor.

Does any have solution to either make a link button contain multiple
lines of text, or change the muse pointer on mouse over?

Thanks

Jeff

 



[flexcoders] Re: Flex Css Html Css

2008-06-09 Thread valdhor
This is how I do it:

I create an empty component named RepeatedBackgroundBox.mxml:

?xml version=1.0 encoding=utf-8?
mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100%
height=100%

/mx:VBox


Next I create an AS file named RepeatedBackground.as:

/*
 RepeatedBackground

 Use this BorderSkin with backgroundImage

 Embed properties scaleGridTop, scaleGridBottom, scaleGridLeft, and
scaleGridRight do not work.
*/
package
{
 import flash.display.Bitmap;
 import flash.display.BitmapData;
 import flash.display.Graphics;
 import flash.display.Loader;
 import flash.events.Event;
 import flash.events.IOErrorEvent;
 import flash.geom.Matrix;
 import flash.net.URLRequest;

 import mx.controls.Image;
 import mx.core.BitmapAsset;
 import mx.graphics.RectangularDropShadow;
 import mx.skins.RectangularBorder;
 import mx.core.Application;
 import mx.core.UIComponent;

 public class RepeatedBackground extends RectangularBorder {

 private var tile:BitmapData;

 private var imgCls:Class;

 override protected function
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
 super.updateDisplayList(unscaledWidth, unscaledHeight);

 // Use UIComponent to handle any container

 // Check if parent is valid
 // In some Application initializaton states this might be
false, I was getting an error
 if( this.parent != null ) {
 // The backgroundImage on the parent will become  so
we need to keep the class around
 // for every object updateDisplayList
 if( imgCls == null ) {
 var backgroundImage:Object = UIComponent(
this.parent ).getStyle( backgroundImage );
 if( backgroundImage != null  backgroundImage != 
) {
 imgCls = Class( backgroundImage );
 (this.parent as UIComponent).setStyle(
backgroundImage,  );
 }
 }
 // Do the actually bitmap filling here
 if( imgCls != null ) {
 try {
 // imgCls could be a symbol in a SWF and the
class will not work
 var background:BitmapAsset = BitmapAsset(new
imgCls());
 tile = background.bitmapData;

 var transform: Matrix = new Matrix();

 graphics.clear();
 graphics.beginBitmapFill(tile, transform, true);
 graphics.drawRect(0, 0, unscaledWidth,
unscaledHeight);
 } catch( e:TypeError ) {
 // Throw an custom error if imgCls is not a
valid type
 throw new Error( backgroundImage value is not a
valid image class );
 } finally {
 ;// Catch all just ignore
 }
 }
 }
 }
 }
}

Now, a CSS file with the RepeatedBackgroundBox definition:

RepeatedBackgroundBox
{
 paddingRight: 10;
 paddingLeft: 10;
 paddingTop: 5;
 borderSkin: ClassReference(RepeatedBackground);
 background-image: Embed(/assets/images/bg.gif);
}

Now all I have to do to use it is:

custom:RepeatedBackgroundBox
Other components here
/custom:RepeatedBackgroundBox


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

 And then How can I set the page's background like in the HTML Css?
 That is:
 background-repeat: repeat-x;
 background-PositionX: left;
 background-PositionY: bottom;

 --- In flexcoders@yahoogroups.com, Michael Schmalle
 teoti.graphix@ wrote:
 
  No, you can't do this.
 
  Flex CSS is not 'real' css and does not conform to WC3.
 
  Mike
 




[flexcoders] Re: Flex Css Html Css

2008-06-09 Thread valdhor
This is how I do it:

I create an empty component named RepeatedBackgroundBox.mxml:

?xml version=1.0 encoding=utf-8?
mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100%
height=100%

/mx:VBox


Next I create an AS file named RepeatedBackground.as:

/*
 RepeatedBackground

 Use this BorderSkin with backgroundImage

 Embed properties scaleGridTop, scaleGridBottom, scaleGridLeft, and
scaleGridRight do not work.
*/
package
{
 import flash.display.Bitmap;
 import flash.display.BitmapData;
 import flash.display.Graphics;
 import flash.display.Loader;
 import flash.events.Event;
 import flash.events.IOErrorEvent;
 import flash.geom.Matrix;
 import flash.net.URLRequest;

 import mx.controls.Image;
 import mx.core.BitmapAsset;
 import mx.graphics.RectangularDropShadow;
 import mx.skins.RectangularBorder;
 import mx.core.Application;
 import mx.core.UIComponent;

 public class RepeatedBackground extends RectangularBorder {

 private var tile:BitmapData;

 private var imgCls:Class;

 override protected function
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
 super.updateDisplayList(unscaledWidth, unscaledHeight);

 // Use UIComponent to handle any container

 // Check if parent is valid
 // In some Application initializaton states this might be
false, I was getting an error
 if( this.parent != null ) {
 // The backgroundImage on the parent will become  so
we need to keep the class around
 // for every object updateDisplayList
 if( imgCls == null ) {
 var backgroundImage:Object = UIComponent(
this.parent ).getStyle( backgroundImage );
 if( backgroundImage != null  backgroundImage != 
) {
 imgCls = Class( backgroundImage );
 (this.parent as UIComponent).setStyle(
backgroundImage,  );
 }
 }
 // Do the actually bitmap filling here
 if( imgCls != null ) {
 try {
 // imgCls could be a symbol in a SWF and the
class will not work
 var background:BitmapAsset = BitmapAsset(new
imgCls());
 tile = background.bitmapData;

 var transform: Matrix = new Matrix();

 graphics.clear();
 graphics.beginBitmapFill(tile, transform, true);
 graphics.drawRect(0, 0, unscaledWidth,
unscaledHeight);
 } catch( e:TypeError ) {
 // Throw an custom error if imgCls is not a
valid type
 throw new Error( backgroundImage value is not a
valid image class );
 } finally {
 ;// Catch all just ignore
 }
 }
 }
 }
 }
}

Now, a CSS file with the RepeatedBackgroundBox definition:

RepeatedBackgroundBox
{
 paddingRight: 10;
 paddingLeft: 10;
 paddingTop: 5;
 borderSkin: ClassReference(RepeatedBackground);
 background-image: Embed(/assets/images/bg.gif);
}

Now all I have to do to use it is:

custom:RepeatedBackgroundBox
Other components here
/custom:RepeatedBackgroundBox


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

 And then How can I set the page's background like in the HTML Css?
 That is:
 background-repeat: repeat-x;
 background-PositionX: left;
 background-PositionY: bottom;

 --- In flexcoders@yahoogroups.com, Michael Schmalle
 teoti.graphix@ wrote:
 
  No, you can't do this.
 
  Flex CSS is not 'real' css and does not conform to WC3.
 
  Mike
 




Re: [flexcoders] new to VO's, why won't this cast?

2008-06-09 Thread Jon Bradley


On Jun 9, 2008, at 1:54 PM, Derrick Anderson wrote:

var testVO:EmployeeVO = DataGrid(event.currentTarget).selectedItem  
as EmployeeVO;


Maybe this will help:

var testVO:EmployeeVO = EmployeeVO(event.currentTarget.selectedItem);

or

var testVO:EmployeeVO = event.currentTarget.selectedItem as EmployeeVO;


good luck,

jon

Re: [flexcoders] new to VO's, why won't this cast?

2008-06-09 Thread Derrick Anderson
i tried your first suggestion, the second one I had already tried- at least
with this one I get an error

TypeError: Error #1034: Type Coercion failed: cannot convert
[EMAIL PROTECTED] com.winn.vo.EmployeeVO.

Still the same question though, the datatypes seem to be compatible- so why
the error?

thanks,
d.

On Mon, Jun 9, 2008 at 2:07 PM, Jon Bradley [EMAIL PROTECTED]
wrote:


 On Jun 9, 2008, at 1:54 PM, Derrick Anderson wrote:

 var testVO:EmployeeVO = DataGrid(event.currentTarget).selectedItem as
 EmployeeVO;


 Maybe this will help:

 var testVO:EmployeeVO = EmployeeVO(event.currentTarget.selectedItem);

 or

 var testVO:EmployeeVO = event.currentTarget.selectedItem as EmployeeVO;

 good luck,

 jon
  



[flexcoders] Re: changing AIR application width and height

2008-06-09 Thread valdhor
Here is a quick little demo you can look at:

?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
 mx:Script
 ![CDATA[
 private function goFullScreen(event:MouseEvent):void
 {
 stage.displayState = StageDisplayState.FULL_SCREEN;
 goFullButton.visible = false;
 goNormButton.visible = true;
 moveWindow.visible = false;
 }

 private function goNormalScreen(event:MouseEvent):void
 {
 stage.displayState = StageDisplayState.NORMAL;
 goFullButton.visible = true;
 goNormButton.visible = false;
 moveWindow.visible = true;
 }

 private function moveThisWindow(event:MouseEvent):void
 {
 var win:NativeWindow = this.stage.nativeWindow;
 win.x = 600;
 win.y = 300;
 win.width = 400;
 win.height = 200;
 }
 ]]
 /mx:Script

 mx:Button id=goFullButton label=Full Screen enabled=true
click=goFullScreen(event)/
 mx:Button id=goNormButton label=Normal Screen enabled=true
click=goNormalScreen(event) visible=false/

 mx:Button id=moveWindow label=Move Window enabled=true
click=moveThisWindow(event) x=200/
/mx:WindowedApplication


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

 Hi,

 How to change an AIR application width and height at run time.

 Also how to change the x and y coordinates at run time.

 I am trying to change them by accessing with this..

 this.width
 this.height
 this.x
 this.y


 This is not helping always...

 Please help...

 Thanks,
 Sudha.




[flexcoders] Re: changing AIR application width and height

2008-06-09 Thread valdhor
Here is a quick little demo you can look at:

?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
 mx:Script
 ![CDATA[
 private function goFullScreen(event:MouseEvent):void
 {
 stage.displayState = StageDisplayState.FULL_SCREEN;
 goFullButton.visible = false;
 goNormButton.visible = true;
 moveWindow.visible = false;
 }

 private function goNormalScreen(event:MouseEvent):void
 {
 stage.displayState = StageDisplayState.NORMAL;
 goFullButton.visible = true;
 goNormButton.visible = false;
 moveWindow.visible = true;
 }

 private function moveThisWindow(event:MouseEvent):void
 {
 var win:NativeWindow = this.stage.nativeWindow;
 win.x = 600;
 win.y = 300;
 win.width = 400;
 win.height = 200;
 }
 ]]
 /mx:Script

 mx:Button id=goFullButton label=Full Screen enabled=true
click=goFullScreen(event)/
 mx:Button id=goNormButton label=Normal Screen enabled=true
click=goNormalScreen(event) visible=false/

 mx:Button id=moveWindow label=Move Window enabled=true
click=moveThisWindow(event) x=200/
/mx:WindowedApplication


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

 Hi,

 How to change an AIR application width and height at run time.

 Also how to change the x and y coordinates at run time.

 I am trying to change them by accessing with this..

 this.width
 this.height
 this.x
 this.y


 This is not helping always...

 Please help...

 Thanks,
 Sudha.




Re: [flexcoders] new to VO's, why won't this cast?

2008-06-09 Thread Sherif Abdou
can you give me a bit of code and I'll look at it so i can compile the examples 


- Original Message 
From: Derrick Anderson [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, June 9, 2008 1:21:51 PM
Subject: Re: [flexcoders] new to VO's, why won't this cast?


i tried your first suggestion, the second one I had already tried- at least 
with this one I get an error

TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] 
to com.winn.vo. EmployeeVO.

Still the same question though, the datatypes seem to be compatible- so why the 
error?

thanks,
d.


On Mon, Jun 9, 2008 at 2:07 PM, Jon Bradley [EMAIL PROTECTED] l.com wrote:



On Jun 9, 2008, at 1:54 PM, Derrick Anderson wrote:

var testVO:EmployeeVO = DataGrid(event. currentTarget) .selectedItem as 
EmployeeVO;


Maybe this will help:

var testVO:EmployeeVO = EmployeeVO(event. currentTarget. selectedItem) ;

or
var testVO:EmployeeVO = event.currentTarget .selectedItem as EmployeeVO;


good luck,

jon 



  

Re: [flexcoders] new to VO's, why won't this cast?

2008-06-09 Thread Sherif Abdou
come to think of it I think you may need to write your own conversion 


- Original Message 
From: Sherif Abdou [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, June 9, 2008 1:39:05 PM
Subject: Re: [flexcoders] new to VO's, why won't this cast?


can you give me a bit of code and I'll look at it so i can compile the examples 


- Original Message 
From: Derrick Anderson no.way.this. is.in.use@ gmail.com
To: [EMAIL PROTECTED] ups.com
Sent: Monday, June 9, 2008 1:21:51 PM
Subject: Re: [flexcoders] new to VO's, why won't this cast?


i tried your first suggestion, the second one I had already tried- at least 
with this one I get an error

TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] 
to com.winn.vo. EmployeeVO.

Still the same question though, the datatypes seem to be compatible- so why the 
error?

thanks,
d.


On Mon, Jun 9, 2008 at 2:07 PM, Jon Bradley [EMAIL PROTECTED] l.com wrote:



On Jun 9, 2008, at 1:54 PM, Derrick Anderson wrote:

var testVO:EmployeeVO = DataGrid(event. currentTarget) .selectedItem as 
EmployeeVO;


Maybe this will help:

var testVO:EmployeeVO = EmployeeVO(event. currentTarget. selectedItem) ;

or
var testVO:EmployeeVO = event.currentTarget .selectedItem as EmployeeVO;


good luck,

jon 




  

Re: [flexcoders] new to VO's, why won't this cast?

2008-06-09 Thread Derrick Anderson
ok, here is EmployeeVO.as

*package com.winn.vo
{
[Bindable]
public class EmployeeVO
{
public var employeeID:uint;
public var roleID:Number;
public var employeeTypeID:Number;
public var employeeStatusID:Number;

}
}*

then in my mxml file i have a simple datagrid

*mx:DataGrid
id=employeeDataGrid
width=100% height=100%
dataProvider={ EmployeesModel.getInstance().employeesList }
*
with a click listener

*employeeDataGrid.addEventListener( MouseEvent.CLICK, clickHandler );*

and here is clickHandler

*public function clickHandler(event:MouseEvent):void
{
var testVO:EmployeeVO =
EmployeeVO(event.currentTarget.selectedItem);
Alert.show(testVO.employeeID.toString());
}*

and the selectedItem has these properties...

*employeeID = 1830 [0x726]
employeeStatusID = 2
employeeTypeID = 1
mx_internal_uid = D3C
roleID = 3*



On Mon, Jun 9, 2008 at 2:39 PM, Sherif Abdou [EMAIL PROTECTED] wrote:

   can you give me a bit of code and I'll look at it so i can compile the
 examples

 - Original Message 
 From: Derrick Anderson [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Monday, June 9, 2008 1:21:51 PM
 Subject: Re: [flexcoders] new to VO's, why won't this cast?

  i tried your first suggestion, the second one I had already tried- at
 least with this one I get an error

 TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL 
 PROTECTED] com.winn.vo. EmployeeVO.

 Still the same question though, the datatypes seem to be compatible- so why
 the error?

 thanks,
 d.

 On Mon, Jun 9, 2008 at 2:07 PM, Jon Bradley [EMAIL PROTECTED] l.com[EMAIL 
 PROTECTED]
 wrote:


 On Jun 9, 2008, at 1:54 PM, Derrick Anderson wrote:

 var testVO:EmployeeVO = DataGrid(event. currentTarget) .selectedItem as
 EmployeeVO;


 Maybe this will help:

 var testVO:EmployeeVO = EmployeeVO(event. currentTarget. selectedItem) ;

 or

 var testVO:EmployeeVO = event.currentTarget .selectedItem as EmployeeVO;

 good luck,

 jon



  



[flexcoders] Enabling or disabling individual rows

2008-06-09 Thread kpjj31
I have a list of task items that need to be completed in order. Does 
anyone know if there is a way to enable and disable rows of a datagrid 
or a repeater based on weather or not an item in the array collection 
has a particular value. I really would like to avoid alerting the user 
when they skip over a task. Any ideas would be appreciated. Thank you.



Re: [flexcoders] new to VO's, why won't this cast?

2008-06-09 Thread Sherif Abdou
Ok i think you can't do that since I am looking at Adobe Flex Professional 2.0 
wrox book and they have a similar example and what they did was
EmployeeVO.employeeID = objectName.employeeID;


- Original Message 
From: Derrick Anderson [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, June 9, 2008 1:51:08 PM
Subject: Re: [flexcoders] new to VO's, why won't this cast?


ok, here is EmployeeVO.as

package com.winn.vo
{
[Bindable]
public class EmployeeVO
{
public var employeeID:uint;
public var roleID:Number;
public var employeeTypeID: Number;
public var employeeStatusID: Number;

}
}

then in my mxml file i have a simple datagrid

mx:DataGrid 
id=employeeDataGrid 
width=100% height=100% 
dataProvider={ EmployeesModel. getInstance( ).employeesList } 

with a click listener

employeeDataGrid. addEventListener ( MouseEvent.CLICK, clickHandler );

and here is clickHandler

public function clickHandler( event:MouseEvent ):void
{
var testVO:EmployeeVO = EmployeeVO(event. currentTarget. 
selectedItem) ;
Alert.show(testVO. employeeID. toString( ));
}

and the selectedItem has these properties.. .

employeeID = 1830 [0x726]
employeeStatusID = 2
employeeTypeID = 1
mx_internal_ uid = D3C
roleID = 3




On Mon, Jun 9, 2008 at 2:39 PM, Sherif Abdou [EMAIL PROTECTED] com wrote:

can you give me a bit of code and I'll look at it so i can compile the examples 


- Original Message 
From: Derrick Anderson no.way.this. is.in.use@ gmail.com
To: [EMAIL PROTECTED] ups.com
Sent: Monday, June 9, 2008 1:21:51 PM
Subject: Re: [flexcoders] new to VO's, why won't this cast?


i tried your first suggestion, the second one I had already tried- at least 
with this one I get an error

TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] 
to com.winn.vo. EmployeeVO.

Still the same question though, the datatypes seem to be compatible- so why the 
error?

thanks,
d.


On Mon, Jun 9, 2008 at 2:07 PM, Jon Bradley [EMAIL PROTECTED] l.com wrote:



On Jun 9, 2008, at 1:54 PM, Derrick Anderson wrote:

var testVO:EmployeeVO = DataGrid(event. currentTarget) .selectedItem as 
EmployeeVO;


Maybe this will help:

var testVO:EmployeeVO = EmployeeVO(event. currentTarget. selectedItem) ;

or
var testVO:EmployeeVO = event.currentTarget .selectedItem as EmployeeVO;


good luck,

jon 

 



  

[flexcoders] Multiple applications in SWF file

2008-06-09 Thread twcrone70
Is there a case where you would have more than one root Application in
a SWF?

- Todd



Re: [flexcoders] new to VO's, why won't this cast?

2008-06-09 Thread Derrick Anderson
i've seen other examples of this working..

http://casario.blogs.com/mmworld/2007/04/passing_actions.html

i tried setting it a property at a time and that of course works- but i'll
have to write much more code and it will be harder to maintain.

thanks,
d.

On Mon, Jun 9, 2008 at 2:59 PM, Sherif Abdou [EMAIL PROTECTED] wrote:

   Ok i think you can't do that since I am looking at Adobe Flex
 Professional 2.0 wrox book and they have a similar example and what they did
 was
 EmployeeVO.employeeID = objectName.employeeID;

 - Original Message 
 From: Derrick Anderson [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Monday, June 9, 2008 1:51:08 PM
 Subject: Re: [flexcoders] new to VO's, why won't this cast?

  ok, here is EmployeeVO.as

 *package com.winn.vo
 {
 [Bindable]
 public class EmployeeVO
 {
 public var employeeID:uint;
 public var roleID:Number;
 public var employeeTypeID: Number;
 public var employeeStatusID: Number;

 }
 }*

 then in my mxml file i have a simple datagrid

 *mx:DataGrid
 id=employeeDataGrid
 width=100% height=100%
 dataProvider={ EmployeesModel. getInstance( ).employeesList }
 *
 with a click listener

 *employeeDataGrid. addEventListener ( MouseEvent.CLICK, clickHandler );*

 and here is clickHandler

 *public function clickHandler( event:MouseEvent ):void
 {
 var testVO:EmployeeVO = EmployeeVO(event. currentTarget.
 selectedItem) ;
 Alert.show(testVO. employeeID. toString( ));
 }*

 and the selectedItem has these properties.. .

 *employeeID = 1830 [0x726]
 employeeStatusID = 2
 employeeTypeID = 1
 mx_internal_ uid = D3C
 roleID = 3*



 On Mon, Jun 9, 2008 at 2:39 PM, Sherif Abdou [EMAIL PROTECTED] com[EMAIL 
 PROTECTED]
 wrote:

   can you give me a bit of code and I'll look at it so i can compile the
 examples

 - Original Message 
 From: Derrick Anderson no.way.this. is.in.use@ gmail.com[EMAIL PROTECTED]
 
 To: [EMAIL PROTECTED] ups.com flexcoders@yahoogroups.com
 Sent: Monday, June 9, 2008 1:21:51 PM
 Subject: Re: [flexcoders] new to VO's, why won't this cast?

  i tried your first suggestion, the second one I had already tried- at
 least with this one I get an error

 TypeError: Error #1034: Type Coercion failed: cannot convert
 [EMAIL PROTECTED] to com.winn.vo. EmployeeVO.

 Still the same question though, the datatypes seem to be compatible- so
 why the error?

 thanks,
 d.

 On Mon, Jun 9, 2008 at 2:07 PM, Jon Bradley [EMAIL PROTECTED] l.com[EMAIL 
 PROTECTED]
 wrote:


 On Jun 9, 2008, at 1:54 PM, Derrick Anderson wrote:

 var testVO:EmployeeVO = DataGrid(event. currentTarget) .selectedItem as
 EmployeeVO;


 Maybe this will help:

 var testVO:EmployeeVO = EmployeeVO(event. currentTarget. selectedItem) ;

 or

 var testVO:EmployeeVO = event.currentTarget .selectedItem as EmployeeVO;

 good luck,

 jon





  



Re: [flexcoders] new to VO's, why won't this cast?

2008-06-09 Thread Derrick Anderson
actually, the link was
http://casario.blogs.com/mmworld/2007/04/casting_a_datag.html

it's a very simple example of exactly what I'm trying to do.

d.

On Mon, Jun 9, 2008 at 3:09 PM, Derrick Anderson 
[EMAIL PROTECTED] wrote:

 i've seen other examples of this working..

 http://casario.blogs.com/mmworld/2007/04/passing_actions.html

 i tried setting it a property at a time and that of course works- but i'll
 have to write much more code and it will be harder to maintain.

 thanks,
 d.


 On Mon, Jun 9, 2008 at 2:59 PM, Sherif Abdou [EMAIL PROTECTED] wrote:

   Ok i think you can't do that since I am looking at Adobe Flex
 Professional 2.0 wrox book and they have a similar example and what they did
 was
 EmployeeVO.employeeID = objectName.employeeID;

 - Original Message 
 From: Derrick Anderson [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Monday, June 9, 2008 1:51:08 PM
 Subject: Re: [flexcoders] new to VO's, why won't this cast?

  ok, here is EmployeeVO.as

 *package com.winn.vo
 {
 [Bindable]
 public class EmployeeVO
 {
 public var employeeID:uint;
 public var roleID:Number;
 public var employeeTypeID: Number;
 public var employeeStatusID: Number;

 }
 }*

 then in my mxml file i have a simple datagrid

 *mx:DataGrid
 id=employeeDataGrid
 width=100% height=100%
 dataProvider={ EmployeesModel. getInstance( ).employeesList }
 *
 with a click listener

 *employeeDataGrid. addEventListener ( MouseEvent.CLICK, clickHandler );*

 and here is clickHandler

 *public function clickHandler( event:MouseEvent ):void
 {
 var testVO:EmployeeVO = EmployeeVO(event. currentTarget.
 selectedItem) ;
 Alert.show(testVO. employeeID. toString( ));
 }*

 and the selectedItem has these properties.. .

 *employeeID = 1830 [0x726]
 employeeStatusID = 2
 employeeTypeID = 1
 mx_internal_ uid = D3C
 roleID = 3*



 On Mon, Jun 9, 2008 at 2:39 PM, Sherif Abdou [EMAIL PROTECTED] com[EMAIL 
 PROTECTED]
 wrote:

   can you give me a bit of code and I'll look at it so i can compile the
 examples

 - Original Message 
 From: Derrick Anderson no.way.this. is.in.use@ gmail.com[EMAIL PROTECTED]
 
  To: [EMAIL PROTECTED] ups.com flexcoders@yahoogroups.com
 Sent: Monday, June 9, 2008 1:21:51 PM
 Subject: Re: [flexcoders] new to VO's, why won't this cast?

  i tried your first suggestion, the second one I had already tried- at
 least with this one I get an error

 TypeError: Error #1034: Type Coercion failed: cannot convert
 [EMAIL PROTECTED] to com.winn.vo. EmployeeVO.

 Still the same question though, the datatypes seem to be compatible- so
 why the error?

 thanks,
 d.

 On Mon, Jun 9, 2008 at 2:07 PM, Jon Bradley [EMAIL PROTECTED] l.com[EMAIL 
 PROTECTED]
 wrote:


 On Jun 9, 2008, at 1:54 PM, Derrick Anderson wrote:

 var testVO:EmployeeVO = DataGrid(event. currentTarget) .selectedItem as
 EmployeeVO;


 Maybe this will help:

 var testVO:EmployeeVO = EmployeeVO(event. currentTarget. selectedItem) ;

 or

 var testVO:EmployeeVO = event.currentTarget .selectedItem as EmployeeVO;

 good luck,

 jon





  





Re: [flexcoders] new to VO's, why won't this cast?

2008-06-09 Thread Sherif Abdou
well are you getting this from a Database, if you are then you may be able to 
use the RemoteClass metadata?


- Original Message 
From: Derrick Anderson [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, June 9, 2008 2:12:48 PM
Subject: Re: [flexcoders] new to VO's, why won't this cast?


actually, the link was http://casario. blogs.com/ mmworld/2007/ 04/casting_ 
a_datag.html

it's a very simple example of exactly what I'm trying to do.

d.


On Mon, Jun 9, 2008 at 3:09 PM, Derrick Anderson no.way.this. is.in.use@ 
gmail.com wrote:

i've seen other examples of this working..

http://casario. blogs.com/ mmworld/2007/ 04/passing_ actions.html

i tried setting it a property at a time and that of course works- but i'll have 
to write much more code and it will be harder to maintain.

thanks,
d.



On Mon, Jun 9, 2008 at 2:59 PM, Sherif Abdou [EMAIL PROTECTED] com wrote:

Ok i think you can't do that since I am looking at Adobe Flex Professional 2.0 
wrox book and they have a similar example and what they did was
EmployeeVO.employee ID = objectName.employee ID;


- Original Message 
From: Derrick Anderson no.way.this. is.in.use@ gmail.com
To: [EMAIL PROTECTED] ups.com

Sent: Monday, June 9, 2008 1:51:08 PM
Subject: Re: [flexcoders] new to VO's, why won't this cast?


ok, here is EmployeeVO.as

package com.winn.vo
{
[Bindable]
public class EmployeeVO
{
public var employeeID:uint;
public var roleID:Number;
public var employeeTypeID: Number;
public var employeeStatusID: Number;

}
}

then in my mxml file i have a simple datagrid

mx:DataGrid 
id=employeeDataGrid 
width=100% height=100% 
dataProvider={ EmployeesModel. getInstance( ).employeesList } 

with a click listener

employeeDataGrid. addEventListener ( MouseEvent.CLICK, clickHandler );

and here is clickHandler

public function clickHandler( event:MouseEvent ):void
{
var testVO:EmployeeVO = EmployeeVO(event. currentTarget. 
selectedItem) ;
Alert.show(testVO. employeeID. toString( ));
}

and the selectedItem has these properties.. .

employeeID = 1830 [0x726]
employeeStatusID = 2
employeeTypeID = 1
mx_internal_ uid = D3C
roleID = 3




On Mon, Jun 9, 2008 at 2:39 PM, Sherif Abdou [EMAIL PROTECTED] com wrote:

can you give me a bit of code and I'll look at it so i can compile the examples 


- Original Message 
From: Derrick Anderson no.way.this. is.in.use@ gmail.com

To: [EMAIL PROTECTED] ups.com
Sent: Monday, June 9, 2008 1:21:51 PM
Subject: Re: [flexcoders] new to VO's, why won't this cast?


i tried your first suggestion, the second one I had already tried- at least 
with this one I get an error

TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] 
to com.winn.vo. EmployeeVO.

Still the same question though, the datatypes seem to be compatible- so why the 
error?

thanks,
d.


On Mon, Jun 9, 2008 at 2:07 PM, Jon Bradley [EMAIL PROTECTED] l.com wrote:



On Jun 9, 2008, at 1:54 PM, Derrick Anderson wrote:

var testVO:EmployeeVO = DataGrid(event. currentTarget) .selectedItem as 
EmployeeVO;


Maybe this will help:

var testVO:EmployeeVO = EmployeeVO(event. currentTarget. selectedItem) ;

or
var testVO:EmployeeVO = event.currentTarget .selectedItem as EmployeeVO;


good luck,

jon 

 

 




  

[flexcoders] Listening for mainScreen changes in AIR

2008-06-09 Thread Daniel Gold
Are there any events raised when the mainScreen is changed in an AIR
application? I've noticed this happens if you're using Spaces in OS X and
therefore assume it happens when using similar virtual workspace
applications under Windows and Linux. For raising notification windows, etc,
I would like to know when the main screen change has occured. The
documentation states that no properties of the Screen class should be
cached, but that also means events should be raised so we know when changes
occur. Between two consecutive frames the mainScreen could change and I'd
like to make sure my AIR app behaves as expected.


Re: [flexcoders] new to VO's, why won't this cast?

2008-06-09 Thread Derrick Anderson
i do get the employee list from a database, and I tried putting RemoteClass
metadata on the VO class with an alias- no luck- same error.

d.

On Mon, Jun 9, 2008 at 3:26 PM, Sherif Abdou [EMAIL PROTECTED] wrote:

   well are you getting this from a Database, if you are then you may be
 able to use the RemoteClass metadata?

 - Original Message 
 From: Derrick Anderson [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Monday, June 9, 2008 2:12:48 PM
 Subject: Re: [flexcoders] new to VO's, why won't this cast?

  actually, the link was http://casario. blogs.com/ mmworld/2007/
 04/casting_ 
 a_datag.htmlhttp://casario.blogs.com/mmworld/2007/04/casting_a_datag.html

 it's a very simple example of exactly what I'm trying to do.

 d.

 On Mon, Jun 9, 2008 at 3:09 PM, Derrick Anderson no.way.this. is.in.use@
 gmail.com [EMAIL PROTECTED] wrote:

 i've seen other examples of this working..

 http://casario. blogs.com/ mmworld/2007/ 04/passing_ 
 actions.htmlhttp://casario.blogs.com/mmworld/2007/04/passing_actions.html

 i tried setting it a property at a time and that of course works- but i'll
 have to write much more code and it will be harder to maintain.

 thanks,
 d.


 On Mon, Jun 9, 2008 at 2:59 PM, Sherif Abdou [EMAIL PROTECTED] com[EMAIL 
 PROTECTED]
 wrote:

   Ok i think you can't do that since I am looking at Adobe Flex
 Professional 2.0 wrox book and they have a similar example and what they did
 was
 EmployeeVO.employee ID = objectName.employee ID;

 - Original Message 
 From: Derrick Anderson no.way.this. is.in.use@ gmail.com[EMAIL PROTECTED]
 
 To: [EMAIL PROTECTED] ups.com flexcoders@yahoogroups.com
 Sent: Monday, June 9, 2008 1:51:08 PM
 Subject: Re: [flexcoders] new to VO's, why won't this cast?

  ok, here is EmployeeVO.as

 *package com.winn.vo
 {
 [Bindable]
 public class EmployeeVO
 {
 public var employeeID:uint;
 public var roleID:Number;
 public var employeeTypeID: Number;
 public var employeeStatusID: Number;

 }
 }*

 then in my mxml file i have a simple datagrid

 *mx:DataGrid
 id=employeeDataGrid
 width=100% height=100%
 dataProvider={ EmployeesModel. getInstance( ).employeesList }
 *
 with a click listener

 *employeeDataGrid. addEventListener ( MouseEvent.CLICK, clickHandler );*

 and here is clickHandler

 *public function clickHandler( event:MouseEvent ):void
 {
 var testVO:EmployeeVO = EmployeeVO(event. currentTarget.
 selectedItem) ;
 Alert.show(testVO. employeeID. toString( ));
 }*

 and the selectedItem has these properties.. .

 *employeeID = 1830 [0x726]
 employeeStatusID = 2
 employeeTypeID = 1
 mx_internal_ uid = D3C
 roleID = 3*



 On Mon, Jun 9, 2008 at 2:39 PM, Sherif Abdou [EMAIL PROTECTED] com[EMAIL 
 PROTECTED]
 wrote:

   can you give me a bit of code and I'll look at it so i can compile
 the examples

 - Original Message 
 From: Derrick Anderson no.way.this. is.in.use@ gmail.com[EMAIL 
 PROTECTED]
 
  To: [EMAIL PROTECTED] ups.com flexcoders@yahoogroups.com
 Sent: Monday, June 9, 2008 1:21:51 PM
 Subject: Re: [flexcoders] new to VO's, why won't this cast?

  i tried your first suggestion, the second one I had already tried- at
 least with this one I get an error

 TypeError: Error #1034: Type Coercion failed: cannot convert
 [EMAIL PROTECTED] to com.winn.vo. EmployeeVO.

 Still the same question though, the datatypes seem to be compatible- so
 why the error?

 thanks,
 d.

 On Mon, Jun 9, 2008 at 2:07 PM, Jon Bradley [EMAIL PROTECTED] 
 l.com[EMAIL PROTECTED]
 wrote:


 On Jun 9, 2008, at 1:54 PM, Derrick Anderson wrote:

 var testVO:EmployeeVO = DataGrid(event. currentTarget) .selectedItem as
 EmployeeVO;


 Maybe this will help:

 var testVO:EmployeeVO = EmployeeVO(event. currentTarget. selectedItem)
 ;

 or

 var testVO:EmployeeVO = event.currentTarget .selectedItem as
 EmployeeVO;

 good luck,

 jon








  



RE: [flexcoders] Creating Data Grid Columns Dynamically?

2008-06-09 Thread Alex Harui
Classes can't be iterated for their properties (plan object can, but not
some class instance).  Iteration only works for dynamic properties.

 

ObjectUtil.getClassInfo will get the list of properties for you.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ethan Miller
Sent: Monday, June 09, 2008 10:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Creating Data Grid Columns Dynamically?

 

Greetings -

I need to construct data grid columns on the fly, ie build the table
from the data. WAs 
thinking I could make column class and that run a for each in loop
adding the columns as 
children to myGrid.columns (as it were). Doesn't work for a variety of
reasons.

Anyone here know how to do this? Sample code perhaps?

thanks, ethan

 



[flexcoders] Re: Enabling or disabling individual rows

2008-06-09 Thread Dmitri Girski
You can do it via custom ItemRenderers.

For each column you have to create IR and there check the condition.
If data meets the criteria - set enabled property of label or checkbox
or whatever is in the IR to false.

Cheers,
Dmitri.


--  http://mitek.id.au/whingingpom


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

 I have a list of task items that need to be completed in order. Does 
 anyone know if there is a way to enable and disable rows of a datagrid 
 or a repeater based on weather or not an item in the array collection 
 has a particular value. I really would like to avoid alerting the user 
 when they skip over a task. Any ideas would be appreciated. Thank you.





[flexcoders] Re: HELP change mouse pointer over text object

2008-06-09 Thread Body Works Studio
Tracy,

Thanks using the atributes in that order did the trick.

Jeff

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

 This takes some combination of the following on the Text component. Try
 them in that order:
 
 mouseChildren=false
 
 buttonMode=true
 
 useHandCursor=true
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Body Works Studio
 Sent: Monday, June 09, 2008 1:56 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] HELP change mouse pointer over text object
 
  
 
 Hi all,
 
 in the result list we use to use the linkButton to display the name of
 the doc coming back in the rss. Problem was the button would either
 extend into the next object to the right, r if we sized the button we
 got the truncated text with ... at the end.
 
 So as a workaround I make the rss url a text object. Now the problem
 is we loose the pointer cursor and have the editable text cursor.
 
 Does any have solution to either make a link button contain multiple
 lines of text, or change the muse pointer on mouse over?
 
 Thanks
 
 Jeff





[flexcoders] Attaching custom data to events (while avoiding race condition)

2008-06-09 Thread robbarreca
Say I have two functions load() and handleComplete(event:Event). Right
now to get custom data to handleComplete I do something like this

private var someFlag:uint = 0;

function load() {
  loader.addEventListener(handleComplete);  
  someFlag = determineFlag();
  loader.loadSomeStuff();
}

function handleComplete(event:Event) {
  trace(someFlag);
}

But if I call this super fast, someFlag is gonna be wrong. I've seen a
method where you can add an anonymous function somehow, but I'm pretty
sure that even faced the same race condition problem. What is the
*proper* way to go about this?



Re: [flexcoders] Re: How to expose Hibernate 'non' conventional beans into flex apps via remoting

2008-06-09 Thread [p e r c e p t i c o n]
Hi Mehdi,
I would also look here:
http://livedocs.adobe.com/blazeds/1/blazeds_devguide/

under rpc components / extending applications with factories
I did this using ejb3 and seam and i'm sure you can do it with Hibernate as
well...

best

p


On Mon, Jun 9, 2008 at 6:26 AM, Mehdi [EMAIL PROTECTED] wrote:

   Sounds good,

 Will give it a try as soon as it is out.
 thanks.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jens
 Halm [EMAIL PROTECTED] wrote:

 
 
   Robert, I am going to try out the DTO/Assembler approach (Something
   tells me it is worth the initial investment). Any pointers, samples,
   whatever will be great. If you dont have anything, no worries, will
   figure it out. Thank you.
   And again, great Blog...! Will be adding my experience once I am done
   looking at the second alternative.
 
  While this isn't going to help you now, you might be interested in
  that we intend to solve a lot of these issues with our forthcoming
  Pimento data management framework (Open Source):
 
  http://www.spicefactory.org/pimento/
 
  The problems with closed sessions and huge object graphs will be
  solved through FetchPlans. There will be a default fetch plan which
  is to not serialize any uninitialized Hibernate proxy or collection
  but to include all simple properties and initialized associations.
  But the default can be overwritten for individual calls with FetchPlan
  instances created in AS3.
 
 
  Jens Halm
  Spicefactory
 

  



Re: [flexcoders] new to VO's, why won't this cast?

2008-06-09 Thread Sherif Abdou
well are you using ColdFusion? AMFPHP?


- Original Message 
From: Derrick Anderson [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, June 9, 2008 2:36:26 PM
Subject: Re: [flexcoders] new to VO's, why won't this cast?


i do get the employee list from a database, and I tried putting RemoteClass 
metadata on the VO class with an alias- no luck- same error.

d.


On Mon, Jun 9, 2008 at 3:26 PM, Sherif Abdou [EMAIL PROTECTED] com wrote:

well are you getting this from a Database, if you are then you may be able to 
use the RemoteClass metadata?


- Original Message 
From: Derrick Anderson no.way.this. is.in.use@ gmail.com
To: [EMAIL PROTECTED] ups.com

Sent: Monday, June 9, 2008 2:12:48 PM
Subject: Re: [flexcoders] new to VO's, why won't this cast?


actually, the link was http://casario. blogs.com/ mmworld/2007/ 04/casting_ 
a_datag.html

it's a very simple example of exactly what I'm trying to do.

d.


On Mon, Jun 9, 2008 at 3:09 PM, Derrick Anderson no.way.this. is.in.use@ 
gmail.com wrote:

i've seen other examples of this working..

http://casario. blogs.com/ mmworld/2007/ 04/passing_ actions.html

i tried setting it a property at a time and that of course works- but i'll have 
to write much more code and it will be harder to maintain.

thanks,
d.



On Mon, Jun 9, 2008 at 2:59 PM, Sherif Abdou [EMAIL PROTECTED] com wrote:

Ok i think you can't do that since I am looking at Adobe Flex Professional 2.0 
wrox book and they have a similar example and what they did was
EmployeeVO.employee ID = objectName.employee ID;


- Original Message 
From: Derrick Anderson no.way.this. is.in.use@ gmail.com
To: [EMAIL PROTECTED] ups.com

Sent: Monday, June 9, 2008 1:51:08 PM
Subject: Re: [flexcoders] new to VO's, why won't this cast?


ok, here is EmployeeVO.as

package com.winn.vo
{
[Bindable]
public class EmployeeVO
{
public var employeeID:uint;
public var roleID:Number;
public var employeeTypeID: Number;
public var employeeStatusID: Number;

}
}

then in my mxml file i have a simple datagrid

mx:DataGrid 
id=employeeDataGrid 
width=100% height=100% 
dataProvider={ EmployeesModel. getInstance( ).employeesList } 

with a click listener

employeeDataGrid. addEventListener ( MouseEvent.CLICK, clickHandler );

and here is clickHandler

public function clickHandler( event:MouseEvent ):void
{
var testVO:EmployeeVO = EmployeeVO(event. currentTarget. 
selectedItem) ;
Alert.show(testVO. employeeID. toString( ));
}

and the selectedItem has these properties.. .

employeeID = 1830 [0x726]
employeeStatusID = 2
employeeTypeID = 1
mx_internal_ uid = D3C
roleID = 3




On Mon, Jun 9, 2008 at 2:39 PM, Sherif Abdou [EMAIL PROTECTED] com wrote:

can you give me a bit of code and I'll look at it so i can compile the examples 


- Original Message 
From: Derrick Anderson no.way.this. is.in.use@ gmail.com

To: [EMAIL PROTECTED] ups.com
Sent: Monday, June 9, 2008 1:21:51 PM
Subject: Re: [flexcoders] new to VO's, why won't this cast?


i tried your first suggestion, the second one I had already tried- at least 
with this one I get an error

TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] 
to com.winn.vo. EmployeeVO.

Still the same question though, the datatypes seem to be compatible- so why the 
error?

thanks,
d.


On Mon, Jun 9, 2008 at 2:07 PM, Jon Bradley [EMAIL PROTECTED] l.com wrote:



On Jun 9, 2008, at 1:54 PM, Derrick Anderson wrote:

var testVO:EmployeeVO = DataGrid(event. currentTarget) .selectedItem as 
EmployeeVO;


Maybe this will help:

var testVO:EmployeeVO = EmployeeVO(event. currentTarget. selectedItem) ;

or
var testVO:EmployeeVO = event.currentTarget .selectedItem as EmployeeVO;


good luck,

jon 

 

 


 



  

Re: [flexcoders] Attaching custom data to events (while avoiding race condition)

2008-06-09 Thread Daniel Gold
does determineFlag() do some asynch service call? If so you need to wait and
raise an event or update a var in a model and listen for changes that way.
Otherwise your determineFlag() method will run to completion before the
loader.loadSomeStuff() line is executed, Flash is single threaded for user
code execution so you shouldn't have a race condition there

On Mon, Jun 9, 2008 at 3:55 PM, robbarreca [EMAIL PROTECTED]
wrote:

   Say I have two functions load() and handleComplete(event:Event). Right
 now to get custom data to handleComplete I do something like this

 private var someFlag:uint = 0;

 function load() {
 loader.addEventListener(handleComplete);
 someFlag = determineFlag();
 loader.loadSomeStuff();
 }

 function handleComplete(event:Event) {
 trace(someFlag);
 }

 But if I call this super fast, someFlag is gonna be wrong. I've seen a
 method where you can add an anonymous function somehow, but I'm pretty
 sure that even faced the same race condition problem. What is the
 *proper* way to go about this?

  



[flexcoders] Checking value in ArrayCollection

2008-06-09 Thread flexawesome
Hey there,

I had an ArrayCollection and I need to check if name = carry is exist in the 
ArrayCollection.

I could use objs.source.forEach() to loop the arrayCollection, is there any 
fast way can do 
this as well?

Cheers

public var objs:ArrayCollection = new ArrayCollection();

var obj:Object = new Object();
obj.id = 123;
obj.name = carry;
objs.addItem(obj);

obj = new Object();
obj.id = 198;
obj.name = fred;
objs.addItem(obj);

obj = new Object();
obj.id = 223;
obj.name = henry;
objs.addItem(obj);

obj = new Object();
obj.id = 872;
obj.name = tom;
objs.addItem(obj);

obj = new Object();
obj.id = 190;
obj.name = tom2;
objs.addItem(obj);



  1   2   >