RE: [flexcoders] RESKINNING AN Alert

2007-02-11 Thread James T. Riffe
I'm looking for a way to re-skin the Alert popup. If anybody has a way to-do
it an example would be nice. I've tried taking the Alert into a private
function, however backgroundAlpha, background colors and text colors don't
seem to be available. I'll have to assume if this can't be done either
through AS3 or through CSS that I will have to write a popup to substitute
for the alert.show.

 

Thanks in advance

James

 



RE: [flexcoders] RESKINNING AN Alert

2007-02-11 Thread Paul Williams
Hi James,

 

You can specify custom styles for the buttons, message and title of your
Alert control in CSS or in AS3. The Alert control also inherits styles
from 'Panel' allowing you to set backgroundAlpha, backgroundColor,
borderStyle, etc. This is covered in the Alert control documentation:

 

http://livedocs.macromedia.com/flex/2/langref/mx/controls/Alert.html#sty
leSummary

 

If this doesn't answer your question, could you post more detail
regarding the problems you are experiencing or what you are trying to
achieve?

 

Paul

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of James T. Riffe
Sent: Sunday, February 11, 2007 4:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] RESKINNING AN Alert

 

I'm looking for a way to re-skin the Alert popup. If anybody has a way
to-do it an example would be nice. I've tried taking the Alert into a
private function, however backgroundAlpha, background colors and text
colors don't seem to be available. I'll have to assume if this can't be
done either through AS3 or through CSS that I will have to write a popup
to substitute for the alert.show.

 

Thanks in advance

James

 

 



[flexcoders] Re: RESKINNING AN Alert

2007-02-11 Thread Hasan Otuome
CSS is the easiest way, IMO. For global Alert modifications, add this  
to your stylesheet:


Alert {
/*backgroundGradientColors: #ff,#ff;
backgroundColor: #ff9933;
borderColor: #ff9933;*/
color: #00;
borderSkin: Embed(source=urlToSWFOrPNG);
buttonStyleName: myAlertButtonStyle;
}

.myAlertButtonStyle {
color: #ff;
rollOverColor: #ff;
upSkin: Embed(source=urlToSWFOrPNG);
overSkin: Embed(source=urlToSWFOrPNG);
downSkin: Embed(source=urlToSWFOrPNG);
disabledSkin: Embed(source=urlToSWFOrPNG);
}

throw in your 9-slice grids if you need to and viola! HTH...

P E A C E

Hasan




[flexcoders] Re: Cairngorm - fireing two events at the same time messes the results?

2007-02-11 Thread Danko Kozar
Thanks, 
the web service worked OK until I started setting cairngorn events..
I think the problem is with the EventListeners I implemented in 
delegate that calls the web service..


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

 You can certainly call multiple services at the same time.  If you 
are
 having issues, I would first check to see what the concurrency is 
set to on
 the service as you will get different results depending on the 
setting being
 multiple, single, or last.
 
 As far as calling the services, you can use creationComplete to 
call a
 function that make the service calls.  This is quite common in 
applications
 that I have built that need to have data populate on load.
 
 Rich
 
 On 2/10/07, Danko Kozar [EMAIL PROTECTED] wrote:
 
btw how am I supposed (for the sake of Cairngorm consistency) 
to handle
  calls that are not actions to user gestures, for instance: 
calling 3
  web service methods for filling 3 combo boxes?
 
  Thx!
 
  --- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com, Danko
  Kozar danko.kozar@
  wrote:
  
   I have two Cairngorm events that trigger two commands which 
(using
   delegate) trigger two different web service methods.
  
   The problem is that both calls return the same result set (?).
   It seems that fireing two events at the same time causes this 
problem.
  
   Any suggestions?
  
   Thanks.
  
 
   
 
 
 
 
 -- 
 Rich Tretola
 mx:EverythingFlex/
 http://www.EverythingFlex.com





[flexcoders] Re: Training from the Source - Can't find my error

2007-02-11 Thread oim415
Micahel,

I had the same problem but trying your suggestion with the space
before the keyword valueObjects does not work for me.  I have moved on
by deleting the click event but am curious as to what is causing the
compiler anomoly.  Is there current defect list for Flex that I can
reference?

Oscar

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

 
 Glad you are enjoying it.
 
 We have occasionally seen the same thing. The flex compiler seems to
 get confused with the inline renderer and the valueObject.
 
 This line is the cause:
 
 outerDocument.removeItem(valueObjects.ShoppingCartItem(data));
 
 You can literally go an modify this line by adding a space before the
 word valueObject. Then remove the space and all will work next time
 your compile. 
 
 It doesn't happen everytime on every computer. If it becomes
 problematic, just remove the entire click event from the delete in the
 shopping cart. My guess is that by this point in the book, you
 understand how that is supposed to work.
 
 --Mike
 
 --- In flexcoders@yahoogroups.com, Todd Breiholz talanb@ wrote:
 
  I am working through the Adobe Flex 2 - Training from the Source book.
  (Excellent book, BTW). I am in chapter 11 on the section Create an
  inline MXML Item Renderer for Displaying the Remove Button. I can't
  get beyond this section, because my code won't compile with the
  following error:
  
  1120: Access of undefined property
  valueObjects.   FlexGrocer/views/ecomm  Cart.mxml
 /FlexGrocer/views/ecomm/Cart.mxml 1162264545587   243
  
  Here's my data grid:
  
  mx:DataGrid
  id=cartView
  dataProvider={cart.aItems} width=100% height=100%
  editable=true draggableColumns=false
  variableRowHeight=true
  mx:columns
  mx:DataGridColumn dataField=product 
  headerText=Product
  itemRenderer=renderer.ecomm.ProductName 
  editable=false/
  mx:DataGridColumn dataField=quantity
  itemEditor=mx.controls.NumericStepper
  editorDataField=value editable=true 
  headerText=Quantity /
  mx:DataGridColumn dataField=subtotal 
  headerText=Amount
  labelFunction=renderPriceLabel editable=false /
  mx:DataGridColumn editable=false
  mx:itemRenderer
  mx:Component
  mx:VBox
  mx:Button
  label=Remove
  
 click=outerDocument.removeItem(valueObjects.ShoppingCartItem(data));/
  /mx:VBox
  /mx:Component
  /mx:itemRenderer
  /mx:DataGridColumn
  /mx:columns
  /mx:DataGrid
  
  It's choking on the click event of the inner Button component.
  
  I've even copied the code from the CD into my project but I get the
 same error.
  
  Anyone see what I'm doing wrong?
  
  Thanks!
  
  Todd
 





[flexcoders] Re: New to the group

2007-02-11 Thread Pedro Pastor
Hi Hervé,

I've been browsing some E4X documentation, but it seems it is not
enough for getting a good command of this language (mainly if someone
comes from the XPath realm).

Could you please tell me some good E4X manual with code example? 

Regards,

Pedro


--- In flexcoders@yahoogroups.com, Hervé Crespel [EMAIL PROTECTED]
wrote:

 Hi everybody
 I'm studying E4X and I discover how it is powerfull. I agree with Ben: 
 it is really objects.
 
 just one more detail:
 
 _/[EMAIL PROTECTED]toto means the element subject where the attribute 
 id equals toto
 /subject id=toto .../subject
 
 /while
 
 subject.(@id==toto) means the element subject whith the included 
 element id equals toto
 /subject... idtoto/id .../subject
 
 regards
 Hervé
 _



[flexcoders] Re: Want the SWEETEST Flex theme(s) ever? Contest!

2007-02-11 Thread superstella_uk
--- In flexcoders@yahoogroups.com, Brendan Meutzner [EMAIL PROTECTED]
wrote:

I agree. If it was a serious offer, the author would have some themes
to show, or at least a website.

As it stands, I suspect its just a way to collect your email address
and then spam you. I wish people wouldnt forward these 'offers' on,
but there you go




 Is there a site with these themes?  I'm not sure if this is serious or
 not... if you're pushing Flex themes, why not show us?
 
 Brendan
 
 
 
 On 2/10/07, Chad [EMAIL PROTECTED] wrote:
 
Thought my friends and fam here on the list would be very
interested:
 
  ---
 
  Would you like an eye-popping, application differentiating, super
fresh
  theme for your
  next RIA?
 
  Want an instant turn-key solution to give your app it's own unique
look
  without needing to
  spend a million bucks (and hours) hiring a savvy designer?
 
  Don't want to spend the next two weeks locked in your closet trying to
  figure it out
  yourself- just to come up with something half-assed?
 
  Let's be serious, you want to continue focusing on what you do best -
  developing SWEET
  RIAs'. Now, finally... you can!
 
  Win your FREE, beautifully designed, professional Flex Theme:
  -
 
  We have some beautifully designed professional Flex themes that we've
  spent weeks and
  weeks developing. They are ready for instant use in your hot new
  world-changing RIAs'.
  We eat, drink, breath, and sleep shockingly beautiful UI design.
 
  HOW DO I WIN?
 
  Email me a quick note answering the following 10 questions:
 
  [EMAIL PROTECTED] m3_515hp%40NOSPAMOLA.yahoo.com
 
  WHATS THE PRIZE?
 
  One theme that you PERSONALLY can use however you see fit. That's
right,
  you can even
  use it in corporate ($$$) applications with unrestricted usage.
Anything
  you want, except
  selling the theme itself or distributing it to others.
 
  WHO WINS?
 
  I will select a lucky handful of people- heck maybe a bunch
depending on
  how good your
  responses are!
 
  10 SIMPLE QUESTIONS (please respond via EMAIL to be eligible -
  [EMAIL PROTECTED] m3_515hp%40NOSPAMOLA.yahoo.com):
 
  1) On a scale of 1-10 (1 least, 10 the most) do you and your clients
  realize how critically
  important it is for your RIA's theme/look and feel to be visually
  different than others
  currently on the market?
 
  You: 
 
  Your clients: 
 
  2) How many RIA's will you be working on in the coming year?
 
  3) Percentage wise, will these apps be customer/public facing or
employee
  facing?
 
  Customer/public: %
  Employee: %
  Other: %
 
  4) Out of these, how many will require or benefit from a custom
theme's
  look and feel?
 
  Require: %
  Benefit from: %
 
  5) What kind of cost and time do you budget for an RIA's UI (user
  interface) theme / look
  and feel?
 
  Time: 
  Cost: $
 
  6) How many design revisions does the theme/look and feel typically go
  through until the
  stake-holders give you the thumbs up?
 
  7) How much MORE time and money do you typically end up spending on a
  RIA's theme/
  look and feel than originally had anticipated? What does the total
cost
  end up being?
 
  More time: 
  More money: $
  Total amount of time: 
  Total cost: $
 
  8) What would you consider a fair price for a custom UI Theme
designed and
  built uniquely
  for your application? Including all time required to consult with
you or
  your client to
  determine the demographics, use cases, design direction,
specifications,
  and all revisions.
  Specifically, to not even think about the UI Theme mess so you can
focus
  specifically on
  the RIA development itself?
 
  a) $2+
  b) $15000-$2
  c) $1-$15000
  d) $7500-$1
  e) $5000-$7500
  f) $3500-$5000
  g) $2500-$3500
  h) $1500-$2500
  i) $750-$1500
  j) $400-750
  k) less than $400
 
  9) What would you pay for a shared UI Theme? i.e.: a pre-built
  high-quality theme that is
  sold, but not necessarily used, to a limited or unlimited number
of people
  as an instant
  solution.
 
  Limited: $__
  Unlimited: $__
 
  10) What best describes you (pick all that apply):
 
  a) An individual consultant/freelancer
  b) In a company that offers RIA development services
  c) In a company that is interested in developing an RIA
  d) In a company that has built RIAs in the past
  e) a formally trained developer
  f) a formally trained designer
  g) management
  g) Other: 
 
  Thats it! Thanks for the help and good luck!
 
  Chad
 
   
 
 
 
 
 -- 
 Brendan Meutzner
 Stretch Media - RIA Adobe Flex Development
 [EMAIL PROTECTED]
 http://www.stretchmedia.ca





Re: [flexcoders] Re: Want the SWEETEST Flex theme(s) ever? Contest!

2007-02-11 Thread Michael Schmalle

Haha,

How can you even take this seriously?

This has 'infomercial' written all over it!

Peace, Mike

On 2/11/07, superstella_uk [EMAIL PROTECTED] wrote:


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

I agree. If it was a serious offer, the author would have some themes
to show, or at least a website.

As it stands, I suspect its just a way to collect your email address
and then spam you. I wish people wouldnt forward these 'offers' on,
but there you go


 Is there a site with these themes? I'm not sure if this is serious or
 not... if you're pushing Flex themes, why not show us?

 Brendan



 On 2/10/07, Chad [EMAIL PROTECTED] wrote:
 
  Thought my friends and fam here on the list would be very
interested:
 
  ---
 
  Would you like an eye-popping, application differentiating, super
fresh
  theme for your
  next RIA?
 
  Want an instant turn-key solution to give your app it's own unique
look
  without needing to
  spend a million bucks (and hours) hiring a savvy designer?
 
  Don't want to spend the next two weeks locked in your closet trying to
  figure it out
  yourself- just to come up with something half-assed?
 
  Let's be serious, you want to continue focusing on what you do best -
  developing SWEET
  RIAs'. Now, finally... you can!
 
  Win your FREE, beautifully designed, professional Flex Theme:
  -
 
  We have some beautifully designed professional Flex themes that we've
  spent weeks and
  weeks developing. They are ready for instant use in your hot new
  world-changing RIAs'.
  We eat, drink, breath, and sleep shockingly beautiful UI design.
 
  HOW DO I WIN?
 
  Email me a quick note answering the following 10 questions:
 
  [EMAIL PROTECTED] m3_515hp%40NOSPAMOLA.yahoo.com
 
  WHATS THE PRIZE?
 
  One theme that you PERSONALLY can use however you see fit. That's
right,
  you can even
  use it in corporate ($$$) applications with unrestricted usage.
Anything
  you want, except
  selling the theme itself or distributing it to others.
 
  WHO WINS?
 
  I will select a lucky handful of people- heck maybe a bunch
depending on
  how good your
  responses are!
 
  10 SIMPLE QUESTIONS (please respond via EMAIL to be eligible -
  [EMAIL PROTECTED] m3_515hp%40NOSPAMOLA.yahoo.com):
 
  1) On a scale of 1-10 (1 least, 10 the most) do you and your clients
  realize how critically
  important it is for your RIA's theme/look and feel to be visually
  different than others
  currently on the market?
 
  You: 
 
  Your clients: 
 
  2) How many RIA's will you be working on in the coming year?
 
  3) Percentage wise, will these apps be customer/public facing or
employee
  facing?
 
  Customer/public: %
  Employee: %
  Other: %
 
  4) Out of these, how many will require or benefit from a custom
theme's
  look and feel?
 
  Require: %
  Benefit from: %
 
  5) What kind of cost and time do you budget for an RIA's UI (user
  interface) theme / look
  and feel?
 
  Time: 
  Cost: $
 
  6) How many design revisions does the theme/look and feel typically go
  through until the
  stake-holders give you the thumbs up?
 
  7) How much MORE time and money do you typically end up spending on a
  RIA's theme/
  look and feel than originally had anticipated? What does the total
cost
  end up being?
 
  More time: 
  More money: $
  Total amount of time: 
  Total cost: $
 
  8) What would you consider a fair price for a custom UI Theme
designed and
  built uniquely
  for your application? Including all time required to consult with
you or
  your client to
  determine the demographics, use cases, design direction,
specifications,
  and all revisions.
  Specifically, to not even think about the UI Theme mess so you can
focus
  specifically on
  the RIA development itself?
 
  a) $2+
  b) $15000-$2
  c) $1-$15000
  d) $7500-$1
  e) $5000-$7500
  f) $3500-$5000
  g) $2500-$3500
  h) $1500-$2500
  i) $750-$1500
  j) $400-750
  k) less than $400
 
  9) What would you pay for a shared UI Theme? i.e.: a pre-built
  high-quality theme that is
  sold, but not necessarily used, to a limited or unlimited number
of people
  as an instant
  solution.
 
  Limited: $__
  Unlimited: $__
 
  10) What best describes you (pick all that apply):
 
  a) An individual consultant/freelancer
  b) In a company that offers RIA development services
  c) In a company that is interested in developing an RIA
  d) In a company that has built RIAs in the past
  e) a formally trained developer
  f) a formally trained designer
  g) management
  g) Other: 
 
  Thats it! Thanks for the help and good luck!
 
  Chad
 
 
 



 --
 Brendan Meutzner
 Stretch Media - RIA Adobe Flex Development
 [EMAIL PROTECTED]
 http://www.stretchmedia.ca


 





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

Blog - Flex2Components
http://www.flex2components.com

You can find more by 

Re: [flexcoders] Re: Flex Coding Guidelines

2007-02-11 Thread Michael Schmalle

Hi,

I was expecting to get ready and fight over this stuff, but hey, you are
sticking with Adobe's conventions.

I don't think there is really anything I disagree with.

Although I do use in my component classes,

dragButton_mouseDownHandler(event:MouseEvent):void

When you start getting the same event handlers for differnet instances you
need this way to separate them.

IE
systemManager_mouseMouseDownHandler(event:MouseEvent):void

Thanks for getting this out.

Peace, Mike

On 2/10/07, jer_ela [EMAIL PROTECTED] wrote:


  Fabio, great work.


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

 Folks,

 As my commitment to community I'm releasing, with DClick support, our
 Adobe Flex Coding Guidelines, a document about Flex (MXML and
 ActionScript) coding conventions that we use on a regular basis.

 The objective is clear: provide a common and consistent language to
 help code comprehension between developers. The practices established
 in this document are based on Java conventions, Flex 2 SDK and DClick
 team experience (including myself).

 By releasing this document, the idea is to help the community improve
 their Flex code by using coding conventions as well and hear feedback
 from community to continuously improve this document, that by now is a
 community asset.

 I'll be happy to have volunteers to form a committee or something to
 evolve this project further.

 This way, comments on this document (including the best practices) are
 very welcome! Involve yourself in this flexcoders thread, at the
 flexdev (listaflexdev.org - portuguese list on Flex) or at DClick
 weblog
(http://blog.dclick.com.br/2007/02/10/adobe-flex-coding-guidelines/)

 English version:


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

 Portuguese version:


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

 Thanks,
 Fabio Terracini


 





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

Blog - Flex2Components
http://www.flex2components.com

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


[flexcoders] Re: Refreshing Datagrid from pop up window

2007-02-11 Thread munene_uk
ive checked the contents returned and they are exactly the same as the
data that populates the grid when the application loads however the only
difference between the two is that the first call to update the grid on
application load has this line


dataProvider = new ArrayCollection ( ArrayUtil.toArray(evt.result) ); //
same as: evt.result.toString();

  please  look at the code below the first function populates the
datagrid on the first run

while the second function returns the results of the added item.

  private function resultHandler(evt:ResultEvent):void
 {
 dataProvider = new ArrayCollection (
ArrayUtil.toArray(evt.result) ); // same as:evt.result.toString();
 }


public function sendResultHandler(evt:ResultEvent):void
 {

dataProvider.addItem(ArrayUtil.toArray(evt.result));
dataProvider.refresh();
 }



the thing is if i change the second function to:

public function sendResultHandler(evt:ResultEvent):void
 {
   dataProvider = new ArrayCollection (
ArrayUtil.toArray(evt.result) );
dataProvider.addItem(ArrayUtil.toArray(evt.result));
dataProvider.refresh();
 }

it actually populates the datagrid with the last added item however in
the process(as i said earlier) it also wipes everything off the array
collection becuase of the first line in that function.
what i dont understand is the blank row that appears...sorry if my
explenation is a bit confusing im still new to this as wel








[flexcoders] Watermark and other stuff

2007-02-11 Thread raz_gilad

Hi there

I have 2 questions for you - the graphical experts - out there:

*  What is the best way to present a picture as a watermark .I tried
using the Application Background Image Tag on a GIF but the GIF colors
were distorted and the watermark effect was lost  [:((] .  How can I
overcome this? Is someone familiar with another method?



* I'm looking for a method to turn the white background in GIF into
transparent. Is there a way for doing such an action?  [:-]



Thanks a million

Raz







[flexcoders] Datagrid update woes(blank rows)

2007-02-11 Thread munene_uk
im tryin to successfully update a datagrid to add the latest record
added to a Mysql database. the issue seems to be when i update the
datagrid  all i see is a blank row, however the debugger informs me
that the correct results have been returned from the database. has
anyone encountered this problem where the datagrid updates but all you
get is a blank row?



Re: [flexcoders] Datagrid update woes(blank rows)

2007-02-11 Thread Clint Tredway

you need to add an Item which is an object to the dataProvider of the grid.

If you show us what you are doing, we can help better.

What I have done is myGrid_dg.dataProvider.addItemAt(item,index)

On 2/11/07, munene_uk [EMAIL PROTECTED] wrote:


  im tryin to successfully update a datagrid to add the latest record
added to a Mysql database. the issue seems to be when i update the
datagrid all i see is a blank row, however the debugger informs me
that the correct results have been returned from the database. has
anyone encountered this problem where the datagrid updates but all you
get is a blank row?

 





--
http://indeegrumpee.spaces.live.com/


[flexcoders] Re: Datagrid update woes(blank rows)

2007-02-11 Thread munene_uk
ok here goes.


private function resultHandler(evt:ResultEvent):void
 {
 dataProvider = new ArrayCollection (
ArrayUtil.toArray(evt.result) ); // same as: evt.result.toString();
 }
  public function sendResultHandler(evt:ResultEvent):void
 {

dataProvider.addItem(ArrayUtil.toArray(evt.result));
dataProvider.refresh();

 }

first function is called when the app is loaded.


second function is called when i add a new user to the database





Re: [flexcoders] Re: Datagrid update woes(blank rows)

2007-02-11 Thread Clint Tredway

trace the evt.result using the ObjectUtil.toString() (note: you will need to
import mx.utils.ObjectUtil to do this) and lets see what is coming back from
the server. most likely the reason you are getting a blank row is that what
is coming back does not match what the grid is expecting.

On 2/11/07, munene_uk [EMAIL PROTECTED] wrote:


  ok here goes.


*   private function resultHandler(evt:ResultEvent):void
{
dataProvider = new ArrayCollection ( ArrayUtil.toArray(
evt.result) ); // same as: evt.result.toString();
}
 public function sendResultHandler(evt:ResultEvent):void
{

   dataProvider.addItem(ArrayUtil.toArray(evt.result));
   dataProvider.refresh();

}

*first function is called when the app is loaded.


second function is called when i add a new user to the database


 





--
http://indeegrumpee.spaces.live.com/


[flexcoders] Re: Command line to compile system (extracted from FlexBuilder?)

2007-02-11 Thread Mike Crowe
Hi Paul, here's the errors:

Unable to resolve a class for ResourceBundle: collections
...


And the command line:  
@C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\bin\mxmlc.exe
TaskBase2.mxml -accessible=false -allow-source-path-overlap=false
-as3=true -benchmark=true -debug=false -default-background-color
13421823 -default-frame-rate 24 -es=false -external-library-path
C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\frameworks\libs
-external-library-path library -generate-frame-loader=true
-headless-server=true -include-libraries library\Cairngorm.swc
-include-libraries library\corelib.swc -include-libraries
library\flexunit.swc -include-libraries library\XPanel_Library.swc
-incremental=true -keep-generated-actionscript=false -lazy-init=false
-library-path C:\Program Files\Adobe\Flex Builder 2\Flex SDK
2\frameworks\libs -optimize=false -show-actionscript-warnings=true
-show-binding-warnings=true -show-deprecation-warnings=true
-source-path C:\Program Files\Adobe\Flex Builder 2\Flex SDK
2\frameworks -strict=true -use-network=true
-verbose-stacktraces=false -warnings=true

See anything?
Mike
--- In flexcoders@yahoogroups.com, Paul Williams [EMAIL PROTECTED] wrote:

 Hi Mike,
 
  
 
 Perhaps this will help you get started:
 
  
 
 http://livedocs.macromedia.com/flex/201/html/wwhelp/wwhimpl/common/html/
 wwhelp.htm?context=LiveDocs_Book_Partsfile=apparch_116_14.html
 
  
 
 To automate with ant see below:
 
  
 
 http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks
 
  
 
 If you are running mxmlc and encountering problems please provide a more
 detailed description.
 
  
 
 Paul
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Mike Crowe
 Sent: Sunday, February 11, 2007 12:39 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Command line to compile system (extracted from
 FlexBuilder?)
 
  
 
 Hi folks,
 
 Is there a way to get the mxmlc command that FlexBuilder is executing
 somehow? I'm running low on resources, and want to compile from the
 command line.
 
 However, I can't seem to get a command line to work that produces a
 working .swf. Any way I can get it somehow?
 
 TIA
 Mike





[flexcoders] Re: Datagrid update woes(blank rows)

2007-02-11 Thread munene_uk
this is what i got

[SWF] F:\Adobe\Flex Builder
2\Projects\bin\Savo_Course_Manager2-debug.swf - 1,103,465 bytes after
decompression
warning: unable to bind to property 'SURNAME' on class 'Object' (class
is not an IEventDispatcher)
warning: unable to bind to property 'POSTCODE' on class 'Object' (class
is not an IEventDispatcher)
warning: unable to bind to property 'PHONENO' on class 'Object' (class
is not an IEventDispatcher)
warning: unable to bind to property 'STUDENTNO' on class 'Object' (class
is not an IEventDispatcher)
warning: unable to bind to property 'STREET' on class 'Object' (class is
not an IEventDispatcher)
warning: unable to bind to property 'BIRTH_DATE' on class 'Object'
(class is not an IEventDispatcher)
warning: unable to bind to property 'HOUSENO' on class 'Object' (class
is not an IEventDispatcher)
warning: unable to bind to property 'FIRSTNAME' on class 'Object' (class
is not an IEventDispatcher)
warning: unable to bind to property 'TOWN' on class 'Object' (class is
not an IEventDispatcher)
warning: unable to bind to property 'EMAIL' on class 'Object' (class is
not an IEventDispatcher)
(Array)#0
   [0] (Object)#1
 BIRTH_DATE = 1985-01-01
 EMAIL = [EMAIL PROTECTED]
 FIRSTNAME = as
 HOUSENO = 40
 PHONE = 
 PHONENO = 1240235402-9
 POSTCODE = sdf
 STREET = asf
 STUDENTNO = 41
 SURNAME = ap
 TOWN = sdf




Re: [flexcoders] Re: Datagrid update woes(blank rows)

2007-02-11 Thread Clint Tredway

try what I suggested in your addItem

On 2/11/07, munene_uk [EMAIL PROTECTED] wrote:


  this is what i got

*[SWF] F:\Adobe\Flex Builder 2\Projects\bin\Savo_Course_Manager2-debug.swf- 
1,103,465 bytes after decompression
warning: unable to bind to property 'SURNAME' on class 'Object' (class is
not an IEventDispatcher)
warning: unable to bind to property 'POSTCODE' on class 'Object' (class is
not an IEventDispatcher)
warning: unable to bind to property 'PHONENO' on class 'Object' (class is
not an IEventDispatcher)
warning: unable to bind to property 'STUDENTNO' on class 'Object' (class
is not an IEventDispatcher)
warning: unable to bind to property 'STREET' on class 'Object' (class is
not an IEventDispatcher)
warning: unable to bind to property 'BIRTH_DATE' on class 'Object' (class
is not an IEventDispatcher)
warning: unable to bind to property 'HOUSENO' on class 'Object' (class is
not an IEventDispatcher)
warning: unable to bind to property 'FIRSTNAME' on class 'Object' (class
is not an IEventDispatcher)
warning: unable to bind to property 'TOWN' on class 'Object' (class is not
an IEventDispatcher)
warning: unable to bind to property 'EMAIL' on class 'Object' (class is
not an IEventDispatcher)
(Array)#0
  [0] (Object)#1
BIRTH_DATE = 1985-01-01
EMAIL = [EMAIL PROTECTED]
FIRSTNAME = as
HOUSENO = 40
PHONE = 
PHONENO = 1240235402-9
POSTCODE = sdf
STREET = asf
STUDENTNO = 41
SURNAME = ap
TOWN = sdf
*
 





--
http://indeegrumpee.spaces.live.com/


[flexcoders] Re: Datagrid update woes(blank rows)

2007-02-11 Thread munene_uk
how do i find out the index of the last item
in order to use 

addItemAt(evt2.result,index);

(if that makes sense!!)


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

 try what I suggested in your addItem
 
 On 2/11/07, munene_uk [EMAIL PROTECTED] wrote:
 
this is what i got
 
  *[SWF] F:\Adobe\Flex Builder
2\Projects\bin\Savo_Course_Manager2-debug.swf- 1,103,465 bytes after
decompression
  warning: unable to bind to property 'SURNAME' on class 'Object'
(class is
  not an IEventDispatcher)
  warning: unable to bind to property 'POSTCODE' on class 'Object'
(class is
  not an IEventDispatcher)
  warning: unable to bind to property 'PHONENO' on class 'Object'
(class is
  not an IEventDispatcher)
  warning: unable to bind to property 'STUDENTNO' on class 'Object'
(class
  is not an IEventDispatcher)
  warning: unable to bind to property 'STREET' on class 'Object'
(class is
  not an IEventDispatcher)
  warning: unable to bind to property 'BIRTH_DATE' on class 'Object'
(class
  is not an IEventDispatcher)
  warning: unable to bind to property 'HOUSENO' on class 'Object'
(class is
  not an IEventDispatcher)
  warning: unable to bind to property 'FIRSTNAME' on class 'Object'
(class
  is not an IEventDispatcher)
  warning: unable to bind to property 'TOWN' on class 'Object'
(class is not
  an IEventDispatcher)
  warning: unable to bind to property 'EMAIL' on class 'Object'
(class is
  not an IEventDispatcher)
  (Array)#0
[0] (Object)#1
  BIRTH_DATE = 1985-01-01
  EMAIL = [EMAIL PROTECTED]
  FIRSTNAME = as
  HOUSENO = 40
  PHONE = 
  PHONENO = 1240235402-9
  POSTCODE = sdf
  STREET = asf
  STUDENTNO = 41
  SURNAME = ap
  TOWN = sdf
  *
   
 
 
 
 
 -- 
 http://indeegrumpee.spaces.live.com/





Re: [flexcoders] Re: Datagrid update woes(blank rows)

2007-02-11 Thread Clint Tredway

myGrid.dataProvider.length

On 2/11/07, munene_uk [EMAIL PROTECTED] wrote:


  how do i find out the index of the last item
in order to use

addItemAt(evt2.result,index);

(if that makes sense!!)

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

 try what I suggested in your addItem

 On 2/11/07, munene_uk [EMAIL PROTECTED] wrote:
 
  this is what i got
 
  *[SWF] F:\Adobe\Flex Builder
2\Projects\bin\Savo_Course_Manager2-debug.swf- 1,103,465 bytes after
decompression
  warning: unable to bind to property 'SURNAME' on class 'Object'
(class is
  not an IEventDispatcher)
  warning: unable to bind to property 'POSTCODE' on class 'Object'
(class is
  not an IEventDispatcher)
  warning: unable to bind to property 'PHONENO' on class 'Object'
(class is
  not an IEventDispatcher)
  warning: unable to bind to property 'STUDENTNO' on class 'Object'
(class
  is not an IEventDispatcher)
  warning: unable to bind to property 'STREET' on class 'Object'
(class is
  not an IEventDispatcher)
  warning: unable to bind to property 'BIRTH_DATE' on class 'Object'
(class
  is not an IEventDispatcher)
  warning: unable to bind to property 'HOUSENO' on class 'Object'
(class is
  not an IEventDispatcher)
  warning: unable to bind to property 'FIRSTNAME' on class 'Object'
(class
  is not an IEventDispatcher)
  warning: unable to bind to property 'TOWN' on class 'Object'
(class is not
  an IEventDispatcher)
  warning: unable to bind to property 'EMAIL' on class 'Object'
(class is
  not an IEventDispatcher)
  (Array)#0
  [0] (Object)#1
  BIRTH_DATE = 1985-01-01
  EMAIL = [EMAIL PROTECTED] m%40mail.com
  FIRSTNAME = as
  HOUSENO = 40
  PHONE = 
  PHONENO = 1240235402-9
  POSTCODE = sdf
  STREET = asf
  STUDENTNO = 41
  SURNAME = ap
  TOWN = sdf
  *
 
 



 --
 http://indeegrumpee.spaces.live.com/


 





--
http://indeegrumpee.spaces.live.com/


[flexcoders] Re: Highlight and select all rows in datagrid by button.

2007-02-11 Thread ad9798
Thank a lot Adam!
Works great!!

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

 This works for me:
 
 private function selectAll():void
 {
  var a:Array = [], i:Number;
  var num:Number = myDataProvider.length;
  for (i=0;inum;i++) a[i] = i;
  myDataGrid.selectedIndices = a;
 }
 
 
 Cheers,
 Adam
 
 
   - Original Message - 
   From: ad9798 
   To: flexcoders@yahoogroups.com 
   Sent: Sunday, February 11, 2007 11:14 AM
   Subject: [flexcoders] Highlight and select all rows in datagrid by
button.
 
 
   I was able to select one row by doing 
 
   myDataGrid.selectedIndex = 1; == index number of the row.
 
   However, I'm trying to create a button that select all rows in
datagrid.
   I have tried following but no success..
 
   private function selectAll() : void {
   for( var i:int = 0; i  myDataProvider.length; i++ ){
   myDataGrid.selectedIndices[i] = i;
   myDataGrid.selectedItems[i] = myDataProvider[i];
   }
   }
 
   Any idea? any suggestion?





[flexcoders] Re: Flex Coding Guidelines

2007-02-11 Thread lepusmars
I agree, a very interesting read, but one thing I have to disagree
with and bothers me a lot that Flex Builder does this when it creates
classes.  Close curly braces in its own line at the same position in
which the open curly brace is... nothing bothers me more than a curly
brace on it's own line, I think it makes code less readable and
contributes to excessive scrolling when editing and reviewing code. 
Oh and curly braces on case statements is weird, but actually a good
convention... that will take some relearning to work into my code.

For the most part I like what you have, I'd like to use it as a
starting point for my own organization. I think I've come from a
different wing of the java development community, since there is a lot
that bucks my own traditions.

Paul

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

 Hi Fabio
 
 I think it is a good document, beside the whitespace paragraphs.
 Distribution of whitespace is always worth a discussion :)
 
 There is only one thing, that makes me wonder.
 If methods should start with a verb, why don't you prefer
 handleMouseClick() over mouseClickHandler() ?
 
 Cheers,
 Ralf.
 
 
 On 2/10/07, Fabio Terracini [EMAIL PROTECTED] wrote:
 
Folks,
 
  As my commitment to community I'm releasing, with DClick support, our
  Adobe Flex Coding Guidelines, a document about Flex (MXML and
  ActionScript) coding conventions that we use on a regular basis.
 
  The objective is clear: provide a common and consistent language to
  help code comprehension between developers. The practices established
  in this document are based on Java conventions, Flex 2 SDK and DClick
  team experience (including myself).
 
  By releasing this document, the idea is to help the community improve
  their Flex code by using coding conventions as well and hear feedback
  from community to continuously improve this document, that by now is a
  community asset.
 
  I'll be happy to have volunteers to form a committee or something to
  evolve this project further.
 
  This way, comments on this document (including the best practices) are
  very welcome! Involve yourself in this flexcoders thread, at the
  flexdev (listaflexdev.org - portuguese list on Flex) or at DClick
  weblog
(http://blog.dclick.com.br/2007/02/10/adobe-flex-coding-guidelines/
  )
 
  English version:
 
 
http://blog.dclick.com.br/wp-content/uploads/adobe-flex-coding-guidelines-v12-english.pdf
 
  Portuguese version:
 
 
http://blog.dclick.com.br/wp-content/uploads/adobe-flex-coding-guidelines-v12-portugues.pdf
 
  Thanks,
  Fabio Terracini
   
 
 
 
 
 -- 
 Ralf Bokelberg [EMAIL PROTECTED]
 Flex  Flash Consultant based in Cologne/Germany
 Phone +49 (0) 221 530 15 35





[flexcoders] Please Help: Scale / Zoom Image from Center Not Working!

2007-02-11 Thread cnord0
Could someone please help, I am trying to scale / zoom an image
from it's center point, instead the following code scales / zooms from
the (0,0) point of the image. Any help is greatly appreciated.

Thanks,

Calo

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=horizontal creationComplete=initApp()
mx:Script
![CDATA[
import mx.core.UIComponent;
import flash.display.BitmapData;

private function initApp():void
{
var md:BitmapData = 
createMaskData(UIComponent(drawCanvas));
var imageMask:Bitmap = new Bitmap(md);

var spriteMask:Sprite = new Sprite();
spriteMask.addChild(imageMask);

drawCanvas.mask = spriteMask;

photoToScale.x = 
Math.round((drawCanvas.width-photoToScale.width)
/ 2);
photoToScale.y =
Math.round((drawCanvas.height-photoToScale.height) / 2);
}

private function 
createMaskData(target:UIComponent):BitmapData
{
var maskData:BitmapData = new 
BitmapData(target.width, target.height);
var x:Matrix = new Matrix();
maskData.draw(maskData,x);
return maskData;
}

private function zoom(event:Event):void
{
   var w:Number = photoToScale.width;
   var h:Number = photoToScale.height;
   
  
   photoToScale.scaleX = imgslider.value;
   photoToScale.scaleY = imgslider.value;
 
   w = photoToScale.width - w;
   h = photoToScale.height - h;
   
   photoToScale.x -= w/2;
   photoToScale.y -= h/2;
}
]]
/mx:Script
mx:Panel id=imagePanel title=Image width=100% height=100%
backgroundColor=#00 clipContent=true horizontalAlign=center
verticalAlign=middle horizontalScrollPolicy=off
verticalScrollPolicy=off
mx:Canvas id=drawCanvas width=100% height=100%
backgroundAlpha=0
mx:Image id=photoToScale source=images/scenic.jpg/
mx:Canvas id=drawscreen width=100% height=100%
backgroundAlpha=0/
/mx:Canvas
/mx:Panel
mx:Panel id=imageControls title=Zoom Image height=100%
width=10%
mx:VSlider id=imgslider value=.7 maximum=1.7 minimum=.1
enabled=true allowTrackClick=true liveDragging=true
change=zoom(event)/
/mx:Panel
/mx:Application



[flexcoders] security error accessing URL ..Cannot invoke method as WSDL did not load

2007-02-11 Thread suyash
Hi everyone!

This is my first post in this group.I am writing my first Flex
application.

  It is a simple web service (SOAP) in which 

  1) Server : is written in python.It has a method getMetrics  defined
which outputs an array of performance metrics.

Server resides on a machine on the same LAN(next to me)

   2)Client: is written in Flex.It calls this getMetrics method and
just prints the response.

 
   I am getting the following message in my flash player or  browser
when i run my Flex client.(SWF file)
  Security error accessing URL Cannot invoke method getmMetrics as
WSDL did not load successfully


   I dont think i have messed up my WSDL file (which is on localhost)
because A Client written in python is successfully accessing that
webservice getMterics using the SAME WSDL file.  

Plase any suggestions ???

Looking forward for any help...thanks!




[flexcoders] New Flex User

2007-02-11 Thread mikew6350
I currently working on a large project in Flex.  I am just learning
about flex and I am in over my head. I am now looking for a advanced
flex developer to consult on the project.

If anyone knows of anyone in the bay area (san jose ca) or any body
who works well remotely please feel free to email me. If there is a
better place to post these kinds of messages that would be good too. 

I am excited about the potential that flex has and want to make this
project a success.

Any help is at all is appreciated,

micah.wilson.ca.gmail.com




[flexcoders] Re: Datagrid update woes(blank rows)

2007-02-11 Thread munene_uk
ive done as suggested however i still get a blank row

   public function sendResultHandler(evt2:ResultEvent):void
 {

var index:int = dg.dataProvider.length;

dg.dataProvider.addItemAt(evt2.result,index);
trace(ObjectUtil.toString(evt2.result) );

dg.dataProvider.refresh();

 }

funny thing is that if i do this

   public function sendResultHandler(evt2:ResultEvent):void
 {
   dg. dataProvider = new ArrayCollection (
ArrayUtil.toArray(evt2.result) );
var index:int = dg.dataProvider.length;

dg.dataProvider.addItemAt(evt2.result,index);
trace(ObjectUtil.toString(evt2.result) );

dg.dataProvider.refresh();

 }

it correctly populates the datagrid with the correct record so im
assuming that the data being retrieved is correct, so the problem must
be  the addItemAt() . im really taking a stab in the dark here but i
really appreciate the help you've given so far.



Re: [flexcoders] Re: Flex Coding Guidelines

2007-02-11 Thread Michael Schmalle

 I think it makes code less readable and


Oh lets all agree to disagree on this one.

Which side do you butter your bread? On the top or bottom, what??? On the
sides!!! ?

I can't stand curly braces on the method line, doesn't allow a space from
the method signature to fully read and seems cramped to me.

But that is my point, you will never get people to agree on spaces, braces
and whatever else developers have a habit doing.

... Just because Java / C++ does it, doesn't mean its right. Things always
evolve.

just kidding, maybe.

Peace, Mike

On 2/11/07, lepusmars [EMAIL PROTECTED] wrote:


  I agree, a very interesting read, but one thing I have to disagree
with and bothers me a lot that Flex Builder does this when it creates
classes. Close curly braces in its own line at the same position in
which the open curly brace is... nothing bothers me more than a curly
brace on it's own line, I think it makes code less readable and
contributes to excessive scrolling when editing and reviewing code.
Oh and curly braces on case statements is weird, but actually a good
convention... that will take some relearning to work into my code.

For the most part I like what you have, I'd like to use it as a
starting point for my own organization. I think I've come from a
different wing of the java development community, since there is a lot
that bucks my own traditions.

Paul

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

 Hi Fabio

 I think it is a good document, beside the whitespace paragraphs.
 Distribution of whitespace is always worth a discussion :)

 There is only one thing, that makes me wonder.
 If methods should start with a verb, why don't you prefer
 handleMouseClick() over mouseClickHandler() ?

 Cheers,
 Ralf.


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

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

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



 --
 Ralf Bokelberg [EMAIL PROTECTED]
 Flex  Flash Consultant based in Cologne/Germany
 Phone +49 (0) 221 530 15 35


 





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

Blog - Flex2Components
http://www.flex2components.com

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


Re: [flexcoders] Re: Datagrid update woes(blank rows)

2007-02-11 Thread Adam Royle
OK, I think I see what your problem is. You said that your PHP script returns 
this, which is a nested array.

(Array)#0
  [0] (Object)#1
BIRTH_DATE = 1985-01-01
EMAIL = [EMAIL PROTECTED]
FIRSTNAME = as
HOUSENO = 40
PHONE = 
PHONENO = 1240235402-9
POSTCODE = sdf
STREET = asf
STUDENTNO = 41
SURNAME = ap
TOWN = sdf


It's obvious now that you need to add the first item (which is at the index of 
zero), instead of the entire array, to the dataProvider. See the result[0] 
below. Hope that makes sense. And just use addItem instead of addItemAt if you 
just want to place it at the end of the array.


public function sendResultHandler(evt:ResultEvent):void
{
 var row:Array = ArrayUtil.toArray(evt.result[0]);
 dataProvider.addItem(row);
 dataProvider.refresh();
}


Now you might have to change this line:

var row:Array = ArrayUtil.toArray(evt.result[0]);

to fit exactly what you want. It might work as is though.


Cheers,
Adam


  - Original Message - 
  From: munene_uk 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, February 12, 2007 8:41 AM
  Subject: [flexcoders] Re: Datagrid update woes(blank rows)


  ive done as suggested however i still get a blank row

public function sendResultHandler(evt2:ResultEvent):void
  {
 
 var index:int = dg.dataProvider.length;
  
 dg.dataProvider.addItemAt(evt2.result,index);
 trace(ObjectUtil.toString(evt2.result) );
 
  nbsp;   dg.dataProvider.refresh();
   
  }

  funny thing is that if i do this

public function sendResultHandler(evt2:ResultEvent):void
  {
dg. dataProvider = new ArrayCollection ( 
ArrayUtil.toArray(evt2.result) );
 var index:int = dg.dataProvider.length;
  
 dg.dataProvider.addItemAt(evt2.result,index);
 trace(ObjectUtil.toString(evt2.result) );
 
 dg.dataProvider.refresh();
   
  }

  it correctly populates the datagrid with the correct record so im assuming 
that the data being retrieved is correct, so the problem must be  the 
addItemAt() . im really taking a stab in the dark here but i really appreciate 
the help you've given so far.


   

[flexcoders] Re: Datagrid update woes(blank rows)

2007-02-11 Thread munene_uk
great news!!...ive gone back to using remotingConnection and your
method worksthank you so much for all your input!

public function onSendResult(result :Array) : void
{
  if(!result) return;
  dg.dataProvider.addItem(result[0]);
  dg.dataProvider.refresh();
}



Re: [flexcoders] Any tips on how to do enable only vertical Sprite Drag and Drop ?

2007-02-11 Thread slangeberg

This example is Canvas, but...

dragRule is vertical bar beneath the 'dragger' handle.

  mx:VRule id=dragRule
   x=182 y=64 height=315/

   mx:Canvas id=dragger
   width=10 height=20
   x={ dragRule.x-dragger.width/2 } y=62
   mouseDown={
 dragger.startDrag( false,
  new Rectangle( dragRule.x-dragger.width/2, dragRule.y,
dragRule.width, dragRule.height-dragger.height ) );
   }
   mouseUp=dragger.stopDrag()
   

- Scott

On 2/10/07, helihobby [EMAIL PROTECTED] wrote:


  Hello,

Can anyone post a top on how to to enable only vertical Sprite Drag and
Drop ?

In other words, when the user drags a sprite, he can only drag it
vertically accross the stage and not in any other direction ... !!!

Thanks for the help,

Sean.

 





--

: : ) Scott


[flexcoders] ComboBox with binded dataProvider in DataGrid

2007-02-11 Thread someguy7_7
I have a datagrid with 2 columns. Each column contains a combobox. The
dataProvider of the datagrid is bound to an ArrayCollection filled
with a bunch of instances of a actionscript class. The dataprovider of
one of the comboboxes we will call cbxA is dependent on the value
selected in the other combobox cbxB. So in the setter for cbxA's
column dataField I call the setter for cbxB's dataProvider which is in
the same class. This works fine. But when a user changes the value in
cbxB the selected item in cbxB is always resets to the first item in
the list. I found this was happening because after every edit in any
column the datagrid fires a dataChange event which the combobox picks
up and refreshes its dataprovider. 

Does this sound right? 

Any ideas on how to fix this?

Is there a better way to refresh a the list data in a combobox that is
in a datagrid based off of other values in the same row of the datagrid?

Thanks



RE: [flexcoders] Re: Command line to compile system (extracted from FlexBuilder?)

2007-02-11 Thread Paul Williams
Hi Mike,

 

You shouldn't need to configure all these options on the command line,
many of them are just defaults. The error suggests that your build is
not including the locale-specific resource bundles located in
frameworks/locale.

 

To get to grips with mxmlc I would suggest starting with a blank
application (eg. Main.mxml) and verify you can build it with the
command:

 

mxmlc Main.mxml

 

When you run this command you should see that mxmlc is loading a
configuration file prior to performing the compilation. The
configuration file defines the default compilation options for mxmlc. By
default mxmlc uses the flex-config.xml file in the frameworks directory,
but you can create your own version of this file for a specific build
(see the load-config option). If you are using FDS and server-side
compilation, you will already have a version of this file in
WEB-INF/flex because the file is used by the server-side mxml compiler.

 

Once you have a simple build working, try bringing in your other
dependencies step-by-step. 

 

Paul

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Crowe
Sent: Sunday, February 11, 2007 10:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Command line to compile system (extracted from
FlexBuilder?)

 

Hi Paul, here's the errors:

Unable to resolve a class for ResourceBundle: collections
...

And the command line: 
@C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\bin\mxmlc.exe
TaskBase2.mxml -accessible=false -allow-source-path-overlap=false
-as3=true -benchmark=true -debug=false -default-background-color
13421823 -default-frame-rate 24 -es=false -external-library-path
C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\frameworks\libs
-external-library-path library -generate-frame-loader=true
-headless-server=true -include-libraries library\Cairngorm.swc
-include-libraries library\corelib.swc -include-libraries
library\flexunit.swc -include-libraries library\XPanel_Library.swc
-incremental=true -keep-generated-actionscript=false -lazy-init=false
-library-path C:\Program Files\Adobe\Flex Builder 2\Flex SDK
2\frameworks\libs -optimize=false -show-actionscript-warnings=true
-show-binding-warnings=true -show-deprecation-warnings=true
-source-path C:\Program Files\Adobe\Flex Builder 2\Flex SDK
2\frameworks -strict=true -use-network=true
-verbose-stacktraces=false -warnings=true

See anything?
Mike
--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Paul Williams [EMAIL PROTECTED] wrote:

 Hi Mike,
 
 
 
 Perhaps this will help you get started:
 
 
 

http://livedocs.macromedia.com/flex/201/html/wwhelp/wwhimpl/common/html/
http://livedocs.macromedia.com/flex/201/html/wwhelp/wwhimpl/common/html
/ 
 wwhelp.htm?context=LiveDocs_Book_Partsfile=apparch_116_14.html
 
 
 
 To automate with ant see below:
 
 
 
 http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks
http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks 
 
 
 
 If you are running mxmlc and encountering problems please provide a
more
 detailed description.
 
 
 
 Paul
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Mike Crowe
 Sent: Sunday, February 11, 2007 12:39 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Command line to compile system (extracted from
 FlexBuilder?)
 
 
 
 Hi folks,
 
 Is there a way to get the mxmlc command that FlexBuilder is executing
 somehow? I'm running low on resources, and want to compile from the
 command line.
 
 However, I can't seem to get a command line to work that produces a
 working .swf. Any way I can get it somehow?
 
 TIA
 Mike


 



[flexcoders] Why doesn't Flash/Flex allow Basic Auth for uploads?

2007-02-11 Thread Steven Toth
I'm working on an application that's on a development server that is 
secured via Basic Auth over HTTPs.  The application has an upload 
feature that will not work on the development server because Flash/Flex 
does not allow authentication for uploads...

Here's an excerpt from the SDK documentation of the 
flash.net.FileReference class (that is being used to upload files)...

Note: If your server requires user authentication, only SWF files 
running in a browser — that is, using the browser plug-in or ActiveX 
control — can provide a dialog box to prompt the user for a username 
and password for authentication, and only for downloads. For uploads 
using the plug-in or ActiveX control, or for uploads and downloads 
using the stand-alone or external player, the file transfer fails.

Any input or workarounds would be appreciated.  Thanks.

-Steven



Re: [flexcoders] Why doesn't Flash/Flex allow Basic Auth for uploads?

2007-02-11 Thread hank williams
I'm not sure I am clear on your problem. This is only an issue when
you are not running in a browser.  The reason for this is that flash
relies on the browsers code for doing this. In other words if you have
created a flash projector this will not work. Is that what you are
doing?

Hank

On 2/11/07, Steven Toth [EMAIL PROTECTED] wrote:
 I'm working on an application that's on a development server that is
 secured via Basic Auth over HTTPs.  The application has an upload
 feature that will not work on the development server because Flash/Flex
 does not allow authentication for uploads...

 Here's an excerpt from the SDK documentation of the
 flash.net.FileReference class (that is being used to upload files)...

 Note: If your server requires user authentication, only SWF files
 running in a browser — that is, using the browser plug-in or ActiveX
 control — can provide a dialog box to prompt the user for a username
 and password for authentication, and only for downloads. For uploads
 using the plug-in or ActiveX control, or for uploads and downloads
 using the stand-alone or external player, the file transfer fails.

 Any input or workarounds would be appreciated.  Thanks.

 -Steven



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






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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] Re: Training from the Source - Can't find my error

2007-02-11 Thread tonecluster1964
Try this:
...
mx:Component
   mx:VBox
mx:Script
  ![CDATA[
  import valueObjects.ShoppingCartItem
]]
 /mx:Script
 mx:Button
  label=Remove
click=outerDocument.removeItem(valueObjects.ShoppingCartItem(data)); /
 /mx:VBox
/mx:Component
...

This gives the outerDocument method the visibility to the
ShoppingCartItem component from within the VBox.



[flexcoders] Re: Can someone tell me what I am doing wrong.

2007-02-11 Thread tonecluster1964
I believe that you need to import the valueObjects.ShoppingCartItem
component again from within your Component tags.  

Do it within the VBox...

...
   mx:Component
 mx:VBox
 mx:Script
   ![CDATA[
import valueObjects.ShoppingCartItem
 ]]
 /mx:Script
 mx:Button label=Remove   
 click=outerDocument.removeItem(valueObjects.ShoppingCartItem(data)); /
 /mx:VBox
/mx:Component
..etc

I'm reasonably sure that this has to do with using the outer document
as a reference.. the immediate component can't see what the outer
document sees (the import).  

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

 Hello,
 
 I am new to Flex and am currently in the process of going through the
 Adobe Flex 2 Training from the Source book.  Well everything was going
 along fine until lesson 11.  I have been fighting with a compiler error
 1120: Access of undefined property valueObjects.  I have the correct
 import statements and have double-checked my code multiple times with
 that provided by the authors.  I get the same error when I use the
 author's code.  Could there be a configuration problem in my enviroment.
 up to this point, erverything compiles and runs as expected.  The error
 occurs on the click event of the button.  Please review the code below. 
 I can provide further details once the questions start.  thanks in
 advance.
 
 ?xml version=1.0 encoding=utf-8?
 mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;
  mx:Metadata
  [Event(name=productRemoved,type=events.ProductEvent)]
  /mx:Metadata
 
  mx:Script
  ![CDATA[
  import events.ProductEvent;
  import valueObjects.ShoppingCart;
  import valueObjects.ShoppingCartItem;
  import valueObjects.Product;
  import mx.controls.dataGridClasses.DataGridColumn;
 
  [Bindable]
  public var cart:ShoppingCart;
 
  private function
 renderPriceLabel(item:ShoppingCartItem,dataField:DataGridColumn):String{
  return $+String(item.subtotal);
  }
 
  public function removeItem(cartItem:ShoppingCartItem):void{
  var prod:Product = cartItem.product;
  var e:ProductEvent = new
 ProductEvent(prod,productRemoved);
  this.dispatchEvent(e);
  }
 
  ]]
  /mx:Script
 
  mx:DataGrid
  id=cartView
  dataProvider={cart.aItems} width=100% height=100%
  editable=true draggableColumns=false
  variableRowHeight=true
  mx:columns
  mx:DataGridColumn dataField=product headerText=Product
  itemRenderer=renderer.ecomm.ProductName
 editable=false/
  mx:DataGridColumn dataField=quantity
  itemEditor=mx.controls.NumericStepper
  editorDataField=value editable=true
 headerText=Quantity /
  mx:DataGridColumn dataField=subtotal headerText=Amount
 labelFunction=renderPriceLabel editable=false /
  mx:DataGridColumn editable=false
  mx:itemRenderer
  mx:Component
  mx:VBox
  mx:Button
  label=Remove
 
 click=outerDocument.removeItem(valueObjects.ShoppingCartItem(data))/
  /mx:VBox
  /mx:Component
  /mx:itemRenderer
  /mx:DataGridColumn
  /mx:columns
  /mx:DataGrid
 
 /mx:VBox





Re: [flexcoders] AMF3/WebService benchmark app

2007-02-11 Thread James Ward
Hi Mark,

Sorry I took that down temporarily because it is still under
construction and wasn't intended for public consumption yet.  It should
be back up with a new version soon.  If you want to run the app on your
own, you can get all the code from SourceForge:
http://www.sf.net/projects/flexapps

-James


On Fri, 2007-02-09 at 21:54 +, Mark Piller wrote:
 Hey guys,
 
 Does anyone know whatever happened to the Census app built by James
 Ward? It used to be available at http://www.jamesward.org/census/. The
 application used to compare performance of various ways of accessing
 server-side data (remoting, web service, http get, etc). If anyone
 saved a copy of the source code for that app before it was pulled, I
 would love to get a copy.
 
 Thanks,
 Mark
 
 
 
 
  


[flexcoders] Re: Flex Coding Guidelines

2007-02-11 Thread lepusmars
I've seen more Java developers do it they way proposed with the curly
braces on the next line. It's always bothered me... I'm an old dog I
guess (actually I'm only 30), and a bit Obsessive Compulsive.


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

   I think it makes code less readable and
 
 Oh lets all agree to disagree on this one.
 
 Which side do you butter your bread? On the top or bottom, what???
On the
 sides!!! ?
 
 I can't stand curly braces on the method line, doesn't allow a space
from
 the method signature to fully read and seems cramped to me.
 
 But that is my point, you will never get people to agree on spaces,
braces
 and whatever else developers have a habit doing.
 
 ... Just because Java / C++ does it, doesn't mean its right. Things
always
 evolve.
 
 just kidding, maybe.
 
 Peace, Mike
 



RE: [flexcoders] Re: Flex Coding Guidelines

2007-02-11 Thread Matt Chotin
I'm not sure there's a single engineering organization that doesn't get
into fights about curly brace placement.  To each their own :-)  I
personally like separate lines.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lepusmars
Sent: Sunday, February 11, 2007 6:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex Coding Guidelines

 

I've seen more Java developers do it they way proposed with the curly
braces on the next line. It's always bothered me... I'm an old dog I
guess (actually I'm only 30), and a bit Obsessive Compulsive.

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

  I think it makes code less readable and
 
 Oh lets all agree to disagree on this one.
 
 Which side do you butter your bread? On the top or bottom, what???
On the
 sides!!! ?
 
 I can't stand curly braces on the method line, doesn't allow a space
from
 the method signature to fully read and seems cramped to me.
 
 But that is my point, you will never get people to agree on spaces,
braces
 and whatever else developers have a habit doing.
 
 ... Just because Java / C++ does it, doesn't mean its right. Things
always
 evolve.
 
 just kidding, maybe.
 
 Peace, Mike
 

 



Re: [flexcoders] Re: Flex Coding Guidelines

2007-02-11 Thread Adam Royle
I don't understand why there isn't a feature in Eclipse that formats the code 
exactly how *YOU* want it. When you open up someone else's code it should just 
auto-format to how you prefer. You can make changes to the code, and when 
another coder opens it up, it formats it according to their preferences. It 
could even save it back into the generic format so it doesn't screw around 
with version control.

Maybe this exists already?? I prefer hugging curly braces, FWIW.

Adam

  - Original Message - 
  From: Matt Chotin 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, February 12, 2007 2:49 PM
  Subject: RE: [flexcoders] Re: Flex Coding Guidelines



  I'm not sure there's a single engineering organization that doesn't get into 
fights about curly brace placement.  To each their own J  I personally like 
separate lines.




--

  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
lepusmars
  Sent: Sunday, February 11, 2007 6:37 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Flex Coding Guidelines



  I've seen more Java developers do it they way proposed with the curly
  braces on the next line. It's always bothered me... I'm an old dog I
  guess (actually I'm only 30), and a bit Obsessive Compulsive.

  --- In flexcoders@yahoogroups.com, Michael Schmalle
  [EMAIL PROTECTED] wrote:
  
I think it makes code less readable and
   
   Oh lets all agree to disagree on this one.
   
   Which side do you butter your bread? On the top or bottom, what???
  On the
   sides!!! ?
   
   I can't stand curly braces on the method line, doesn't allow a space
  from
   the method signature to fully read and seems cramped to me.
   
   But that is my point, you will never get people to agree on spaces,
  braces
   and whatever else developers have a habit doing.
   
   ... Just because Java / C++ does it, doesn't mean its right. Things
  always
   evolve.
   
   just kidding, maybe.
   
   Peace, Mike
   



   

Re: [flexcoders] Re: Show/Hide Column of Grid using Context Menu

2007-02-11 Thread Adam Royle
Sure, here you go. It's a bit messy, but I've stripped out everything except 
for the bare essentials. There is one bug, it won't work correctly on Safari on 
the Mac (not sure of other browsers). It is because of the characters I use to 
denote the 'visible status' when the context menu is displayed.

Cheers,
Adam


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

  import flash.ui.ContextMenu;
 import flash.ui.ContextMenuItem;

public var emptyContextMenu:ContextMenu;
public var columnsContextMenu:ContextMenu;

   public function initApplication() : void
   {
initContextMenu();
   }

public function initContextMenu():void
 {
 columnsContextMenu = new ContextMenu();
 emptyContextMenu = new ContextMenu();
 
 columnsContextMenu.hideBuiltInItems();
 emptyContextMenu.hideBuiltInItems();
 
 addCustomMenuItems();
 
 dg.addEventListener(mouseMove,datagridMouseMove);
 }
 
 public function datagridMouseMove(event:MouseEvent):void
 {
  if (dg.contentMouseY = dg.headerHeight){
   dg.contextMenu = columnsContextMenu;
  } else {
   dg.contextMenu = emptyContextMenu;
  }
 }
 
 private function addCustomMenuItems():void
 {
  var item:ContextMenuItem, col:String;
  for (var i:int=0;idg.columnCount;i++){
   col = dg.columns[i].headerText;
   if (dg.columns[i].visible){
col = '» '+col;
   } else {
   col = '- '+col;
   }
   item = new ContextMenuItem(col);
   item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,clickMe);
   columnsContextMenu.customItems.push(item);
  }
 }
 
 public function clickMe(e:ContextMenuEvent):void
 {
  var t:String = e.target.caption;
  for (var i:int=0;idg.columnCount;i++){
   if ('- '+dg.columns[i].headerText == t || '» 
'+dg.columns[i].headerText == t){
dg.columns[i].visible = !dg.columns[i].visible;
break;
   }
  }
  initContextMenu();
 }
  
 ]]
/mx:Script

mx:DataGrid id=dg width=100% height=100%
mx:columns
mx:DataGridColumn headerText=Column 1  /
mx:DataGridColumn headerText=Column 2  /
mx:DataGridColumn headerText=Column 3  /
mx:DataGridColumn headerText=Column 4 visible=false /
mx:DataGridColumn headerText=Column 5 visible=false /

/mx:columns
/mx:DataGrid
 
/mx:Application



  - Original Message - 
  From: sanjaypmg 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, February 12, 2007 4:27 PM
  Subject: [flexcoders] Re: Show/Hide Column of Grid using Context Menu


  Hi Adam,

  Can you send me the source? if possible.

  It'll be a great support for me to complete my assignment.

  Thanks,
  Sanjay sharma

  --- In flexcoders@yahoogroups.com, Adam Royle [EMAIL PROTECTED] wrote:
  
   Hi Sanya,
   
   I have done this in my app successfully, however with a different 
  technique. My context menu shows all of the columns in the datagrid, 
  with a prefix that denotes whether it is visible or not. Once 
  clicked, it figured out which column was clicked and toggle's the 
  visibility. It works well.
   
   I have a function which creates two ContextMenu objects, one that 
  contains all of the column names, and one that is empty. Since the 
  ContextMenu has to be associated with the datagrid before the right-
  click occurs, I dynamically assign it within a mouseMove event 
  (based on the value of the .contentMouseY property).
   
   This means the context menu with column names only show when you 
  right-click on the headers. I don't mind showing code except it's a 
  bit of a mess at the moment and might confuse the matter rather than 
  explaining it.
   
   Sorry I didn't run your example files so I'm not sure if I'm 
  addressing your specific problem or not.
   
   Cheers,
   Adam
   
   - Original Message - 
   From: sanjaypmg 
   To: flexcoders@yahoogroups.com 
   Sent: Friday, February 09, 2007 10:54 PM
   Subject: [flexcoders] Show/Hide Column of Grid using Context Menu
   
   
   Hi all,
   
   Am making a function of show/hide column of dataGrid using 
  Context 
   Menu. 
   
   Contextmenu comes when user clicks right button of mouse on 
  header.
   
   I have made a mxml component and added in headerRender of the 
   dataGrid Column. But when I click on my hide column button of 
   context menu it doesnt hide my clickd coloum. 
   
   Here in case of Filter in my files, If I enable sorting of the 
  same 
   column, it overrides my filter