RE: [flexcoders] Re: Flex 3.3 and Flash Player 10.0.22 coming?

2009-03-04 Thread Gregor Kiddie
I think I missed this one!

 

Does this release of the DMV code mean that we don't need a license for
it anymore?

 

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 is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Matt Chotin
Sent: 03 March 2009 17:33
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Flex 3.3 and Flash Player 10.0.22 coming?

 

Rollout wasn't so smooth but everything's up now.

http://www.adobe.com/products/flex/flexdownloads/
http://www.adobe.com/products/flex/flexdownloads/  

The DMV bits are there too.

SDK bug fixes are here:
https://bugs.adobe.com/jira/secure/IssueNavigator.jspa?mode=hiderequest
Id=12020
https://bugs.adobe.com/jira/secure/IssueNavigator.jspa?mode=hidereques
tId=12020  
 
I'll get one for DMV too, though you can search the bugbase yourself.

Reminder that there is no associated 3.0.3 Flex Builder coming.  Also I
didn't write an article for this one since it's mostly bug fixes, many
of them related to Marshall Plan.  Also it obviously has the new
Players.

Have fun!
Matt


On 3/3/09 8:33 AM, tntomek tnto...@yahoo.com wrote:


 

--- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com  , Tianzhen Lin tang...@...
wrote:

 Not sure if this is old news, I just noticed a massive commit
of Flex
 framework classes on Flex framework's repository, along with a
nifty
comment
 
 Merge 3.x revisions 5042,5072-5073,5090-5091 - trunk
 This includes the latest released player 10.0.22.87
 
 Coincidentally, I also noticed the Flex online documentation
is now
 referring Flex 3.3,
 

http://livedocs.adobe.com/flex/3/langref/mx/effects/Sequence.html
http://livedocs.adobe.com/flex/3/langref/mx/effects/Sequence.html 
 
 Something new are definitely around the corner... (rubbing
hands)
 
 
 - T.


Looks like 3.3 is out officially. Still no mention about how the
separate DMV is supposed to ship since there is no FB 3.03 to go
with
this release.

Feb 5 build
http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3
http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 

  








[flexcoders] Re: Rotate a custom Marker icon with Google Maps Flex API

2009-03-04 Thread bhaq1972
Sorry I can't remember. It was always quite confusing because there was one for 
flex and one for flash (and I was only evaluating). 

Go to the google maps flex api home page. and there is a link (called 'Groups') 
on the top right.


--- In flexcoders@yahoogroups.com, bigdummy504 j...@... wrote:

 --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote:
 
  Google maps flex API have their own forum. You can ask the question 
  there...very helpful bunch.
 
 Hi, thank you.  Could you provide a link?  I have not been able to find 
 this group, is it a yahoo or google group?
 
 J





Re: [flexcoders] Detecting other type of mouse event

2009-03-04 Thread carlo giordano
How check is the mouse click is released ?


2009/3/3 Fotis Chatzinikos fotis.chatzini...@gmail.com:
 mouse move?

 on press, register mouse move and then on release / drop unregister...


Re: [flexcoders] Detecting other type of mouse event

2009-03-04 Thread carlo giordano
Sorry,
my question is how check *if* the mouse click is released ?

Thanks.

2009/3/3 Fotis Chatzinikos fotis.chatzini...@gmail.com:
 mouse move?

 on press, register mouse move and then on release / drop unregister...



Re: [flexcoders] Detecting other type of mouse event

2009-03-04 Thread carlo giordano
According to you I must register all this event in my UIComponent. Right ?

2009/3/3 Adrian Williams adri...@familytreedna.com:
 Will listening for MOUSE_DOWN then MOUSE_MOVE then MOUSE_UP help?


[flexcoders] Error #2044: Unhandled NetStatusEvent

2009-03-04 Thread Jigar Kapadia
Hi,

I've got following error...

Error #2044: Unhandled NetStatusEvent:. level=error, 
code=NetStream.Play.StreamNotFound
 at views.recorder::VideoView/establishStream()
 at views.recorder::VideoView/showPtPhoto()
 at views.recorder::MediaCenterController/showPtPhoto()
 at DoctationsApplication/onPatientChosen()
 at DoctationsApplication/onPtFound()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at managers::DataManager/doResults()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()

I can see lots of blog post on different sites. but no luck.
Any Idea?

Thanks
J


  

Re: [flexcoders] Detecting other type of mouse event

2009-03-04 Thread carlo giordano
2009/3/3 Fotis Chatzinikos fotis.chatzini...@gmail.com:
 mouse move?

 on press, register mouse move and then on release / drop unregister...


This is my sample code but does not work because I was not able to
detecting that the mouse click is continued clicked. Any suggestion ?

triangle2 = new UIComponent();
triangle2.addEventListener(MouseEvent.CLICK, handlerClick);


private function handlerClick(evt:MouseEvent) : void {
   triangle2.addEventListener(MouseEvent.MOUSE_MOVE, handlerMouseMove);
}

private function handlerMouseMove(evt:MouseEvent) : void {
Alert.show(evt.stageX +  ::  + evt.stageY);
}


Re: [flexcoders] Re: Flex 3.3 and Flash Player 10.0.22 coming?

2009-03-04 Thread Tom Chiverton
On Wednesday 04 Mar 2009, Gregor Kiddie wrote:
 Does this release of the DMV code mean that we don't need a license for
 it anymore?

Doubt it, it's just the binaries if you open it up.

-- 
Tom Chiverton
Helping to economically incubate corporate metrics
as part of the IT team of the year, '09 and '08



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 together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] amfphp problem - Client.Error.DeliveryInDoubt - when trying to export image

2009-03-04 Thread Rico Leuthold

Hi,

Thank's for the answer. But how can I get the ByteArray with the data  
and the filename in the php upload script at the same time?


It seems not possible to send the ByteArray in a post variable and  
read it out in php.


Thank's
_rico

On 03.03.2009, at 19:09, Fotis Chatzinikos wrote:

I never use amf to upload images. I always post to a normal  
upload.php page.


If you do not find a solution to your amf problem try this...

Have in mind that you will need to send the server session as well  
if you follow my advice,
as the flash player has a different session id in some browsers  
(this is needed if your upload page is available only to logged in  
users)



On Tue, Mar 3, 2009 at 8:01 PM, Rico Leuthold rleuth...@sunrise.ch  
wrote:

Hi,

I have a really annoying, randomly occuring, problem with amfphp when
I want to export an image file.

The application is sending a byteArray (png encoded) to php over
amfphp, where the png file is created and the image file is served for
download. Sometimes that works perfect, but the suddenly I get the
error Message: Client.Error.DeliveryInDoubt - Channel  
disconnected.


When I debug the data flow with Charles I get:
The class {Amf3Broker} could not be found under the class path {[...]/
amfphp/services/amfphp/Amf3Broker.php

I searched through the web to find a solution to this and tried out
every thing I could find.

A huge problem is, that this happens just from time to time. Usually I
can just reload my app to get rid of th problem.

Did somebody have the same problem and found a solution to this, or
can you give me hint on how to go on?

Thank's
rico




--
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,






Re: [flexcoders] amfphp problem - Client.Error.DeliveryInDoubt - when trying to export image

2009-03-04 Thread Rico Leuthold

Hi again,

Found a workaround for this problem (Source: 
http://blog.flexexamples.com/2007/12/07/converting-an-imagesnapshot-object-into-a-base-64-encoded-string-in-flex-3/)

Instead of encoding the ImageSnapshot to a ByteArray,  it's easy to  
encode the data to a Base-64 string ( ImageSnapshot.  
encodeImageAsBase64(snapshot) ).


In the method of the amfphp service file handling the export, decode  
the data with the base64_decode function.


This seems to solve my problem (touch wood).

_rico

On 03.03.2009, at 19:09, Fotis Chatzinikos wrote:

I never use amf to upload images. I always post to a normal  
upload.php page.


If you do not find a solution to your amf problem try this...

Have in mind that you will need to send the server session as well  
if you follow my advice,
as the flash player has a different session id in some browsers  
(this is needed if your upload page is available only to logged in  
users)



On Tue, Mar 3, 2009 at 8:01 PM, Rico Leuthold rleuth...@sunrise.ch  
wrote:

Hi,

I have a really annoying, randomly occuring, problem with amfphp when
I want to export an image file.

The application is sending a byteArray (png encoded) to php over
amfphp, where the png file is created and the image file is served for
download. Sometimes that works perfect, but the suddenly I get the
error Message: Client.Error.DeliveryInDoubt - Channel  
disconnected.


When I debug the data flow with Charles I get:
The class {Amf3Broker} could not be found under the class path {[...]/
amfphp/services/amfphp/Amf3Broker.php

I searched through the web to find a solution to this and tried out
every thing I could find.

A huge problem is, that this happens just from time to time. Usually I
can just reload my app to get rid of th problem.

Did somebody have the same problem and found a solution to this, or
can you give me hint on how to go on?

Thank's
rico




--
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,






[flexcoders] Launching Air application from ASP .NET

2009-03-04 Thread akila_ksri
I have an AIR application that I need to run from an ASP.NET page. I use 
System.Diagonistics.Process to launch the exe file (on installing the .air 
file). My application does not seem to working though. It appears in the task 
manager but does not seem to run properly. 

On start of the application itself, I write a file to disk. But when I launch 
this through the Process, no file gets written.

Any response is greatly appreciated.

Thanks,
Akila



Re: [flexcoders] Re: Anyone have issue with AIR updater on Mac OSX

2009-03-04 Thread Rick Schmitty
Just for completeness, Raul Hudea from Adobe suggested moving the
event to onApplicationComplete and that has fixed the issue for me w/o
needing the setTimeout delay

I guess my mac is faster than my pc and needed that few ms delay
before calling the updater :)

On Tue, Feb 24, 2009 at 8:58 PM, Rick Schmitty flexc...@gmail.com wrote:
 Thanks Marcello, that definitely wouldn't have been something I would
 thought to try :)

 On Tue, Feb 24, 2009 at 5:33 PM, Marcello Teodori
 marcello.teod...@gmail.com wrote:
 Same here, on Leopard we've solved waiting a little timeout before
 dispatching the
 initialiazed event... I guess it's a bug...

 // Once initialized, wait timeout (workaround for late event) then run
 onUpdate
 appUpdater.addEventListener(UpdateEvent.INITIALIZED,
 function(e:Event):void {
 setTimeout(onUpdate, 100, UpdateEvent(e));
 }
 );

 --- In flexcoders@yahoogroups.com, Rick Schmitty flexc...@... wrote:

 I'm using the ApplicationUpdaterUI component to manage updates.

 The update process works perfectly on windows, however on OSX the
 update window merely flashes very quickly once and goes straight to
 the app no errors detected, thus not allowing the user to ever update.
 Again works fine on windows XP


 ?xml version=1.0 encoding=utf-8?
 mx:WindowedApplication showFlexChrome=false
 creationComplete=checkForUpdates()
 xmlns:mx=http://www.adobe.com/2006/mxml;
 backgroundColor=0xff paddingLeft=2 paddingRight=2
 paddingBottom=2 paddingTop=2

 mx:Script
 ![CDATA[
 import mx.controls.Alert;
 import air.update.events.UpdateEvent;
 import air.update.ApplicationUpdaterUI;

 private var appUpdater:ApplicationUpdaterUI = new ApplicationUpdaterUI();


 private function checkForUpdates():void
 {
 appUpdater.updateURL=http://dev/updater/test_app.xml;;
 appUpdater.addEventListener(UpdateEvent.INITIALIZED,onUpdate);
 appUpdater.addEventListener(ErrorEvent.ERROR,onError);

 appUpdater.isCheckForUpdateVisible=false;

 appUpdater.initialize();
 }

 private function onUpdate(event:UpdateEvent):void
 {
 appUpdater.checkNow();
 }

 private function onError(event:ErrorEvent):void
 {
 Alert.show(event.toString());
 }

 ]]
 /mx:Script


 



Re: [flexcoders] Launching Air application from ASP .NET

2009-03-04 Thread Sam Lai
ASP.NET executes applications as a different user with a different set
of permissions. If you are writing to local storage, it would be in a
different location than what you would expect if you are running the
app as yourself. Where are you writing to?

Can I ask why you are doing this? What does AIR offer that you can't
do using ASP.NET on the server?

2009/3/4 akila_ksri akila_k...@yahoo.co.in:
 I have an AIR application that I need to run from an ASP.NET page. I use 
 System.Diagonistics.Process to launch the exe file (on installing the .air 
 file). My application does not seem to working though. It appears in the task 
 manager but does not seem to run properly.

 On start of the application itself, I write a file to disk. But when I launch 
 this through the Process, no file gets written.

 Any response is greatly appreciated.

 Thanks,
 Akila



 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links






[flexcoders] Re: Modules Communication

2009-03-04 Thread thelordsince1984
--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 If you don't want to set up a full blown communication manager, you could do
 this:
 
 1)   dispatch a *bubbling* event from your source module
 
 2)   Set up a listener at the main application on this
 (this.addEventListener.)
 
 3)   Have the handler for that listener re-dispatch the event
 
 4)   In your target module, set a listener on
 Application.application.addEventListener
 
  
 
 However, setting up a singleton data model would be almost as simple.
 
  
 
 Tracy
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of thelordsince1984
 Sent: Tuesday, March 03, 2009 10:53 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Modules Communication
 
  
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Simon Bailey simon@ wrote:
 
  On the tip for communicating between modules using a framework, 
  PureMVC has a utility called Pipes which helps you accomplish this:
  
  http://trac. http://trac.puremvc.org/Utility_AS3_MultiCore_Pipes
 puremvc.org/Utility_AS3_MultiCore_Pipes
  
  ;S
  
  On 3 Mar 2009, at 10:10, claudiu ursica wrote:
  
  
   You should probably have ca comunication manager something like a 
   central event dispatcher (I believe the Mate framework already does 
   this but i might be mistaking) and register panels within that 
   scope. so when a panel fires an event the other listening panels 
   check if the event is adressed to them and actually consume catch 
   that event...
  
   there was some guy doing a prof of concept for this google for ALON 
   desing pattern ...
  
   HTH,
   Claudiu
  
   From: thelordsince1984 loreboa@
   To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
   Sent: Tuesday, March 3, 2009 10:53:49 AM
   Subject: [flexcoders] Re: Modules Communication
  
   --- In flexcod...@yahoogro ups.com, Guy Morton guy@ wrote:
   
Have you read the section Using interfaces for module 
   communication
in the docs? That's been working for me.
   
  
   thanks for the reply..
  
   For Guy Morton...
  
   i've read it but modules are created at runtime so i would have a
   maneger that controls communication over modules.is it true?
  
   For Alex Harui
  
   how can i achieve the commuication between modules..for example a
   module dispatch an event...the event is catch by a manager and then
   fires to the rigth destination. ..rember that i have an
   application. ..it contains panels and each panel could contain a 
   module...
  
   thanks again
  
   Regards Lorenzo
  
  
  
  
  
 
 thanks all,
 
 but is there a simple manner to achieve module to module communication?
 
 suppose this scenario:
 
 i've a module within a panel. it contains a textinput...it fires a
 custom event when the user clicks a button..the event contains an id
 number..an other modules is listen for this event, catchs it at then
 update itself depending on passed id...
 
 thanks again 
 Regards Lorenzo

Hi Tracy,

you said However, setting up a singleton data model would be almost as simple

how can achieve this communication whith this suggestion?
Can you post me a guide line to rich module to module communication with a 
single data module?

thanks again,

Regards Lorenzo




[flexcoders] Re: Cursor Error: Bookmark no longer valid.

2009-03-04 Thread luke_lee1124
I got a workarround

just simplely:

ac.disableAutoUpdate();

before you make any change to the ac.



Re: [flexcoders] Re: Cursor Error: Bookmark no longer valid.

2009-03-04 Thread Rico Leuthold

Hi Luke,

Mine is just a GroupingCollection (http://livedocs.adobe.com/flex/3/langref/mx/collections/GroupingCollection.html 
).


_rico

On 04.03.2009, at 06:59, luke_lee1124 wrote:


Hi, rico

Thanks very much.

what is the data type of your gc?
mine is a mx:HierarchicalData,
it did not have a refresh() method.

Thanks

--- In flexcoders@yahoogroups.com, Rico Leuthold rleuth...@...  
wrote:


 Hi Luke,

 I couldn't find any solution to this, but found a workaround.

 Just filter the underlying ArrayCollection, set it as source for the
 grouping collection and refresh the collection.

 ac.filterFunction = theFilterFunc;
 gc.source = ac;
 gc.refresh();
 adg.expandAll();

 This works for me.

 _rico

 On 25.02.2009, at 03:25, luke_lee1124 wrote:

  Error: Bookmark no longer valid.
  at
  ListCollectionViewCursor/seek()[E:\dev\3.1.0\frameworks\projects
  \framework\src\m\
  x\collections\ListCollectionView.as:2055]
  at
  mx.collections::HierarchicalCollectionViewCursor/
  collectionChangeHandler()[C:\wo\
  rk\flex\dmv_automation\projects\datavisualisation\src\mx 
\collections

  \Hierarchica\
  lCollectionViewCursor.as:1116]
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at
  mx.collections::HierarchicalCollectionView/
  nestedCollectionChangeHandler()[C:\wo\
  rk\flex\dmv_automation\projects\datavisualisation\src\mx 
\collections

  \Hierarchica\
  lCollectionView.as:1199]
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at
  mx.collections::ListCollectionView/dispatchEvent()[E:\dev
  \3.1.0\frameworks\proje\
  cts\framework\src\mx\collections\ListCollectionView.as:833]
  at
  mx.collections::ListCollectionView/addItemsToView()[E:\dev
  \3.1.0\frameworks\proj\
  ects\framework\src\mx\collections\ListCollectionView.as:931]
  at
  mx.collections::ListCollectionView/listChangeHandler()[E:\dev
  \3.1.0\frameworks\p\
  rojects\framework\src\mx\collections\ListCollectionView.as:1051]
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at
  mx.collections::ArrayList/internalDispatchEvent()[E:\dev
  \3.1.0\frameworks\projec\
  ts\framework\src\mx\collections\ArrayList.as:510]
  at
  mx.collections::ArrayList/addItemAt()[E:\dev\3.1.0\frameworks
  \projects\framework\
  \src\mx\collections\ArrayList.as:311]
  at
  mx.collections::ListCollectionView/addItemAt()[E:\dev
  \3.1.0\frameworks\projects\\
  framework\src\mx\collections\ListCollectionView.as:501]
  at
  components.section_page_manager::section_page_add_form/addPage() 
[D:

  \xampp\htdocs\
  \flex\survey_builder_v3\src\components\section_page_manager
  \section_page_add_for\
  m.mxml:206]
  at
  components.section_page_manager::section_page_add_form/doSave()[D:
  \xampp\htdocs\\
  flex\survey_builder_v3\src\components\section_page_manager
  \section_page_add_form\
  .mxml:93]
  at
  components.section_page_manager::section_page_editor/
  __btnSave_click()[D:\xampp\\
  htdocs\flex\survey_builder_v3\src\components\section_page_manager
  \section_page_e\
  ditor.mxml:94]
 
 
 







Re: [flexcoders] Detecting other type of mouse event

2009-03-04 Thread Tom Chiverton
On Wednesday 04 Mar 2009, carlo giordano wrote:
 How check is the mouse click is released ?

There's a mouse up event.

-- 
Tom Chiverton
Helping to confidentially bully professional clusters
as part of the IT team of the year, '09 and '08



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 together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] Restricting characters in User input controls

2009-03-04 Thread Artur de Paula Ribeiro
mx:TextArea id=txtInput restrict=^’\\ /



  - Original Message - 
  From: kotha poornima 
  To: flexcoders 
  Sent: Tuesday, March 03, 2009 8:50 AM
  Subject: [flexcoders] Restricting characters in User input controls



  Hi,
  I want to exclude single quotes and double quotes in the user input
  So i coded the statement like this: 
  mx:TextArea id=txtInput restrict=^’\ /

  But iam getting error like this:(Iam not able to exclude double quotes)
  Element type mx:TextArea must be followed by either attribute 
specifications,  or /

  Can anyone help me out of this.

  Thanks in Advance,
  Poornima





  

Re: Fw: [flexcoders] Restricting characters in User input controls

2009-03-04 Thread pavan kumar

Use 'mx:TextArea restrict=^.\#034;/' instead
 
where ' #034; '  is the html charcter code for double quotes.


Regards,
Pavan Kumar S




--- On Tue, 3/3/09, kotha poornima poorni_ag...@yahoo.com wrote:

 From: kotha poornima poorni_ag...@yahoo.com
 Subject: Fw: [flexcoders] Restricting characters in User input controls
 To: flexcoders flexcoders@yahoogroups.com
 Date: Tuesday, 3 March, 2009, 11:59 PM
 Hi All,
 Can anyone give me an idea how i can solve this.
 
 Thanks in Advance,
 Poornima
 
 - Forwarded Message 
 From: kotha poornima poorni_ag...@yahoo.com
 To: flexcoders flexcoders@yahoogroups.com
 Sent: Tuesday, March 3, 2009 5:20:18 PM
 Subject: [flexcoders] Restricting characters in User input
 controls
 
 
 Hi,
 I want to exclude single quotes and double quotes in the
 user input
 So i coded the statement like this: 
 mx:TextArea id=txtInput
 restrict=^’\ /
 
 But iam getting error like this:(Iam not able to exclude
 double quotes)
 Element type mx:TextArea must be followed by
 either attribute specifications,  or
 /
 
 Can anyone help me out of this.
 
 Thanks in Advance,
 Poornima


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/


[flexcoders] Re: Restricting characters in User input controls

2009-03-04 Thread pavan kumar
Try using  ' #034;'  instead of the double quote char

Regards,
Pavan Kumar S



--- On Tue, 3/3/09, kotha poornima poorni_ag...@yahoo.com wrote:

 From: kotha poornima poorni_ag...@yahoo.com
 Subject: Fw: [flexcoders] Restricting characters in User input controls
 To: flexcoders flexcoders@yahoogroups.com
 Date: Tuesday, 3 March, 2009, 11:59 PM
 Hi All,
 Can anyone give me an idea how i can solve this.
 
 Thanks in Advance,
 Poornima
 
 - Forwarded Message 
 From: kotha poornima poorni_ag...@yahoo.com
 To: flexcoders flexcoders@yahoogroups.com
 Sent: Tuesday, March 3, 2009 5:20:18 PM
 Subject: [flexcoders] Restricting characters in User input
 controls
 
 
 Hi,
 I want to exclude single quotes and double quotes in the
 user input
 So i coded the statement like this: 
 mx:TextArea id=txtInput
 restrict=^’\ /
 
 But iam getting error like this:(Iam not able to exclude
 double quotes)
 Element type mx:TextArea must be followed by
 either attribute specifications,  or
 /
 
 Can anyone help me out of this.
 
 Thanks in Advance,
 Poornima


  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/


[flexcoders] flex3 DateTimeAxis time ordering

2009-03-04 Thread limpantaleano
Hello,

I am creating a LineChart using a DateTimeAxis for the horizontal
axis. My xAxis is ordered incorrectly. How can this be fixed?

My yAxis are int values.  My xAxis are Strings that represent a time,
which I parse into a Date objects.  My time strings range from
00:00:00 to 23:55:00 in the format of (hh:mm:ss).  They are in
five minute increments. 

I am able to run and see the data. Good. My problem is that the chart
starts at 06:00:00 increments up to 23:55:00 then continues with
00:00:00 up to 05:55:00. Bad.

Like this:
  -
06:0023:55 00:00   05:55

Among other things I have tried...
 setting the LineSeries 'sortOnXField' with no visible change.
 setting combinations of DateTimeAxis 'minimum' and 'maximum'
properties with no visible change.
 setting DateTimeAxis 'baseAtZero' with no visible change. 

Below is a sample mxml code showing my example.  

I was having it connect to an HTTPService to retrieve the xml input,
but for this purpose I have modified slightly to include some sample
data. I have only been messing around with flex for a couple days and
am not adept to thing that are probably obvious with the flex language. 










?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute  applicationComplete=resultHandler(null)

mx:Script
![CDATA[
import mx.charts.series.LineSeries;
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.Fault;
import mx.utils.ObjectUtil;

private var result:XML = 
Machines
  Machine ename=machinename
load
  time00:00:00/time
  cpu0/cpu
/load
load
  time01:00:00/time
  cpu0/cpu
/load
load
  time02:00:00/time
  cpu0/cpu
/load
load
  time04:00:00/time
  cpu0/cpu
/load
load
  time05:00:00/time
  cpu0/cpu
/load
load
  time06:00:00/time
  cpu0/cpu
/load
load
  time07:00:00/time
  cpu1/cpu
/load
load
  time08:00:00/time
  cpu3/cpu
/load
load
  time09:00:00/time
  cpu3/cpu
/load
load
  time10:00:00/time
  cpu4/cpu
/load
load
  time11:00:00/time
  cpu3/cpu
/load
load
  time12:00:00/time
  cpu3/cpu
/load
load
  time13:00:00/time
  cpu2/cpu
/load
load
  time14:00:00/time
  cpu3/cpu
/load
load
  time15:00:00/time
  cpu3/cpu
/load
load
  time16:00:00/time
  cpu3/cpu
/load
load
  time17:00:00/time
  cpu3/cpu
/load
load
  time18:00:00/time
  cpu1/cpu
/load
load
  time19:00:00/time
  cpu0/cpu
/load
load
  time20:00:00/time
  cpu0/cpu
/load
load
  time21:00:00/time
  cpu0/cpu
/load
load
  time22:00:00/time
  cpu0/cpu
/load
load
  time23:00:00/time
  cpu0/cpu
/load
  /Machine
/Machines
   
public function faultHandler(event:FaultEvent):void 
{
const fault:Fault = event.fault;
const faultString:String =
   FAULT CODE:  + fault.faultCode + \n\n
 + FAULT DETAIL:  + fault.faultDetail + \n\n
 + FAULT STRING:  + 

[flexcoders] Help on DataGrid dataProvider

2009-03-04 Thread jcjr031064
Hello guys,
A newbie here.

I have this code:
?xml version=1.0 encoding=UTF-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=bookData.send()

mx:Script
![CDATA[
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import mx.controls.Alert;

[Bindable]
private var bookInfo:XMLList;

private function handleXML(event:ResultEvent):void{
bookInfo=event.result.stock as XMLList;
Alert.show(xmlBooks.toString());
Alert.show(bookInfo);
}
]]
/mx:Script
mx:XMLListCollection id=xmlBooks
 source={bookData.lastResult.stock}/
mx:HTTPService result=handleXML(event) id=bookData url=books.xml 
resultFormat=e4x/
mx:DataGrid x=56 y=250 width=950
dataProvider={xmlBooks}/
/mx:Application


How do I get the datagrid to be populated with rows? The alert.show calls 
somehow get the data.

What am i missing here?


JC



[flexcoders] Creating resizable datagrid

2009-03-04 Thread martyp...@rocketmail.com

Hi All

I'm trying to create a datagrid which will resize vertically to ensure
all  the renderers are displayed in full. Additionally,

* Renderers are of variable height
* Renderers can resize themselves

Generally speaking, the flow of events is as follows :

* One of the item renderers resizes itself (normally in response to a
userclick etc)
* It dispatches a bubbling event which the parent datagrid picks up
* The DataGrid attempts to resize to ensure that all renderers remain
visible in full.

I'm currently using this code within the datagrid to calculate the 
height:
height = measureHeightOfItems(0, dataProvider.length ) + headerHeight;

This appears to get an incorrect height. I've tried a number of
variations  including callLater ( to ensure the resize has completed so
measure can work  correctly), and overriding meausre() and calling
invalidateSize() /  validateSize(), but neither works.

Below are 3 classes which will illustrate the problem. Clicking the
button in  the item renderers resizes the renderer. The grid should also
expand so that all  of the 3 renderers are shown in their entirety.

Any suggestions would be greatly appreciated.

Regards

Marty

DataGridProblem.mxml (Application file)
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical
 xmlns:view=view.*
 mx:ArrayCollection id=dataProvider
 mx:StringItem A/mx:String
 mx:StringItem B/mx:String
 mx:StringItem C/mx:String
 /mx:ArrayCollection
 view:TestDataGrid
 id=dg
 dataProvider={ dataProvider }
 width=400
 view:columns
 mx:DataGridColumn dataField=text /
 mx:DataGridColumn itemRenderer=view.RendererButton /
 /view:columns
 /view:TestDataGrid
/mx:Application

view.TestDataGrid.as
package view
{
 import flash.events.Event;

 import mx.controls.DataGrid;
 import mx.core.ScrollPolicy;

 public class TestDataGrid extends DataGrid
 {
 public function TestDataGrid()
 {
 this.verticalScrollPolicy = ScrollPolicy.OFF;
 this.variableRowHeight = true;
 this.addEventListener( RendererButton.RENDERER_RESIZE ,
onRendererResize );
 }
 private function onRendererResize( event : Event ) : void
 {
 resizeDatagrid();
 }
 private function resizeDatagrid():void
 {
 height = measureHeightOfItems(0, dataProvider.length ) +
headerHeight;
 }
 }
}

view.RendererButton.mxml
?xml version=1.0 encoding=utf-8?
mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
 mx:Button width=50 height=50
 click=onClick() /

 mx:Script
 ![CDATA[

 public static const RENDERER_RESIZE : String =
resizeRenderer;
 private function onClick() : void
 {
 this.height += 20;
 dispatchEvent( new Event( RENDERER_RESIZE , true
) );
 }
 ]]
 /mx:Script
/mx:HBox



[flexcoders] Topic: Nesting of expandable advanced datagrids using renderer

2009-03-04 Thread Gautham
Hi friends,
 I'm building a flex application, where i am creating advanced datagrid within 
advanced datagrid for many levels(i.e, one advanced datgrid within another, 
which intern has advanced datagrid within it) using renderers.
In this nesting of advanced datagrids, the problem is that, the outermost 
datagrid expands to the size of its itemrender(inner datagrid). And if we 
create a one more advanced datagrid within the the inner datagrid, the 
outermost datagrid will not expand to the size of inner grid.
The problem is with using renderer within renderer. Please give me any 
suggestions

Thanks in Advance
   Gautham



[flexcoders] How to open links in new window/tab from AIR Flex HTML Component

2009-03-04 Thread greendayjunki
Hi all,

Been scratching my head for a while, and I hope this is pretty simple:
I want to create a simple tabbed browser.

1.  How do I make links clicked from within a flex HTML component page open in 
a *new* window in stead of the current html component.  

I'm comfortable spawning my own tabs/windows, but I can't seem to trap the 
location change event before it loads the same page.

2.  How can I trap cntrl+click so that, like firefox/IE/Safari, I can open the 
link clicked in a new window/tab (again I can create these) in stead of 
reloading the same window.

Any help is greatly appreciated!

Thanks and regards.



[flexcoders] Re: Setting the resize event handler for Application?

2009-03-04 Thread Keith Hughitt
   if (myPanel != null)
   myPanel.title = TEST;

That did the trick!

So it looks like the resize event *is* being fired as soon as the application 
is being loaded, before the panels have even been instantiated?

Thanks for the help :)
Keith



[flexcoders] Re: F10 in AIR problem

2009-03-04 Thread kyle.vanvranken
They key handler for the F10 key is working. The problem is that immediately 
there after the focus is pulled to the windows context menu. For example you 
hit F10 which triggers some alert prompt. You try and hit enter to dismiss the 
alert but when you do so the windows context menu pops up.Hit enter again and 
focus is returned and the alert is dismissed. Basically I want to disable this 
context menu functionality.

-Kyle

--- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiver...@... wrote:

 On Tuesday 03 Mar 2009, kyle.vanvranken wrote:
  behavior of said key being to open the current window's context window. Any
  help would be greatly appreciated.
 
 You mean, it should but doesn't, or you've tried writing a key press event 
 handler and it isn't getting through ?
 
 -- 
 Tom Chiverton
 Helping to apprehensively transform eyeballs
 as part of the IT team of the year, '09 and '08
 
 
 
 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 together with 
 a list of those non members who are referred to as partners.  We use the word 
 ?partner? to refer to a member of the LLP, or an employee or consultant with 
 equivalent standing and qualifications. 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] Credit card processing in Flex

2009-03-04 Thread Scott
Anyone have a website or information that references how to process
credit cards through flex?

 Thanks
   Scott


re: [flexcoders] Credit card processing in Flex

2009-03-04 Thread Wally Kolcz

Flex can pass the cc information to a scripting language such 
as asp.net, php, jsp, or CF. From there you can use any of the API's offered by 
the various CC processing companies to complete the transactions and pass the 
information back to flex to display. Or you might be able to use URLRequest or 
sendToURL 



From: Scott h...@netprof.us
Sent: Wednesday, March 04, 2009 7:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Credit card processing in Flex 

Anyone have a website or information that references how to process

credit cards through flex?

Thanks

   Scott






Re: [flexcoders] Credit card processing in Flex

2009-03-04 Thread Ashish Verma
I think you have to integrate with some Payment Gateway. Contact with Paypal
or other CC service provider they could give you sample account for testing
and URL also on their you could redirect you payment request from Flex using
navigateURL() or ExternalInterface.




Best,
Ashish

On Wed, Mar 4, 2009 at 8:39 PM, Scott h...@netprof.us wrote:

   Anyone have a website or information that references how to process
 credit cards through flex?

 Thanks
 Scott
 



re: [flexcoders] Credit card processing in Flex

2009-03-04 Thread Scott
I'm using CF on the backend...  What I'm trying to figure out is the SSL
piece for Flex.  Previously, I just insured that the user went to
https://www.mysecuresite.com https://www.mysecuresite.com/  before
accepting credit card information.  How does this work with Flex?

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Wednesday, March 04, 2009 9:04 AM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} re: [flexcoders] Credit card processing in Flex

 

Flex can pass the cc information to a scripting language such as
asp.net, php, jsp, or CF. From there you can use any of the API's
offered by the various CC processing companies to complete the
transactions and pass the information back to flex to display. Or you
might be able to use URLRequest or sendToURL 



From: Scott h...@netprof.us
Sent: Wednesday, March 04, 2009 7:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Credit card processing in Flex 

Anyone have a website or information that references how to process
credit cards through flex?

Thanks
Scott

 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


re: [flexcoders] Credit card processing in Flex

2009-03-04 Thread Wally Kolcz

Your CF can handle the passing to the payment gateway via web 
service or custom CFC. Flex just acts an a messenger passing cc / user info to 
the CFC and getting the response to show the user. Do you want to do it JUST 
through Flex? 
 You can use  

sendToURL to pass information to the gateway 
via https URL and the user never sees it. 



From: Scott h...@netprof.us
Sent: Wednesday, March 04, 2009 7:15 AM
To: flexcoders@yahoogroups.com
Subject: re: [flexcoders] Credit card processing in Flex 


I'm using CF on the backend. 
What I'm trying to figure out is the SSL piece for Flex.  Previously, I
just insured that the user went to https://www.mysecuresite.com
before accepting credit card information.  How does this work with Flex?




From:



flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of 
Wally Kolcz
Sent: Wednesday, March 04, 2009
9:04 AM
To:flexcoders@yahoogroups.com
Subject: {Disarmed} re:
[flexcoders] Credit card processing in Flex



Flex can pass the cc information to a scripting
language such as asp.net, php, jsp, or CF. From there you can use any of the
API's offered by the various CC processing companies to complete the
transactions and pass the information back to flex to display. Or you might be
able to use URLRequest or sendToURL





From



:
Scott h...@netprof.us
Sent: Wednesday, March 04, 2009
7:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Credit card
processing in Flex



Anyone
have a website or information that references how to process

credit cards through flex?

Thanks

Scott

-- 

This message has been scanned for viruses and

dangerous content by
MailScanner, and is

believed to be clean.






RE: [flexcoders] try, catch, finally ...

2009-03-04 Thread Kevin Benz
Try-Catch blocks are an absolute necessity as without them, you are
putting the operation of your software into the hands of user input
errors, http errors, unintended consequences as well as the myriad of
things that exist outside the Happy Path. As functions/methods only
give you one return object, it is common practice to throw custom
errors/exceptions as they are a great mechanism for handling dynamic
environments.

 

To answer your second question about a try-catch without statements in
the catch block. If this method is nested inside of another try-catch
block, then an exception here will be swallowed and not be caught in the
calling objects try-catch.

 

KFB

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of SJF
Sent: Tuesday, March 03, 2009 6:54 PM
To: flexcoders
Subject: [flexcoders] try, catch, finally ...

 

Technically, it's good practice/professional to use try-catch-finally
blocks in your actionscript logic. This ensures a robust, easily
debugg-able application.

However, can anyone comment if they actually use try-catch-finally or
whether anyone is for or against it's use.

I ask because I've received an application (which streams vidoe) that
was blowing out numerous users CPUs to 100%. Upon further investigation,
it appears that a netstream event is firing 20 times a second, and
within the listener (listener function that is) for the event, there is
a try-catch-finally block. I removed the try-catch-finally and CPU usage
halved on my machine.

Anyone care to comment for or against try-catch-finally and it's use.

 

Steve.




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 

image003.jpgimage004.jpg

[flexcoders] file.upload() works fine on mac os x, does not work on a PC

2009-03-04 Thread tchredeemed
I tried this in all browsers on my mac (firefox, safari, camino), and it 
uploaded fine.

I tried this on all browsers on my pc (firefox, ie6, ie7), and it did not.

file.upload( new URLRequest( 
_appGlobals.serverURL+data/attachment/?order_id=+_appGlobals.order.id ) );

serverURL = https://www.oursite.com/

order_id is set

for some reason, it is faulting!  any ideas why?






[flexcoders] Re: file.upload() works fine on mac os x, does not work on a PC

2009-03-04 Thread tchredeemed
I am uploading using Rails (Ruby on rails)

PC is getting a 406 Not Acceptable error.

any help would be awesome!



RE: [flexcoders] Credit card processing in Flex

2009-03-04 Thread Kevin Benz
I would look at the authorize.net documentation as they present the most
generic methods for HTTP based authentication. 

 

If you are talking about a client-side processing solution, it can be
accomplished but a bad idea. SWF's can be easily reverse engineered
exposing API keys, hash entries, merchant account identities and
credentials to external access. Traditional non-API Wallet approaches
(standard PayPal, Amazon FPS, Google Wallet) cannot exist in a client
only solution as they require a post-back URL with which to transact. 

 

The only secure solution has a server acting as a gateway to the payment
service with the Authorize.net documents providing many resources. Other
payment aggregators offer likewise documentation such as Cybersource,
Paypal (both Wallet and API).  A server hides the specifics (code and
metadata) from the peering eyes of those interesting in subverting your
payment service.

 

KFB

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Wednesday, March 04, 2009 7:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Credit card processing in Flex

 

Anyone have a website or information that references how to process
credit cards through flex?

Thanks
Scott




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 

image001.jpgimage002.jpg

Re: [flexcoders] jQuery for Flex - a Behavior Injection Framework

2009-03-04 Thread Sean Clark Hess
I just released Bifff 0.2a - Bifff stands for Behavior Injection Framework
for Flex.
http://code.seanhess.net/?p=171

See the link above for new features. I also created a google group at

http://groups.google.com/group/bifff

Enjoy!

On Tue, Mar 3, 2009 at 12:13 PM, Sean Clark Hess seanh...@gmail.com wrote:

 Just a quick note - the behavior tags in bifff (going to be the name) have
 nothing to do with Mate.  So... no docs yet, sorry.
 Check out the example apps if you want more info for now.

 ~sean


 On Tue, Mar 3, 2009 at 10:09 AM, Michael Wills mich...@mawills.comwrote:

 Heh yeah just a play on the names you mentioned in your blog, i.e.
 decaf, cola, bif(ff?), etc. I am only just getting started with
 Mate but have appreciated the injection concept. My first hands on dose
 of that was with PureMVC's ViewMediators. Mate and your framework is
 simpler for folks to understand though. The setup and usage is quite
 clear just looking at the code. I actually hadn't even seen or used the
 Contents or Swap tags before. I still have to go look those up in the
 related docs. :-)

 Michael

 Sean Clark Hess wrote:
 
  @Sam, Thanks for adding that link. Guess I shouldn't try to do fancy
  html emails for the first time when making important announcements :)
 
 
  @Michael - Thanks! I wouldn't say it would be a decaf *version* of
  anything :) It's supposed to play friendly with application frameworks.
 
 
 
  On Mon, Mar 2, 2009 at 3:00 PM, Michael Wills mich...@mawills.com
  mailto:mich...@mawills.com wrote:
 
  I like the possibility of using it with Mate/Cairngorm.
 
  So then it would be the decaf versions of mate/cairngorm? :-)
 
  Seriously though this is quite cool.
 
 
  Sam Lai wrote:
  I think you forgot the link (or my phone's playing tricks with me).
 
  http://code.seanhess.net/?p=156 http://code.seanhess.net/?p=156
 
  Nice work btw. I'm going to have to think about how it fits in with
  Flex and my current workflow, but I'll give it a shot in my new
  project :)
 
  On 3/3/09, Sean Clark Hess seanh...@gmail.com mailto:
 seanh...@gmail.com wrote:
 
  jQuery for Flex - a Behavior Injection
  Frameworkhttp://code.seanhess.net/?p=156 
 http://code.seanhess.net/?p=156
 
  [...] I’ve just finished my pre-alpha version of a Behavior
 Injection
  framework for Flex. It adds support for functionality similar to
 jQuery for
  flex, along with support for a more complete CSS syntax. The
 approach is
  slightly different than jQuery, and hopes to play along with
 Flex’s
  strengths as well. [...]
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 
  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
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links







RE: {Disarmed} RE: [flexcoders] Credit card processing in Flex

2009-03-04 Thread Scott
I plan on having the server process the credit card order.  However, I
still have to pass the credit card information securely to my server.
The other response refers to sentourl so I'll look into that.  Is there
any other methods to send information securely to my server?

sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Kevin Benz
Sent: Wednesday, March 04, 2009 10:00 AM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} RE: [flexcoders] Credit card processing in Flex

 

I would look at the authorize.net documentation as they present the most
generic methods for HTTP based authentication. 

 

If you are talking about a client-side processing solution, it can be
accomplished but a bad idea. SWF's can be easily reverse engineered
exposing API keys, hash entries, merchant account identities and
credentials to external access. Traditional non-API Wallet approaches
(standard PayPal, Amazon FPS, Google Wallet) cannot exist in a client
only solution as they require a post-back URL with which to transact. 

 

The only secure solution has a server acting as a gateway to the payment
service with the Authorize.net documents providing many resources. Other
payment aggregators offer likewise documentation such as Cybersource,
Paypal (both Wallet and API).  A server hides the specifics (code and
metadata) from the peering eyes of those interesting in subverting your
payment service.

 

KFB

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Wednesday, March 04, 2009 7:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Credit card processing in Flex

 

Anyone have a website or information that references how to process
credit cards through flex?

Thanks
Scott


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[flexcoders] Re: flash.events and flash.net library don't exist in Flex SDK 3.3.0.4852 ??

2009-03-04 Thread handitan
@Tom:
It happens to me, man. I even tried by switching workspace. It just didn't 
exist at all.

-
Well, I just downloaded SDK 3.3 milestone build.
And I still have the same issue.

I have posted a message on the SDK Adobe forum regarding this issue:
http://www.adobeforums.com/webx/.59b80d28/2

The only package that is existed in 'flash' is 'errors' package (flash.errors).


--- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiver...@... wrote:

 On Thursday 26 Feb 2009, handitan wrote:
  Yikes!!!
  Man, I really hope that this is just a mistake and it will be fixed
  soon.
 
 I don't see any evidence it's broken.
 Simple test case code, example mxmlc invocation and version dump, etc.
 
 -- 
 Tom Chiverton
 Helping to autoschediastically expedite best-of-breed bleeding-edge m-commerce
 
 
 
 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 together with 
 a list of those non members who are referred to as partners.  We use the word 
 ?partner? to refer to a member of the LLP, or an employee or consultant with 
 equivalent standing and qualifications. Regulated by the Solicitors 
 Regulation Authority.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above and may 
 be confidential or legally privileged.  If you are not the addressee you must 
 not read it and must not use any information contained in nor copy it nor 
 inform any person other than Halliwells LLP or the addressee of its existence 
 or contents.  If you have received this email in error please delete it and 
 notify Halliwells LLP IT Department on 0870 365 2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.





RE: {Disarmed} RE: [flexcoders] Credit card processing in Flex

2009-03-04 Thread Kevin Benz
If the browser hosting your Flex component is connected in a HTTPS
session, then yes. I'm not aware of being able to start HTTPS
communication from a HTTP session. I believe that the SSL key (session
in place) needs to be in-place before you do your submit so posting
blindly to a HTTPS URL is not necessarily secure.

Of course, the ugly solution, a popup HTML window doing HTTPS directly.

You can also encrypt yourself in Actionscript with as3crypto (Google
code) although this might violate PCI/SET standards.

In Air, you can start an HTTPS session of its own.

KFB

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Wednesday, March 04, 2009 8:24 AM
To: flexcoders@yahoogroups.com
Subject: RE: {Disarmed} RE: [flexcoders] Credit card processing in Flex

 

I plan on having the server process the credit card order.  However, I
still have to pass the credit card information securely to my server.
The other response refers to sentourl so I'll look into that.  Is there
any other methods to send information securely to my server?

sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Kevin Benz
Sent: Wednesday, March 04, 2009 10:00 AM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} RE: [flexcoders] Credit card processing in Flex

 

I would look at the authorize.net documentation as they present the most
generic methods for HTTP based authentication. 

 

If you are talking about a client-side processing solution, it can be
accomplished but a bad idea. SWF's can be easily reverse engineered
exposing API keys, hash entries, merchant account identities and
credentials to external access. Traditional non-API Wallet approaches
(standard PayPal, Amazon FPS, Google Wallet) cannot exist in a client
only solution as they require a post-back URL with which to transact. 

 

The only secure solution has a server acting as a gateway to the payment
service with the Authorize.net documents providing many resources. Other
payment aggregators offer likewise documentation such as Cybersource,
Paypal (both Wallet and API).  A server hides the specifics (code and
metadata) from the peering eyes of those interesting in subverting your
payment service.

 

KFB

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Wednesday, March 04, 2009 7:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Credit card processing in Flex

 

Anyone have a website or information that references how to process
credit cards through flex?

Thanks
Scott


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 

image001.jpgimage002.jpg

[flexcoders] Re: Creating resizable datagrid

2009-03-04 Thread shaedowstorm
Hi,

if you are using ArrayCollection, have you tried you DataGrid.rowCount = 
DataProvider.length...  

And when the DataProvider has things added to it, immediately do a 
DataProvider.refresh()...  

Percy

--- In flexcoders@yahoogroups.com, martyp...@... martyp...@... wrote:

 
 Hi All
 
 I'm trying to create a datagrid which will resize vertically to ensure
 all  the renderers are displayed in full. Additionally,
 
 * Renderers are of variable height
 * Renderers can resize themselves
 
 Generally speaking, the flow of events is as follows :
 
 * One of the item renderers resizes itself (normally in response to a
 userclick etc)
 * It dispatches a bubbling event which the parent datagrid picks up
 * The DataGrid attempts to resize to ensure that all renderers remain
 visible in full.
 
 I'm currently using this code within the datagrid to calculate the 
 height:
 height = measureHeightOfItems(0, dataProvider.length ) + headerHeight;
 
 This appears to get an incorrect height. I've tried a number of
 variations  including callLater ( to ensure the resize has completed so
 measure can work  correctly), and overriding meausre() and calling
 invalidateSize() /  validateSize(), but neither works.
 
 Below are 3 classes which will illustrate the problem. Clicking the
 button in  the item renderers resizes the renderer. The grid should also
 expand so that all  of the 3 renderers are shown in their entirety.
 
 Any suggestions would be greatly appreciated.
 
 Regards
 
 Marty
 
 DataGridProblem.mxml (Application file)
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=vertical
  xmlns:view=view.*
  mx:ArrayCollection id=dataProvider
  mx:StringItem A/mx:String
  mx:StringItem B/mx:String
  mx:StringItem C/mx:String
  /mx:ArrayCollection
  view:TestDataGrid
  id=dg
  dataProvider={ dataProvider }
  width=400
  view:columns
  mx:DataGridColumn dataField=text /
  mx:DataGridColumn itemRenderer=view.RendererButton /
  /view:columns
  /view:TestDataGrid
 /mx:Application
 
 view.TestDataGrid.as
 package view
 {
  import flash.events.Event;
 
  import mx.controls.DataGrid;
  import mx.core.ScrollPolicy;
 
  public class TestDataGrid extends DataGrid
  {
  public function TestDataGrid()
  {
  this.verticalScrollPolicy = ScrollPolicy.OFF;
  this.variableRowHeight = true;
  this.addEventListener( RendererButton.RENDERER_RESIZE ,
 onRendererResize );
  }
  private function onRendererResize( event : Event ) : void
  {
  resizeDatagrid();
  }
  private function resizeDatagrid():void
  {
  height = measureHeightOfItems(0, dataProvider.length ) +
 headerHeight;
  }
  }
 }
 
 view.RendererButton.mxml
 ?xml version=1.0 encoding=utf-8?
 mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
  mx:Button width=50 height=50
  click=onClick() /
 
  mx:Script
  ![CDATA[
 
  public static const RENDERER_RESIZE : String =
 resizeRenderer;
  private function onClick() : void
  {
  this.height += 20;
  dispatchEvent( new Event( RENDERER_RESIZE , true
 ) );
  }
  ]]
  /mx:Script
 /mx:HBox





[flexcoders] Re: Another on try-catch-finally ...

2009-03-04 Thread Pilby
There is a possible benefit to having a try/catch with an empty catch block
-- that your application won't stop execution. If the problem that occurred
in the try block does cause a subsequent problem down the road, that's a
different story.


Re: [flexcoders] Credit card processing in Flex

2009-03-04 Thread Jeffry Houser


Make sure you SWF is served up on an HTTPS page.  And also make sure 
your remoting channel / gateway using HTTPS to communicate to and from 
the CF Server. 


Scott wrote:


I'm using CF on the backend...  What I'm trying to figure out is the 
SSL piece for Flex.  Previously, I just insured that the user went to 
https://www.mysecuresite.com https://www.mysecuresite.com/ before 
accepting credit card information.  How does this work with Flex?


 




*From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
*On Behalf Of *Wally Kolcz

*Sent:* Wednesday, March 04, 2009 9:04 AM
*To:* flexcoders@yahoogroups.com
*Subject:* {Disarmed} re: [flexcoders] Credit card processing in Flex

 

Flex can pass the cc information to a scripting language such as 
asp.net, php, jsp, or CF. From there you can use any of the API's 
offered by the various CC processing companies to complete the 
transactions and pass the information back to flex to display. Or you 
might be able to use URLRequest or sendToURL




*From*: Scott h...@netprof.us
*Sent*: Wednesday, March 04, 2009 7:00 AM
*To*: flexcoders@yahoogroups.com
*Subject*: [flexcoders] Credit card processing in Flex

Anyone have a website or information that references how to process
credit cards through flex?

Thanks
Scott

 






--
This message has been scanned for viruses and
dangerous content by *MailScanner* http://www.mailscanner.info/, and is
believed to be clean.


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



Re: [flexcoders] Re: Flex 3.3 and Flash Player 10.0.22 coming?

2009-03-04 Thread Matt Chotin
No license change, just a change in how we provided the bits since we didn't 
update FB.

I blogged the 3 DMV bug fixes on the Flex team blog.


On 3/4/09 12:09 AM, Gregor Kiddie gkid...@inpses.co.uk wrote:




I think I missed this one!

Does this release of the DMV code mean that we don't need a license for it 
anymore?

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 is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Matt Chotin
Sent: 03 March 2009 17:33
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Flex 3.3 and Flash Player 10.0.22 coming?


Rollout wasn't so smooth but everything's up now.

http://www.adobe.com/products/flex/flexdownloads/

The DMV bits are there too.

SDK bug fixes are here: 
https://bugs.adobe.com/jira/secure/IssueNavigator.jspa?mode=hiderequestId=12020

I'll get one for DMV too, though you can search the bugbase yourself.

Reminder that there is no associated 3.0.3 Flex Builder coming.  Also I didn't 
write an article for this one since it's mostly bug fixes, many of them related 
to Marshall Plan.  Also it obviously has the new Players.

Have fun!
Matt


On 3/3/09 8:33 AM, tntomek tnto...@yahoo.com wrote:




--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
Tianzhen Lin tang...@... wrote:

 Not sure if this is old news, I just noticed a massive commit of Flex
 framework classes on Flex framework's repository, along with a nifty
comment

 Merge 3.x revisions 5042,5072-5073,5090-5091 - trunk
 This includes the latest released player 10.0.22.87

 Coincidentally, I also noticed the Flex online documentation is now
 referring Flex 3.3,

 http://livedocs.adobe.com/flex/3/langref/mx/effects/Sequence.html

 Something new are definitely around the corner... (rubbing hands)


 - T.


Looks like 3.3 is out officially. Still no mention about how the
separate DMV is supposed to ship since there is no FB 3.03 to go with
this release.

Feb 5 build
http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3










[flexcoders] Detect if image loaded successfully

2009-03-04 Thread oneworld95
Is there a way to know if an image loaded into a Flex app successfully? The 
method described here doesn't work on Firefox (a known bug I think): 
http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/

Thanks.

- Alex C



[flexcoders] Re: flex3 DateTimeAxis time ordering

2009-03-04 Thread limpantaleano
As it happens there is another part of the Date object that I did not see.  

I was setting the Date as new Date(0,0,0, hours, minutes, seconds)
The UTC date was being set as 6 hours ahead. 


Solution
newDate:Date = new Date(0,0,0, hours, minutes, seconds);
newDate.setUTCHours(hours, minutes, seconds);


Why would the DateTimeAxis LineChart read the UTC time instead of the normal 
time?



[flexcoders] Re: Detect if image loaded successfully

2009-03-04 Thread oneworld95
Found an easy way: just use the ioError event handler on the Image control to 
determine if image loaded.

- Alex C

--- In flexcoders@yahoogroups.com, oneworld95 oneworl...@... wrote:

 Is there a way to know if an image loaded into a Flex app successfully? The 
 method described here doesn't work on Firefox (a known bug I think): 
 http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/
 
 Thanks.
 
 - Alex C





[flexcoders] addEventListener in itemRenderer of DataGrid

2009-03-04 Thread oneworld95
Where's the best place to add the event listeners in an itemRenderer? Do you do 
this in the override function set data()? Thanks.



[flexcoders] Timers and local CPU

2009-03-04 Thread markgoldin_2000
I am desingning a DataGrid with a column that would have a timer to show how 
long a specific task (row in the grids) has been running. While everything is 
working fine the local CPU is getting allocated to almost 100% sometimes. Is 
there any chance to optimize such a solution?

Thanks



[flexcoders] Re: flash.events and flash.net library don't exist in Flex SDK 3.3.0.4852 ??

2009-03-04 Thread handitan
Alright, I got it to work. It's my fault.
The issue was due to my FB which was in version 3.0.0.
After I upgraded to 3.0.2, everything works fine.

I have posted some steps on the ADOBE FLEX SDK FORUM that I need to take in 
order for my previous AIR app to work with the debugger.
Here's the link:
http://www.adobeforums.com/webx/.59b80d28/4

Thanks FlexSDK devs for your support!

--- In flexcoders@yahoogroups.com, handitan handi...@... wrote:

 @Tom:
 It happens to me, man. I even tried by switching workspace. It just didn't 
 exist at all.
 
 -
 Well, I just downloaded SDK 3.3 milestone build.
 And I still have the same issue.
 
 I have posted a message on the SDK Adobe forum regarding this issue:
 http://www.adobeforums.com/webx/.59b80d28/2
 
 The only package that is existed in 'flash' is 'errors' package 
 (flash.errors).
 
 
 --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@ wrote:
 
  On Thursday 26 Feb 2009, handitan wrote:
   Yikes!!!
   Man, I really hope that this is just a mistake and it will be fixed
   soon.
  
  I don't see any evidence it's broken.
  Simple test case code, example mxmlc invocation and version dump, etc.
  
  -- 
  Tom Chiverton
  Helping to autoschediastically expedite best-of-breed bleeding-edge 
  m-commerce
  
  
  
  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 
  together with a list of those non members who are referred to as partners.  
  We use the word ?partner? to refer to a member of the LLP, or an employee 
  or consultant with equivalent standing and qualifications. 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] Re: file.upload() works fine on mac os x, does not work on a PC

2009-03-04 Thread tchredeemed
Anyone else run into this problem?

--- In flexcoders@yahoogroups.com, tchredeemed apth...@... wrote:

 I am uploading using Rails (Ruby on rails)
 
 PC is getting a 406 Not Acceptable error.
 
 any help would be awesome!





[flexcoders] Problem using sdk version 3.3

2009-03-04 Thread markgoldin_2000
After pointing Builder to sdk 3.3 I am getting an error:
1172: Definition mx.collections:HierarchicalData could not be found.

Please help.



Re: [flexcoders] Problem using sdk version 3.3

2009-03-04 Thread Matt Chotin
Make sure to download the DMV components.


On 3/4/09 11:35 AM, markgoldin_2000 markgoldin_2...@yahoo.com wrote:




After pointing Builder to sdk 3.3 I am getting an error:
1172: Definition mx.collections:HierarchicalData could not be found.

Please help.







[flexcoders] Re: Problem using sdk version 3.3

2009-03-04 Thread markgoldin_2000
Not sure I uderstand how to download and install it.

--- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote:

 Make sure to download the DMV components.
 
 
 On 3/4/09 11:35 AM, markgoldin_2000 markgoldin_2...@... wrote:
 
 
 
 
 After pointing Builder to sdk 3.3 I am getting an error:
 1172: Definition mx.collections:HierarchicalData could not be found.
 
 Please help.





Re: [flexcoders] Re: Problem using sdk version 3.3

2009-03-04 Thread Matt Chotin
Download from: http://www.adobe.com/products/flex/flexdownloads/

Instructions: 
http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_sdk.html#Datavisualization

On 3/4/09 11:51 AM, markgoldin_2000 markgoldin_2...@yahoo.com wrote:




Not sure I uderstand how to download and install it.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt 
Chotin mcho...@... wrote:

 Make sure to download the DMV components.


 On 3/4/09 11:35 AM, markgoldin_2000 markgoldin_2...@... wrote:




 After pointing Builder to sdk 3.3 I am getting an error:
 1172: Definition mx.collections:HierarchicalData could not be found.

 Please help.








RE: [flexcoders] Re: Passing params (flashvars) to sub-applications

2009-03-04 Thread Tracy Spratt
You said, I was also able to pass a parameter in the url, and access it in
the loaded  app's creationComplete.  That *is* using flashvars.  Flashvars
are passed into a swf via url parameters.

 

The example you are quoting, which passes values from one fully instantiated
application to another is not using flashvars.  Maybe the title of that post
is misleading, but it does say flashvar-*style*-parameters., meaning a
dynamic Object.

 

Note also that apps loaded by swfloader do behave differently than ordinary
components, in this regard.  Ordinary components evaluate the passed
property values before creationComplete, so that those values can be used in
the component setup.

 

With a swf loaded APP, you must wait until it is complete before setting
properties.  Flashvars are ready by creationComplete.

 

Tracy

 

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Richard Rodseth
Sent: Wednesday, March 04, 2009 1:05 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Passing params (flashvars) to sub-applications

 

Well, this is research and I'm trying all possibilities, but I suppose you
could say the goal is to allow team A to embed team B's application in a tab
with the minimum of disruption to either team. Team B's application is
normally embedded in HTML and reads flashvars at startup (i.e. in a creation
complete handler).

I sort of expected SWFLoader to have a way to specify application
parameters.
In my googling, I found the link I referred to (in particular answer 2):

http://stackoverflo
http://stackoverflow.com/questions/407858/passing-flashvars-style-parameter
s-to-a-loaded-swf
w.com/questions/407858/passing-flashvars-style-parameters-to-a-loaded-swf

But  the sample code presented at the above link listens for an application
completed event from the loaded app before setting any parameters, and it
doesn't show how/when the embedded application reads the parameters.

So, while I have a more type-safe technique as presented by Amy, I'm left
wondering if there is a way to make a host application present the same
context to the embedded app that SWFObject does when the host application is
HTML. 

If you have successfully used flashvars *and* read them in a
creationComplete handler I'd love to know how you did it. Presumably you set
the flashvars earlier than the example I linked to above did.

On Tue, Mar 3, 2009 at 6:28 PM, Tracy Spratt tspr...@lariatinc.
mailto:tspr...@lariatinc.com com wrote:

I am confused now, which method are you using?  Are you attempting to pass
values between the fully instantiated components, or are you trying to use
flashvars?

 

I have successfully use both approaches, but the last few posts have been
dealing with using component lifecycle events to trigger directly setting a
property on the loaded component.

 

Using flashvars is the simplest, because the lifecycle events do not come
into play, but is limited because you have to use strings.

 

Exactly what is your goal?

 

Tracy

 

  _  

From: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com] On
Behalf Of Richard Rodseth
Sent: Tuesday, March 03, 2009 8:09 PM


To: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com
Subject: Re: [flexcoders] Re: Passing params (flashvars) to sub-applications

 

Yes, that's what Amy's example does, and since I do control both apps, it
seems that's probably the way to go.

Nevertheless, I am curious, because 
a) there must be many apps one would like to embed that do something at
startup that depends on a flashVar
b) the literature on sub apps vs modules says that modules are used when
there is shared code (though a single interface is not much shared code)
c) Tracy said the StackOverflow technique worked for him

So let me pose a question. If one does have such an application and it can't
be modified, is it possible to write a host application that will allow it
to load?

On Tue, Mar 3, 2009 at 4:50 PM, Bjorn Schultheiss bjorn.mailinglists@
mailto:bjorn.mailingli...@gmail.com gmail.com wrote:

The question begs.
Why would you want to use the untyped params object to pass values between
swf applications.

why not just create a setter on the sub application and when its loaded the
set the value on it via the parent application.
use a common interface to get the setter method signature.

Bjorn



--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Tracy Spratt tspr...@... wrote:

 Those traces tell me it should be working, that the embedded app is ready
 when the host app attempts to communicate with it.
 
 
 
 Tracy
 
 
 
 _ 
 
 From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
On
 Behalf Of Richard Rodseth
 Sent: Tuesday, March 03, 2009 6:42 PM
 To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com 

[flexcoders] Re: Problem using sdk version 3.3

2009-03-04 Thread markgoldin_2000
I am having problem with:
..
Extract the sources for the data visualization components from DMV-source.jar 

If I open DMV-source.jar with winrar I see folders named Flex and META-INF
so  
java –jar DMV-source.jar  C:\Documents and Settings\All Users\Application 
Data\Adobe\Flex 

does not create the fbpro folder.

AM I doing something wrong?

--- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote:

 Download from: http://www.adobe.com/products/flex/flexdownloads/
 
 Instructions: 
 http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_sdk.html#Datavisualization
 
 On 3/4/09 11:51 AM, markgoldin_2000 markgoldin_2...@... wrote:
 
 
 
 
 Not sure I uderstand how to download and install it.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 Matt Chotin mchotin@ wrote:
 
  Make sure to download the DMV components.
 
 
  On 3/4/09 11:35 AM, markgoldin_2000 markgoldin_2000@ wrote:
 
 
 
 
  After pointing Builder to sdk 3.3 I am getting an error:
  1172: Definition mx.collections:HierarchicalData could not be found.
 
  Please help.
 





[flexcoders] Selected item/index in ComboBox

2009-03-04 Thread twcrone70
I recently moved a form into a pop up window.  One of the form items is a 
ComboBox of countries.  If you are 'editing' and existing record I preselect 
(selectedItem) the one associated with the record already.  This worked before 
but now since the form is being populated with countries (bindable 
ArrayCollection) as the form is created, the selectedItem no longer seems to 
select anything.

Is there some event I can listen to so I know the ComboBox's selectedItem 
property can be set and show visually.  If I run the logic for preselecting 
manually after the pop up is there, the item is selected.  But even if I put 
the code in 'creationComplete' it still does not select anything visually.

- Todd



[flexcoders] Creating a dynamic search interface - strategies and suggestions?

2009-03-04 Thread David Adams
I'm experimenting with creating a dynamic search interface and am
wondering about the most effective strategy to use in Flex. I'm
ignorant enough about Flex that I'd guess some of my ideas won't make
sense so I'm hoping to get feedback that will save me from chasing
down too many dead ends.

For this experiment, I'm creating an interface like the Finder's
search in OS X. You start of with one search term and then can add as
many as you like - each on its own 'line'. For those of you that don't
know what this interface looks like, you get a series of (Drop-downs)
static text and [Entry Areas] along with a (-) ad (+) button to add or
remove terms.

(Kind) is (Any) (-) (+)

Where (Kind) can be Kind, Last opened date, Last modified data,
and so on and (Any) can be Applications, Folders, Documents,
PDF and so on. Depending on the choice you make - the related
options change. For example:

(Created date) is (within last) [  ]  (days) (-) (+)

The exact details aren't too important - the main thing is that:

* You can add any number of 'rows'.

* The type (kind) of query determines what objects appear in the row
and what they contain. (The entry and drop-down contents are driven by
the type.)

* When you add (+) or remove (-) a row, the rest of the objects on
screen move or resize automatically.

This isn't the exact interace I need, but it's a good enough starting
point. Once all of the entries are completed, I'd like to package them
up and send them off magically somewhere for processing using an HTTP
post.

Key point: I'd like some of the options to be data-driven from a
server. For example, the styles of comparison or the kind of searches
may not be something I know until runtime.

If anyone is still reading, and with all of that in mind, I'm
imagining there are a few ways to build this:

* Build one MXML component that has all of the various objects,
presumably wrapped inside of an HBox or Canvas.
-- The dynamic values (popups and so on) are assigned/modified using
ActionScript.
-- The objects that should be shown/hidden are configured using AS.

* Build an AS class for SearchRow and pass into the constructor
whatever values are needed to set defaults.

* Build an AS class with a pretty nearly empty constructor and then
assign the various dynamic values from the code that creates the
object.

Since I want to package up all of the various settings, what I need to
be able to do is iterate over the 'rows' or handle them as an array of
objects. Given that, I'd be grateful for suggestions on the most
effective way to manage storing/return references to the objects.

Thanks in advance for any help or suggestions!


Re: [flexcoders] Re: Passing params (flashvars) to sub-applications

2009-03-04 Thread Richard Rodseth
Thanks for the clarification - most helpful. When I use SWFObject in HTML, I
don't append the parameters to the URL, but I guess that's happing under the
hood.

Next experiment: Values of Application.application and parentApplication in
a multi-application application :)

In my latest experiment, I have discarded the quoted code, and just have a
url parameter.
I am setting the SWFLoader source in a creationComplete handler rather than
when the SWFLoader is instantiated.

What I am seeing is that I can access the url parameter within the loaded
app's completion handler using this.parameters[config_id]
but not
Application.application.parameters[config_id]

Within the loaded application (which does derive from UIComponent),
parentApplication is null.

So flashvars may be ready by creationComplete, but Application.application
and this.parentApplication are not.

Thanks again for the explanations.

On Wed, Mar 4, 2009 at 12:16 PM, Tracy Spratt tspr...@lariatinc.com wrote:

You said, “I was also able to pass a parameter in the url, and access
 it in the loaded  app's creationComplete…”  That **is** using flashvars.
 Flashvars are passed into a swf via url parameters.



 The example you are quoting, which passes values from one fully
 instantiated application to another is not using flashvars.  Maybe the title
 of that post is misleading, but it does say “flashvar-**style**-parameters.”,
 meaning a dynamic “Object”.



 Note also that apps loaded by swfloader do behave differently than ordinary
 components, in this regard.  Ordinary components evaluate the passed
 property values before creationComplete, so that those values can be used in
 the component setup.



 With a swf loaded APP, you must wait until it is complete before setting
 properties.  Flashvars are ready by creationComplete.



 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Richard Rodseth
 *Sent:* Wednesday, March 04, 2009 1:05 AM

 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Passing params (flashvars) to
 sub-applications



 Well, this is research and I'm trying all possibilities, but I suppose you
 could say the goal is to allow team A to embed team B's application in a tab
 with the minimum of disruption to either team. Team B's application is
 normally embedded in HTML and reads flashvars at startup (i.e. in a creation
 complete handler).

 I sort of expected SWFLoader to have a way to specify application
 parameters.
 In my googling, I found the link I referred to (in particular answer 2):


 http://stackoverflow.com/questions/407858/passing-flashvars-style-parameters-to-a-loaded-swf

 But  the sample code presented at the above link listens for an application
 completed event from the loaded app before setting any parameters, and it
 doesn't show how/when the embedded application reads the parameters.

 So, while I have a more type-safe technique as presented by Amy, I'm left
 wondering if there is a way to make a host application present the same
 context to the embedded app that SWFObject does when the host application is
 HTML.

 If you have successfully used flashvars *and* read them in a
 creationComplete handler I'd love to know how you did it. Presumably you set
 the flashvars earlier than the example I linked to above did.

 On Tue, Mar 3, 2009 at 6:28 PM, Tracy Spratt tspr...@lariatinc.com
 wrote:

 I am confused now, which method are you using?  Are you attempting to pass
 values between the fully instantiated components, or are you trying to use
 flashvars?



 I have successfully use both approaches, but the last few posts have been
 dealing with using component lifecycle events to trigger directly setting a
 property on the loaded component.



 Using flashvars is the simplest, because the lifecycle events do not come
 into play, but is limited because you have to use strings.



 Exactly what is your goal?



 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Richard Rodseth
 *Sent:* Tuesday, March 03, 2009 8:09 PM


 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Passing params (flashvars) to
 sub-applications



 Yes, that's what Amy's example does, and since I do control both apps, it
 seems that's probably the way to go.

 Nevertheless, I am curious, because
 a) there must be many apps one would like to embed that do something at
 startup that depends on a flashVar
 b) the literature on sub apps vs modules says that modules are used when
 there is shared code (though a single interface is not much shared code)
 c) Tracy said the StackOverflow technique worked for him

 So let me pose a question. If one does have such an application and it
 can't be modified, is it possible to write a host application that will
 allow it to load?

 On Tue, Mar 3, 2009 at 4:50 PM, Bjorn Schultheiss 
 bjorn.mailingli...@gmail.com 

[flexcoders] Print Inverted Image?

2009-03-04 Thread pliechty
I am trying to print an image with a filter on it.  The filter inverts the 
colors of the image.  I add the imgBox to the printJob.  But, the image doesn't 
print with the filter applied.  Here is the code:

  mx:Script
  ![CDATA[
private function invert():void
{
  var matrix:Array = new Array();
  matrix = matrix.concat([-1,  0,  0, 0, 255]);
  matrix = matrix.concat([ 0, -1,  0, 0, 255]);
  matrix = matrix.concat([ 0,  0, -1, 0, 255]);
  matrix = matrix.concat([ 0,  0,  0, 1,   0]);
  imgBox.filters = [new ColorMatrixFilter(matrix)];
}
   ]]
   /mx:Script

  mx:VBox id=imgBox width=100% height=100% borderColor=red 
borderStyle=solid borderThickness=2
common:SmoothImage id=sourceImg complete=previewPage() 
horizontalAlign=center/
  /mx:VBox





Re: [flexcoders] Re: Problem using sdk version 3.3

2009-03-04 Thread Matt Chotin
Java -jar will actually run the executable code that's included within that 
JAR.  It requires the license key found in your license.properties which should 
be located in the location we specified.  Look in that folder and see if 
license.properties is there.  If it isn't, find your license.properties and use 
that location.

Matt


On 3/4/09 12:22 PM, markgoldin_2000 markgoldin_2...@yahoo.com wrote:




I am having problem with:
..
Extract the sources for the data visualization components from DMV-source.jar

If I open DMV-source.jar with winrar I see folders named Flex and META-INF
so
java -jar DMV-source.jar  C:\Documents and Settings\All Users\Application 
Data\Adobe\Flex

does not create the fbpro folder.

AM I doing something wrong?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt 
Chotin mcho...@... wrote:

 Download from: http://www.adobe.com/products/flex/flexdownloads/

 Instructions: 
 http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_sdk.html#Datavisualization

 On 3/4/09 11:51 AM, markgoldin_2000 markgoldin_2...@... wrote:




 Not sure I uderstand how to download and install it.

 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
 mailto:flexcoders%40yahoogroups.com , Matt Chotin mchotin@ wrote:
 
  Make sure to download the DMV components.
 
 
  On 3/4/09 11:35 AM, markgoldin_2000 markgoldin_2000@ wrote:
 
 
 
 
  After pointing Builder to sdk 3.3 I am getting an error:
  1172: Definition mx.collections:HierarchicalData could not be found.
 
  Please help.
 








[flexcoders] Re: Problem using sdk version 3.3

2009-03-04 Thread markgoldin_2000
Right, and this is my command line:
java -jar  D:\Program Files\Adobe\Flex Builder 
3\sdks\3.3.0\lib\DMV-source.jar C:\Documents and Settings\All 
Users\Application Data\Adobe\Flex

Still no fbpro is created.

--- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote:

 Java -jar will actually run the executable code that's included within that 
 JAR.  It requires the license key found in your license.properties which 
 should be located in the location we specified.  Look in that folder and see 
 if license.properties is there.  If it isn't, find your license.properties 
 and use that location.
 
 Matt
 
 
 On 3/4/09 12:22 PM, markgoldin_2000 markgoldin_2...@... wrote:
 
 
 
 
 I am having problem with:
 ..
 Extract the sources for the data visualization components from DMV-source.jar
 
 If I open DMV-source.jar with winrar I see folders named Flex and META-INF
 so
 java -jar DMV-source.jar  C:\Documents and Settings\All Users\Application 
 Data\Adobe\Flex
 
 does not create the fbpro folder.
 
 AM I doing something wrong?
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 Matt Chotin mchotin@ wrote:
 
  Download from: http://www.adobe.com/products/flex/flexdownloads/
 
  Instructions: 
  http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_sdk.html#Datavisualization
 
  On 3/4/09 11:51 AM, markgoldin_2000 markgoldin_2000@ wrote:
 
 
 
 
  Not sure I uderstand how to download and install it.
 
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
  mailto:flexcoders%40yahoogroups.com , Matt Chotin mchotin@ wrote:
  
   Make sure to download the DMV components.
  
  
   On 3/4/09 11:35 AM, markgoldin_2000 markgoldin_2000@ wrote:
  
  
  
  
   After pointing Builder to sdk 3.3 I am getting an error:
   1172: Definition mx.collections:HierarchicalData could not be found.
  
   Please help.
  
 





[flexcoders] Re: Problem using sdk version 3.3

2009-03-04 Thread markgoldin_2000
Actually this command triggers execution:
java -jar  D:\Program Files\Adobe\Flex Builder 
3\sdks\3.3.0\lib\DMV-source.jar C:\Documents and Settings\All 
Users\Application Data\Adobe\Flex

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\mgoldinjava -jar  D:\Program Files\Adobe\Flex Buil
r 3\sdks\3.3.0\lib\DMV-source.jar C:\Documents and Settings\All Users\Applic
ion Data\Adobe\Flex
using license {flexbuilder3.displayedFirstLaunchMessage=true, flexbuilder3.dis
ayed20DaysLeftMessage=true, flexbuilder3=***}, outputing
 directory ..
license is valid, extracting datavisualisation and automation files to ..

C:\Documents and Settings\mgoldin


but fbpro is not there. 


--- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2...@... 
wrote:

 Right, and this is my command line:
 java -jar  D:\Program Files\Adobe\Flex Builder 
 3\sdks\3.3.0\lib\DMV-source.jar C:\Documents and Settings\All 
 Users\Application Data\Adobe\Flex
 
 Still no fbpro is created.
 
 --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
 
  Java -jar will actually run the executable code that's included within that 
  JAR.  It requires the license key found in your license.properties which 
  should be located in the location we specified.  Look in that folder and 
  see if license.properties is there.  If it isn't, find your 
  license.properties and use that location.
  
  Matt
  
  
  On 3/4/09 12:22 PM, markgoldin_2000 markgoldin_2000@ wrote:
  
  
  
  
  I am having problem with:
  ..
  Extract the sources for the data visualization components from 
  DMV-source.jar
  
  If I open DMV-source.jar with winrar I see folders named Flex and META-INF
  so
  java -jar DMV-source.jar  C:\Documents and Settings\All Users\Application 
  Data\Adobe\Flex
  
  does not create the fbpro folder.
  
  AM I doing something wrong?
  
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
  Matt Chotin mchotin@ wrote:
  
   Download from: http://www.adobe.com/products/flex/flexdownloads/
  
   Instructions: 
   http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_sdk.html#Datavisualization
  
   On 3/4/09 11:51 AM, markgoldin_2000 markgoldin_2000@ wrote:
  
  
  
  
   Not sure I uderstand how to download and install it.
  
   --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
   mailto:flexcoders%40yahoogroups.com , Matt Chotin mchotin@ wrote:
   
Make sure to download the DMV components.
   
   
On 3/4/09 11:35 AM, markgoldin_2000 markgoldin_2000@ wrote:
   
   
   
   
After pointing Builder to sdk 3.3 I am getting an error:
1172: Definition mx.collections:HierarchicalData could not be found.
   
Please help.
   
  
 





[flexcoders] Modeless editing

2009-03-04 Thread Richard Rodseth
Does anyone have any suggestions for (or examples of) forms or other editing
environments where navigation away from the editor is prevented when there
are unsaved changes?


[flexcoders] Re: Problem using sdk version 3.3

2009-03-04 Thread markgoldin_2000
Ok, this finally created the fbpro folder:
D:\Program Files\Adobe\Flex Builder 3\sdks\3.3.0\libjava -jar  DMV-source.jar 
C:\Documents and Settings\All Users\Application Data\Adobe\Flex


--- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2...@... 
wrote:

 Actually this command triggers execution:
 java -jar  D:\Program Files\Adobe\Flex Builder 
 3\sdks\3.3.0\lib\DMV-source.jar C:\Documents and Settings\All 
 Users\Application Data\Adobe\Flex
 
 Microsoft Windows XP [Version 5.1.2600]
 (C) Copyright 1985-2001 Microsoft Corp.
 
 C:\Documents and Settings\mgoldinjava -jar  D:\Program Files\Adobe\Flex Buil
 r 3\sdks\3.3.0\lib\DMV-source.jar C:\Documents and Settings\All Users\Applic
 ion Data\Adobe\Flex
 using license {flexbuilder3.displayedFirstLaunchMessage=true, flexbuilder3.dis
 ayed20DaysLeftMessage=true, flexbuilder3=***}, outputing
  directory ..
 license is valid, extracting datavisualisation and automation files to ..
 
 C:\Documents and Settings\mgoldin
 
 
 but fbpro is not there. 
 
 
 --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ wrote:
 
  Right, and this is my command line:
  java -jar  D:\Program Files\Adobe\Flex Builder 
  3\sdks\3.3.0\lib\DMV-source.jar C:\Documents and Settings\All 
  Users\Application Data\Adobe\Flex
  
  Still no fbpro is created.
  
  --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
  
   Java -jar will actually run the executable code that's included within 
   that JAR.  It requires the license key found in your license.properties 
   which should be located in the location we specified.  Look in that 
   folder and see if license.properties is there.  If it isn't, find your 
   license.properties and use that location.
   
   Matt
   
   
   On 3/4/09 12:22 PM, markgoldin_2000 markgoldin_2000@ wrote:
   
   
   
   
   I am having problem with:
   ..
   Extract the sources for the data visualization components from 
   DMV-source.jar
   
   If I open DMV-source.jar with winrar I see folders named Flex and META-INF
   so
   java -jar DMV-source.jar  C:\Documents and Settings\All Users\Application 
   Data\Adobe\Flex
   
   does not create the fbpro folder.
   
   AM I doing something wrong?
   
   --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
   Matt Chotin mchotin@ wrote:
   
Download from: http://www.adobe.com/products/flex/flexdownloads/
   
Instructions: 
http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_sdk.html#Datavisualization
   
On 3/4/09 11:51 AM, markgoldin_2000 markgoldin_2000@ wrote:
   
   
   
   
Not sure I uderstand how to download and install it.
   
--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com , Matt Chotin mchotin@ wrote:

 Make sure to download the DMV components.


 On 3/4/09 11:35 AM, markgoldin_2000 markgoldin_2000@ wrote:




 After pointing Builder to sdk 3.3 I am getting an error:
 1172: Definition mx.collections:HierarchicalData could not be found.

 Please help.

   
  
 





[flexcoders] Native JSON support in Flash player?

2009-03-04 Thread David Adams
I see that JSON support in Flex is through the as3corelib ActionScript
library, at the moment. Is there a plan to add native JSON
encoder/decoder support to Flex and the Flash player? Presumably, a
C/C++ implementation (I don't actually know what the Flash player is
coded in) will be considerably faster than an AS3 implementation.

Also, to prevent wasting everyone's time, if there's an official place
to check on the roadmap for Flex/Flash, I'd be grateful to be pointed
in the right direction.

Thanks.

-- David Adams


[flexcoders] Re: Adding verticalaxis(es) via actionscript

2009-03-04 Thread Trefalgar Bain
--- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote:

 --- In flexcoders@yahoogroups.com, Trefalgar Bain trefalgar@ wrote:
 
  --- In flexcoders@yahoogroups.com, Amy amyblankenship@ wrote:
   I think you just need to play with the dataFunctions and/or 
   labelfunctions on the axes until you get what you want.
  
  
  DataFunction sets the data up to be graphed on the line (sets the
  yField and xField). The lines are graphing fine, just not on the right
  axis.
 
 Do you have a dataFunction on the axes?


Negative. The xField and yField are defined globally within the data returned 
to the flex application:

for ( var o:Object in event.result ) {
var ls:LineSeries = new LineSeries();
ls.dataProvider = event.result[o];
ls.yField = counter;
ls.xField = dtime;
ls.displayName = o.valueOf();
ls.setStyle('itemRenderer', new 
ClassFactory(CircleItemRenderer));
var currentSeries:Array = linechart1.series;

var temp:String = o.valueOf();
var index:int = temp.indexOf(scc);
if ( index != -1 ) {
ar=new AxisRenderer();
ar.axis=la;
renderers.push(ar);
} else {

}

var la:LinearAxis = new LinearAxis();
/* first salesperson will show 0-whatever, subsequent ones will
   start at the lowest value */
la.baseAtZero = false;
ls.verticalAxis = la;

currentSeries.push(ls);
linechart1.series = currentSeries;

}
linechart1.verticalAxisRenderers = renderers;




RE: [flexcoders] Modeless editing

2009-03-04 Thread Wildbore, Brendon
You could have your edit form in a modal popup window. That would prevent 
navigation until the popup form is closed/saved?


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Richard Rodseth
Sent: Thursday, 5 March 2009 10:50 a.m.
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Modeless editing


Does anyone have any suggestions for (or examples of) forms or other editing 
environments where navigation away from the editor is prevented when there are 
unsaved changes?








[flexcoders] Re: Selected item/index in ComboBox

2009-03-04 Thread Tim Hoff

Hi Todd,

Sounds like a timing issue.  The popup is instantiated first, then the
ComboBox's dataProvider is being set.

1) Best practice would be to use a getter/setter for the ComboBox's
dataProvider.  In the setter, invalidateProperties().  Then in
commitProperties(), run the code that sets the selectedItem.

2) If you just want to use a public var, you can listen for the
ArrayCollection's collectionChange event.

3) Try using callLater()

-TH

--- In flexcoders@yahoogroups.com, twcrone70 twcron...@... wrote:

 I recently moved a form into a pop up window. One of the form items is
a ComboBox of countries. If you are 'editing' and existing record I
preselect (selectedItem) the one associated with the record already.
This worked before but now since the form is being populated with
countries (bindable ArrayCollection) as the form is created, the
selectedItem no longer seems to select anything.

 Is there some event I can listen to so I know the ComboBox's
selectedItem property can be set and show visually. If I run the logic
for preselecting manually after the pop up is there, the item is
selected. But even if I put the code in 'creationComplete' it still does
not select anything visually.

 - Todd






[flexcoders] Re: try, catch, finally ...

2009-03-04 Thread Tim Hoff

Hi Kevin,

Try-Catch blocks are an absolute necessity as without them, you are
putting the operation of your software into the hands of user input
errors, http errors, unintended consequences as well as the myriad of
things that exist outside the Happy Path.

I respectfully disagree.  IMHO, try-catch is only useful in rare
situations; like file IO in an Air app.  User input should be handled
with restict and validators and http errors should be handled with a
fault handler.  What I'm saying is that well written/tested code rarely
needs the overhead and verboseness of a try-catch block.  In the event
of un-caught errors, I personally want the Flash window to popup.  While
the dialog could be more elegant, the stack trace makes it easier to
locate the problem and fix the bug quickly.  Again, just my opinion.

-TH

--- In flexcoders@yahoogroups.com, Kevin Benz kb...@... wrote:

 Try-Catch blocks are an absolute necessity as without them, you are
 putting the operation of your software into the hands of user input
 errors, http errors, unintended consequences as well as the myriad of
 things that exist outside the Happy Path. As functions/methods only
 give you one return object, it is common practice to throw custom
 errors/exceptions as they are a great mechanism for handling dynamic
 environments.



 To answer your second question about a try-catch without statements in
 the catch block. If this method is nested inside of another try-catch
 block, then an exception here will be swallowed and not be caught in
the
 calling objects try-catch.



 KFB



 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On
 Behalf Of SJF
 Sent: Tuesday, March 03, 2009 6:54 PM
 To: flexcoders
 Subject: [flexcoders] try, catch, finally ...



 Technically, it's good practice/professional to use try-catch-finally
 blocks in your actionscript logic. This ensures a robust, easily
 debugg-able application.

 However, can anyone comment if they actually use try-catch-finally or
 whether anyone is for or against it's use.

 I ask because I've received an application (which streams vidoe) that
 was blowing out numerous users CPUs to 100%. Upon further
investigation,
 it appears that a netstream event is firing 20 times a second, and
 within the listener (listener function that is) for the event, there
is
 a try-catch-finally block. I removed the try-catch-finally and CPU
usage
 halved on my machine.

 Anyone care to comment for or against try-catch-finally and it's use.



 Steve.




 --
 This message has been scanned for viruses and
 dangerous content by MailScanner http://www.mailscanner.info/ , and
is

 believed to be clean.





[flexcoders] Re: addEventListener in itemRenderer of DataGrid

2009-03-04 Thread Tim Hoff

It really depends on what you are listening to, what you are listening
for, and what type of itemRenderer you are using.  Typically though,
eventListeners are added either in the constructor or the
createChildren() function.

-TH

--- In flexcoders@yahoogroups.com, oneworld95 oneworl...@... wrote:

 Where's the best place to add the event listeners in an itemRenderer?
Do you do this in the override function set data()? Thanks.






Re: [flexcoders] Re: try, catch, finally ...

2009-03-04 Thread Nate Beck
I need to agree with Tim on this one.  I posted my thoughts on try... catch
in a blog post a little while ago.

http://blog.natebeck.net/2009/01/tip-of-the-day-when-to-use-try-catch-finally/

On Wed, Mar 4, 2009 at 2:33 PM, Tim Hoff timh...@aol.com wrote:

   Hi Kevin,

 Try-Catch blocks are an absolute necessity as without them, you are putting
 the operation of your software into the hands of user input errors, http
 errors, unintended consequences as well as the myriad of things that exist
 outside the Happy Path.

 I respectfully disagree.  IMHO, try-catch is only useful in rare
 situations; like file IO in an Air app.  User input should be handled with
 restict and validators and http errors should be handled with a fault
 handler.  What I'm saying is that well written/tested code rarely needs the
 overhead and verboseness of a try-catch block.  In the event of un-caught
 errors, I personally want the Flash window to popup.  While the dialog could
 be more elegant, the stack trace makes it easier to locate the problem and
 fix the bug quickly.  Again, just my opinion.

 -TH


 --- In flexcoders@yahoogroups.com, Kevin Benz kb...@... wrote:
 
  Try-Catch blocks are an absolute necessity as without them, you are
  putting the operation of your software into the hands of user input
  errors, http errors, unintended consequences as well as the myriad of
  things that exist outside the Happy Path. As functions/methods only
  give you one return object, it is common practice to throw custom
  errors/exceptions as they are a great mechanism for handling dynamic
  environments.
 
 
 
  To answer your second question about a try-catch without statements in
  the catch block. If this method is nested inside of another try-catch
  block, then an exception here will be swallowed and not be caught in the
  calling objects try-catch.
 
 
 
  KFB
 
 
 
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
  Behalf Of SJF
  Sent: Tuesday, March 03, 2009 6:54 PM
  To: flexcoders
  Subject: [flexcoders] try, catch, finally ...
 
 
 
  Technically, it's good practice/professional to use try-catch-finally
  blocks in your actionscript logic. This ensures a robust, easily
  debugg-able application.
 
  However, can anyone comment if they actually use try-catch-finally or
  whether anyone is for or against it's use.
 
  I ask because I've received an application (which streams vidoe) that
  was blowing out numerous users CPUs to 100%. Upon further investigation,
  it appears that a netstream event is firing 20 times a second, and
  within the listener (listener function that is) for the event, there is
  a try-catch-finally block. I removed the try-catch-finally and CPU usage
  halved on my machine.
 
  Anyone care to comment for or against try-catch-finally and it's use.
 
 
 
  Steve.
 
 
 
 
  --
  This message has been scanned for viruses and
  dangerous content by MailScanner http://www.mailscanner.info/ , and is
 
  believed to be clean.
 
  




-- 

Cheers,
Nate

http://blog.natebeck.net


Re: [flexcoders] Re: try, catch, finally ...

2009-03-04 Thread Weyert de Boer
I respectfully disagree with not handling exceptions and let them raised 
in the player. Of course, eating exceptions is terribly bad. Yes, 
raising exceptions because user input is bad is a long stretch.

 Hi Kevin,

 Try-Catch blocks are an absolute necessity as without them, you are 
 putting the operation of your software into the hands of user input 
 errors, http errors, unintended consequences as well as the myriad of 
 things that exist outside the Happy Path.

 I respectfully disagree.  IMHO, try-catch is only useful in rare 
 situations; like file IO in an Air app.  User input should be handled 
 with restict and validators and http errors should be handled with a 
 fault handler.  What I'm saying is that well written/tested code 
 rarely needs the overhead and verboseness of a try-catch block.  In 
 the event of un-caught errors, I personally want the Flash window to 
 popup.  While the dialog could be more elegant, the stack trace makes 
 it easier to locate the problem and fix the bug quickly.  Again, just 
 my opinion.

 -TH

 --- In flexcoders@yahoogroups.com, Kevin Benz kb...@... wrote:
 
  Try-Catch blocks are an absolute necessity as without them, you are
  putting the operation of your software into the hands of user input
  errors, http errors, unintended consequences as well as the myriad of
  things that exist outside the Happy Path. As functions/methods only
  give you one return object, it is common practice to throw custom
  errors/exceptions as they are a great mechanism for handling dynamic
  environments.
 
 
 
  To answer your second question about a try-catch without statements in
  the catch block. If this method is nested inside of another try-catch
  block, then an exception here will be swallowed and not be caught in the
  calling objects try-catch.
 
 
 
  KFB
 
 
 
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
  Behalf Of SJF
  Sent: Tuesday, March 03, 2009 6:54 PM
  To: flexcoders
  Subject: [flexcoders] try, catch, finally ...
 
 
 
  Technically, it's good practice/professional to use try-catch-finally
  blocks in your actionscript logic. This ensures a robust, easily
  debugg-able application.
 
  However, can anyone comment if they actually use try-catch-finally or
  whether anyone is for or against it's use.
 
  I ask because I've received an application (which streams vidoe) that
  was blowing out numerous users CPUs to 100%. Upon further investigation,
  it appears that a netstream event is firing 20 times a second, and
  within the listener (listener function that is) for the event, there is
  a try-catch-finally block. I removed the try-catch-finally and CPU usage
  halved on my machine.
 
  Anyone care to comment for or against try-catch-finally and it's use.
 
 
 
  Steve.
 
 
 
 
  --
  This message has been scanned for viruses and
  dangerous content by MailScanner http://www.mailscanner.info/ , and is
 
  believed to be clean.
 

 



[flexcoders] Re: addEventListener in itemRenderer of DataGrid

2009-03-04 Thread oneworld95
Thanks, Tim. I'm using a VBox control to wrap the items in the itemRenderer so 
it can go in the creationComplete handler for that.

- Alex C

--- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote:

 
 It really depends on what you are listening to, what you are listening
 for, and what type of itemRenderer you are using.  Typically though,
 eventListeners are added either in the constructor or the
 createChildren() function.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, oneworld95 oneworld95@ wrote:
 
  Where's the best place to add the event listeners in an itemRenderer?
 Do you do this in the override function set data()? Thanks.
 





Re: [flexcoders] Modeless editing

2009-03-04 Thread Richard Rodseth
Thanks, but I'm specifically looking for an alternative to modal dialogs.

On Wed, Mar 4, 2009 at 2:33 PM, Wildbore, Brendon b.j.wildb...@massey.ac.nz
 wrote:

You could have your edit form in a modal popup window. That would
 prevent navigation until the popup form is closed/saved?


  --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Richard Rodseth
 *Sent:* Thursday, 5 March 2009 10:50 a.m.
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Modeless editing



 Does anyone have any suggestions for (or examples of) forms or other
 editing environments where navigation away from the editor is prevented when
 there are unsaved changes?





   



Re: [flexcoders] Modeless editing

2009-03-04 Thread Fotis Chatzinikos
What i do is track user changes by setting some flags (plural because i need
to save bits of changes not everything on the form in one go). If the user
tries to get away from the tab/form, i stop the event and throw a confirm
alert box saying that there are changes that need to be saved. If he clicks
i do not care for lost changes i let the navigation continue, else you can
either just hide the alert box, or save any changes and then move to the new
area...

On Wed, Mar 4, 2009 at 11:50 PM, Richard Rodseth rrods...@gmail.com wrote:

   Does anyone have any suggestions for (or examples of) forms or other
 editing environments where navigation away from the editor is prevented when
 there are unsaved changes?






  




-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


[flexcoders] ComboBox Text Color

2009-03-04 Thread jwc_wensan
Hello,

I need to change the color of the text in a ComboBox on rollover.

The fillColors are light brown and the text(color) is dark blue.

When I place the mouse over the ComboBox, I have the fillColors change the 
ComboBox to a dark blue.

Now I want the text in the ComboBox to change to white on the rollover.

Not the text in the dropdown, but the text on the ComboBox.

I can not find out how to do this.

Anyone know how I can do this, hopefully without having to create a custom 
component.

Thanks,

Jack



Re: [flexcoders] Modeless editing

2009-03-04 Thread Richard Rodseth
So your basic approach is capturing all events elsewhere in the app, and
stopping them.

I was thinking along the lines of a navigationmanager which knows about a
current editing context, and could also be tied into deep linking support.
View state (selected tab, selected child of view stack) would be derived
from properties of the navigation manager. When the NM receives a nav
request (via bubbling event) it would check if the current editing context
was valid and not proceed with the nav. Doing all this with the help of Mate
dependency injection shouldn't be too hard.

At the same time, since time is limited, I wish there was a simple way to
apply an event mask the way popup manager does, while still allowing
resizing layout to occur. Or alternatively, grab a kind of focus for a
container that the framework would try to request if the user clicked
elsewhere. In other words, make a component  modal in place without
popping up a new window. I haven't actually studied FocusManager, so I don't
know if it supports any sort of nested focus.

On Wed, Mar 4, 2009 at 2:54 PM, Fotis Chatzinikos 
fotis.chatzini...@gmail.com wrote:

   What i do is track user changes by setting some flags (plural because i
 need to save bits of changes not everything on the form in one go). If the
 user tries to get away from the tab/form, i stop the event and throw a
 confirm alert box saying that there are changes that need to be saved. If he
 clicks i do not care for lost changes i let the navigation continue, else
 you can either just hide the alert box, or save any changes and then move to
 the new area...

 On Wed, Mar 4, 2009 at 11:50 PM, Richard Rodseth rrods...@gmail.comwrote:

   Does anyone have any suggestions for (or examples of) forms or other
 editing environments where navigation away from the editor is prevented when
 there are unsaved changes?









 --
 Fotis Chatzinikos, Ph.D.
 Founder,
 Phinnovation
 fotis.chatzini...@gmail.com,
  



Re: [flexcoders] Modeless editing

2009-03-04 Thread Fotis Chatzinikos
I have not tried this, but if you are able to catch the hide event of the
'editing area' and cancel it,
it would be far easier to implement what you describe...I do not have access
to my builder at the moment
so i do not know if what i suggest is doable... Have a go if you like :-)

On Thu, Mar 5, 2009 at 1:19 AM, Richard Rodseth rrods...@gmail.com wrote:

   So your basic approach is capturing all events elsewhere in the app, and
 stopping them.

 I was thinking along the lines of a navigationmanager which knows about a
 current editing context, and could also be tied into deep linking support.
 View state (selected tab, selected child of view stack) would be derived
 from properties of the navigation manager. When the NM receives a nav
 request (via bubbling event) it would check if the current editing context
 was valid and not proceed with the nav. Doing all this with the help of Mate
 dependency injection shouldn't be too hard.

 At the same time, since time is limited, I wish there was a simple way to
 apply an event mask the way popup manager does, while still allowing
 resizing layout to occur. Or alternatively, grab a kind of focus for a
 container that the framework would try to request if the user clicked
 elsewhere. In other words, make a component  modal in place without
 popping up a new window. I haven't actually studied FocusManager, so I don't
 know if it supports any sort of nested focus.

 On Wed, Mar 4, 2009 at 2:54 PM, Fotis Chatzinikos 
 fotis.chatzini...@gmail.com wrote:

   What i do is track user changes by setting some flags (plural because i
 need to save bits of changes not everything on the form in one go). If the
 user tries to get away from the tab/form, i stop the event and throw a
 confirm alert box saying that there are changes that need to be saved. If he
 clicks i do not care for lost changes i let the navigation continue, else
 you can either just hide the alert box, or save any changes and then move to
 the new area...

 On Wed, Mar 4, 2009 at 11:50 PM, Richard Rodseth rrods...@gmail.comwrote:

   Does anyone have any suggestions for (or examples of) forms or other
 editing environments where navigation away from the editor is prevented when
 there are unsaved changes?









 --
 Fotis Chatzinikos, Ph.D.
 Founder,
 Phinnovation
 fotis.chatzini...@gmail.com,


  




-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


[flexcoders] TextSprite blurring when scaling....Yes I said textsprite!!!

2009-03-04 Thread flexaustin
I seem to be having an issue. My app is a combo of Flex and AS3 (a lot of flash 
classes to keep overhead low) and so I am using the TextSprite class, but when 
my app scales/zooms (increase scaleX and scaleY) the TextSprite instance gets 
blurry. Is there a way to fix this? Here is my code.

var t:TextSprite = new TextSprite('edge ' + ESprite(e.target).data.id);
t.x= e.localX + 3;
t.y= e.localY - 15;
t.name = myLabel;
t.textField.setTextFormat(new TextFormat(Arial, 11, 
0x474747))
t.scaleX = _stageMediator.visual.scaleX * 1.5;
 

var es1:ESprite = e.target as ESprite;
es1.addChild(t);

As always, TIA



[flexcoders] Re: addEventListener in itemRenderer of DataGrid

2009-03-04 Thread Tim Hoff
yup, for mxml itemRenderers, that'll work fine as well.

-TH

--- In flexcoders@yahoogroups.com, oneworld95 oneworl...@... wrote:

 Thanks, Tim. I'm using a VBox control to wrap the items in the itemRenderer 
 so it can go in the creationComplete handler for that.
 
 - Alex C
 
 --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
 
  
  It really depends on what you are listening to, what you are listening
  for, and what type of itemRenderer you are using.  Typically though,
  eventListeners are added either in the constructor or the
  createChildren() function.
  
  -TH
  
  --- In flexcoders@yahoogroups.com, oneworld95 oneworld95@ wrote:
  
   Where's the best place to add the event listeners in an itemRenderer?
  Do you do this in the override function set data()? Thanks.
  
 





RE: [flexcoders] Help on DataGrid dataProvider

2009-03-04 Thread Alex Harui
You may need to specify the dataFields in your DataGridColumns depending on 
what the XML really looks like

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of jcjr031064
Sent: Tuesday, March 03, 2009 11:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Help on DataGrid dataProvider


Hello guys,
A newbie here.

I have this code:
?xml version=1.0 encoding=UTF-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=bookData.send()

mx:Script
![CDATA[
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import mx.controls.Alert;

[Bindable]
private var bookInfo:XMLList;

private function handleXML(event:ResultEvent):void{
bookInfo=event.result.stock as XMLList;
Alert.show(xmlBooks.toString());
Alert.show(bookInfo);
}
]]
/mx:Script
mx:XMLListCollection id=xmlBooks
source={bookData.lastResult.stock}/
mx:HTTPService result=handleXML(event) id=bookData url=books.xml 
resultFormat=e4x/
mx:DataGrid x=56 y=250 width=950
dataProvider={xmlBooks}/
/mx:Application

How do I get the datagrid to be populated with rows? The alert.show calls 
somehow get the data.

What am i missing here?

JC



Re: [flexcoders] Re: try, catch, finally ...

2009-03-04 Thread Sam Lai
I thought Alex said before that exceptions don't appear for users
running the standard Flash Player (i.e. not the debug one). Hence the
user won't even know something went wrong; rather the app will
probably just enter some unknown/unusable state and effectively
freeze.

There are cases for using try-catch when there is no other option. But
when there are, e.g. testing the type of a variable before casting it
or using a fault handler, try-catch should not be used. That could
make the code a bit convoluted though, so in cases where errors can
occur at many points (e.g. processing data files from an external
server) a try-catch may be preferable, not only for code style, but
also because you are unlikely to be able to pre-empt and mitigate all
the errors that might occur.

2009/3/5 Weyert de Boer w...@innerfuse.biz:
 I respectfully disagree with not handling exceptions and let them raised
 in the player. Of course, eating exceptions is terribly bad. Yes,
 raising exceptions because user input is bad is a long stretch.

 Hi Kevin,

 Try-Catch blocks are an absolute necessity as without them, you are
 putting the operation of your software into the hands of user input
 errors, http errors, unintended consequences as well as the myriad of
 things that exist outside the Happy Path.

 I respectfully disagree.  IMHO, try-catch is only useful in rare
 situations; like file IO in an Air app.  User input should be handled
 with restict and validators and http errors should be handled with a
 fault handler.  What I'm saying is that well written/tested code
 rarely needs the overhead and verboseness of a try-catch block.  In
 the event of un-caught errors, I personally want the Flash window to
 popup.  While the dialog could be more elegant, the stack trace makes
 it easier to locate the problem and fix the bug quickly.  Again, just
 my opinion.

 -TH

 --- In flexcoders@yahoogroups.com, Kevin Benz kb...@... wrote:
 
  Try-Catch blocks are an absolute necessity as without them, you are
  putting the operation of your software into the hands of user input
  errors, http errors, unintended consequences as well as the myriad of
  things that exist outside the Happy Path. As functions/methods only
  give you one return object, it is common practice to throw custom
  errors/exceptions as they are a great mechanism for handling dynamic
  environments.
 
 
 
  To answer your second question about a try-catch without statements in
  the catch block. If this method is nested inside of another try-catch
  block, then an exception here will be swallowed and not be caught in the
  calling objects try-catch.
 
 
 
  KFB
 
 
 
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
  Behalf Of SJF
  Sent: Tuesday, March 03, 2009 6:54 PM
  To: flexcoders
  Subject: [flexcoders] try, catch, finally ...
 
 
 
  Technically, it's good practice/professional to use try-catch-finally
  blocks in your actionscript logic. This ensures a robust, easily
  debugg-able application.
 
  However, can anyone comment if they actually use try-catch-finally or
  whether anyone is for or against it's use.
 
  I ask because I've received an application (which streams vidoe) that
  was blowing out numerous users CPUs to 100%. Upon further investigation,
  it appears that a netstream event is firing 20 times a second, and
  within the listener (listener function that is) for the event, there is
  a try-catch-finally block. I removed the try-catch-finally and CPU usage
  halved on my machine.
 
  Anyone care to comment for or against try-catch-finally and it's use.
 
 
 
  Steve.
 
 
 
 
  --
  This message has been scanned for viruses and
  dangerous content by MailScanner http://www.mailscanner.info/ , and is
 
  believed to be clean.
 





 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links






Re: [flexcoders] Modeless editing

2009-03-04 Thread Fotis Chatzinikos
What i am doing at the moment sounds much like you are describing. My app
contains several window like components. Each one has an expand button. On
click a bubbling 'expand' event is dispatched. This in turn is caught in the
main app and processed in a 'expander' function. This checks for any
editable flag and expands the component that request so or cancels the event
if a user decides that he needs to save first.

On Thu, Mar 5, 2009 at 1:23 AM, Fotis Chatzinikos 
fotis.chatzini...@gmail.com wrote:

 I have not tried this, but if you are able to catch the hide event of the
 'editing area' and cancel it,
 it would be far easier to implement what you describe...I do not have
 access to my builder at the moment
 so i do not know if what i suggest is doable... Have a go if you like :-)


 On Thu, Mar 5, 2009 at 1:19 AM, Richard Rodseth rrods...@gmail.comwrote:

   So your basic approach is capturing all events elsewhere in the app,
 and stopping them.

 I was thinking along the lines of a navigationmanager which knows about a
 current editing context, and could also be tied into deep linking support.
 View state (selected tab, selected child of view stack) would be derived
 from properties of the navigation manager. When the NM receives a nav
 request (via bubbling event) it would check if the current editing context
 was valid and not proceed with the nav. Doing all this with the help of Mate
 dependency injection shouldn't be too hard.

 At the same time, since time is limited, I wish there was a simple way to
 apply an event mask the way popup manager does, while still allowing
 resizing layout to occur. Or alternatively, grab a kind of focus for a
 container that the framework would try to request if the user clicked
 elsewhere. In other words, make a component  modal in place without
 popping up a new window. I haven't actually studied FocusManager, so I don't
 know if it supports any sort of nested focus.

 On Wed, Mar 4, 2009 at 2:54 PM, Fotis Chatzinikos 
 fotis.chatzini...@gmail.com wrote:

   What i do is track user changes by setting some flags (plural because
 i need to save bits of changes not everything on the form in one go). If the
 user tries to get away from the tab/form, i stop the event and throw a
 confirm alert box saying that there are changes that need to be saved. If he
 clicks i do not care for lost changes i let the navigation continue, else
 you can either just hide the alert box, or save any changes and then move to
 the new area...

 On Wed, Mar 4, 2009 at 11:50 PM, Richard Rodseth rrods...@gmail.comwrote:

   Does anyone have any suggestions for (or examples of) forms or other
 editing environments where navigation away from the editor is prevented 
 when
 there are unsaved changes?









 --
 Fotis Chatzinikos, Ph.D.
 Founder,
 Phinnovation
 fotis.chatzini...@gmail.com,


  




 --
 Fotis Chatzinikos, Ph.D.
 Founder,
 Phinnovation
 fotis.chatzini...@gmail.com,




-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


RE: [flexcoders] Re: Passing params (flashvars) to sub-applications

2009-03-04 Thread Tracy Spratt
Application.application always points at the top-level application, not the
local application.  parentApplication I would expect to work.  How are you
determining it is null?  You might try parentDocument.

 

Tracy

 

 

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Richard Rodseth
Sent: Wednesday, March 04, 2009 4:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Passing params (flashvars) to sub-applications

 

Thanks for the clarification - most helpful. When I use SWFObject in HTML, I
don't append the parameters to the URL, but I guess that's happing under the
hood.

Next experiment: Values of Application.application and parentApplication in
a multi-application application :)

In my latest experiment, I have discarded the quoted code, and just have a
url parameter.
I am setting the SWFLoader source in a creationComplete handler rather than
when the SWFLoader is instantiated.

What I am seeing is that I can access the url parameter within the loaded
app's completion handler using this.parameters[config_id] 
but not
Application.application.parameters[config_id] 

Within the loaded application (which does derive from UIComponent),
parentApplication is null.

So flashvars may be ready by creationComplete, but Application.application
and this.parentApplication are not.

Thanks again for the explanations.

On Wed, Mar 4, 2009 at 12:16 PM, Tracy Spratt tspr...@lariatinc.
mailto:tspr...@lariatinc.com com wrote:

You said, I was also able to pass a parameter in the url, and access it in
the loaded  app's creationComplete.  That *is* using flashvars.  Flashvars
are passed into a swf via url parameters.

 

The example you are quoting, which passes values from one fully instantiated
application to another is not using flashvars.  Maybe the title of that post
is misleading, but it does say flashvar-*style*-parameters., meaning a
dynamic Object.

 

Note also that apps loaded by swfloader do behave differently than ordinary
components, in this regard.  Ordinary components evaluate the passed
property values before creationComplete, so that those values can be used in
the component setup.

 

With a swf loaded APP, you must wait until it is complete before setting
properties.  Flashvars are ready by creationComplete.

 

Tracy

 

  _  

From: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com] On
Behalf Of Richard Rodseth
Sent: Wednesday, March 04, 2009 1:05 AM


To: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com
Subject: Re: [flexcoders] Re: Passing params (flashvars) to sub-applications

 

Well, this is research and I'm trying all possibilities, but I suppose you
could say the goal is to allow team A to embed team B's application in a tab
with the minimum of disruption to either team. Team B's application is
normally embedded in HTML and reads flashvars at startup (i.e. in a creation
complete handler).

I sort of expected SWFLoader to have a way to specify application
parameters.
In my googling, I found the link I referred to (in particular answer 2):

http://stackoverflo
http://stackoverflow.com/questions/407858/passing-flashvars-style-parameter
s-to-a-loaded-swf
w.com/questions/407858/passing-flashvars-style-parameters-to-a-loaded-swf

But  the sample code presented at the above link listens for an application
completed event from the loaded app before setting any parameters, and it
doesn't show how/when the embedded application reads the parameters.

So, while I have a more type-safe technique as presented by Amy, I'm left
wondering if there is a way to make a host application present the same
context to the embedded app that SWFObject does when the host application is
HTML. 

If you have successfully used flashvars *and* read them in a
creationComplete handler I'd love to know how you did it. Presumably you set
the flashvars earlier than the example I linked to above did.

On Tue, Mar 3, 2009 at 6:28 PM, Tracy Spratt tspr...@lariatinc.
mailto:tspr...@lariatinc.com com wrote:

I am confused now, which method are you using?  Are you attempting to pass
values between the fully instantiated components, or are you trying to use
flashvars?

 

I have successfully use both approaches, but the last few posts have been
dealing with using component lifecycle events to trigger directly setting a
property on the loaded component.

 

Using flashvars is the simplest, because the lifecycle events do not come
into play, but is limited because you have to use strings.

 

Exactly what is your goal?

 

Tracy

 

  _  

From: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com] On
Behalf Of Richard Rodseth
Sent: Tuesday, March 03, 2009 8:09 PM


To: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com
Subject: Re: [flexcoders] Re: Passing params (flashvars) to 

Re: [flexcoders] Re: Problem using sdk version 3.3

2009-03-04 Thread Matt Chotin
Ah, yeah the quotes for the arg.  Sorry bout that, I'll look and see if we can 
get that updated in the release notes.


On 3/4/09 2:09 PM, markgoldin_2000 markgoldin_2...@yahoo.com wrote:




Ok, this finally created the fbpro folder:
D:\Program Files\Adobe\Flex Builder 3\sdks\3.3.0\libjava -jar  DMV-source.jar 
C:\Documents and Settings\All Users\Application Data\Adobe\Flex

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
markgoldin_2000 markgoldin_2...@... wrote:

 Actually this command triggers execution:
 java -jar  D:\Program Files\Adobe\Flex Builder 
 3\sdks\3.3.0\lib\DMV-source.jar C:\Documents and Settings\All 
 Users\Application Data\Adobe\Flex

 Microsoft Windows XP [Version 5.1.2600]
 (C) Copyright 1985-2001 Microsoft Corp.

 C:\Documents and Settings\mgoldinjava -jar  D:\Program Files\Adobe\Flex Buil
 r 3\sdks\3.3.0\lib\DMV-source.jar C:\Documents and Settings\All Users\Applic
 ion Data\Adobe\Flex
 using license {flexbuilder3.displayedFirstLaunchMessage=true, flexbuilder3.dis
 ayed20DaysLeftMessage=true, flexbuilder3=***}, outputing
  directory ..
 license is valid, extracting datavisualisation and automation files to ..

 C:\Documents and Settings\mgoldin


 but fbpro is not there.


 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 markgoldin_2000 markgoldin_2000@ wrote:
 
  Right, and this is my command line:
  java -jar  D:\Program Files\Adobe\Flex Builder 
  3\sdks\3.3.0\lib\DMV-source.jar C:\Documents and Settings\All 
  Users\Application Data\Adobe\Flex
 
  Still no fbpro is created.
 
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
  Matt Chotin mchotin@ wrote:
  
   Java -jar will actually run the executable code that's included within 
   that JAR.  It requires the license key found in your license.properties 
   which should be located in the location we specified.  Look in that 
   folder and see if license.properties is there.  If it isn't, find your 
   license.properties and use that location.
  
   Matt
  
  
   On 3/4/09 12:22 PM, markgoldin_2000 markgoldin_2000@ wrote:
  
  
  
  
   I am having problem with:
   ..
   Extract the sources for the data visualization components from 
   DMV-source.jar
  
   If I open DMV-source.jar with winrar I see folders named Flex and META-INF
   so
   java -jar DMV-source.jar  C:\Documents and Settings\All Users\Application 
   Data\Adobe\Flex
  
   does not create the fbpro folder.
  
   AM I doing something wrong?
  
   --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
   mailto:flexcoders%40yahoogroups.com , Matt Chotin mchotin@ wrote:
   
Download from: http://www.adobe.com/products/flex/flexdownloads/
   
Instructions: 
http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_sdk.html#Datavisualization
   
On 3/4/09 11:51 AM, markgoldin_2000 markgoldin_2000@ wrote:
   
   
   
   
Not sure I uderstand how to download and install it.
   
--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com  
mailto:flexcoders%40yahoogroups.com , Matt Chotin mchotin@ wrote:

 Make sure to download the DMV components.


 On 3/4/09 11:35 AM, markgoldin_2000 markgoldin_2000@ wrote:




 After pointing Builder to sdk 3.3 I am getting an error:
 1172: Definition mx.collections:HierarchicalData could not be found.

 Please help.

   
  
 








RE: [flexcoders] Modeless editing

2009-03-04 Thread Tracy Spratt
I do this by having all of my change or click or whatever events call a
single function that updates the model, and also sets a modified flag.  The
flag variable, which is bindable controls the enabled property of my Save
button.  I also can check it if my navigation permits the possibility of
navigating away from a modified component.

 

 

Tracy

 

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Richard Rodseth
Sent: Wednesday, March 04, 2009 4:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Modeless editing

 

Does anyone have any suggestions for (or examples of) forms or other editing
environments where navigation away from the editor is prevented when there
are unsaved changes?











Re: [flexcoders] Re: Passing params (flashvars) to sub-applications

2009-03-04 Thread Richard Rodseth
I saw in the debugger, and parentDocument was not null, though I forget what
it was. I was just trying to think if there was a style apps could follow
to be embeddable. But I think the type-safe interface-based non-flashvar
approach might be the way to go in my case. Still not 100% clear on modules
vs sub apps, but that a whole other topic...

On Wed, Mar 4, 2009 at 3:49 PM, Tracy Spratt tspr...@lariatinc.com wrote:

Application.application always points at the *top-level* application,
 not the “local” application.  parentApplication I would expect to work.  How
 are you determining it is null?  You might try parentDocument.



 Tracy




  --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Richard Rodseth
 *Sent:* Wednesday, March 04, 2009 4:11 PM

 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Passing params (flashvars) to
 sub-applications



 Thanks for the clarification - most helpful. When I use SWFObject in HTML,
 I don't append the parameters to the URL, but I guess that's happing under
 the hood.

 Next experiment: Values of Application.application and parentApplication in
 a multi-application application :)

 In my latest experiment, I have discarded the quoted code, and just have a
 url parameter.
 I am setting the SWFLoader source in a creationComplete handler rather than
 when the SWFLoader is instantiated.

 What I am seeing is that I can access the url parameter within the loaded
 app's completion handler using this.parameters[config_id]
 but not
 Application.application.parameters[config_id]

 Within the loaded application (which does derive from UIComponent),
 parentApplication is null.

 So flashvars may be ready by creationComplete, but Application.application
 and this.parentApplication are not.

 Thanks again for the explanations.

 On Wed, Mar 4, 2009 at 12:16 PM, Tracy Spratt tspr...@lariatinc.com
 wrote:

 You said, “I was also able to pass a parameter in the url, and access it in
 the loaded  app's creationComplete…”  That **is** using flashvars.
 Flashvars are passed into a swf via url parameters.



 The example you are quoting, which passes values from one fully
 instantiated application to another is not using flashvars.  Maybe the title
 of that post is misleading, but it does say “flashvar-**style**-parameters.”,
 meaning a dynamic “Object”.



 Note also that apps loaded by swfloader do behave differently than ordinary
 components, in this regard.  Ordinary components evaluate the passed
 property values before creationComplete, so that those values can be used in
 the component setup.



 With a swf loaded APP, you must wait until it is complete before setting
 properties.  Flashvars are ready by creationComplete.



 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Richard Rodseth
 *Sent:* Wednesday, March 04, 2009 1:05 AM


 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Passing params (flashvars) to
 sub-applications



 Well, this is research and I'm trying all possibilities, but I suppose you
 could say the goal is to allow team A to embed team B's application in a tab
 with the minimum of disruption to either team. Team B's application is
 normally embedded in HTML and reads flashvars at startup (i.e. in a creation
 complete handler).

 I sort of expected SWFLoader to have a way to specify application
 parameters.
 In my googling, I found the link I referred to (in particular answer 2):


 http://stackoverflow.com/questions/407858/passing-flashvars-style-parameters-to-a-loaded-swf

 But  the sample code presented at the above link listens for an application
 completed event from the loaded app before setting any parameters, and it
 doesn't show how/when the embedded application reads the parameters.

 So, while I have a more type-safe technique as presented by Amy, I'm left
 wondering if there is a way to make a host application present the same
 context to the embedded app that SWFObject does when the host application is
 HTML.

 If you have successfully used flashvars *and* read them in a
 creationComplete handler I'd love to know how you did it. Presumably you set
 the flashvars earlier than the example I linked to above did.

 On Tue, Mar 3, 2009 at 6:28 PM, Tracy Spratt tspr...@lariatinc.com
 wrote:

 I am confused now, which method are you using?  Are you attempting to pass
 values between the fully instantiated components, or are you trying to use
 flashvars?



 I have successfully use both approaches, but the last few posts have been
 dealing with using component lifecycle events to trigger directly setting a
 property on the loaded component.



 Using flashvars is the simplest, because the lifecycle events do not come
 into play, but is limited because you have to use strings.



 Exactly what is your goal?



 Tracy


  --

 *From:* 

Re: [flexcoders] Re: try, catch, finally ...

2009-03-04 Thread Guy Morton
I guess the other thing to consider is where you are using them. If  
you put them in code that's called frequently it's probably more of a  
problem than if you are using them in code that's called occasionally.



On 05/03/2009, at 10:42 AM, Sam Lai wrote:


I thought Alex said before that exceptions don't appear for users
running the standard Flash Player (i.e. not the debug one). Hence the
user won't even know something went wrong; rather the app will
probably just enter some unknown/unusable state and effectively
freeze.

There are cases for using try-catch when there is no other option. But
when there are, e.g. testing the type of a variable before casting it
or using a fault handler, try-catch should not be used. That could
make the code a bit convoluted though, so in cases where errors can
occur at many points (e.g. processing data files from an external
server) a try-catch may be preferable, not only for code style, but
also because you are unlikely to be able to pre-empt and mitigate all
the errors that might occur.

2009/3/5 Weyert de Boer w...@innerfuse.biz:
 I respectfully disagree with not handling exceptions and let them  
raised

 in the player. Of course, eating exceptions is terribly bad. Yes,
 raising exceptions because user input is bad is a long stretch.

 Hi Kevin,

 Try-Catch blocks are an absolute necessity as without them, you are
 putting the operation of your software into the hands of user input
 errors, http errors, unintended consequences as well as the  
myriad of

 things that exist outside the Happy Path.

 I respectfully disagree.  IMHO, try-catch is only useful in rare
 situations; like file IO in an Air app.  User input should be  
handled
 with restict and validators and http errors should be handled  
with a

 fault handler.  What I'm saying is that well written/tested code
 rarely needs the overhead and verboseness of a try-catch block.  In
 the event of un-caught errors, I personally want the Flash window  
to
 popup.  While the dialog could be more elegant, the stack trace  
makes
 it easier to locate the problem and fix the bug quickly.  Again,  
just

 my opinion.

 -TH

 --- In flexcoders@yahoogroups.com, Kevin Benz kb...@... wrote:
 
  Try-Catch blocks are an absolute necessity as without them, you  
are
  putting the operation of your software into the hands of user  
input
  errors, http errors, unintended consequences as well as the  
myriad of
  things that exist outside the Happy Path. As functions/ 
methods only

  give you one return object, it is common practice to throw custom
  errors/exceptions as they are a great mechanism for handling  
dynamic

  environments.
 
 
 
  To answer your second question about a try-catch without  
statements in
  the catch block. If this method is nested inside of another try- 
catch
  block, then an exception here will be swallowed and not be  
caught in the

  calling objects try-catch.
 
 
 
  KFB
 
 
 
  From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com 
] On

  Behalf Of SJF
  Sent: Tuesday, March 03, 2009 6:54 PM
  To: flexcoders
  Subject: [flexcoders] try, catch, finally ...
 
 
 
  Technically, it's good practice/professional to use try-catch- 
finally

  blocks in your actionscript logic. This ensures a robust, easily
  debugg-able application.
 
  However, can anyone comment if they actually use try-catch- 
finally or

  whether anyone is for or against it's use.
 
  I ask because I've received an application (which streams  
vidoe) that
  was blowing out numerous users CPUs to 100%. Upon further  
investigation,
  it appears that a netstream event is firing 20 times a second,  
and
  within the listener (listener function that is) for the event,  
there is
  a try-catch-finally block. I removed the try-catch-finally and  
CPU usage

  halved on my machine.
 
  Anyone care to comment for or against try-catch-finally and  
it's use.

 
 
 
  Steve.
 
 
 
 
  --
  This message has been scanned for viruses and
  dangerous content by MailScanner http://www.mailscanner.info/ 
 , and is

 
  believed to be clean.
 





 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/ 
flexcodersFAQ.txt

 Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo 
! Groups Links











[flexcoders] Re: try, catch, finally ...

2009-03-04 Thread Bjorn Schultheiss
In my experience try/catch blocks have been most useful in dealing with sdk 
component life-cycle errors.

It is useful to throw custom errors for debugging purposes but rarely do i need 
to handle them in a production environment and run another process.

Bjorn



--- In flexcoders@yahoogroups.com, Guy Morton g...@... wrote:

 I guess the other thing to consider is where you are using them. If  
 you put them in code that's called frequently it's probably more of a  
 problem than if you are using them in code that's called occasionally.
 
 
 On 05/03/2009, at 10:42 AM, Sam Lai wrote:
 
  I thought Alex said before that exceptions don't appear for users
  running the standard Flash Player (i.e. not the debug one). Hence the
  user won't even know something went wrong; rather the app will
  probably just enter some unknown/unusable state and effectively
  freeze.
 
  There are cases for using try-catch when there is no other option. But
  when there are, e.g. testing the type of a variable before casting it
  or using a fault handler, try-catch should not be used. That could
  make the code a bit convoluted though, so in cases where errors can
  occur at many points (e.g. processing data files from an external
  server) a try-catch may be preferable, not only for code style, but
  also because you are unlikely to be able to pre-empt and mitigate all
  the errors that might occur.
 
  2009/3/5 Weyert de Boer w...@...:
   I respectfully disagree with not handling exceptions and let them  
  raised
   in the player. Of course, eating exceptions is terribly bad. Yes,
   raising exceptions because user input is bad is a long stretch.
  
   Hi Kevin,
  
   Try-Catch blocks are an absolute necessity as without them, you are
   putting the operation of your software into the hands of user input
   errors, http errors, unintended consequences as well as the  
  myriad of
   things that exist outside the Happy Path.
  
   I respectfully disagree.  IMHO, try-catch is only useful in rare
   situations; like file IO in an Air app.  User input should be  
  handled
   with restict and validators and http errors should be handled  
  with a
   fault handler.  What I'm saying is that well written/tested code
   rarely needs the overhead and verboseness of a try-catch block.  In
   the event of un-caught errors, I personally want the Flash window  
  to
   popup.  While the dialog could be more elegant, the stack trace  
  makes
   it easier to locate the problem and fix the bug quickly.  Again,  
  just
   my opinion.
  
   -TH
  
   --- In flexcoders@yahoogroups.com, Kevin Benz kbenz@ wrote:
   
Try-Catch blocks are an absolute necessity as without them, you  
  are
putting the operation of your software into the hands of user  
  input
errors, http errors, unintended consequences as well as the  
  myriad of
things that exist outside the Happy Path. As functions/ 
  methods only
give you one return object, it is common practice to throw custom
errors/exceptions as they are a great mechanism for handling  
  dynamic
environments.
   
   
   
To answer your second question about a try-catch without  
  statements in
the catch block. If this method is nested inside of another try- 
  catch
block, then an exception here will be swallowed and not be  
  caught in the
calling objects try-catch.
   
   
   
KFB
   
   
   
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com 
  ] On
Behalf Of SJF
Sent: Tuesday, March 03, 2009 6:54 PM
To: flexcoders
Subject: [flexcoders] try, catch, finally ...
   
   
   
Technically, it's good practice/professional to use try-catch- 
  finally
blocks in your actionscript logic. This ensures a robust, easily
debugg-able application.
   
However, can anyone comment if they actually use try-catch- 
  finally or
whether anyone is for or against it's use.
   
I ask because I've received an application (which streams  
  vidoe) that
was blowing out numerous users CPUs to 100%. Upon further  
  investigation,
it appears that a netstream event is firing 20 times a second,  
  and
within the listener (listener function that is) for the event,  
  there is
a try-catch-finally block. I removed the try-catch-finally and  
  CPU usage
halved on my machine.
   
Anyone care to comment for or against try-catch-finally and  
  it's use.
   
   
   
Steve.
   
   
   
   
--
This message has been scanned for viruses and
dangerous content by MailScanner http://www.mailscanner.info/ 
   , and is
   
believed to be clean.
   
  
  
  
  
  
   
  
   --
   Flexcoders Mailing List
   FAQ: http://groups.yahoo.com/group/flexcoders/files/ 
  flexcodersFAQ.txt
   Alternative FAQ location: 
   https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
   Search Archives: 
   

[flexcoders] Re: file.upload() works fine on mac os x, does not work on a PC

2009-03-04 Thread sunild999999
Are you doing this w/an account that does not have the local admin privilege 
on the Windows workstation? Or does it work when you use HTTP?

Just a guess,
Sunil

--- In flexcoders@yahoogroups.com, tchredeemed apth...@... wrote:

 I tried this in all browsers on my mac (firefox, safari, camino), and it 
 uploaded fine.
 
 I tried this on all browsers on my pc (firefox, ie6, ie7), and it did not.
 
 file.upload( new URLRequest( 
 _appGlobals.serverURL+data/attachment/?order_id=+_appGlobals.order.id ) );
 
 serverURL = https://www.oursite.com/
 
 order_id is set
 
 for some reason, it is faulting!  any ideas why?





[flexcoders] Graph Question

2009-03-04 Thread Vik
Hie
I have a column chart graph with vertical axis property baseAtZero = false;
This is cool but there is a problem. That is, it sets the lowest value
column as the base line and thereby making it almost impossible to see. Is
there any way so that it can shows consider the base a value a bit less than
the lowest value in my data so that even the lowest column is visible a bit.

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


[flexcoders] Re: Help on DataGrid dataProvider

2009-03-04 Thread jcjr031064
Thanks a lot. I followed your recommendation and it worked.

I though that flex automatically fetched the field names from the xml as in the 
case of default resultFormat i.e. object.

I guess for e4x, the dataGridColums must be explicitly specified.

Thanks again.

JC
--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 You may need to specify the dataFields in your DataGridColumns depending on 
 what the XML really looks like
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of jcjr031064
 Sent: Tuesday, March 03, 2009 11:43 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Help on DataGrid dataProvider
 
 
 Hello guys,
 A newbie here.
 
 I have this code:
 ?xml version=1.0 encoding=UTF-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=bookData.send()
 
 mx:Script
 ![CDATA[
 import mx.rpc.events.ResultEvent;
 import mx.rpc.events.FaultEvent;
 import mx.controls.Alert;
 
 [Bindable]
 private var bookInfo:XMLList;
 
 private function handleXML(event:ResultEvent):void{
 bookInfo=event.result.stock as XMLList;
 Alert.show(xmlBooks.toString());
 Alert.show(bookInfo);
 }
 ]]
 /mx:Script
 mx:XMLListCollection id=xmlBooks
 source={bookData.lastResult.stock}/
 mx:HTTPService result=handleXML(event) id=bookData url=books.xml 
 resultFormat=e4x/
 mx:DataGrid x=56 y=250 width=950
 dataProvider={xmlBooks}/
 /mx:Application
 
 How do I get the datagrid to be populated with rows? The alert.show calls 
 somehow get the data.
 
 What am i missing here?
 
 JC





RE: [flexcoders] Re: Help on DataGrid dataProvider

2009-03-04 Thread Alex Harui
Flex will find the attributes but not the child nodes.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of jcjr031064
Sent: Wednesday, March 04, 2009 7:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Help on DataGrid dataProvider


Thanks a lot. I followed your recommendation and it worked.

I though that flex automatically fetched the field names from the xml as in the 
case of default resultFormat i.e. object.

I guess for e4x, the dataGridColums must be explicitly specified.

Thanks again.

JC
--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 You may need to specify the dataFields in your DataGridColumns depending on 
 what the XML really looks like

 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of jcjr031064
 Sent: Tuesday, March 03, 2009 11:43 PM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Help on DataGrid dataProvider


 Hello guys,
 A newbie here.

 I have this code:
 ?xml version=1.0 encoding=UTF-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=bookData.send()

 mx:Script
 ![CDATA[
 import mx.rpc.events.ResultEvent;
 import mx.rpc.events.FaultEvent;
 import mx.controls.Alert;

 [Bindable]
 private var bookInfo:XMLList;

 private function handleXML(event:ResultEvent):void{
 bookInfo=event.result.stock as XMLList;
 Alert.show(xmlBooks.toString());
 Alert.show(bookInfo);
 }
 ]]
 /mx:Script
 mx:XMLListCollection id=xmlBooks
 source={bookData.lastResult.stock}/
 mx:HTTPService result=handleXML(event) id=bookData url=books.xml 
 resultFormat=e4x/
 mx:DataGrid x=56 y=250 width=950
 dataProvider={xmlBooks}/
 /mx:Application

 How do I get the datagrid to be populated with rows? The alert.show calls 
 somehow get the data.

 What am i missing here?

 JC




[flexcoders] Re: Launching Air application from ASP .NET

2009-03-04 Thread akila_ksri
The app is already written in Flex and I need to reuse it. I do not want to 
duplicate the code in ASP .NET.

To answer your first question, I want to write the file to the local disk 
(wherever the ASP .NET app is running). Although I do not think security should 
be an issue here, I have given complete access to the ASPNET user. 

--- In flexcoders@yahoogroups.com, Sam Lai samuel@... wrote:

 ASP.NET executes applications as a different user with a different set
 of permissions. If you are writing to local storage, it would be in a
 different location than what you would expect if you are running the
 app as yourself. Where are you writing to?
 
 Can I ask why you are doing this? What does AIR offer that you can't
 do using ASP.NET on the server?
 
 2009/3/4 akila_ksri akila_k...@...:
  I have an AIR application that I need to run from an ASP.NET page. I use 
  System.Diagonistics.Process to launch the exe file (on installing the .air 
  file). My application does not seem to working though. It appears in the 
  task manager but does not seem to run properly.
 
  On start of the application itself, I write a file to disk. But when I 
  launch this through the Process, no file gets written.
 
  Any response is greatly appreciated.
 
  Thanks,
  Akila
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location: 
  https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives: 
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
 
 
 
 





[flexcoders] RSL Error after changing to 3.3

2009-03-04 Thread azona26
I am receiving the following error after switching to 3.3:

Flex Error #1001: Digest mismatch with RSL 
http://127.0.0.1/framework_3.2.0.3958.swf. Redeploy the matching RSL or relink 
your application with the matching library.

Could someone point me in the right direction on how to resolve this issue?

Thanks in advance.



FW: [flexcoders] Hand Cursor on Flex Menu

2009-03-04 Thread Parkash
 

Hello can anyone help me on this.

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Parkash
Sent: Monday, March 02, 2009 9:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Hand Cursor on Flex Menu

 

Hello everyone,

 

I am trying to add hand cursor on Flex menu can anyone guide me how to do
this.

Here is my code snippet.

 

 

reportMenu = Menu.createMenu(null, xmlReportMenu,
false);

//reportMenu = Menu.createMenu(null,
CMMModelLocator.getInstance().reportsMenuXmlData, false);



 
reportMenu.addEventListener(MenuEvent.MENU_SHOW,ReportMenuShowHandle);

 
reportMenu.addEventListener(MenuEvent.MENU_HIDE,ReportMenuHideHandle);




reportMenu.labelField=@label;

reportMenu.iconField =@icon;

 
reportMenu.addEventListener(MenuEvent.ITEM_CLICK,reportMenuHandler);

 
reportMenu.addEventListener(MenuEvent.ITEM_ROLL_OVER,reportMenuHandlerRollOv
er);



reportMenu.setStyle( fontFamily , 'Verdana' );

 

 

I have tried this but failed

 

  reportMenu.usehandCursor = true;

  reportMenu.buttonMode= true;

  reportMenu.mouseChildren = false;

 

 

 

regards

 

Parksah

 

 

 





__ Information from ESET Smart Security, version of virus signature
database 3903 (20090303) __

The message was checked by ESET Smart Security.

http://www.eset.com