Re: [flexcoders] unable to bind to property warnings binding to read-only properties

2008-05-21 Thread Josh McDonald
And you're not getting foo is not an IEventDispatcher? What's your
DateRange class extend? It may already be an EventDispatcher. I left my
testbed code at work, so I can't verify it for myself :)

Most intriguing though.

-J

On Wed, May 21, 2008 at 3:54 PM, Richard Rodseth [EMAIL PROTECTED] wrote:

   I don't believe that's the case, Josh. I just ran it again, with
 [Bindable] on the start property, but not the end property, and got
 the warnings for end, but not for start.


 On Tue, May 20, 2008 at 10:30 PM, Josh McDonald [EMAIL 
 PROTECTED]dznuts%40gmail.com
 wrote:
  What you're doing there is just tricking the compiler into not giving you
  the warning, but you'll still get a run-tiAme warning in your console.
 You
  won't get updates if start ever changes, which in your case is what you
  want- but if it's simply read-only rather than immutable, you'll need the
  call to dispatchEvent().
 
  -J
 
  On Wed, May 21, 2008 at 3:21 PM, Richard Rodseth [EMAIL 
  PROTECTED]rrodseth%40gmail.com
 wrote:
 
  Interesting. Actually, I just did this:
 
  [Bindable(event=foo)]
  public function get start():Date {
  return _start;
  }
 
  without deriving from EventDispatcher (unnecessary, since I'm not
  dispatching anywhere), and that also worked. So perhaps that's the
  best approach, assuming the overhead of the [Bindable] tag is pretty
  minimal.
 
  Without knowing much about the internals, I can't be sure whether/how
  the warning could be more discriminating or informative, although I
  would think the runtime could tell that the property is read-only and
  not the root of the expression.
 
  Thanks.
 
  On Tue, May 20, 2008 at 9:43 PM, Josh McDonald [EMAIL 
  PROTECTED]dznuts%40gmail.com
 wrote:
   Binding to read-only accessors does work with custom events:
  
   --- testbed.xml
  
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
   layout=absolute
   xmlns:ns1=* 
  
   ns1:TestBindings id=test/
   mx:Label text=Testbed number is { test.publicNumber }
   horizontalCenter=0 verticalCenter=0/
  
   mx:Button label=Ouch! horizontalCenter=0 verticalCenter=30
   click=test.doIt()/
  
   /mx:Application
  
   --- TestBed.as
  
   package
   {
   import flash.events.Event;
   import flash.events.EventDispatcher;
  
   public class TestBindings extends EventDispatcher
   {
  
   private var myNumber : Number = 10;
  
   public function doIt() : void {
  
   myNumber++;
   dispatchEvent(new Event(numberUpdated));
   }
  
   [Bindable(event=numberUpdated)]
   public function get publicNumber() : Number { return myNumber; }
   }
   }
   ---
  
   This works as you'd expect it to, so it is possible to bind to
 read-only
   (and therefore also to immutable, if that really floats your boat) so
   long
   as it's an IEventDispatcher.
  
   -J
  
   On Wed, May 21, 2008 at 2:34 PM, Alex Harui [EMAIL 
   PROTECTED]aharui%40adobe.com
 wrote:
  
   Yup, that's why it is a warning. Sometimes you can ignore it.
  
  
  
   
  
   From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com[mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
   Behalf Of Richard Rodseth
   Sent: Tuesday, May 20, 2008 9:11 PM
   To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   Subject: Re: [flexcoders] unable to bind to property warnings
 binding
   to
   read-only properties
  
  
  
   Message delivery failed. Trying again, this time with blog entry:
  
   http://flexygen.wordpress.com/2008/05/21/immutability-and-binding/
  
   On Tue, May 20, 2008 at 7:40 PM, Richard Rodseth [EMAIL 
   PROTECTED]rrodseth%40gmail.com
 
   wrote:
Yes, but the point is that DateRange.start is not changeable - the
DateRange object can be replaced in its entirety, but its pieces
 can
not be changed.
   
I was able to get rid of the warnings by creating bindable getters
 in
the component that used the expression, replacing the expression
 with
{this.start}.
   
I've also verified that with the original expression {range.start}
the
binding works despite the warning.
   
On Tue, May 20, 2008 at 4:56 PM, Alex Harui [EMAIL 
PROTECTED]aharui%40adobe.com
 wrote:
Unless DateRenge.start is bindable, then there's no way we'd be
 able
to
see
changes to it.
   
   
   

   
From: flexcoders@yahoogroups.com 
flexcoders%40yahoogroups.com[mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com]
On
Behalf Of Richard Rodseth
Sent: Tuesday, May 20, 2008 2:53 PM
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
Subject: Re: [flexcoders] unable to bind to property warnings
binding
to
read-only properties
   
   
   
Just when I think I understand binding
   
I believe I have the same issue described below. I have an
 immutable
class DateRange. Surely, if I 

Re: [flexcoders] Problem editing custom object in DataGrid (itemEditEnd method, cannot get data)

2008-05-21 Thread bjorn -
There it was :-) .. thanks a lot Alex.

Just in case anyone has the similar problems, my itemEditEnd listener looks
like this now:

   /**
* Called when the user has edited an answer
*/
   private function onAnswerEditEnd(ev:DataGridEvent):void
   {
var answerGrid:DataGrid = DataGrid(ev.target);
var ans:Answer = answerGrid.selectedItem as Answer;
ans.answer.text = TextInput(answerGrid.itemEditorInstance).text;
ev.preventDefault(); // make sure the event doesn't reach the
datagrid
this.answerGrid.destroyItemEditor(); // stop editing
   }

2008/5/20 Alex Harui [EMAIL PROTECTED]:

itemEditorInstance.text?

  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *bjorn -
 *Sent:* Tuesday, May 20, 2008 8:41 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Problem editing custom object in DataGrid
 (itemEditEnd method, cannot get data)

Hi, I've created a MultiLanguageString object which contain an array of
 language codes and text value (e.g. [en] = Hello, [de] = Guten tag etc.)

 When editing in a DataGrid you always see the current selected language
 since MultiLanguageString's toString() method returns the internal arr[
 currentLanguageCode ] text.

 However, on edit end I got this error saying String cannot be converted to
 MultiLanguageString (Type Coercion failed), so I figgured I'd have to create
 my own itemEditEnd listener and prevent the vent from reaching the dataGrid
 there.

 This works fine.

 However, I'm unable to get the data somehow (all I get is the original
 data, unedited) .. I see DataGrid uses the event.itemRenderer.data, but when
 I look that up I only see the old data. Same for all other properties on the
 event which contains the data.

 Should I take a different route here or is it solvable this way?


 --

 
 http://www.juicability.com - flex blog
 http://www.43min.com - funny movies

  




-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


[flexcoders] Re: flex3 sdk and eclipse 3.2

2008-05-21 Thread Mykola
Here is a sample Ant build file for a Flex application at

http://mdzyuba.blogspot.com/2008/05/building-flex-project-with-ant.html

with info on how to build and run the sample. 

Mykola 

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

 Any idea about how can I use Antremember I'm a walk less baby,  
 just a designer.
 
 Regards,
 
 Gustavo Duenas
 On May 20, 2008, at 4:41 AM, Tom Chiverton wrote:
 
  On Monday 19 May 2008, Gustavo Duenas wrote:
  Without flex builder, someway someone said in the net that is
  possibleisn't it?
 
  You can use ANT to invoke the SDK, but I could never get it to work  
  an just
  stuck to compiling from the command line, using a DTD for the MXML  
  files to
  get code insight.
 
  -- 
  Tom Chiverton
 





Re: [flexcoders] Re: Securely Interfacing Between Flex and Databases

2008-05-21 Thread Tom Chiverton
On Tuesday 20 May 2008, David Pariente wrote:
 So u mean i can easily see the data of my bank transfers just using an SSL
 proxy, like WebScarab

Yes, exactly.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Flexlib SuperTabBar, ButtonScrollingCanvas, and dataProvider

2008-05-21 Thread grizalum
I am attempting to create a Flex component based on a combination of 
Flexlib's SuperTabBar and ButtonScrollingCanvas components. The 
intended result is to be a component that looks and behaves similar to 
the tab bar, described in SuperTabNavigator_Sample.mxml as 
the example using just the SuperTabBar without the entire TabNavigator 
component. In the compiled SWF, this scrolling tab bar example is 
displayed at the bottom of the browser window.

However, I am having troubles getting the dataProvider to work 
correctly. The only method that has been successful in the setting the 
SuperTabBar's dataProvider correctly has been when using an mxml 
dataProvider tag with string objects populating the tag. 

If I attempt to create an array of those same strings and 
programmatically pass this array to the dataProvider setter, by either 
calling the setter or by using the dataProvider tag 
attribute ...dataProvider={theArray}... the result, as displayed in 
the component, is a single blank tab.

Any suggestions on what I might be doing wrong?



[flexcoders] 5,000 record dataset needs love

2008-05-21 Thread Tom Longson
Dear Super Smart Flex Developer Mailing List,

We are currently having major issues processing a dataset that is
essential for our skunkworks web site. The dataset is stored as JSON,
consists of 5000 records, and has numerous strings. It is 1.4mb
uncompressed / 85kb compressed. Processing the data, which involves
creating a custom object to hold it, currently takes a much as 60 seconds.

We are in the process of attacking this beast to make it run faster,
and we are considering the following approaches:

1. Create an index for repetitive strings within the dataset to avoid
repetitive strings because integer assignment is faster than string
assignment (we assume).
2. Try substituting XML for JSON (no idea if this would be faster or not).
3. Attempt to deliver an actionscript binary blob to the application
from PHP (not even sure if that's possible... ASON?).
4. Create a compiled swf with our data postprocessed and attempt to
access it (again, not sure if that's possible).
5. insert your solution here

Your expert, snarky, helpful advice is much appreciated,
Tom





Re: [flexcoders] Re: Image

2008-05-21 Thread Laith Juwaidah
But it should show on top of them :(

On Wed, May 21, 2008 at 12:08 AM, Tim Hoff [EMAIL PROTECTED] wrote:


 So, make sure that the Image is on the lowest layer (added to a Canvas
 first); so that all of the other controls are on top of it.


 -TH

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Laith
 Juwaidah [EMAIL PROTECTED]
 wrote:
 
  The first method won't work because there'll be a lot of pictures, and
  they'll be moved and resized quite often.
 
  I tried the second one already, it shows the menu of the container but
 if
  there's a component under it and I hover the mouse on it the component
 won't
  change its style like it should.
 
  What I want is for it to act as if it's empty (when it has no picture,
 it
  acts as if it doesn't exist (the have the same behavior if the Image
 element
  is bigger than the picture, the part that doesn't have a picture works
  fine).
 
  On Tue, May 20, 2008 at 10:18 PM, Tim Hoff [EMAIL PROTECTED] wrote:
 
  
   Hi Laith,
  
   Take a look at the backgroundImage property. You can also add an
 Image
   control to your application and set mouseEnabled=false.
  
   -TH
  
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com,
 Laith
   Juwaidah ljuwaidah@
   wrote:
  
   
Hi,
   
I'm having a problem, I want to put an image on the application
 (which
   is a
container for some windows and components), and I want it to
 just
   show
the picture without it blocking the way for the user to interact
 with
   the
other components and windows, in other words, I want it to just
   display the
picture without it receiving any events.
   
Thank you.
   
--
Laith Juwaidah
http://www.ljuwaidah.org/
http://ljuwaidah.blogspot.com/
   
  
  
  
 
 
 
  --
  Laith Juwaidah
  http://www.ljuwaidah.org/
  http://ljuwaidah.blogspot.com/
 

  




-- 
Laith Juwaidah
http://www.ljuwaidah.org/
http://ljuwaidah.blogspot.com/


[flexcoders] SWF buffering/loading complete event

2008-05-21 Thread Joy
Hi
  Guys, can anyone please help me, I want to make a call to a third
party app, once an SWF (whether from an MXML/AS3 application)gets
loaded completely on a browser.
To be more clear:
1. Suppose an AS3 file calls another SWF (heavy) or FLV inside it. So
I want to know, when the inside SWFs has buffered and loaded
completely eg. I want to convert the SWF to some other format, only
when the full content is buffered.
Thanks in advance



[flexcoders] Re: Handling html formatted tables in Flex

2008-05-21 Thread Craig
Jeff, Since you put it that way, I shall get to string parsing.  I
really do appreciate your input.
Craig



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

 Too difficult Having a feed that has UI embedded in it, is 'less
 than optimum'.  Ideally the data you'd be receiving would be in a UI
 aqgnostic format. That said, I think you'll have to get your string
 parsing skills up to snuff. You have, within Flash/Flex, a RegEx
 implementation that should help you do that. 
 
 It seems a pretty large tangent to move to AIR just to solve this
 problem. I'd say its time to roll up your sleeves and learn string
 parsing.
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Craig
 Sent: Tuesday, May 20, 2008 3:27 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Handling html formatted tables in Flex
 
 
 My parsed data includes table tr and td commands which can't be
 read from datagrid, (I think)... the data is embedded in these tags, so
 getting it out would be too difficult.  I found AIR mx:HTML window but
 have to evaluate distributing app as AIR.  Do you have comment / other
 suggestion? CS
 
 
 
 
 --- In flexcoders@yahoogroups.com, Battershall, Jeff
 jeff.battershall@ wrote:
 
  Use your parsed data to create a dataprovider for a DataGrid.
  
  Jeff
  
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
  On Behalf Of Craig
  Sent: Tuesday, May 20, 2008 9:51 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Handling html formatted tables in Flex
  
  
  An RSS Feed providing quotes for my Flex application is outputting an 
  HTML formatted table.  I am able to parse everything out but can not 
  display it with TextArea.htmlText as htmlText does not support Tables.
 
  Does anyone know of a way to display Table formatted html code using 
  Flex?  There is probably an easy way to do it that I am missing. 
  Thanks, CS
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: 
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
  Links
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links





[flexcoders] Coldfusion 8, BlazeDS, Flex Builder 3

2008-05-21 Thread aliaspooryorik
Hi, I apologise if this is a simple question but it's got me stumped.
I have a development server on my local network running CF8. I've
installed BlazeDS (so that is shares the same JRun as CF). I've set up
a destination in C:\CF8\wwwroot\WEB-INF\flex\message-config.xml. My
web root (IIS) is on a different drive.

What I can't figure out is when I create a new project in FlexBuilder
(Eclipse Plugin). What do I set the root folder, Root URL and context
root to as the root folder expects to find message-config.xml. Can I
just set up a copy of message-config.xml in a web accessible folder so
that flexbuilder can pick up the destination (I know that CF/BlazeDS
won't reference this config file)

Thanks!



[flexcoders] A *Real* Testrunner for Adobe Flex/Air?

2008-05-21 Thread Justin Bozonier
Hi guys,

I'm looking for a test runner that will run independently of the Flex/Air app 
to be tested. 
Does one already exist? FlexUnit requires that the FlexUnit UI be in my Flex 
project and that's 
no bueno.

Another option I just thought of is to create a separate project for all of my 
unit tests. This 
project would also house the FlexUnit test runner. Then I could make any code I 
wanted unit 
tested into separate modules via a Library project. Then my unit test project 
could reference 
that project as well as my main app.

Any other suggestions?

-Justin Bozonier



[flexcoders] Flex 3, Coldfusion wizard and internal build errors

2008-05-21 Thread neonblue
Long time CF coder; new to flex.

I'm trying to get my first application working.  I've got Flex3 and 
CF8 installed on a Win2k3 server (VMWare) using IIS.  Coldfusion is 
verified and working.

I got the RDS connection up and running and I can see all the data 
connections.

In flex, I did the new; other... and selected the Coldfusion/flex 
application wizard

I followed the prompts and created the application.

After about a 30-45 second pause I get An internal build error has 
occurred. Right-click for more information.

There is no more information in the right click but in the .metadata 
log I found this:


!ENTRY com.adobe.flexbuilder.project 4 43 2008-05-20 22:01:07.982
!MESSAGE Uncaught exception in compiler
!STACK 0
java.io.IOException: The specified network name is no longer 
available
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.write(Unknown Source)
at java.io.ByteArrayOutputStream.writeTo(Unknown Source)
at flex2.tools.oem.Application.encode(Application.java:1196)
at flex2.tools.oem.Application.link(Application.java:1152)
at 
com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder
$MyBuilder.mybuild(ASApplicationBuilder.java:283)
at 
com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder
.build(ASApplicationBuilder.java:122)
at 
com.adobe.flexbuilder.multisdk.compiler.internal.ASBuilder.build
(ASBuilder.java:139)
at 
com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuilder.build
(ASItemBuilder.java:73)
at 
com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.bu
ildItem(Unknown Source)
at 
com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.bu
ild(Unknown Source)
at 
com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilde
r.build(Unknown Source)
at org.eclipse.core.internal.events.BuildManager$2.run
(BuildManager.java:624)
at org.eclipse.core.runtime.SafeRunner.run
(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:166)
at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:197)
at org.eclipse.core.internal.events.BuildManager$1.run
(BuildManager.java:246)
at org.eclipse.core.runtime.SafeRunner.run
(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:249)
at 
org.eclipse.core.internal.events.BuildManager.basicBuildLoop
(BuildManager.java:302)
at org.eclipse.core.internal.events.BuildManager.build
(BuildManager.java:334)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild
(AutoBuildJob.java:137)
at org.eclipse.core.internal.events.AutoBuildJob.run
(AutoBuildJob.java:235)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


What is this telling me?



Re: [flexcoders] 5,000 record dataset needs love

2008-05-21 Thread Tom Chiverton
On Wednesday 21 May 2008, Tom Longson wrote:
 5. insert your solution here

Use AMF remoting with your chosen backend. It's smaller and faster, and you 
get Objects in your Flex code by magic.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



Re: [flexcoders] Flex 3, Coldfusion wizard and internal build errors

2008-05-21 Thread Tom Chiverton
On Wednesday 21 May 2008, neonblue wrote:
 java.io.IOException: The specified network name is no longer
 available
   at java.io.FileOutputStream.writeBytes(Native Method)
   at java.io.FileOutputStream.write(Unknown Source)

Are you (trying to) use a remote network drive to develop on ?

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



Re: [flexcoders] SWF buffering/loading complete event

2008-05-21 Thread Manish Jethani
On 5/21/08, Joy [EMAIL PROTECTED] wrote:

   Guys, can anyone please help me, I want to make a call to a third
  party app, once an SWF (whether from an MXML/AS3 application)gets
  loaded completely on a browser.

You can listen for the 'complete' event on the contentLoaderInfo
property of the Loader object.

  loader.load(...);
  loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);

There's also a 'progress' event.


Re: [flexcoders] 5,000 record dataset needs love

2008-05-21 Thread EECOLOR
This is a nice application where you can explore the different options

http://www.jamesward.org/census/

At the top left you can read the guide me to see the different options.


Greetz Erik


On 5/21/08, Tom Chiverton [EMAIL PROTECTED] wrote:

 On Wednesday 21 May 2008, Tom Longson wrote:
  5. insert your solution here


 Use AMF remoting with your chosen backend. It's smaller and faster, and you
 get Objects in your Flex code by magic.

 --
 Tom Chiverton




Re: [flexcoders] Image

2008-05-21 Thread Manish Jethani
On 5/20/08, Laith Juwaidah [EMAIL PROTECTED] wrote:

 I'm having a problem, I want to put an image on the application (which is a 
 container for some windows and components), and I want it to just show 
 the picture without it blocking the way for the user to interact with the 
 other components and windows, in other words, I want it to just display the 
 picture without it receiving any events.

How are you displaying this image? If it just needs to be hover above
everything else, it probably should be displayed using the
PopUpManager as a non-modal pop-up. Once  you've done that, make sure
it's mouseEnabled false, and that should do it.

If you make it a modal pop-up, you'll have some kind of mouse blocker
layer below it, preventing the rest of the app from getting mouse
events.


[flexcoders] scriptTimeLimit (max-execution-time) overridden by child SWFs

2008-05-21 Thread Manish Jethani
I've logged a bug here:

https://bugs.adobe.com/jira/browse/FP-243

In short, if you have an application composed of many SWFs, the
'scriptTimeLimit' setting on the main SWF has no effect -- it is
overridden by the 'scriptTimeLimit' of any child SWFs. We're loading
lots of child SWFs in our application, some of them third-party, so we
have no way of setting the 'scriptTimeLimit' on our applicaiton.

Has anyone run into this, and did you find any workarounds?


[flexcoders] Weird URLloader problem

2008-05-21 Thread proveren
I am loading an xml file into my flex app using URLloader and it
works. I copy the applet in a subdirectory of where my swf was
compiled and it still works.
However, if I move the swf in the parent directory or in another
non-subdirectory of where I compiled the swf, it doesn't work.

What should I change? Embedding the xml is not an option.



[flexcoders] Handling between 20.000 and 100.000 records

2008-05-21 Thread EECOLOR
Hello,

I am in dilemma. A client wants to create selections from existing data.
Normally I would do that within Flex itself. The datagrid can hold an insane
amount of records with ease. Filtering however might not be very responsive.

I think the following options are available:

- Display all records in the datagrid and use a regular filter (too slow I
think)
- Display all records and filter with breathing space by using multiple
frames (might be fast enought)
- Display only the selected records. Each selection change triggers a call
to the server (no filtering done on the client)

What option do you think is best (or do I have any other options)?


Greetz Erik


Re: [flexcoders] Weird URLloader problem

2008-05-21 Thread Manish Jethani
On 5/21/08, proveren [EMAIL PROTECTED] wrote:

  However, if I move the swf in the parent directory or in another
  non-subdirectory of where I compiled the swf, it doesn't work.

What do you mean by doesn't work? Is it giving you a security error?
If you deploy the app on your server and place the XML on the same
domain, you won't have this problem. If you need to run it locally,
you'll have to place it in a special directory with special privileges
(which is what your development directory is).

Look up FlashPlayerTrust.


[flexcoders] Irregular Polygon Area

2008-05-21 Thread rleuthold
Hi,

Does somebody know of a class which calculates the area of an irregular polygon 
?

Thank's

_rico



[flexcoders] Autherizing a computer using an AIR application

2008-05-21 Thread vipinck
Hi there,

Does anyone knows a way to authorize a computer when an AIR
application runs for the first time. For examples, I could do this
with a Zinc application, where I can get the MAC address of the
machine and send to a server for authorizing the machine. Can we read
a system specific value or ID using an AIR application? This is needed
restrict the number of installations allowed for a particular license.

Thanks 
Vipin



[flexcoders] Re: SWF buffering/loading complete event

2008-05-21 Thread Joy
--- In flexcoders@yahoogroups.com, Manish Jethani
[EMAIL PROTECTED] wrote:

 On 5/21/08, Joy [EMAIL PROTECTED] wrote:
 
Guys, can anyone please help me, I want to make a call to a third
   party app, once an SWF (whether from an MXML/AS3 application)gets
   loaded completely on a browser.
 
 You can listen for the 'complete' event on the contentLoaderInfo
 property of the Loader object.
 
   loader.load(...);
   loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
loadComplete);
 
 There's also a 'progress' event.

Thanks bro. Works fine.



Re: [flexcoders] Image

2008-05-21 Thread Laith Juwaidah
I'm just adding it as a child.

I tried your way and now it doesn't even show the menu when it is right
clicked.

I'm starting to consider using them as background images, can I resize them
and move them easily? can I put more than one image on top of each other?

On Wed, May 21, 2008 at 1:19 PM, Manish Jethani [EMAIL PROTECTED]
wrote:

   On 5/20/08, Laith Juwaidah [EMAIL PROTECTED] ljuwaidah%40gmail.com
 wrote:

  I'm having a problem, I want to put an image on the application (which is
 a container for some windows and components), and I want it to just show
 the picture without it blocking the way for the user to interact with the
 other components and windows, in other words, I want it to just display the
 picture without it receiving any events.

 How are you displaying this image? If it just needs to be hover above
 everything else, it probably should be displayed using the
 PopUpManager as a non-modal pop-up. Once you've done that, make sure
 it's mouseEnabled false, and that should do it.

 If you make it a modal pop-up, you'll have some kind of mouse blocker
 layer below it, preventing the rest of the app from getting mouse
 events.
  




-- 
Laith Juwaidah
http://www.ljuwaidah.org/
http://ljuwaidah.blogspot.com/


Re: [flexcoders] Image

2008-05-21 Thread Laith Juwaidah
Wait! that won't work, they won't be on top then.

On Wed, May 21, 2008 at 2:38 PM, Laith Juwaidah [EMAIL PROTECTED] wrote:

 I'm just adding it as a child.

 I tried your way and now it doesn't even show the menu when it is right
 clicked.

 I'm starting to consider using them as background images, can I resize them
 and move them easily? can I put more than one image on top of each other?


 On Wed, May 21, 2008 at 1:19 PM, Manish Jethani [EMAIL PROTECTED]
 wrote:

   On 5/20/08, Laith Juwaidah [EMAIL PROTECTED] ljuwaidah%40gmail.com
 wrote:

  I'm having a problem, I want to put an image on the application (which
 is a container for some windows and components), and I want it to just
 show the picture without it blocking the way for the user to interact with
 the other components and windows, in other words, I want it to just display
 the picture without it receiving any events.

 How are you displaying this image? If it just needs to be hover above
 everything else, it probably should be displayed using the
 PopUpManager as a non-modal pop-up. Once you've done that, make sure
 it's mouseEnabled false, and that should do it.

 If you make it a modal pop-up, you'll have some kind of mouse blocker
 layer below it, preventing the rest of the app from getting mouse
 events.
  




 --
 Laith Juwaidah
 http://www.ljuwaidah.org/
 http://ljuwaidah.blogspot.com/




-- 
Laith Juwaidah
http://www.ljuwaidah.org/
http://ljuwaidah.blogspot.com/


[flexcoders] Re: A *Real* Testrunner for Adobe Flex/Air?

2008-05-21 Thread Fearedpixel
Create a new project for the test runner, and add your applications
source directory to its build path.

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

 Hi guys,
 
 I'm looking for a test runner that will run independently of the
Flex/Air app to be tested. 
 Does one already exist? FlexUnit requires that the FlexUnit UI be in
my Flex project and that's 
 no bueno.
 
 Another option I just thought of is to create a separate project for
all of my unit tests. This 
 project would also house the FlexUnit test runner. Then I could make
any code I wanted unit 
 tested into separate modules via a Library project. Then my unit
test project could reference 
 that project as well as my main app.
 
 Any other suggestions?
 
 -Justin Bozonier





Re: [flexcoders] Irregular Polygon Area

2008-05-21 Thread Jon Bradley


On May 21, 2008, at 7:10 AM, rleuthold wrote:

Does somebody know of a class which calculates the area of an  
irregular polygon ?


If it's not a self-intersecting polygon:

1/2 * ((x1+x2)(y1-y2)+(x2+x3)(y2-y3)+...+(xn+x1)(yn-y1))

The generalized method is basically:

1/2 * ( Sum from 0 to n-1) (Xn * Yn+1) - (Xn+1 * Yn)

For a self-intersecting polygon it's quite complicated.

good luck,

jon

[flexcoders] Re: suppress zeros in dataGrid

2008-05-21 Thread markgoldin_2000
Yes, I got it working, very nice, thanks.

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

 It should be column.dataField
 
 Like I said, it was from memory :)
 
 -J
 
 On Wed, May 21, 2008 at 12:56 PM, markgoldin_2000 
[EMAIL PROTECTED]
 wrote:
 
column.fieldName gives me an error.
 
 
  --- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com, Josh
  McDonald dznuts@ wrote:
  
   You'll just need a custom labelfunction on your DataGridColumn:
  
   function myLabelFunction(item:Object, 
column:DataGridColumn):String
  {
   return item[column.fieldName] == 0 ?  : item
[column.fieldName]];
   }
  
   Keep in mind that's typed in gmail, not Flex, so it may not 
work.
  Should be
   close though.
  
   -J
  
   On Wed, May 21, 2008 at 12:17 PM, markgoldin_2000
  markgoldin_2000@
   wrote:
  
Is there a way of suppressing zero values in a dataGrid 
without
  going
into custom design?
   
Thanks
   
   
   
  
  
  
   --
   Therefore, send not to know For whom the bell tolls. It tolls 
for
  thee.
  
   :: Josh 'G-Funk' McDonald
   :: 0437 221 380 :: josh@
  
 
   
 
 
 
 
 -- 
 Therefore, send not to know For whom the bell tolls. It tolls for 
thee.
 
 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]





[flexcoders] Drilldown ideas

2008-05-21 Thread markgoldin_2000
If a user wants to drilldown into a dataGrid's cell what could have 
been the best approach? Popup windows? Other ideas? If popup it is, can 
I completely get rid of a blur affect when popup window is shown?

Thanks for help.



[flexcoders] Flexbuilder locks up when saving CSS

2008-05-21 Thread jack_freud
I'm working on a project and have been having a thing happen where
when I save a change to the CSS file I'm using, FB says it's
rebuilding but never even gives a percentage, shows Not Responding in
the title bar, and comes back many minutes later or not at all.

Anyone have this experience, or know what might be done to fix it?

Thanks,

Jack



[flexcoders] Re: dataTipRenderer available for DataGrid?

2008-05-21 Thread djbrown_rotonews
I see where there's a ToolTipCreate event available, and I've used 
that in the past for custom tool tips over TextAreas etc.. I see the 
same event exposed for the DataGrid itself, but it doesn't appear to 
exist for the individual columns. How would I handle the situation 
where I wanted to display a custom tool tip depending on what column 
was being moused over?

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

 There's a ToolTipEvent that you should be able to pick up and 
return an
 instance of a custom class to use as a tooltip
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of djbrown_rotonews
 Sent: Monday, May 19, 2008 1:20 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] dataTipRenderer available for DataGrid?
 
 
 
 How do I need to extend DataGrid to get the dataTipRenderer stuff 
 exposed similiar to the charting classes?





[flexcoders] Re: A *Real* Testrunner for Adobe Flex/Air?

2008-05-21 Thread actionscript_czar
I haven't gotten a chance to test it but you could take a look into
dpUInt.  It is a unit and integration test suite created by the team
at digital primates.

The project page is at:
http://code.google.com/p/dpuint/


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

 Hi guys,

 I'm looking for a test runner that will run independently of the
Flex/Air app to be tested.
 Does one already exist? FlexUnit requires that the FlexUnit UI be in
my Flex project and that's
 no bueno.

 Another option I just thought of is to create a separate project for
all of my unit tests. This
 project would also house the FlexUnit test runner. Then I could make
any code I wanted unit
 tested into separate modules via a Library project. Then my unit test
project could reference
 that project as well as my main app.

 Any other suggestions?

 -Justin Bozonier





Re: [flexcoders] unable to bind to property warnings binding to read-only properties

2008-05-21 Thread Richard Rodseth
Nope. No warning. DateRange doesn't extend anything. I don't know
which framework class generates the warning, but I did see the
following comment in ChangeWatcher.getEvents()

// If host is not IEventDispatcher, no events will be dispatched,
// regardless of metadata.
// User-supplied [Bindable(eventname)] metadata within a
// non-IEventDispatcher class is unlikely,
// but not specifically prohibited by the compiler currently.


On Tue, May 20, 2008 at 11:30 PM, Josh McDonald [EMAIL PROTECTED] wrote:
 And you're not getting foo is not an IEventDispatcher? What's your
 DateRange class extend? It may already be an EventDispatcher. I left my
 testbed code at work, so I can't verify it for myself :)

 Most intriguing though.

 -J

 On Wed, May 21, 2008 at 3:54 PM, Richard Rodseth [EMAIL PROTECTED] wrote:

 I don't believe that's the case, Josh. I just ran it again, with
 [Bindable] on the start property, but not the end property, and got
 the warnings for end, but not for start.

 On Tue, May 20, 2008 at 10:30 PM, Josh McDonald [EMAIL PROTECTED] wrote:
  What you're doing there is just tricking the compiler into not giving
  you
  the warning, but you'll still get a run-tiAme warning in your console.
  You
  won't get updates if start ever changes, which in your case is what you
  want- but if it's simply read-only rather than immutable, you'll need
  the
  call to dispatchEvent().
 
  -J
 
  On Wed, May 21, 2008 at 3:21 PM, Richard Rodseth [EMAIL PROTECTED]
  wrote:
 
  Interesting. Actually, I just did this:
 
  [Bindable(event=foo)]
  public function get start():Date {
  return _start;
  }
 
  without deriving from EventDispatcher (unnecessary, since I'm not
  dispatching anywhere), and that also worked. So perhaps that's the
  best approach, assuming the overhead of the [Bindable] tag is pretty
  minimal.
 
  Without knowing much about the internals, I can't be sure whether/how
  the warning could be more discriminating or informative, although I
  would think the runtime could tell that the property is read-only and
  not the root of the expression.
 
  Thanks.
 
  On Tue, May 20, 2008 at 9:43 PM, Josh McDonald [EMAIL PROTECTED]
  wrote:
   Binding to read-only accessors does work with custom events:
  
   --- testbed.xml
  
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
   layout=absolute
   xmlns:ns1=* 
  
   ns1:TestBindings id=test/
   mx:Label text=Testbed number is { test.publicNumber }
   horizontalCenter=0 verticalCenter=0/
  
   mx:Button label=Ouch! horizontalCenter=0 verticalCenter=30
   click=test.doIt()/
  
   /mx:Application
  
   --- TestBed.as
  
   package
   {
   import flash.events.Event;
   import flash.events.EventDispatcher;
  
   public class TestBindings extends EventDispatcher
   {
  
   private var myNumber : Number = 10;
  
   public function doIt() : void {
  
   myNumber++;
   dispatchEvent(new Event(numberUpdated));
   }
  
   [Bindable(event=numberUpdated)]
   public function get publicNumber() : Number { return myNumber; }
   }
   }
   ---
  
   This works as you'd expect it to, so it is possible to bind to
   read-only
   (and therefore also to immutable, if that really floats your boat) so
   long
   as it's an IEventDispatcher.
  
   -J
  
   On Wed, May 21, 2008 at 2:34 PM, Alex Harui [EMAIL PROTECTED] wrote:
  
   Yup, that's why it is a warning. Sometimes you can ignore it.
  
  
  
   
  
   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
   On
   Behalf Of Richard Rodseth
   Sent: Tuesday, May 20, 2008 9:11 PM
   To: flexcoders@yahoogroups.com
   Subject: Re: [flexcoders] unable to bind to property warnings
   binding
   to
   read-only properties
  
  
  
   Message delivery failed. Trying again, this time with blog entry:
  
   http://flexygen.wordpress.com/2008/05/21/immutability-and-binding/
  
   On Tue, May 20, 2008 at 7:40 PM, Richard Rodseth
   [EMAIL PROTECTED]
   wrote:
Yes, but the point is that DateRange.start is not changeable - the
DateRange object can be replaced in its entirety, but its pieces
can
not be changed.
   
I was able to get rid of the warnings by creating bindable getters
in
the component that used the expression, replacing the expression
with
{this.start}.
   
I've also verified that with the original expression {range.start}
the
binding works despite the warning.
   
On Tue, May 20, 2008 at 4:56 PM, Alex Harui [EMAIL PROTECTED]
wrote:
Unless DateRenge.start is bindable, then there's no way we'd be
able
to
see
changes to it.
   
   
   

   
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED]
On
Behalf Of Richard Rodseth
Sent: Tuesday, May 20, 2008 2:53 PM
To: flexcoders@yahoogroups.com
Subject: 

RE: [flexcoders] Re: Handling html formatted tables in Flex

2008-05-21 Thread Battershall, Jeff
Claus,

On the drive home I was arriving at the same conclusiion you did -if it
was XHTML it's a piece of cake. Hopefully that's the case in this
situation.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claus Wahlers
Sent: Tuesday, May 20, 2008 4:39 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Handling html formatted tables in Flex


I think you don't get my point. Maybe i should have written An XHTML 
table is UI agnostic - if it's valid XHTML, it's by definition 
wellformed XML, and parsing that is almost trivial, no matter how the 
individual elements are named.

I only wanted to clarify that (X)HTML is sematic and not presentational 
as you suggested. If i display a table in a browser with all CSS turned 
off (including default styles), i get a long line of text with no UI at
all.

Battershall, Jeff wrote:

 Claus, I think you get my point. XML would be the preferred format for

 DATA whereas the ability to render HTML depends on the rendering 
 engine. In this case, he needs to get the data into a form that his 
 application can consume.
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of Claus Wahlers
 Sent: Tuesday, May 20, 2008 3:52 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: Handling html formatted tables in Flex
 
 Battershall, Jeff wrote:
 Too difficult Having a feed that has UI embedded in it, is 
 'less
 
 than optimum'.  Ideally the data you'd be receiving would be in a UI
 aqgnostic format.
 
 An HTML table is UI agnostic. How it's presented to the user 
 completely
 depends on the styling that is applied to it (e.g. CSS).
 
 Cheers,
 Claus.





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





RE: [flexcoders] Re: Securely Interfacing Between Flex and Databases

2008-05-21 Thread Battershall, Jeff
Yes, but we're talking on YOUR network where you have WebScarab or other
such tool installed.  It's not as though ALL your bank's transactions,
regardless of intended recipient, are now visible to you. 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Wednesday, May 21, 2008 4:41 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Securely Interfacing Between Flex and
Databases


On Tuesday 20 May 2008, David Pariente wrote:
 So u mean i can easily see the data of my bank transfers just using an

 SSL proxy, like WebScarab

Yes, exactly.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  Regulated by The
Solicitors Regulation Authority.

CONFIDENTIALITY

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

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



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





[flexcoders] How to use WebServices in Flex 3?

2008-05-21 Thread flexawesome
Hi there,

I am playing the WebServices in Flex3, on the top menu bar clicks data= import 
Web 
Sevice(WSDL), it creates coupe of as files for me, I have no idea how can I use 
them, do you 
know any good tutorials to teach user how to use WebServices?

Thank you so much



Re: [flexcoders] Re: Tree - Drag Drop - prevent drop into folder

2008-05-21 Thread Andriy Panas
   FYI, iilsley, back in November 2006, Adobe Flex SDK Engineer Deepa
Subramaniam had made a promise on Flexcoders mailing list that the
access to Tree's property _dropData declared as  'mx_internal' in Flex
2.0.1 SDK will be upgraded to public in Flex 3 SDK release:

   http://www.mail-archive.com/flexcoders@yahoogroups.com/msg46023.html

  I am currently on Flex 2.0.1 SDK, can you check for me whether the
access to _dropData was upgraded to public in Flex 3 SDK?

-- 
--
Med venlig hilsen / Best regards
Andriy Panas
[EMAIL PROTECTED]


On 21/05/2008, Andriy Panas [EMAIL PROTECTED] wrote:
 Good idea iilsley with demanding more cleaner API for the Tree component to
 expose the dropTarget during drag and drop operations.

 I've started today a new thread on Flexcoders, you may be interested to read
 it too:
 http://tech.groups.yahoo.com/group/flexcoders/message/113475


 
 
 
 
 
 
 
  Thanks for the info ..
  I may log a feature request for the Tree control to expose
  more information about the dropTarget .
 


 --
 --
 Med venlig hilsen / Best regards
 Andriy Panas
 [EMAIL PROTECTED]


RE: [flexcoders] Re: Handling html formatted tables in Flex

2008-05-21 Thread Battershall, Jeff
Craig,

See the note from Claus if you haven't already - he makes the important
point that if the data is in XHTML you'll be able to conver the data
into a format that could drive your datagrid very easily without string
parsing. Is that the case?

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Craig
Sent: Tuesday, May 20, 2008 5:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Handling html formatted tables in Flex


Jeff, Since you put it that way, I shall get to string parsing.  I
really do appreciate your input. Craig



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

 Too difficult Having a feed that has UI embedded in it, is 'less

 than optimum'.  Ideally the data you'd be receiving would be in a UI 
 aqgnostic format. That said, I think you'll have to get your string 
 parsing skills up to snuff. You have, within Flash/Flex, a RegEx 
 implementation that should help you do that.
 
 It seems a pretty large tangent to move to AIR just to solve this 
 problem. I'd say its time to roll up your sleeves and learn string 
 parsing.
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of Craig
 Sent: Tuesday, May 20, 2008 3:27 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Handling html formatted tables in Flex
 
 
 My parsed data includes table tr and td commands which can't be 
 read from datagrid, (I think)... the data is embedded in these tags, 
 so getting it out would be too difficult.  I found AIR mx:HTML 
 window but have to evaluate distributing app as AIR.  Do you have 
 comment / other suggestion? CS
 
 
 
 
 --- In flexcoders@yahoogroups.com, Battershall, Jeff 
 jeff.battershall@ wrote:
 
  Use your parsed data to create a dataprovider for a DataGrid.
  
  Jeff
  
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
  On Behalf Of Craig
  Sent: Tuesday, May 20, 2008 9:51 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Handling html formatted tables in Flex
  
  
  An RSS Feed providing quotes for my Flex application is outputting 
  an
  HTML formatted table.  I am able to parse everything out but can not

  display it with TextArea.htmlText as htmlText does not support
Tables.
 
  Does anyone know of a way to display Table formatted html code using
  Flex?  There is probably an easy way to do it that I am missing. 
  Thanks, CS
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: 
  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: 
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups 
  Links
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
 Links






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





[flexcoders] Re: How to use WebServices in Flex 3?

2008-05-21 Thread Robert Csiki

FlexBuilder3 generates ActionScript code for you for both service and
data model. The service class has a header with comments on how to
utilize it. Good luck! I've found this generated code as being pretty
buggy for complex web services, but if you're using simple ones, you
might be luckier than me. I suppose we have to let this tool grow up a
bit before trying real web services.

Robert


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

 Hi there,

 I am playing the WebServices in Flex3, on the top menu bar clicks
data= import Web
 Sevice(WSDL), it creates coupe of as files for me, I have no idea how
can I use them, do you
 know any good tutorials to teach user how to use WebServices?

 Thank you so much






[flexcoders] How to avoid Image refresh?

2008-05-21 Thread Robert Csiki

I have a datagrid with objects. The item renderer contains an Image
object that grabs the content via URL from a remote server.

Whenever I scroll up and down, there are server calls to get the image
content again. It slows down the application.

How can I control the Image object to avoid this unnecessary server call
for the image refresh?

Thanks, Robert.



[flexcoders] When are asynchronous events processed?

2008-05-21 Thread Paul Whitelock
When a response is received from a web service (for example), when is
the listener code executed? The beginning of the next frame? I'm
assuming that currently executing code is not suspended so that an
asynchronous event can be handled, but I was curious as to exactly
when asynchronous events are serviced. Thanks.



[flexcoders] Re: How to use WebServices in Flex 3?

2008-05-21 Thread flexawesome
Thanks for sharing the information.

What about creating webservice by using own as code or mx:WebService. 
code in 
mxml file? any tutorials?

Cheers

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

 
 FlexBuilder3 generates ActionScript code for you for both service and
 data model. The service class has a header with comments on how to
 utilize it. Good luck! I've found this generated code as being pretty
 buggy for complex web services, but if you're using simple ones, you
 might be luckier than me. I suppose we have to let this tool grow up a
 bit before trying real web services.
 
 Robert
 
 
 --- In flexcoders@yahoogroups.com, flexawesome flexawesome@
 wrote:
 
  Hi there,
 
  I am playing the WebServices in Flex3, on the top menu bar clicks
 data= import Web
  Sevice(WSDL), it creates coupe of as files for me, I have no idea how
 can I use them, do you
  know any good tutorials to teach user how to use WebServices?
 
  Thank you so much
 






Re: [flexcoders] When are asynchronous events processed?

2008-05-21 Thread Manish Jethani
On Wed, May 21, 2008 at 7:48 PM, Paul Whitelock [EMAIL PROTECTED] wrote:
 When a response is received from a web service (for example), when is
 the listener code executed? The beginning of the next frame? I'm
 assuming that currently executing code is not suspended so that an
 asynchronous event can be handled, but I was curious as to exactly
 when asynchronous events are serviced. Thanks.

Currently executing code will never be suspended in a single-threaded
environment, which is what Flash is. The asynchronous events are
handled when your application is idle. Although I don't know how
exactly the Flash Player does this, I imagine that events are pushed
into an event queue from where they are processed one by one. So at
some point, when your network call has returned, its event might go
into the queue and from there it might get dispatched and subsequently
handled by your app.

The frame rate has nothing to do with event processing.


[flexcoders] Re: How to use WebServices in Flex 3?

2008-05-21 Thread Robert Csiki

Sure, the FlexBuilder3's  Help site contains plenty of information. It's
also available online:

http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_3.ht\
ml
http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_3.h\
tml

Robert


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

 Thanks for sharing the information.

 What about creating webservice by using own as code or
mx:WebService. code in
 mxml file? any tutorials?

 Cheers

 --- In flexcoders@yahoogroups.com, Robert Csiki emc_rcsiki@ wrote:
 
 
  FlexBuilder3 generates ActionScript code for you for both service
and
  data model. The service class has a header with comments on how to
  utilize it. Good luck! I've found this generated code as being
pretty
  buggy for complex web services, but if you're using simple ones, you
  might be luckier than me. I suppose we have to let this tool grow up
a
  bit before trying real web services.
 
  Robert
 
 
  --- In flexcoders@yahoogroups.com, flexawesome flexawesome@
  wrote:
  
   Hi there,
  
   I am playing the WebServices in Flex3, on the top menu bar clicks
  data= import Web
   Sevice(WSDL), it creates coupe of as files for me, I have no idea
how
  can I use them, do you
   know any good tutorials to teach user how to use WebServices?
  
   Thank you so much
  
 





[flexcoders] Disable button if field is empty

2008-05-21 Thread mr_delphi_developer
I have this input field and button.

mx:TextInput id=team_pin maxChars=4 displayAsPassword=true
editable=true enabled=true width=55 /

   mx:Button label=Get Roster click=empRO.loadAll.send();
enabled=false id=GetRosterBtn/

I don't want the button enabled until the team_pin has 4 characters.

I've tried enabled={team_pin.length  4} but it says 
Invalid value: It must be one of true, false

How would I do that?





[flexcoders] Re: Drilldown ideas

2008-05-21 Thread mr_delphi_developer
--- In flexcoders@yahoogroups.com, markgoldin_2000
[EMAIL PROTECTED] wrote:

 If a user wants to drilldown into a dataGrid's cell what could have 
 been the best approach? Popup windows? Other ideas? If popup it is, can 
 I completely get rid of a blur affect when popup window is shown?
 
 Thanks for help.


How about the TreeGrid that is available on SourceForge?




Re: [flexcoders] How to avoid Image refresh?

2008-05-21 Thread Manish Jethani
On Wed, May 21, 2008 at 7:46 PM, Robert Csiki [EMAIL PROTECTED] wrote:
 I have a datagrid with objects. The item renderer contains an Image object
 that grabs the content via URL from a remote server.

 Whenever I scroll up and down, there are server calls to get the image
 content again. It slows down the application.

If the image is cached by the browser, you don't have actual server
calls. But the images still need to be reloaded in Flash, which can be
annoying.

So you can use your own in-memory cache. When you need to load the
image, first look in the cache (by the URL), and if it's available,
just use it.


Re: [flexcoders] Disable button if field is empty

2008-05-21 Thread Manish Jethani
On Wed, May 21, 2008 at 8:06 PM, mr_delphi_developer
[EMAIL PROTECTED] wrote:
 I have this input field and button.

 mx:TextInput id=team_pin maxChars=4 displayAsPassword=true
 editable=true enabled=true width=55 /

   mx:Button label=Get Roster click=empRO.loadAll.send();
 enabled=false id=GetRosterBtn/

 I don't want the button enabled until the team_pin has 4 characters.

 I've tried enabled={team_pin.length  4} but it says
 Invalid value: It must be one of true, false

I think you want team_pin.text.length. And cast it to Boolean maybe.


Re: [flexcoders] Resizable TextArea

2008-05-21 Thread Gordon Franke
i use this but the height is not 100% correct ;(
mx:TextArea id=elementEdit width=100% change=elementEdit.height =
elementEdit.textHeight/



Am Donnerstag, den 10.04.2008, 18:42 +0530 schrieb govind ram:
 I want to expand TextArea components height when the text in the
 TextArea is more than the default height. I already read about few
 successions like below:
 
 ?xml version=1.0?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 mx:Script
 ![CDATA[
 import mx.events.FlexEvent;
 
 public function update():void
 {
 src.explicitHeight = src.textHeight + 10;
 }
 
 ]]
 /mx:Script
 mx:Panel title=TextArea Control Example height=75%
 width=75% paddingTop=10 paddingLeft=10
 
 mx:TextArea id=src text=Hello change=update()/
 
 /mx:Panel
 /mx:Application
 
 The above example increase the height of the TextAre a for ANY CHANGE
 in the TextArea content. But I want to increase the height only when
 height of the content increases the height of the TextArea.
 
 How to achieve this required.
 Is there any way to count number of return character in the text?
 
 -Govind
 
 
 __
 Meet people who discuss and share your passions. Join them now.
 
 I want to expand TextArea components height when the text in the
 TextArea is more than the default height. I already read about few
 successions like below:
 
 ?xml version=1.0?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 mx:Script
 ![CDATA[
 import mx.events.FlexEvent;
 
 public function update():void
 {
 src.explicitHeight = src.textHeight + 10;
 }
 
 ]]
 /mx:Script
 mx:Panel title=TextArea Control Example height=75%
 width=75% paddingTop=10 paddingLeft=10
 
 mx:TextArea id=src text=Hello change=update()/
 
 /mx:Panel
 /mx:Application
 
 The above example increase the height of the TextAre a for ANY CHANGE
 in the TextArea content. But I want to increase the height only when
 height of the content increases the height of the TextArea.
 
 How to achieve this required.
 Is there any way to count number of return character in the text?
 
 -Govind
 
 
 
 __
 Meet people who discuss and share your passions. Join them now.
 
 
  



Re: [flexcoders] Re: How to use WebServices in Flex 3?

2008-05-21 Thread Douglas Knudsen
buggy really?  So far I've only used it once with a fairly complex set of
.NET WS apis and it worked fine.  With a quick tweak to a base file, you can
tie it into a Cairngorm delgate class and bamm.

DK

On Wed, May 21, 2008 at 10:10 AM, Robert Csiki [EMAIL PROTECTED] wrote:


 FlexBuilder3 generates ActionScript code for you for both service and
 data model. The service class has a header with comments on how to
 utilize it. Good luck! I've found this generated code as being pretty
 buggy for complex web services, but if you're using simple ones, you
 might be luckier than me. I suppose we have to let this tool grow up a
 bit before trying real web services.

 Robert

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

 
  Hi there,
 
  I am playing the WebServices in Flex3, on the top menu bar clicks
 data= import Web
  Sevice(WSDL), it creates coupe of as files for me, I have no idea how
 can I use them, do you
  know any good tutorials to teach user how to use WebServices?
 
  Thank you so much
 

  




-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


[flexcoders] Odd syntax error

2008-05-21 Thread Clinton D. Judy
I have this:

 

mx:request xmlns=

job

  created-at/created-at

  display-order/display-order

  ecms{ecmsTI.text}/ecms

  job-id/job-id

  name{nameTI.text}/name

  updated-at/updated-at

/job

/mx:request

 

It says it's expecting colon before minus on the first line there. But
should it even expect a colon when there's no namespace?

 

Clinton Judy

Web Developer

Glenn O. Hawbaker, Inc.



[flexcoders] Re: unable to bind to property warnings binding to read-only properties

2008-05-21 Thread Doug Lowder
Yes, sorry for the confusion.  That should have been:

creationComplete=event.currentTarget.someProperty=foo.bar


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

 We don't recommend putting curly braces around the values of event
 attributes like creationComplete... that makes it look like 
databinding
 even though it isn't.
 
  
 
 Gordon Smith
 
 Adobe Flex SDK Team
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Doug Lowder
 Sent: Tuesday, May 20, 2008 3:18 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: unable to bind to property warnings 
binding
 to read-only properties
 
  
 
 Binding has a lot of associated overhead and doesn't really serve 
any 
 purpose when it's a value you know is never going to change. 
 Somehting like the following works well for me.
 
 someProperty={foo.bar}
 
 becomes:
 
 creationComplete={event.currentTarget.somePorperty=foo.bar}
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 , mikebgrove mikebgrove@ 
 wrote:
 
  i make extensive use of read-only properties in my ActionScript 
  code. i find that anywhere i try to bind to a read only property 
i 
  get a warning in flex builder's debug mode indicating that flex 
 can't 
  bind to the property.
  
  here's a simple class to illustrate the point.
  
  package 
  {
  public class Foo
  {
  public function get bar():String {
  return bar;
  }
  }
  }
  
  if foo is an [Bindable] instance of Foo, then a binding to 
 {foo.bar} 
  will produce this warning:
  
  warning: unable to bind to property 'bar' on class 'Foo' (class 
is 
  not an IEventDispatcher).
  
  Foo is not an IEventDispatcher, but since every property of Foo 
is 
  immutable it shouldn't need to be.
  
  this may be a flex defect, judging by the title of the defect at 
  http://bugs.adobe.com/jira/browse/SDK-1046.
 http://bugs.adobe.com/jira/browse/SDK-1046.  i've asked adobe 
 support 
  to make more details about this defect public.
  
  i'm interested in strategies to avoid this warning for read-only 
  properties. in some cases this warning is instrumental in helping 
 me 
  figure out a binding problem, but unfortunately the important 
  warnings are nearly impossible to find among the hundreds of 
  irrelevant warnings for binding to read-only properties.
  
  here are some of the strategies i can think of, none great (i'll 
  continue using the above Foo class as an example):
  
  1) don't bind to {foo.bar}, bind to {getBar(foo)} or {foo.getBar
 ()}, 
  adding the getBar method either to the MXML component trying to 
 bind 
  to foo or the Foo class itself.
  2) declare the bar getter function as [Bindable] to a made up 
event 
  name, e.g. 
  [Bindable(event=barChangedNeverGonnaHappen)]
  
  are there other strategies people have employed to eliminate 
these 
  warnings for read-only properties? i trust i'm not the only one 
  whose eclipse debug console has been consumed with warnings like 
  these.
  
  thanks.
  
  -mike
 





Re: [flexcoders] Image

2008-05-21 Thread Manish Jethani
On Wed, May 21, 2008 at 4:08 PM, Laith Juwaidah [EMAIL PROTECTED] wrote:
 I'm just adding it as a child.

 I tried your way and now it doesn't even show the menu when it is right
 clicked.


You need to set mouseEnabled to false on the internal Loader object.
The Image component uses a Loader object internally; try to get to
that object and unset its mouseEnabled.


RES: [flexcoders] Resizable TextArea

2008-05-21 Thread Luciano Manerich Junior
Hi,
 
cant you just bind to that property?
 
mx:TextArea id=elementEdit width=100%
height={elementEdit.textHeight}/
 



De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em
nome de Gordon Franke
Enviada em: quinta-feira, 10 de abril de 2008 11:01
Para: flexcoders@yahoogroups.com
Assunto: Re: [flexcoders] Resizable TextArea



i use this but the height is not 100% correct ;(
mx:TextArea id=elementEdit width=100% change=elementEdit.height =
elementEdit.textHeight/

Am Donnerstag, den 10.04.2008, 18:42 +0530 schrieb govind ram:
 I want to expand TextArea components height when the text in the
 TextArea is more than the default height. I already read about few
 successions like below:
 
 ?xml version=1.0?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 mx:Script
 ![CDATA[
 import mx.events.FlexEvent;
 
 public function update():void
 {
 src.explicitHeight = src.textHeight + 10;
 }
 
 ]]
 /mx:Script
 mx:Panel title=TextArea Control Example height=75%
 width=75% paddingTop=10 paddingLeft=10
 
 mx:TextArea id=src text=Hello change=update()/
 
 /mx:Panel
 /mx:Application
 
 The above example increase the height of the TextAre a for ANY CHANGE
 in the TextArea content. But I want to increase the height only when
 height of the content increases the height of the TextArea.
 
 How to achieve this required.
 Is there any way to count number of return character in the text?
 
 -Govind
 
 
 __
 Meet people who discuss and share your passions. Join them now.
 
 I want to expand TextArea components height when the text in the
 TextArea is more than the default height. I already read about few
 successions like below:
 
 ?xml version=1.0?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 mx:Script
 ![CDATA[
 import mx.events.FlexEvent;
 
 public function update():void
 {
 src.explicitHeight = src.textHeight + 10;
 }
 
 ]]
 /mx:Script
 mx:Panel title=TextArea Control Example height=75%
 width=75% paddingTop=10 paddingLeft=10
 
 mx:TextArea id=src text=Hello change=update()/
 
 /mx:Panel
 /mx:Application
 
 The above example increase the height of the TextAre a for ANY CHANGE
 in the TextArea content. But I want to increase the height only when
 height of the content increases the height of the TextArea.
 
 How to achieve this required.
 Is there any way to count number of return character in the text?
 
 -Govind
 
 
 
 __
 Meet people who discuss and share your passions. Join them now.
 
 
 



 


[flexcoders] Re: image factory threaded application

2008-05-21 Thread netdeep

Actually I am using BlazeDS with messaging.  The problem is getting multiple 
images to 
snapshot.  In practice when I send multiple charts to the client one after the 
other, only 
the last one gets drawn and the other messages seem to get overwritten before 
ever 
completing the snapshot request.



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

 Have the Flex client poll the server for updates, or use LCDS or BlazeDS
 which provide push technology.
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of netdeep
 Sent: Tuesday, May 20, 2008 3:04 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] image factory threaded application
 
  
 
 I've reached an impass with my current development of a flex app to
 publish image 
 snapshots of charts.
 
 I can get the program to run fine when I just have one chart, but I'm
 not sure how to produce 
 multiple images.
 
 Here's how it's set up at the moment: When the server launches, a java
 app looks in the 
 database for chart definitions. For each chart it will have data as well
 as a publishing 
 frequency (say every 10 minutes or every 2 hours, etc). So for each
 report I thought I'd 
 launch a thread and have that thread send the data for drawing the chart
 to the flex app. 
 However in practice, the threads launch the flex app and only one of the
 charts gets 
 published.
 
 How can I get a flex app to draw multiple charts like this? They have to
 continually update 
 based on the publishing frequency for the chart and I have to make sure
 that each chart gets 
 drawn. How would you approach implementing this image factory
 application?






[flexcoders] Re: How to use WebServices in Flex 3?

2008-05-21 Thread Robert Csiki

Well I prefer not to mess with the generated code, for the maintenance
sake.

Robert


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

 buggy really? So far I've only used it once with a fairly complex set
of
 .NET WS apis and it worked fine. With a quick tweak to a base file,
you can
 tie it into a Cairngorm delgate class and bamm.

 DK

 On Wed, May 21, 2008 at 10:10 AM, Robert Csiki [EMAIL PROTECTED] wrote:

 
  FlexBuilder3 generates ActionScript code for you for both service
and
  data model. The service class has a header with comments on how to
  utilize it. Good luck! I've found this generated code as being
pretty
  buggy for complex web services, but if you're using simple ones, you
  might be luckier than me. I suppose we have to let this tool grow up
a
  bit before trying real web services.
 
  Robert
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  flexawesome flexawesome@
  wrote:
 
  
   Hi there,
  
   I am playing the WebServices in Flex3, on the top menu bar clicks
  data= import Web
   Sevice(WSDL), it creates coupe of as files for me, I have no idea
how
  can I use them, do you
   know any good tutorials to teach user how to use WebServices?
  
   Thank you so much
  
 
 
 



 --
 Douglas Knudsen
 http://www.cubicleman.com
 this is my signature, like it?






[flexcoders] Dynamic ruler

2008-05-21 Thread mihksoft
Can soomebody help me with an idea for a dynamic ruler like in the
application from this link.

http://www.goldwave.com/mqrelease.php

10x



[flexcoders] Re: Disable button if field is empty

2008-05-21 Thread mr_delphi_developer
--- In flexcoders@yahoogroups.com, Manish Jethani
[EMAIL PROTECTED] wrote:

 On Wed, May 21, 2008 at 8:06 PM, mr_delphi_developer
 [EMAIL PROTECTED] wrote:
  I have this input field and button.
 
  mx:TextInput id=team_pin maxChars=4 displayAsPassword=true
  editable=true enabled=true width=55 /
 
mx:Button label=Get Roster click=empRO.loadAll.send();
  enabled=false id=GetRosterBtn/
 
  I don't want the button enabled until the team_pin has 4 characters.
 
  I've tried enabled={team_pin.length  4} but it says
  Invalid value: It must be one of true, false
 
 I think you want team_pin.text.length. And cast it to Boolean maybe.


This worked great:
enabled={!Boolean(team_pin.text.length lt; 4)}




Re: [flexcoders] Image

2008-05-21 Thread Laith Juwaidah
I just did img.mouseEnabled = false;
How do I access its internal Loader object?

On Wed, May 21, 2008 at 6:54 PM, Manish Jethani [EMAIL PROTECTED]
wrote:

   On Wed, May 21, 2008 at 4:08 PM, Laith Juwaidah [EMAIL 
 PROTECTED]ljuwaidah%40gmail.com
 wrote:
  I'm just adding it as a child.
 
  I tried your way and now it doesn't even show the menu when it is right
  clicked.
 

 You need to set mouseEnabled to false on the internal Loader object.
 The Image component uses a Loader object internally; try to get to
 that object and unset its mouseEnabled.
  




-- 
Laith Juwaidah
http://www.ljuwaidah.org/
http://ljuwaidah.blogspot.com/


[flexcoders] Re: Drilldown ideas

2008-05-21 Thread Doug Lowder
You can get rid of the popup window's blur effect by setting 
the modalTransparencyBlur style inherited from Panel.  I think you'd 
set it to 0.

HTH,
Doug

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

 If a user wants to drilldown into a dataGrid's cell what could have 
 been the best approach? Popup windows? Other ideas? If popup it is, 
can 
 I completely get rid of a blur affect when popup window is shown?
 
 Thanks for help.





[flexcoders] ScriptTimeOut Issue

2008-05-21 Thread Subeesh
Hi All, 

I am opening an html popup with a TextEditor using javascript from my 
flex application . When the user fill in the textarea and click the 
submit button in the Texteditor, javascript closes that window and 
returns the value back to the flex .( using FABridge ) . The issue is 
that if the javascript window is used more than a minute a runtime 
error (script is executed more than the default time out period.)

I set the scriptTimeout property to the maximum value ( 60 seconds ).

When the javascript popup is closed , it is calling public metthod in 
thr flex application.

Is there any workaround for this . What i want to achieve is to keep 
the external html window remain open as long as i wish and to call a 
method in the flex when it is closed.

Thanks in advance 

Subeesh



Re: [flexcoders] Re: Flash Player 10 is in prerelease!

2008-05-21 Thread Tom Chiverton
On Friday 16 May 2008, Muzak wrote:
  For now, they're mainly interested in /developers/ using FP10 for
  compatibility /testing/.
  grumble
  They should have made a debug version then...
 +1

You can grab a debug version of Flash Player 10 from here, apperently:
 
 Windows: 
http://opensource.adobe.com/svn/opensource/flex/sdk/branches/3.0.x/in/player/10/win/
 Linux: 
http://opensource.adobe.com/svn/opensource/flex/sdk/branches/3.0.x/in/player/10/lnx/
 Mac: 
http://opensource.adobe.com/svn/opensource/flex/sdk/branches/3.0.x/in/player/10/mac/
 

Though I have not tried this yet...
-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: Handling html formatted tables in Flex

2008-05-21 Thread Subeesh
Hi , 

I came across a similar situation . I have used regular expressions 
to parse the html table string and disaplyed it using flex Grid 
component. Grid component is similar to HTML table . You can even 
extract attributes like span padding etc and apply that in Flex Grid.

Take a look at this link.

http://subeesh.wordpress.com/

Subeesh


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

 Craig,
 
 See the note from Claus if you haven't already - he makes the 
important
 point that if the data is in XHTML you'll be able to conver the data
 into a format that could drive your datagrid very easily without 
string
 parsing. Is that the case?
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Craig
 Sent: Tuesday, May 20, 2008 5:40 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Handling html formatted tables in Flex
 
 
 Jeff, Since you put it that way, I shall get to string parsing.  I
 really do appreciate your input. Craig
 
 
 
 --- In flexcoders@yahoogroups.com, Battershall, Jeff
 jeff.battershall@ wrote:
 
  Too difficult Having a feed that has UI embedded in it, 
is 'less
 
  than optimum'.  Ideally the data you'd be receiving would be in a 
UI 
  aqgnostic format. That said, I think you'll have to get your 
string 
  parsing skills up to snuff. You have, within Flash/Flex, a RegEx 
  implementation that should help you do that.
  
  It seems a pretty large tangent to move to AIR just to solve this 
  problem. I'd say its time to roll up your sleeves and learn 
string 
  parsing.
  
  Jeff
  
  -Original Message-
  From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] 
  On Behalf Of Craig
  Sent: Tuesday, May 20, 2008 3:27 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Handling html formatted tables in Flex
  
  
  My parsed data includes table tr and td commands which 
can't be 
  read from datagrid, (I think)... the data is embedded in these 
tags, 
  so getting it out would be too difficult.  I found AIR mx:HTML 
  window but have to evaluate distributing app as AIR.  Do you have 
  comment / other suggestion? CS
  
  
  
  
  --- In flexcoders@yahoogroups.com, Battershall, Jeff 
  jeff.battershall@ wrote:
  
   Use your parsed data to create a dataprovider for a DataGrid.
   
   Jeff
   
   -Original Message-
   From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED]
   On Behalf Of Craig
   Sent: Tuesday, May 20, 2008 9:51 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Handling html formatted tables in Flex
   
   
   An RSS Feed providing quotes for my Flex application is 
outputting 
   an
   HTML formatted table.  I am able to parse everything out but 
can not
 
   display it with TextArea.htmlText as htmlText does not support
 Tables.
  
   Does anyone know of a way to display Table formatted html code 
using
   Flex?  There is probably an easy way to do it that I am 
missing. 
   Thanks, CS
   
   
   
   
   
   --
   Flexcoders Mailing List
   FAQ: 
   http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives: 
   http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
 Groups 
   Links
  
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: 
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups 
  Links
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups
 Links





[flexcoders] Re: Securely Interfacing Between Flex and Databases

2008-05-21 Thread Doug Lowder
Kenny, are you saying you want to implement security *within* your 
Flex app?  I think you'd have serious security holes with that (your 
decompilation concern, for one).  Typically security would be handled 
at the client-server level, by hosting your SWF on a server that has 
been configured to accept connections over https (e.g., 
https://myserver.com/myapp), connecting to your app via HTTPS from a 
browser, and designing your Flex app to connect to other servers over 
HTTPS as well.  Web servers and browsers already have built-in 
implementations of RSA, SSL/TLS, and the other industry standards 
mentioned in other posts so there's really no need to implement them 
yourself.  The same SWF (with certain design considerations taken 
into account, of course) can be accessed on the web non-securely 
(over HTTP), or securely (over HTTPS).

HTH,
Doug

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

 So the bottom line is to use an algorithm like RSA? To take a much
 simpler example, if the Flex app receives the encrypted data 1234
 and it wishes to use that data, it must first decrypt it. So it
 performs the decryption in some AS and now you have the decrypted 
data
 that you wanted. My question now is, if someone decompiles your app
 they can see your decryption method and thus decode the data on 
their
 own. Nothing is private in the Flex app due to the decompilation 
concern.
 
 Regarding SSL, I suppose this is out of the question if we're 
talking
 about a Facebook application. I don't have much control over their
 security.
 
 --- In flexcoders@yahoogroups.com, andrewwestberg
 andrewwestberg@ wrote:
 
  I think you're confusing simple secret key encryption (DES, AES,
  etc..) with public/private key encryption (RSA).
  
  In secret-key encryption if an attacker steals the data and 
guesses or
  brute forces the secret key, they can see the data.
  
  In public/private key encryption, a message you send to the 
server is
  encrypted by a public key and can ONLY be decrypted by a private 
key
  known only to the webserver (the certificate you bought from 
verisign,
  thawte, etc...)  This is how when you sign onto paypal or some 
other
  site over https, you don't have to worry about your credit-card 
being
  stolen in transmission.  Sitting in some DB at the company where
  employees can get at it, you should worry, but during 
transmission,
  it's unlikely to get cracked.
  
  -Andrew
 





[flexcoders] Re: Weird URLloader problem

2008-05-21 Thread proveren
--- In flexcoders@yahoogroups.com, Manish Jethani
[EMAIL PROTECTED] wrote:

 On 5/21/08, proveren [EMAIL PROTECTED] wrote:
 
   However, if I move the swf in the parent directory or in another
   non-subdirectory of where I compiled the swf, it doesn't work.
 
 What do you mean by doesn't work? Is it giving you a security error?

Yes, ok in windows it is ok if placed in output folder, I see.
However, in linux it is not? I command-line compile the file to a
certain output place in linux. Then I run it from there and i get the
security errors. What should i fix for linux?




[flexcoders] Re: How to avoid Image refresh?

2008-05-21 Thread Robert Csiki

Thanks for your reply. The browser does cache my images, but still
server calls are made (by the Image object) whenever the object refresh
is required (i.e. when Flex repaints the component). That's what I want
to control, and the question was is Image able to do that or I have to
write my own class?

Robert


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

 On Wed, May 21, 2008 at 7:46 PM, Robert Csiki [EMAIL PROTECTED] wrote:
  I have a datagrid with objects. The item renderer contains an Image
object
  that grabs the content via URL from a remote server.
 
  Whenever I scroll up and down, there are server calls to get the
image
  content again. It slows down the application.

 If the image is cached by the browser, you don't have actual server
 calls. But the images still need to be reloaded in Flash, which can be
 annoying.

 So you can use your own in-memory cache. When you need to load the
 image, first look in the cache (by the URL), and if it's available,
 just use it.





[flexcoders] Re: How to avoid Image refresh?

2008-05-21 Thread Brian Raymes
You can always try Ely's SuperImage:

http://www.quietlyscheming.com/blog/2007/01/23/some-thoughts-on-doubt-on-flex-as-the-best-option-orhow-i-made-my-flex-images-stop-dancing/

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

 
 I have a datagrid with objects. The item renderer contains an Image
 object that grabs the content via URL from a remote server.
 
 Whenever I scroll up and down, there are server calls to get the image
 content again. It slows down the application.
 
 How can I control the Image object to avoid this unnecessary server call
 for the image refresh?
 
 Thanks, Robert.





[flexcoders] Re: When are asynchronous events processed?

2008-05-21 Thread Paul Whitelock
Thanks for the explanation. I found the following in Colin Moock's
book and assume that asynchronous events are handled during step 2:

1.Execute Frame 1's frame script. 

2.Wait until the next scheduled frame-render time. While waiting, if
any events are triggered, execute all registered event listeners. 

3.At frame-render time, check if the screen needs updating. The screen
needs updating if any of the following is true: 
* Frame 1 contains changes to the contents of the Stage made manually
in the Flash authoring tool. 
* Code in Frame 1's frame script created new visual content or
modified existing visual content. 
* Code in a listener function executed during Step 2 created new
visual content or modified existing visual content. 

4.If necessary, update the screen to reflect all changes detected in
Step 3. 

5.Repeat Steps 1-4



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

 On Wed, May 21, 2008 at 7:48 PM, Paul Whitelock [EMAIL PROTECTED] wrote:
  When a response is received from a web service (for example), when is
  the listener code executed? The beginning of the next frame? I'm
  assuming that currently executing code is not suspended so that an
  asynchronous event can be handled, but I was curious as to exactly
  when asynchronous events are serviced. Thanks.
 
 Currently executing code will never be suspended in a single-threaded
 environment, which is what Flash is. The asynchronous events are
 handled when your application is idle. Although I don't know how
 exactly the Flash Player does this, I imagine that events are pushed
 into an event queue from where they are processed one by one. So at
 some point, when your network call has returned, its event might go
 into the queue and from there it might get dispatched and subsequently
 handled by your app.
 
 The frame rate has nothing to do with event processing.





[flexcoders] Dynamic HTTPService Request

2008-05-21 Thread kenny14390
If I have a variable number of things to POST to a PHP page using
HTTPService, I need to use mx:request to get those things over. Is
there a way to do this dynamically?

Here's the static way:

mx:HTTPService
..mx:request
var1value/var1
var2value/var2
varNvalue/varN
../mx:request
/mx:HTTPService

Is there a way to just iterate through a list of values and append it
to a list of things to request? I'm trying to POST the flashvars, but
there could be many parameters in them and I won't know how many. I
need to pass all of them to the PHP page. The way I'm doing it now is
to just concatenate them all together, delimited by , and pass the
one big string to the PHP page. Can I pass each parameter individually?


Ricky



[flexcoders] Flex application - Keyboard handling

2008-05-21 Thread Chandru
I have a flex application that loads and displays a flash swf. This
flex component is then embedded in a web page using SWFObject 2.0. The
requirement I have is to prevent the up/down/left/right arrow from
being handled by the browser i.e. if the flash content results in a
vertical scrollbar being placed in the browser and the user presses the
up/down/left/right arrow keys when the focus is on the flash content I
want to prevent the browser from scrolling. I've tried to handle this
by attaching a event listener (in javascript) to the document and
returning false – this solution seems to work on Firefox and Safari but
not on IE.

Any suggestion/directions would be a great help.




[flexcoders] popupbutton direction

2008-05-21 Thread sudha_bsb
Hi 

I have a popup Button which displays a popup window when clicked. The
popup window comes always below the popup button. I want the popup
window to come above the pop up button. How can we achieve this.

I don't want the arrow to be shown in the popup button and trigger the
show and hide of popupwindow in the click of the button. I tried
setting  the arrowwidth to 0 but the arrow is shown when the mouse
moves over it.

Thanks,
Sudha.



[flexcoders] RemoteObject connections over HTTPS fails..

2008-05-21 Thread sk_acura
HI All,

We have a BalzeDS based web app deployed on tomcat working fine when
we use HTTP.

How ever when we try to expose our web app over extranet the swf files
that tries to connect to the Remote Object gets timed out..

Here are the channels that are configured in the services-config.xml

[CODE]
channels
channel-definition id=my-amf
class=mx.messaging.channels.AMFChannel
endpoint
uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amf;
class=flex.messaging.endpoints.AMFEndpoint/
properties
polling-enabledfalse/polling-enabled
/properties
/channel-definition

channel-definition id=my-secure-amf
class=mx.messaging.channels.SecureAMFChannel

endpoint
uri=https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure;
class=flex.messaging.endpoints.SecureAMFEndpoint/
/channel-definition

channel-definition id=my-polling-amf
class=mx.messaging.channels.AMFChannel
endpoint
uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling;
class=flex.messaging.endpoints.AMFEndpoint/
properties
polling-enabledtrue/polling-enabled
polling-interval-seconds8/polling-interval-seconds
/properties
/channel-definition
channel-definition id=my-http
class=mx.messaging.channels.HTTPChannel
endpoint
uri=http://{server.name}:{server.port}/{context.root}/messagebroker/http;
class=flex.messaging.endpoints.HTTPEndpoint/
/channel-definition

channel-definition id=my-secure-http
class=mx.messaging.channels.SecureHTTPChannel

endpoint
uri=https://{server.name}:{server.port}/{context.root}/messagebroker/httpsecure;
class=flex.messaging.endpoints.SecureHTTPEndpoint/
/channel-definition
/channels
[/CODE]

And the default-channels set in remoting-config.xml and
proxy-config.xml are

[CODE]
   default-channels
channel ref=my-secure-amf/
channel ref=my-secure-http/
channel ref=my-amf/
channel ref=my-http/
/default-channels
[/CODE]

First of all do i need to enable the secure-channels ?? As the https
port is not enabled in the tomcat on which this web app is deployed..

How ever there is a proxy in between which rewrites the https requests
as http requests and redirects them to the tomcat..

When i add the secure channels ( amf and http) in my default-channel list
and i have included the trace target in my main mxml File..

It shows that it is pinging the my-secure-amf endpoint and doesn't get
any response..( i get the same when i connect using http i.e, from the
intranet)

Now when i remove the secure channels from my default channel list and
regenerate the .swf files (i have the servlet mapping configured to
regenerate them if they don't exists already..) i can connect to the
web app from intranet which uses my-amf channel.

How ever when i try to connect over https the trace shows it is not
getting any ping response from my-amf channel..

Also when i try the following URLs from my browser i get an Error..

http://localhost:8080/myapp/messagebroker/amfsecure

[ERROR]
flex.messaging.MessageException: No configured channel has an endpoint
path '/messagebroker/amfsecure'.
flex.messaging.MessageBroker.getEndpoint(MessageBroker.java:318)

flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:329)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
[/ERROR]

I am getting this Error in both intranet (using HTTP) and Extranet
Environments (using Https)


 I have read the blog posts related to this
(http://blog.crankybit.com/flex-remoting-over-ssl/)
 and doing exactly as it is suggested still unable to resolve the
issue..!!

Thanks
Mars



[flexcoders] Re: DateField disabledRanges

2008-05-21 Thread David C. Moody
Yes it did, but then FlexBuilder gave errors about it won't be able 
to notice changes to yesterday.  So I tried {yesterday} that took 
away the error, but both times it disabled today and before.  Not 
yesterday and before.

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

 Did yesterday have the correct value at the time it was plugged 
into
 the range?
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of David C. Moody
 Sent: Tuesday, May 20, 2008 12:41 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] DateField disabledRanges
 
 
 
 I'm trying to set a DateField's disabledRanges to yesterday and 
 before.
 
 Everything I have tried will not do this, I can disabled today and 
 before but I need to include today.
 
 Does anyone have any ideas?
 
 here's all I've tried:
 
 Assign yesterday's date to a yesterday variable.
 
 disabledRanges={[{rangeEnd: yesterday }]}
 (disables today and before, yesterday does have correct date)
 
 disabledRanges={[{rangeEnd new Date.setTime(new Date().getTime() - 
 (1*millisecondsPerDay)) }]}
 (all days are enabled)
 
 Any help would be greatly appreciated.
 
 -David





[flexcoders] Re: Dynamic HTTPService Request

2008-05-21 Thread twcrone70
Try doing your HTTPService request in ActionScript instead.

e.g.

var params:Object = new Object();

params.parameter1 = value;
params.parameter2 = value2;

var myService:HTTPService = new HTTPService( /myuri );
var at:AsycToken = myService.send( params );

at.addResponder( new Responder( resultHandler, faultHandler ) );


You can also explicitly put parameters on the URL e.g.
/myuri?parameter1=value.

With IE and browser caching, you may want to arbitrarily include a
timestamp parameter.  Not sure if this is always needed.

e.g. /myuri?time= + ( new Date() ).getUTCMilliseconds()

Haven't done alot with HTTPService (mostly RemoteObject) and I John
Wayned the code examples so you should probably double check but
generally you get more flexibility in ActionScript.

- Todd

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

 If I have a variable number of things to POST to a PHP page using
 HTTPService, I need to use mx:request to get those things over. Is
 there a way to do this dynamically?
 
 Here's the static way:
 
 mx:HTTPService
 ..mx:request
 var1value/var1
 var2value/var2
 varNvalue/varN
 ../mx:request
 /mx:HTTPService
 
 Is there a way to just iterate through a list of values and append it
 to a list of things to request? I'm trying to POST the flashvars, but
 there could be many parameters in them and I won't know how many. I
 need to pass all of them to the PHP page. The way I'm doing it now is
 to just concatenate them all together, delimited by , and pass the
 one big string to the PHP page. Can I pass each parameter individually?
 
 
 Ricky





[flexcoders] Re: Help me understand the datagrid

2008-05-21 Thread bredwards358
Forgive the lateness of my response, but thanks all, I solved my
problem, I didn't need to do item editing inside the datagrid at all,
I simply needed to just be able to edit an item. I simply made a state
of the window which contains a form populated with the necessary
information. But what I read so far gave me some great insight into
using the datagrid including how to manipulate individual columns, (it
didn't occur to me to give the columns an id).

Thanks a bunch, it's been elightening.



[flexcoders] clustered BarChart how to make one of them 100%

2008-05-21 Thread alex
I have a clustered BarChart , I want one of the bars in each group to
have the maximum height of chart and the rest of bars are relative to
it. Is it possible in the current implementation of BarChart ?

Thank you .




[flexcoders] Re: DateField disabledRanges

2008-05-21 Thread David C. Moody
After some testing I figured it out.

I just put it in my init() function, which is called on 
creationComplete of the module as such:

yesterday.setTime(today.getTime() - (1*millisecondsPerDay));
ckProcDate.disabledRanges = [{rangeEnd: yesterday }];   

And that works. 



--- In flexcoders@yahoogroups.com, David C. Moody [EMAIL PROTECTED] 
wrote:

 I'm trying to set a DateField's disabledRanges to yesterday and 
 before.
 
 Everything I have tried will not do this, I can disabled today and 
 before but I need to include today.
 
 Does anyone have any ideas?
 
 here's all I've tried:
 
 Assign yesterday's date to a yesterday variable.
 
 disabledRanges={[{rangeEnd: yesterday }]}
 (disables today and before, yesterday does have correct date)
 
 disabledRanges={[{rangeEnd new Date.setTime(new Date().getTime() - 
 (1*millisecondsPerDay)) }]}
 (all days are enabled)
 
 Any help would be greatly appreciated.
 
 -David





[flexcoders] Flash-AIR-PHP drag and drop Hybrid

2008-05-21 Thread Greg Hess
Hi Folks,

The application I am working on has a requirement to support drag and drop,
from client to server. Currently, we can only support this by using a signed
Java Applet that provides the drop box that allows the EU to drop files
from the local file system. As a result the files are transfered to the
server (PHP) and the Java Applet informs the flash app that a transfer is in
progress (providing taskID), and the flash app polls the server for status
on the task. Once completed the UI updates to reflect and notify the user of
the change.

Is it possible to do the same with AIR? We dislike the need to present the
EU a drop box and would love it if we could make the drag and drop
seamless with AIR-Flash-PHP. I am thinking this could be performed by:

- AIR app Drag Manager installed on client PC (launched when the flash app
is initialized)
- Flash or AIR app detects the client is trying to drag a local asset onto
the flash app (not sure if this is possible)
- AIR app responds by sending file to the server PHP and passing a taskID to
the flash app for it to track
- Flash app polls the server until the taskID to complete, displaying some
transfer progress

Any comments, suggestions much appreciated!

Cheers,

Greg


Re: [flexcoders] Image

2008-05-21 Thread Manish Jethani
On Wed, May 21, 2008 at 9:02 PM, Laith Juwaidah [EMAIL PROTECTED] wrote:
 I just did img.mouseEnabled = false;
 How do I access its internal Loader object?

There's no API for accessing the Loader object. So you have to go
through the mx_internal 'contentHolder' property, I believe.


Re: [flexcoders] Image

2008-05-21 Thread Laith Juwaidah
I haven't messed with mx_internal, can you please give me an example or
something?

Thanks

On Wed, May 21, 2008 at 11:18 PM, Manish Jethani [EMAIL PROTECTED]
wrote:

   On Wed, May 21, 2008 at 9:02 PM, Laith Juwaidah [EMAIL 
 PROTECTED]ljuwaidah%40gmail.com
 wrote:
  I just did img.mouseEnabled = false;
  How do I access its internal Loader object?

 There's no API for accessing the Loader object. So you have to go
 through the mx_internal 'contentHolder' property, I believe.
  




-- 
Laith Juwaidah
http://www.ljuwaidah.org/
http://ljuwaidah.blogspot.com/


RE: [flexcoders] 5,000 record dataset needs love

2008-05-21 Thread Tracy Spratt
Are you certain the bottleneck is the processing as opposed to the
rendering?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Longson
Sent: Tuesday, May 20, 2008 10:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] 5,000 record dataset needs love

 

Dear Super Smart Flex Developer Mailing List,

We are currently having major issues processing a dataset that is
essential for our skunkworks web site. The dataset is stored as JSON,
consists of 5000 records, and has numerous strings. It is 1.4mb
uncompressed / 85kb compressed. Processing the data, which involves
creating a custom object to hold it, currently takes a much as 60
seconds.

We are in the process of attacking this beast to make it run faster,
and we are considering the following approaches:

1. Create an index for repetitive strings within the dataset to avoid
repetitive strings because integer assignment is faster than string
assignment (we assume).
2. Try substituting XML for JSON (no idea if this would be faster or
not).
3. Attempt to deliver an actionscript binary blob to the application
from PHP (not even sure if that's possible... ASON?).
4. Create a compiled swf with our data postprocessed and attempt to
access it (again, not sure if that's possible).
5. insert your solution here

Your expert, snarky, helpful advice is much appreciated,
Tom

 



Re: [flexcoders] Image

2008-05-21 Thread Manish Jethani
On Thu, May 22, 2008 at 12:50 AM, Laith Juwaidah [EMAIL PROTECTED] wrote:
 I haven't messed with mx_internal, can you please give me an example or
 something?

import flash.display.Loader;
import mx.controls.Image;
import mx.core.mx_internal;

var image:Image = theImageObject;
var loader:Loader = image.mx_internal::contentHolder as Loader;
loader.mouseEnabled = false;


Re: [flexcoders] Re: When are asynchronous events processed?

2008-05-21 Thread Manish Jethani
On Wed, May 21, 2008 at 11:02 PM, Paul Whitelock [EMAIL PROTECTED] wrote:

 2.Wait until the next scheduled frame-render time. While waiting, if
 any events are triggered, execute all registered event listeners.

Yes, so in your while waiting time, if you make a network call --
say you download an XML file -- and the call returns (asynchronously)
during that time, then you'll get the event for that before you go to
step 3. i.e. it won't wait for the next frame before you can process
the event.

Try this test:

?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  xmlns=* mouseMove=trace('mouseMove', getTimer())
  enterFrame=trace('enterFrame', getTimer())
  frameRate=1
/mx:Application

As you move the mouse, the event is processed. It doesn't wait for the
next frame before you can get the event.


Re: [flexcoders] Re: How to avoid Image refresh?

2008-05-21 Thread Manish Jethani
On Wed, May 21, 2008 at 10:56 PM, Robert Csiki [EMAIL PROTECTED] wrote:
 Thanks for your reply. The browser does cache my images, but still server
 calls are made (by the Image object) whenever the object refresh is required
 (i.e. when Flex repaints the component). That's what I want to control, and
 the question was is Image able to do that or I have to write my own class?

Either the Flash Player is using the browser's cache or it isn't. If
you're seeing server calls (either through a sniffer like Charles or
in your server logs), then it isn't.

I think you should write your own component that grabs the actual
Loader object from your own in-memory cache.

 // Setter method in your custom component.
 public function set url(value:String):void
 {
   _url = value;

   var image:Loader = cache[_url];
   if (!image) {
 image = new Loader();
 image.load(_url);

 cache[_url] = image;
   }

   addChild(image);

   ...
 }

And so on.

Update: Ah! It seems that SuperImage already does something like that.
Check that out.


RE: [flexcoders] Flash-AIR-PHP drag and drop Hybrid

2008-05-21 Thread Battershall, Jeff
AIR gives you a lot of tools to accomplish this, but I don't see how the
Flash app would fit into the equation. With the FIleSystemTree control
you can browse and select files and drag them to another component which
initiates the file upload process - all within AIR.  If you want to show
upload progress, that can be done within AIR as well - no need for an
external Flash widget.
 
Jeff
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Greg Hess
Sent: Wednesday, May 21, 2008 3:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flash-AIR-PHP drag and drop Hybrid



Hi Folks,
 
The application I am working on has a requirement to support
drag and drop, from client to server. Currently, we can only support
this by using a signed Java Applet that provides the drop box that
allows the EU to drop files from the local file system. As a result the
files are transfered to the server (PHP) and the Java Applet informs the
flash app that a transfer is in progress (providing taskID), and the
flash app polls the server for status on the task. Once completed the UI
updates to reflect and notify the user of the change.
 
Is it possible to do the same with AIR? We dislike the need to
present the EU a drop box and would love it if we could make the drag
and drop seamless with AIR-Flash-PHP. I am thinking this could be
performed by:
 
- AIR app Drag Manager installed on client PC (launched when
the flash app is initialized)
- Flash or AIR app detects the client is trying to drag a local
asset onto the flash app (not sure if this is possible)
- AIR app responds by sending file to the server PHP and passing
a taskID to the flash app for it to track
- Flash app polls the server until the taskID to complete,
displaying some transfer progress
 
Any comments, suggestions much appreciated!
 
Cheers,

Greg
 



Re: [flexcoders] Re: Weird URLloader problem

2008-05-21 Thread Manish Jethani
On Wed, May 21, 2008 at 10:03 PM, proveren [EMAIL PROTECTED] wrote:
 --- In flexcoders@yahoogroups.com, Manish Jethani
 [EMAIL PROTECTED] wrote:

 On 5/21/08, proveren [EMAIL PROTECTED] wrote:

   However, if I move the swf in the parent directory or in another
   non-subdirectory of where I compiled the swf, it doesn't work.

 What do you mean by doesn't work? Is it giving you a security error?

 Yes, ok in windows it is ok if placed in output folder, I see.
 However, in linux it is not? I command-line compile the file to a
 certain output place in linux. Then I run it from there and i get the
 security errors. What should i fix for linux?

Geez, I don't know, but some dude apparently figured this out:

http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/flash_player_trust_f.php


RE: [flexcoders] Re: How to use WebServices in Flex 3?

2008-05-21 Thread Tracy Spratt
To be clear, in Flex you will be 'consuming a web service, not creating
one.

 

Consuming a simple webservice in flex is pretty easy, the examples in
the docs are pretty clear and there are other examples around (I have on
on www.cflex.net http://www.cflex.net/ ).

 

One benefit of the generated code, or of using the same approach is that
you wind up with strongly typed Value objects to work with in Flex.
This is the most performant option, noticable if you have many complex
item renderers displayed at any one time.

 

If your UI is not so dense, then simple access of the returned XML works
just fine.

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Robert Csiki
Sent: Wednesday, May 21, 2008 10:35 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to use WebServices in Flex 3?

 

Sure, the FlexBuilder3's  Help site contains plenty of information. It's
also available online:

http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_3.ht
ml
http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_3.h
tml 

Robert


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

 Thanks for sharing the information.
 
 What about creating webservice by using own as code or
mx:WebService. code in 
 mxml file? any tutorials?
 
 Cheers
 
 --- In flexcoders@yahoogroups.com, Robert Csiki emc_rcsiki@ wrote:
 
  
  FlexBuilder3 generates ActionScript code for you for both service
and
  data model. The service class has a header with comments on how to
  utilize it. Good luck! I've found this generated code as being
pretty
  buggy for complex web services, but if you're using simple ones, you
  might be luckier than me. I suppose we have to let this tool grow up
a
  bit before trying real web services.
  
  Robert
  
  
  --- In flexcoders@yahoogroups.com, flexawesome flexawesome@
  wrote:
  
   Hi there,
  
   I am playing the WebServices in Flex3, on the top menu bar clicks
  data= import Web
   Sevice(WSDL), it creates coupe of as files for me, I have no idea
how
  can I use them, do you
   know any good tutorials to teach user how to use WebServices?
  
   Thank you so much
  
 


 



RE: [flexcoders] 5,000 record dataset needs love

2008-05-21 Thread Battershall, Jeff
Is there a reason why the entire dataset is needed all at once?  Some
sort of pagination scheme would help.
 
Jeff
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, May 21, 2008 3:40 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] 5,000 record dataset needs love



Are you certain the bottleneck is the processing as opposed to
the rendering?

Tracy

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Longson
Sent: Tuesday, May 20, 2008 10:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] 5,000 record dataset needs love

 

Dear Super Smart Flex Developer Mailing List,

We are currently having major issues processing a dataset that
is
essential for our skunkworks web site. The dataset is stored as
JSON,
consists of 5000 records, and has numerous strings. It is 1.4mb
uncompressed / 85kb compressed. Processing the data, which
involves
creating a custom object to hold it, currently takes a much as
60 seconds.

We are in the process of attacking this beast to make it run
faster,
and we are considering the following approaches:

1. Create an index for repetitive strings within the dataset to
avoid
repetitive strings because integer assignment is faster than
string
assignment (we assume).
2. Try substituting XML for JSON (no idea if this would be
faster or not).
3. Attempt to deliver an actionscript binary blob to the
application
from PHP (not even sure if that's possible... ASON?).
4. Create a compiled swf with our data postprocessed and attempt
to
access it (again, not sure if that's possible).
5. insert your solution here

Your expert, snarky, helpful advice is much appreciated,
Tom



 



[flexcoders] SWF Cache

2008-05-21 Thread Don Kerr
How can I prevent my Flex app swf from being cached? When I release a
new version, I want to ensure the user is using the latest swf.

Thanks,
Don



[flexcoders] Re: Odd syntax error

2008-05-21 Thread Kevin
It looks like it doesn't like the dashes in your parameters.  Everyone
seems to be moving away from dashes to underscores and camelcase (e.g.
- 'display_order' and 'displayOrder').

If you have to have dashes, then you'll most likely need to go to a
full AS3 request object (no mxml):

var urlVar : URLVariables = new URLVariables();
urlVar[created-at] = ;
urlVar[display-order] = ;
urlVar[ecms] = ecmsTI.text;
urlVar[name] = nameTI.text;
urlVar[job-id] = ;
urlVar[updated-at] = ;

myService.request = urlVar;

- Kevin

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

 I have this:
 
  
 
 mx:request xmlns=
 
 job
 
   created-at/created-at
 
   display-order/display-order
 
   ecms{ecmsTI.text}/ecms
 
   job-id/job-id
 
   name{nameTI.text}/name
 
   updated-at/updated-at
 
 /job
 
 /mx:request
 
  
 
 It says it's expecting colon before minus on the first line there. But
 should it even expect a colon when there's no namespace?
 
  
 
 Clinton Judy
 
 Web Developer
 
 Glenn O. Hawbaker, Inc.





[flexcoders] Re: Weird URLloader problem

2008-05-21 Thread Kevin Fauth
If you're just loading the SWF from the hard drive (double-clicking
it), then you need to tell the Flash Player that you'll allow the
flash file to run and access the net or external files.

Go to:
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html

And do Always Ask and go to the Edit Locations to add the new path
(or put your root drive in - not recommended, but do what you gotta).

That website will store the security settings into your local player.
If you plan on distributing the SWF on a CD/DVD or whatever, then
click the link on the page for Global security settings for content
creators

- Kevin



[flexcoders] How do I use URLLoader?

2008-05-21 Thread wild.katana
I have this code: var myXML:XML = new XML();
var XML_URL:String =
http://gdata.youtube.com/feeds/api/videos?vq=football+-soccerorderby=publishedstart-index=11max-results=10;;
var myXMLURL:URLRequest = new URLRequest(XML_URL);
var myLoader:URLLoader = new URLLoader(myXMLURL);
myLoader.addEventListener(complete, xmlLoaded);

function xmlLoaded(event:Event):void
{
myXML = XML(myLoader.data);
trace(Data loaded.);
}

And I want to read the XML file into a XML object in Flex, so that I
can access different elements of it easier. But it is throwing up two
errors when I try to compile it: 

1120: Access of undefined property myLoader.
1120: Access of undefined property xmlLoaded.   

What am I doing wrong? Do I need to import any special things first? I
am still pretty new to Flex...




Re: [flexcoders] 5,000 record dataset needs love

2008-05-21 Thread Doug McCune
Figure out where the real bottleneck is. I just did a demo app that loads
over 35,000 records from an uncompressed CSV file (over 2 meg). It's all
doable, you just have to figure out which part is slow. You basically have
these possibilities in terms of what's taking the most time:

   1. Loading
   2. Parsing
   3. Rendering

If the time is spent loading the file then simply compressing the file and
sending the compressed version across the wire might help. Using a binary
protocol like AMF will get you the best transfer speed though. I actually
like CSV files because they're small and easy to export from Excel.

If parsing the data is taking a long time then examine what you are doing as
you parse the data. Moving away from JSON will likely save time, since JSON
has to be decoded and processed even before your own processing happens. I'd
guess that XML would be faster than JSON, although I don't know that. If you
use AMF then you mostly get this step for free, since AMF decodes as native
AS3 objects (although that takes time, but it's fast). Assuming you're doing
the conversion to your VOs manually, a few tips:

   - the big thing here is make sure that your VOs do not use databinding.
   If your VOs are Bindable objects or have bindable properties you will want
   to remove those and control the binding manually. You can still have
   bindable properties, but you should control the bindings yourself.
   - Do not parse the records into an ArrayCollection. Parse them into an
   Array. If you use addItem() of an ArrayCollection then the collection
   dispatches an event every time you add an item. Instead, parse into a simple
   Array, and if you want to use an ArrayCollection in your app then create
   your AC after the parsing and set the source of the collection.
   - Do the parsing in batches. If you can split up the parsing then you can
   keep your app UI from locking up. I usually parse around 500 records at a
   time This won't speed up the processing (in fact, it will add to the total
   time a tiny bit), but this lets you show progress as your are parsing. I
   have my parsers dispatching progress events as they process batches and I
   show that progress in a progress bar.

And if the most proessing time is spent after you have your data loaded and
parsed then figure out what you're doing to render that data. Try to show
less items, or group the items, or something. I assume you don't need to
create 5,000 renderers all at once. Use the list controls to take advantage
of item renderers, etc.

In my example app that loads 35,000 records the loading of the 2 meg file
takes about 10 seconds. Looping over all the records and turning them into
AS3 value objects takes about 2-3 seconds. Then post-processing those
records to group them takes about 10 seconds (this loops over the entire
dataset and does some aggregation calculations). So all in all that takes
almost 30 seconds, but it's 35 thousand frickin records and during the
entire process the app is responsive and progress is shown for each step.

Doug

On Wed, May 21, 2008 at 12:51 PM, Battershall, Jeff 
[EMAIL PROTECTED] wrote:

Is there a reason why the entire dataset is needed all at once?  Some
 sort of pagination scheme would help.

 Jeff

  -Original Message-
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Tracy Spratt
 *Sent:* Wednesday, May 21, 2008 3:40 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] 5,000 record dataset needs love

  Are you certain the bottleneck is the processing as opposed to the
 rendering?

 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Tom Longson
 *Sent:* Tuesday, May 20, 2008 10:53 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] 5,000 record dataset needs love



 Dear Super Smart Flex Developer Mailing List,

 We are currently having major issues processing a dataset that is
 essential for our skunkworks web site. The dataset is stored as JSON,
 consists of 5000 records, and has numerous strings. It is 1.4mb
 uncompressed / 85kb compressed. Processing the data, which involves
 creating a custom object to hold it, currently takes a much as 60 seconds.

 We are in the process of attacking this beast to make it run faster,
 and we are considering the following approaches:

 1. Create an index for repetitive strings within the dataset to avoid
 repetitive strings because integer assignment is faster than string
 assignment (we assume).
 2. Try substituting XML for JSON (no idea if this would be faster or not).
 3. Attempt to deliver an actionscript binary blob to the application
 from PHP (not even sure if that's possible... ASON?).
 4. Create a compiled swf with our data postprocessed and attempt to
 access it (again, not sure if that's possible).
 5. insert your solution here

 Your expert, snarky, helpful advice is much appreciated,
 Tom

   



Re: [flexcoders] How do I use URLLoader?

2008-05-21 Thread Charlie Griefer
http://livedocs.adobe.com/flex/3/langref/flash/net/URLLoader.html

import flash.net.*;

I'm pretty new to Flex as well, but having the docs bookmarked has
come in very handy on a number of ocassions so far :)

http://livedocs.adobe.com/flex/3/langref/index.html


On Wed, May 21, 2008 at 1:37 PM, wild.katana [EMAIL PROTECTED] wrote:
 I have this code: var myXML:XML = new XML();
 var XML_URL:String =
 http://gdata.youtube.com/feeds/api/videos?vq=football+-soccerorderby=publishedstart-index=11max-results=10;;
 var myXMLURL:URLRequest = new URLRequest(XML_URL);
 var myLoader:URLLoader = new URLLoader(myXMLURL);
 myLoader.addEventListener(complete, xmlLoaded);

 function xmlLoaded(event:Event):void
 {
 myXML = XML(myLoader.data);
 trace(Data loaded.);
 }

 And I want to read the XML file into a XML object in Flex, so that I
 can access different elements of it easier. But it is throwing up two
 errors when I try to compile it:

 1120: Access of undefined property myLoader.
 1120: Access of undefined property xmlLoaded.

 What am I doing wrong? Do I need to import any special things first? I
 am still pretty new to Flex...

 



-- 
A byte walks into a bar and orders a pint. Bartender asks him What's
wrong? Byte says Parity error. Bartender nods and says Yeah, I
thought you looked a bit off.


RE: [flexcoders] How do I use URLLoader?

2008-05-21 Thread Tracy Spratt
myLoader needs to be an instance variable instead of a local one.

 

Maybe the sencond will go away when the xmlLoaded function can compile.

 

Consider HTTPService instead, it is a bit simpler to use.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Charlie Griefer
Sent: Wednesday, May 21, 2008 4:44 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How do I use URLLoader?

 

http://livedocs.adobe.com/flex/3/langref/flash/net/URLLoader.html
http://livedocs.adobe.com/flex/3/langref/flash/net/URLLoader.html 

import flash.net.*;

I'm pretty new to Flex as well, but having the docs bookmarked has
come in very handy on a number of ocassions so far :)

http://livedocs.adobe.com/flex/3/langref/index.html
http://livedocs.adobe.com/flex/3/langref/index.html 

On Wed, May 21, 2008 at 1:37 PM, wild.katana [EMAIL PROTECTED]
mailto:wild.katana%40gmail.com  wrote:
 I have this code: var myXML:XML = new XML();
 var XML_URL:String =

http://gdata.youtube.com/feeds/api/videos?vq=football+-soccerorderby=p
ublishedstart-index=11max-results=10
http://gdata.youtube.com/feeds/api/videos?vq=football+-soccerorderby=p
ublishedstart-index=11max-results=10 ;
 var myXMLURL:URLRequest = new URLRequest(XML_URL);
 var myLoader:URLLoader = new URLLoader(myXMLURL);
 myLoader.addEventListener(complete, xmlLoaded);

 function xmlLoaded(event:Event):void
 {
 myXML = XML(myLoader.data);
 trace(Data loaded.);
 }

 And I want to read the XML file into a XML object in Flex, so that I
 can access different elements of it easier. But it is throwing up two
 errors when I try to compile it:

 1120: Access of undefined property myLoader.
 1120: Access of undefined property xmlLoaded.

 What am I doing wrong? Do I need to import any special things first? I
 am still pretty new to Flex...

 

-- 
A byte walks into a bar and orders a pint. Bartender asks him What's
wrong? Byte says Parity error. Bartender nods and says Yeah, I
thought you looked a bit off.

 



[flexcoders] Re: How do I use URLLoader?

2008-05-21 Thread wild.katana
Hmm, I tried that but it didn't work... I previously tried these as
well but they didn't do it, nor did the import flash.net.*  ... hmmm

import flash.net.URLLoader;
import flash.net.URLRequest;




[flexcoders] Flex automation - AutoQuick sample application

2008-05-21 Thread twcrone70
Trying to get the AutoQuick automation sample application running on
my own and for some reason the automationManager is always null.

Line 355 in the AQAdapter.  Anyone know why this might not be getting
initialized properly?

Feel like I followed the instructions pretty well...

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


Thanks,

- Todd



[flexcoders] LabelFunction

2008-05-21 Thread markgoldin_2000
Would it be possible to use that function to change cell's font color 
based on a numeric value in the cell?

Thanks




RE: [flexcoders] Re: Is it possible to invoke a AMF call just before browser close?

2008-05-21 Thread Seth Hodgson
Also, watch out for the fact that BlazeDS automatically resets the session when 
it is invalidated, so if you do session.invalidate() within a remoteobject 
method on the server the current session will be invalidated but a new, empty 
session is automatically regenerated (i.e. request.getSession(true)). This is 
done in case there are any further messages in the current batch being 
processed that could potentially blow up during processing if there's a 
dependency on the session.

Using the trick Mete mentions below, you can call into your swf and invoke 
disconnectAll() on your channelSet. This will inform the server that the client 
is going away. The default behavior on the server in this scenario is to leave 
the current session in place in case the user has other apps/pages running that 
depend on it. But you can trigger a clean session invalidation (that will not 
create a new session) by adding the optional 'invalidate-session-on-disconnect' 
config setting to your endpoint. Eg.

channel-definition id=my-amf class=mx.messaging.channels.AMFChannel
endpoint 
url=http://{server.name}:{server.port}/{context.root}/messagebroker/amf; 
class=flex.messaging.endpoints.AMFEndpoint/
properties
  
invalidate-session-on-disconnecttrue/invalidate-session-on-disconnect 
/properties
/channel-definition

When you handle a click of your logout button, you could just invoke logout() 
on your channelSet which will invalidate your server session, clear out any 
authed Principal, and leave you in a state where the user could log back in if 
they wished. 

Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
meteatamel
Sent: Tuesday, May 20, 2008 5:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Is it possible to invoke a AMF call just before 
browser close?

I'd try onunload and onbeforeunload events to see they help. If that
doesn't help, I'd try putting up an Alert box before making the AMF
call to make sure AMF call is made before the browser is closed.

-Mete

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

 Hi,
 
 I am trying to invalidate a session by explicity invoke a AMF call 
 when the user click logout or closing the browswer.
 
 By ExternalInterface, the CLOSE event is capture within the FLEX 
 correctly. But by tracing in the debugger, if a AMF is invoke upon 
 this, the call did invoke but the AMF call is not sent to through the 
 FDS, I wonder if the application is being killed before the FDS 
 successfully sent the request.
 
 Is it not a good idea to invalidate a session in this way? Any 
 Flexpert suggestion? :
 
 Dan

 


  1   2   >