Re: [flexcoders] Re: Mouse Clicks' Queue when Button is Disabled

2009-02-17 Thread Haykel BEN JEMIA
The problem seems to be somewhere else and not in the Button. Run the
following application, then click on the button to disbale it, then click
again when it's disabled. For me it behaves as expected, I don't get any
Click events for the clicks I do while the button is disabled.

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

private var timer:Timer;

private function init():void
{
timer = new Timer(3000, 1);
timer.addEventListener(TimerEvent.TIMER,
timer_timerHandler);
}

private function logClick():void
{
logger.text += (new Date()).toTimeString() +  : Click\n;
timer.start();
btn.enabled = false;
}

private function timer_timerHandler(e:TimerEvent):void
{
logger.text += (new Date()).toTimeString() +  : Timer\n;
btn.enabled = true;
}
]]
/mx:Script

mx:Button id=btn label=Click Me click=logClick() /
mx:TextArea id=logger width=400 height=400 /
/mx:Application


Haykel Ben Jemia

Allmas
Web  RIA Development
http://www.allmas-tn.com




On Tue, Feb 17, 2009 at 8:33 AM, giladozer gilado...@yahoo.com wrote:

   Thanks Alex for the quick response.
 However, the button is supposed to turn enabled after the result is
 returned.
 The problem is that while it looks like the button is disabled -
 clicking on it results in entering to the function which listens to it.
 Moreover, I logged/traced the time the the button turns back to enable
 + the time entering to the function that listens to it -
 it's exactly the same - by the millisecond.
 meaning - i can't event log the time the button was clicked - cause
 the mouse click event is only dispatched after the button turned enable.

 one last thing - I found a workaround by removing the eventListener
 when the button is disabled , and adding it back with a timer that
 starts counting after it turned enabled in ticks of 100ms. ( the the
 clicks are not listened in that time space of when the button turned
 enable and 100ms after that).
 The thing is that i don't want to use a timer... it's a very ugly
 solution.

 Thanks again,
 Gilad

  



Re: [flexcoders] Re: filter arraycollection with checkbox acting wired

2009-02-17 Thread Haykel BEN JEMIA
Can you click on the checkbox more than once (let's say 5 times) and resend
the output?

Haykel Ben Jemia

Allmas
Web  RIA Development
http://www.allmas-tn.com




On Tue, Feb 17, 2009 at 8:57 AM, johndoematrix johndoemat...@yahoo.comwrote:

   when i replace the code and run the app, i get the following output
 when i click the pizza_ckb checkbox and all the info disappears
 [SWF] /IE_V1/bin/portal_V1-debug.swf - 2,109,478 bytes after
 decompression
 true

  



[flexcoders] Re: filter arraycollection with checkbox acting wired

2009-02-17 Thread johndoematrix
sorry i had forgotten to trace the item.pool. anyhow when i do that
and i click the check box once i get
true
false
true
false
true
true
when i click five times i get
true
false
true
false
true
true
false
false
true
false
true
true
true
false
true
false
true
true
false
false
true
false
true
true
true
false
true
false
true
true



Re: [flexcoders] Re: filter arraycollection with checkbox acting wired

2009-02-17 Thread Haykel BEN JEMIA
It seems like your data is OK. So I did a test application and I figured out
that the filter function is wrong. It should only do the test if the
checkbox is selected, otherwise it should always return true because in this
case you want display all items. So here is my working test app, I hope you
can use it to make your code work:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical

mx:Script
![CDATA[
private var pizzaSelected:Boolean = false;

private function pizzaFilter():void
{
pizzaSelected = pizza_ckb.selected;
pizzaAr.refresh();
}

private function myFilterFunction(item:Object):Boolean
{
if (pizzaSelected)
return (item.pizza == pizzaSelected);
else
return true;
}
]]
/mx:Script

mx:ArrayCollection id=pizzaAr filterFunction=myFilterFunction
mx:Object label='Pizza 1' pizza='true' /
mx:Object label='Not a pizza 1' pizza='false' /
mx:Object label='Pizza 2' pizza='true' /
mx:Object label='Pizza 3' pizza='true' /
mx:Object label='Not a pizza 2' pizza='false' /
/mx:ArrayCollection

mx:CheckBox id=pizza_ckb change=pizzaFilter() /
mx:List dataProvider={pizzaAr} labelField=label /
/mx:Application


Haykel Ben Jemia

Allmas
Web  RIA Development
http://www.allmas-tn.com




On Tue, Feb 17, 2009 at 9:09 AM, johndoematrix johndoemat...@yahoo.comwrote:

   sorry i had forgotten to trace the item.pool. anyhow when i do that
 and i click the check box once i get
 true
 false
 true
 false
 true
 true
 when i click five times i get
 true
 false
 true
 false
 true
 true
 false
 false
 true
 false
 true
 true
 true
 false
 true
 false
 true
 true
 false
 false
 true
 false
 true
 true
 true
 false
 true
 false
 true
 true

  



[flexcoders] Re: filter arraycollection with checkbox acting wired

2009-02-17 Thread johndoematrix
Thanks Ben will let you know if it was successful, but am confident
that this will work given your explanation.



[flexcoders] Re: Mouse Clicks' Queue when Button is Disabled

2009-02-17 Thread giladozer
Hi Haykel and thanks for the quick response.

I guess I am missing something critical here... 
I'll investigate this more deeply... maybe it's a matter of
milliseconds where the button is in the process of returning enabled
and that's when the click are responsive again.

Anyways... Thank you guys.





[flexcoders] Re: DYNAMIC actionscript child layout.

2009-02-17 Thread sunild999999
Um, I think you just need to think about this a little differently.

It's a percent value, so by definition it can only be 0-100.

If you want a child component to be half the width of it's parent container, 
then you set 
the child component's width to be 50%... just like you would do in HTML.

If that's not making sense, post some sample code and perhaps I or someone else 
can 
show you how to restructure it to use percent widths/heights.

Sunil



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

 Using the percentWidth and percentHeight, how can I use values other than 
 0-100 ?
 Can I use the width of a component divided by two???
 testlayout.width/2
 How can I accomplish this?
 
 Thanks.
 
 -David





[flexcoders] Re: perl and AMF

2009-02-17 Thread sunild999999
I haven't used this but there is a Perl AMF library:

http://www.simonf.com/flap/

Perhaps this is the ancient implementation you're referring to.

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

 Is anyone using perl as a backend for remoting?
 
 I can't find a complete implementation that isn't fairly ancient, but  
 perhaps i'm looking in the wrong places...
 
 Guy





[flexcoders] Flow Chart Modelling Tool

2009-02-17 Thread akn_carnage
Hi everyone,

I would like to know if there exists any Flow Chart creation or
Diagramming component either Commercial or Open Source for Flex 3?

We need to create an IDE like application to drag and drop various
components and connect them using lines etc.

I heard of YFiles Flex but that is too expensive. Any other components
similar to that?

Thanks,
Anil



RE: [flexcoders] Presenting images with links to new Browser location

2009-02-17 Thread Tracy Spratt
Image does dispatch a click event.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of brucewhealton
Sent: Monday, February 16, 2009 11:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Presenting images with links to new Browser
location

 

Hello all,
I was looking at the navigateToURL method and wanted to see
about using an image as a clickable link to a website. The image
component does not have an onClick property, so it isn't possible to
make an image into an active link to a website. Is there a way to
accomplish this? Maybe by putting an image inside a button?
Thanks,
Bruce





[flexcoders] In AIR Application fonts getting distort

2009-02-17 Thread Ashish Verma
Hello All,
Facing a strange problem. Actually I made an application using Flex - 3.0
later I build it Flex SDK 3.2 now on MAC system the font is getting distort
what is wrong with application. I can see only the font with bold weight
getting distort.


Please advice me.



Best,
Ashish


Re: [flexcoders] Re: Flash 10 on mobile is a go

2009-02-17 Thread Tom Chiverton
On Monday 16 Feb 2009, app.developer wrote:
 A big THANK YOU to Adobe and the necessary mobile vendors that made
 this happen.

Indeed.
And I'm even more excited to know that the new v10 Player can run on these 
relatively CPU-poor devices, which hopefully means an updated Player for the 
Wii is possible too.

-- 
Tom Chiverton
Helping to elementarily compete integrated virtual low-risk content



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

Re: [flexcoders] Components needed

2009-02-17 Thread Haykel BEN JEMIA
Some links:

http://www.quietlyscheming.com/blog/components/flexbook/
http://dougmccune.com/blog/2007/11/19/flex-coverflow-performance-improvement-flex-carousel-component-and-vertical-coverflow/
http://www.thetechlabs.com/3d/simulating-piclens-with-flex-and-away3d-%E2%80%93-part-1/(there
are also other interesting articles on this site)

Haykel Ben Jemia

Allmas
Web  RIA Development
http://www.allmas-tn.com




On Tue, Feb 17, 2009 at 5:27 AM, brucewhealton
br...@futurewavedesigns.comwrote:

   Hello all,
 I was wondering if anyone could recommend some good resources
 for components, be they open-source, free, or commercial. I was
 reading Jack Herrington's book Flex 3: Component Solutions and I
 found a number of interesting components discussed. I'm looking at
 the ones for presenting images, or photo galleries. In particular I
 found these sites useful, afcomponents.com, fxcomponents.com and
 digicrafts.com to be useful and as having some great components.
 I'm doing a site for an Art Gallery. I wanted to find a good
 component for displaying photos that would look like presenting photos
 of art on a virtual wall, as it were. Can anyone recommend any good
 sites and components. In particular, if there are other great
 open-source components that would be great.
 I found a few Photo book, flexbook type components also. I
 thought there was a freeware, open-source version of this also.
 Thanks,
 Bruce

  



Re: [flexcoders] Re: perl and AMF

2009-02-17 Thread Guy Morton

Yes, that project was last updated over 4 years ago.

I'm not sure I want to invest time in developing a solution based on  
something that's not being actively developed (and that's assuming it  
even works with modern flash players).


Guy


On 17/02/2009, at 8:00 PM, sunild99 wrote:


I haven't used this but there is a Perl AMF library:

http://www.simonf.com/flap/

Perhaps this is the ancient implementation you're referring to.

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

 Is anyone using perl as a backend for remoting?

 I can't find a complete implementation that isn't fairly ancient,  
but

 perhaps i'm looking in the wrong places...

 Guy








[flexcoders] AMF instead of XML over http?

2009-02-17 Thread Guy Morton
Is it possible to simply transfer data over http that has been encoded  
in AMF format, ie to bypass all the other remoting stuff and just use  
AMF as one might use XML? I've been looking at the docs and online and  
all the docs seem to assume you want the whole remoting thing with a  
gateway etc. I want to keep using http and just change the data format  
to AMF3. Is this possible? If so, is there a right way to do it, and  
can anyone point me in the right direction?

TIA

Guy


Re: Re: [flexcoders] In AIR Application fonts getting distort

2009-02-17 Thread verma . lucky

Yes I did it but still not the font is distorting.

Best,
Ashish


Did you clean the project after migrating to Flex 3.2?
Haykel Ben Jemia

Allmas
Web  RIA Development
http://www.allmas-tn.com

On Tue, Feb 17, 2009 at 10:52 AM, Ashish Verma verma.lu...@gmail.com  

wrote:


Hello All,

Facing a strange problem. Actually I made an application using Flex - 3.0  
later I build it Flex SDK 3.2 now on MAC system the font is getting distort  
what is wrong with application. I can see only the font with bold weight  
getting distort.


Please advice me.






Best,
Ashish


Re: Re: [flexcoders] In AIR Application fonts getting distort

2009-02-17 Thread Johannes Nel
embed the font. its air after all so file size is not a concern

On Tue, Feb 17, 2009 at 12:55 PM, verma.lu...@gmail.com wrote:

   Yes I did it but still not the font is distorting.

 Best,
 Ashish
 
  Did you clean the project after migrating to Flex 3.2?
  Haykel Ben Jemia
 
  Allmas
  Web RIA Development
  http://www.allmas-tn.com
 
  On Tue, Feb 17, 2009 at 10:52 AM, Ashish Verma verma.lu...@gmail.com
 wrote:
 
  Hello All,
 
  Facing a strange problem. Actually I made an application using Flex - 3.0
 later I build it Flex SDK 3.2 now on MAC system the font is getting distort
 what is wrong with application. I can see only the font with bold weight
 getting distort.
 
  Please advice me.
 
 
 
 
 
 
  Best,
  Ashish
  




-- 
j:pn
\\no comment


Re: [flexcoders] AMF instead of XML over http?

2009-02-17 Thread Haykel BEN JEMIA
http://www.roboncode.com/articles/144

Haykel Ben Jemia

Allmas
Web  RIA Development
http://www.allmas-tn.com




On Tue, Feb 17, 2009 at 11:45 AM, Guy Morton g...@alchemy.com.au wrote:

   Is it possible to simply transfer data over http that has been encoded
 in AMF format, ie to bypass all the other remoting stuff and just use
 AMF as one might use XML? I've been looking at the docs and online and
 all the docs seem to assume you want the whole remoting thing with a
 gateway etc. I want to keep using http and just change the data format
 to AMF3. Is this possible? If so, is there a right way to do it, and
 can anyone point me in the right direction?

 TIA

 Guy
  



Re: [flexcoders] AMF instead of XML over http?

2009-02-17 Thread Johannes Nel
you mean build an swf and download that and get the compiled in data from
that

On Tue, Feb 17, 2009 at 12:45 PM, Guy Morton g...@alchemy.com.au wrote:

   Is it possible to simply transfer data over http that has been encoded
 in AMF format, ie to bypass all the other remoting stuff and just use
 AMF as one might use XML? I've been looking at the docs and online and
 all the docs seem to assume you want the whole remoting thing with a
 gateway etc. I want to keep using http and just change the data format
 to AMF3. Is this possible? If so, is there a right way to do it, and
 can anyone point me in the right direction?

 TIA

 Guy
  




-- 
j:pn
\\no comment


Re: Re: Re: [flexcoders] In AIR Application fonts getting distort

2009-02-17 Thread verma . lucky

Hi Jon,

I am not using any extra font in my AIR app but only simple system font  
that flash palyer support. previously it was working fine but now it's  
distorting only on MAC machine not for windows.


what could be the possible reason. is it need Flash Player 10.


Best,
Ashish

On Feb 17, 2009 4:30pm, Johannes Nel johannes@gmail.com wrote:

embed the font. its air after all so file size is not a concern

On Tue, Feb 17, 2009 at 12:55 PM, verma.lu...@gmail.com wrote:
Yes I did it but still not the font is distorting.



Best,
Ashish





 Did you clean the project after migrating to Flex 3.2?


 Haykel Ben Jemia





 Allmas


 Web RIA Development


 http://www.allmas-tn.com





 On Tue, Feb 17, 2009 at 10:52 AM, Ashish Verma verma.lu...@gmail.com  

wrote:






 Hello All,





 Facing a strange problem. Actually I made an application using Flex -  
3.0 later I build it Flex SDK 3.2 now on MAC system the font is getting  
distort what is wrong with application. I can see only the font with bold  
weight getting distort.






 Please advice me.


[flexcoders] Re: Flow Chart Modelling Tool

2009-02-17 Thread kosir.milan
You can try Diagrammer or Visualizer from KapLab 
(http://lab.kapit.fr/), their components are all free and good 
quality.
Milan


--- In flexcoders@yahoogroups.com, akn_carnage akn_carn...@... 
wrote:

 Hi everyone,
 
 I would like to know if there exists any Flow Chart creation or
 Diagramming component either Commercial or Open Source for Flex 3?
 
 We need to create an IDE like application to drag and drop various
 components and connect them using lines etc.
 
 I heard of YFiles Flex but that is too expensive. Any other 
components
 similar to that?
 
 Thanks,
 Anil






Re: [flexcoders] In AIR Application fonts getting distort

2009-02-17 Thread Haykel BEN JEMIA
Did you clean the project after migrating to Flex 3.2?

Haykel Ben Jemia

Allmas
Web  RIA Development
http://www.allmas-tn.com




On Tue, Feb 17, 2009 at 10:52 AM, Ashish Verma verma.lu...@gmail.comwrote:

   Hello All,

 Facing a strange problem. Actually I made an application using Flex - 3.0
 later I build it Flex SDK 3.2 now on MAC system the font is getting distort
 what is wrong with application. I can see only the font with bold weight
 getting distort.


 Please advice me.



 Best,
 Ashish
  



Re: Re: Re: Re: [flexcoders] In AIR Application fonts getting distort

2009-02-17 Thread verma . lucky

Hello All,

I have downloaded the latest flash player 10 for MAC and than tried but no  
luck.


Please advice.

On Feb 17, 2009 4:39pm, verma.lu...@gmail.com wrote:

Hi Jon,

I am not using any extra font in my AIR app but only simple system font  
that flash palyer support. previously it was working fine but now it's  
distorting only on MAC machine not for windows.



what could be the possible reason. is it need Flash Player 10.



Best,
Ashish

On Feb 17, 2009 4:30pm, Johannes Nel johannes@gmail.com wrote:



 embed the font. its air after all so file size is not a concern





 On Tue, Feb 17, 2009 at 12:55 PM, verma.lu...@gmail.com wrote:


 Yes I did it but still not the font is distorting.

 Best,


 Ashish

  Did you clean the project after migrating to Flex 3.2?
  Haykel Ben Jemia

  On Tue, Feb 17, 2009 at 10:52 AM, Ashish Verma verma.lu...@gmail.com  

wrote:

  Hello All,
  Facing a strange problem. Actually I made an application using Flex -  
3.0 later I build it Flex SDK 3.2 now on MAC system the font is getting  
distort what is wrong with application. I can see only the font with bold  
weight getting distort.


  Please advice me.


Re: [flexcoders] AMF instead of XML over http?

2009-02-17 Thread Peter Hall
ByteArray supports readObject() and writeObject() which read and write
objects using AMF. The ByteArray can be written to disc as a file, or
sent to a server as a variable (you may have to 7bit- or base64-encode
it). Once you have this file, you can load it into your application
using any means you like (HTTP/GET, Socket, FileReference,...).

Peter


On Tue, Feb 17, 2009 at 11:05 AM, Johannes Nel johannes@gmail.com wrote:
 you mean build an swf and download that and get the compiled in data from
 that

 On Tue, Feb 17, 2009 at 12:45 PM, Guy Morton g...@alchemy.com.au wrote:

 Is it possible to simply transfer data over http that has been encoded
 in AMF format, ie to bypass all the other remoting stuff and just use
 AMF as one might use XML? I've been looking at the docs and online and
 all the docs seem to assume you want the whole remoting thing with a
 gateway etc. I want to keep using http and just change the data format
 to AMF3. Is this possible? If so, is there a right way to do it, and
 can anyone point me in the right direction?

 TIA

 Guy



 --
 j:pn
 \\no comment
 


Re: [flexcoders] AMF instead of XML over http?

2009-02-17 Thread Guy Morton

Thank you...that's exactly what I was missing!


On 17/02/2009, at 10:05 PM, Haykel BEN JEMIA wrote:



http://www.roboncode.com/articles/144

Haykel Ben Jemia

Allmas
Web  RIA Development
http://www.allmas-tn.com




On Tue, Feb 17, 2009 at 11:45 AM, Guy Morton g...@alchemy.com.au  
wrote:

Is it possible to simply transfer data over http that has been encoded
in AMF format, ie to bypass all the other remoting stuff and just use
AMF as one might use XML? I've been looking at the docs and online and
all the docs seem to assume you want the whole remoting thing with a
gateway etc. I want to keep using http and just change the data format
to AMF3. Is this possible? If so, is there a right way to do it, and
can anyone point me in the right direction?

TIA

Guy








Re: [flexcoders] AMF instead of XML over http?

2009-02-17 Thread Guy Morton
No, I just meant to encode my data in AMF format instead of XML for  
faster/more compact transfer over http.


On 17/02/2009, at 10:05 PM, Johannes Nel wrote:

you mean build an swf and download that and get the compiled in  
data from that



On Tue, Feb 17, 2009 at 12:45 PM, Guy Morton g...@alchemy.com.au  
wrote:

Is it possible to simply transfer data over http that has been encoded
in AMF format, ie to bypass all the other remoting stuff and just use
AMF as one might use XML? I've been looking at the docs and online and
all the docs seem to assume you want the whole remoting thing with a
gateway etc. I want to keep using http and just change the data format
to AMF3. Is this possible? If so, is there a right way to do it, and
can anyone point me in the right direction?

TIA

Guy




--
j:pn
\\no comment






Re: [flexcoders] AMF instead of XML over http?

2009-02-17 Thread Guy Morton
Yes, thanks, I knew the tools were all there, just didn't know how to  
put it all together. The post Haykel Ben Jemia sent made it all clear.


On 17/02/2009, at 10:38 PM, Peter Hall wrote:


ByteArray supports readObject() and writeObject() which read and write
objects using AMF. The ByteArray can be written to disc as a file, or
sent to a server as a variable (you may have to 7bit- or base64-encode
it). Once you have this file, you can load it into your application
using any means you like (HTTP/GET, Socket, FileReference,...).

Peter

On Tue, Feb 17, 2009 at 11:05 AM, Johannes Nel  
johannes@gmail.com wrote:
 you mean build an swf and download that and get the compiled in  
data from

 that

 On Tue, Feb 17, 2009 at 12:45 PM, Guy Morton g...@alchemy.com.au  
wrote:


 Is it possible to simply transfer data over http that has been  
encoded
 in AMF format, ie to bypass all the other remoting stuff and just  
use
 AMF as one might use XML? I've been looking at the docs and  
online and
 all the docs seem to assume you want the whole remoting thing  
with a
 gateway etc. I want to keep using http and just change the data  
format
 to AMF3. Is this possible? If so, is there a right way to do it,  
and

 can anyone point me in the right direction?

 TIA

 Guy



 --
 j:pn
 \\no comment







[flexcoders] ImageSnapshot sandbox problem

2009-02-17 Thread Guy Morton
Hi all

I'm using Virtual Earth and the UMap component (afcomponents.com) to  
display maps in my app. I want to use ImageSnapshot to capture the map  
(and my overlays) and allow the user to save it to disk etc. However,  
when I run the code on the server I get the dreaded sandbox issue:

SecurityError: Error #2122: Security sandbox violation:  
BitmapData.draw: http://www.blergh.com/bin/myapp.swf cannot access 
http://us.maps1.yimg.com/us.tile.maps.yimg.com/tl?v=4.2md=2x=0y=0z=2r=1 
. A policy file is required, but the checkPolicyFile flag was not set  
when this media was loaded.
at flash.display::BitmapData/draw()
at mx.graphics::ImageSnapshot$/captureBitmapData()
at mx.graphics::ImageSnapshot$/captureImage()
at com.blergh.control::Map/saveSnapshot()
at com.blergh.view::SnapshotDialogue/generate()
at com.blergh.view::SnapshotDialogue/___SnapshotDialogue_Button2_click()

Now, first of all I don't really understand why if I can LOAD the maps  
in the first place (which I can) I'm not then able to copy them.

Secondly, MS doesn't put crossdomain.xml files on it's tile servers,  
so does that mean I'm up the proverbial creek without a paddle?

Guy


Re: [flexcoders] AMF instead of XML over http?

2009-02-17 Thread Anirudh Sasikumar
Hi,

This is an excellent question. AMF has lots of potential as a data format.

Peter is right. You can leverage ByteArray. I have a Flex component
that internally does this (but it only expects the result from the
HTTP call to be in AMF, you'd need to manually use
ByteArray.writeObject() to encode):

HTTPAMFService - http://code.google.com/p/fxstruts/downloads/list

(its part of fxstruts where I am treating AMF only as a data format)

Cheers,

Anirudh Sasikumar
http://anirudhs.chaosnet.org/
Q  A saved to http://sandboxviolation.appspot.com/questions/9439

On Tue, Feb 17, 2009 at 5:08 PM, Peter Hall peterj...@gmail.com wrote:
 ByteArray supports readObject() and writeObject() which read and write
 objects using AMF. The ByteArray can be written to disc as a file, or
 sent to a server as a variable (you may have to 7bit- or base64-encode
 it). Once you have this file, you can load it into your application
 using any means you like (HTTP/GET, Socket, FileReference,...).

 Peter


[flexcoders] Re: filter arraycollection with checkbox acting wired

2009-02-17 Thread johndoematrix
hi Ben when i tried the solution you gave, it worked very very well.
but this is when am using a single criteria. when i try to add it to a
filter function that filter's based on more than one criteria that's
when there come's a problem.



[flexcoders] Ridiculous Thoughts...

2009-02-17 Thread nathanleewei
Have you developed Commands/Front Controller of Cairngorm?
Have you developed Event Map of Mate?
Have you thought about a much nicer Framework?

Here is my Ridiculous Thoughts of Open Infrastructure Solution for 
Flex Application Architecture.

http://code.google.com/p/flexrock/

Any ideas or suggestions?



Re: [flexcoders] Components needed

2009-02-17 Thread Jeffry Houser


Don't forget about FlexLib ( flexlib.net ) as a source for components. 

Although I don't know a commercial component that would meet Bruce's 
current need, there are commercial components vendors out there:


http://www.flextras.com?c=104  ( Me ) and Drumbeatinsight.com are two 
that come to mind.



Haykel BEN JEMIA wrote:

Some links:

http://www.quietlyscheming.com/blog/components/flexbook/
http://dougmccune.com/blog/2007/11/19/flex-coverflow-performance-improvement-flex-carousel-component-and-vertical-coverflow/
http://www.thetechlabs.com/3d/simulating-piclens-with-flex-and-away3d-%E2%80%93-part-1/ 
(there are also other interesting articles on this site)


Haykel Ben Jemia

Allmas
Web  RIA Development
http://www.allmas-tn.com




On Tue, Feb 17, 2009 at 5:27 AM, brucewhealton 
br...@futurewavedesigns.com mailto:br...@futurewavedesigns.com wrote:


Hello all,
I was wondering if anyone could recommend some good resources
for components, be they open-source, free, or commercial. I was
reading Jack Herrington's book Flex 3: Component Solutions and I
found a number of interesting components discussed. I'm looking at
the ones for presenting images, or photo galleries. In particular I
found these sites useful, afcomponents.com
http://afcomponents.com, fxcomponents.com
http://fxcomponents.com and
digicrafts.com http://digicrafts.com to be useful and as having
some great components.
I'm doing a site for an Art Gallery. I wanted to find a good
component for displaying photos that would look like presenting photos
of art on a virtual wall, as it were. Can anyone recommend any good
sites and components. In particular, if there are other great
open-source components that would be great.
I found a few Photo book, flexbook type components also. I
thought there was a freeware, open-source version of this also.
Thanks,
Bruce







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



RE: [flexcoders] default skin in flex 3 component

2009-02-17 Thread Stephen Gilson
The doc on skinning is located here: 
http://livedocs.adobe.com/flex/3/html/skinning_1.html

Was that helpful?

Stephen

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of gwangdesign
Sent: Tuesday, February 17, 2009 12:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] default skin in flex 3 component


Hi,

I am trying to define the default skin (which is ProgrammaticSkin for
now) for my custom UIComponent. I would like to provide my own
programmaticSkin (hm.controls.myUICompClasses.BackdropSkin) as
default; and I am doing it in my UIComponent's style metadata, like so:

[Style(name=backdropSkin,
type=hm.controls.myUICompClasses.BackdropSkin, inherit=yes)]
...
protected var _backdrop:Class;
...

Is this the right way? What type should my _backdrop be? Or do I need
to provide a CSS anyhow? Or classConstruc()???

When I try to get the style using:

var backdropSkin:Class = getStyle(backdropSkin);

I get type of Object instead of Class.

I appreciate any lead while still poking around the flex
documentation/sdk code! Sorry everything looks a bit blurred right
now8) Good night!

inline: image001.jpginline: image002.jpg

[flexcoders] Re: Components needed

2009-02-17 Thread oneworld95
Google Code has a ton of Flex components; just run this search:
http://tinyurl.com/c2kkmw

It can take a bit of digging, but lots of free components there.

- Alex C

--- In flexcoders@yahoogroups.com, Jeffry Houser j...@... wrote:

 
  Don't forget about FlexLib ( flexlib.net ) as a source for components. 
 
  Although I don't know a commercial component that would meet Bruce's 
 current need, there are commercial components vendors out there:
 
 http://www.flextras.com?c=104  ( Me ) and Drumbeatinsight.com are two 
 that come to mind.
 
 
 Haykel BEN JEMIA wrote:
  Some links:
 
  http://www.quietlyscheming.com/blog/components/flexbook/
 
http://dougmccune.com/blog/2007/11/19/flex-coverflow-performance-improvement-flex-carousel-component-and-vertical-coverflow/
 
http://www.thetechlabs.com/3d/simulating-piclens-with-flex-and-away3d-%E2%80%93-part-1/

  (there are also other interesting articles on this site)
 
  Haykel Ben Jemia
 
  Allmas
  Web  RIA Development
  http://www.allmas-tn.com
 
 
 
 
  On Tue, Feb 17, 2009 at 5:27 AM, brucewhealton 
  br...@... mailto:br...@... wrote:
 
  Hello all,
  I was wondering if anyone could recommend some good resources
  for components, be they open-source, free, or commercial. I was
  reading Jack Herrington's book Flex 3: Component Solutions and I
  found a number of interesting components discussed. I'm looking at
  the ones for presenting images, or photo galleries. In
particular I
  found these sites useful, afcomponents.com
  http://afcomponents.com, fxcomponents.com
  http://fxcomponents.com and
  digicrafts.com http://digicrafts.com to be useful and as having
  some great components.
  I'm doing a site for an Art Gallery. I wanted to find a good
  component for displaying photos that would look like
presenting photos
  of art on a virtual wall, as it were. Can anyone recommend any
good
  sites and components. In particular, if there are other great
  open-source components that would be great.
  I found a few Photo book, flexbook type components also. I
  thought there was a freeware, open-source version of this also.
  Thanks,
  Bruce
 
 
 
 
  
 
 -- 
 Jeffry Houser, Technical Entrepreneur
 Adobe Community Expert: http://tinyurl.com/684b5h
 http://www.twitter.com/reboog711  | Phone: 203-379-0773
 --
 Easy to use Interface Components for Flex Developers
 http://www.flextras.com?c=104
 --
 http://www.theflexshow.com
 http://www.jeffryhouser.com
 --
 Part of the DotComIt Brain Trust





[flexcoders] writing data to SQL database

2009-02-17 Thread Danny Buetow
 

Greetings All,

 

Yes, I am new to FLEX, as my question will surely show. I am making a simple
CRUD app designed to administer my table of users. I used the ColdFusion
wizard and created a Master/Detail set. The query is simple and tests out
fine, however, when I Run the application and test it live, I am able to
edit and delete records, yet I am not able to add a record. I receive no
error and when running in debug mode, I get no breaks. I have tried to
re-create the app and have googled my question in hopes of finding other
newbie's with the same question. I have looked through all of the CFC's
and see nothing glaring that would raise my lightly trained eyebrow.

 

Any ideas why I would not be able to add a record?

 

Thank You 

 

Danny Buetow

President and LOC

DMB Services

da...@dmbservices.com

804.918.1027

 

 

DMB Services accepts no liability for the content of this email, or for the
consequences of any actions taken on the basis of the information provided,
unless that information is subsequently confirmed in writing. Any views or
opinions presented in this email are solely those of the author and do not
necessarily represent those of DMB Services. WARNING: Computer viruses can
be transmitted via email. The recipient should check this email and any
attachments for the presence of viruses. DMB Services accepts no liability
for any damage caused by any virus transmitted by this email. 



IMPORTANT: This email is intended for the use of the individual addressee(s)
named above and may contain information that is confidential, privileged or
unsuitable for overly sensitive persons with low self-esteem, no sense of
humour or irrational religious beliefs. If you are not the intended
recipient, any dissemination, distribution or copying of this email is not
authorised (either explicitly or implicitly) and constitutes an irritating
social faux pas. 

Unless the word
http://www.it.rit.edu/~jxs/definitions/absquatulation.html absquatulation
has been used in its correct context somewhere other than in this warning,
it does not have any legal or grammatical use and may be ignored. No animals
were harmed in the transmission of this email, although the kelpie next door
is living on borrowed time, let me tell you. Those of you with an
overwhelming fear of the unknown will be gratified to learn that there is no
hidden message revealed by reading this warning backwards, so just ignore
that Alert Notice from Microsoft. 

However, by pouring a complete circle of salt around yourself and your
computer you can ensure that no harm befalls you and your pets. If you have
received this email in error, please add some nutmeg and egg whites, whisk
and place in a warm oven for 40 minutes. 


***

 

 

attachment: image001.gif


Re: [flexcoders] Re: DYNAMIC actionscript child layout.

2009-02-17 Thread Nathaniel Skiba
Percent width and height are based on the percent of their parent
container's size. Thus, with your example, you'd want:

var graphLayout:Canvas = new Canvas();
graphLayout.percentWidth=50;
graphLayout.percentHeight=50;
testlayout.addChild(graphLayout);   

You could also use constraints, although you have to use a special
method for those, and percents seems to be more along the lines of what
you're looking for anyway.

~Nate


[flexcoders] Bones and inverse kinematics on FLEX : where to find IKManager ?

2009-02-17 Thread yarekc
Hello
I have created a SWF with bones which works good.
When I do import it into Flex 4
mx:Image src=bones.swf

It is displayed, but bones are nort active.
I read that you need to import

import fl.ik.*

But FLEX does have theses classes !
Any way to have IK inside a FLEX application ?

regards





Re: [flexcoders] Image-swfLoader-memory

2009-02-17 Thread Alain Thibodeau
Excellent, thanks Alex, great help!


 




From: Alex Harui aha...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Monday, February 16, 2009 4:21:14 PM
Subject: RE: [flexcoders] Image-swfLoader-memory


There’s a profiler tutorial on my blog.  However, in general, the number of 
instances of SWFLoader, Bitmap and BitmapData should not keep going up after 
you force garbage collection.
 
Several people say that if it is the browser, especially IE, you can minimize 
and restore IE and the memory will be reclaimed.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs. adobe.com/ aharui
 
From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of Alain Thibodeau
Sent: Monday, February 16, 2009 9:00 AM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Image-swfLoader-memory
 
Thanks Alex,
 
So there shouldn't be any issues with the way I set the swfLoader in Cairngorn 
then? 
 
I did test with the profiler and unless I am blind I don't see it releasing 
memory, however, I am not an expert with it. When I do test with the browser 
(IE), I see the memory go down then back up, in the long run it always goes 
much higher and doubles or triples from original. I am not sure at this point 
if I should worry about it or code it a different way. If it is the brower, 
then I gather there isn't much I can do...
 
Thanks again.
 



From:Alex Harui aha...@adobe. com
To: flexcod...@yahoogro ups.com flexcod...@yahoogro ups.com
Sent: Monday, February 16, 2009 11:43:24 AM
Subject: RE: [flexcoders] Image-swfLoader-memory
Use the Profiler to see if you really have such a problem..  We have seen 
issues with some browsers not releasing memory even though Flex has.
 
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs. adobe.com/ aharui
 
From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of thibodeau.alain
Sent: Monday, February 16, 2009 6:00 AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Image-swfLoader-memory
 
Hi all,
I am building a photo library using tileList and the mx:Image. I do 
notice that the memory does grow the more images I load. The mx:Image 
is bound to my modelLocator, so I am not actually unloading the image 
per say, I am just changing the source with databinding. I did assume 
however that it would unload the image before loading the next...That 
said, I've also tested to unload the image manually. 

I've read various conflicting posts on swfLoader and how it doesn't 
actually unload loaded swf's or images. I've also read that in player 
10+ it actually unloads swf's properly...Can someone please tell me 
what simply is the truth? And if there is an issue with the swfLoader, 
than what would be a good workaround?

Thanks in advance, I appreciate it..
 



  

Re: [flexcoders] [Req] What do you (love|hate|wish for) about (mx.*|Cairngorm|PureMVC|Mate|Prana|BlazeDS)?

2009-02-17 Thread alberto.acevedo

Josh,

I'm using Flex with Mate in the client side, Spring + BlazeDS + iBatis in
the server side. I was using Cairngorm but the use of Cairngorm events would
force other teams developing modules to also use Cairngorm. The Mate
framework is not intrusive and it uses Flash events so other teams have the
liberty to choose any framework that could handle flash events. I'm still
using the command and delegate patterns like in Cairngorm but with Mate. I'm
a very practical, tool agnostic, and problem solver developer. I use
whatever helps me to solve problems quickly and in an easy and structured
manner. 

Regards,

Alberto Acevedco


Josh McDonald-5 wrote:
 
 Hey guys, I have a small request:
 
 I'd like to know what grinds your gears, and what makes you smile about
 the
 Flex library, and about whatever other libraries you use on a daily basis
 to
 get your work done. If you have time, please post here or to me off-list a
 quick summary of your thoughts, some bullet points, or even a link to
 somebody else's blog posting that sums up your ideas. Anything you've got
 to
 say, even if it's no more than PureMVC ftw!, I'd like to hear it.
 
 I have a keen interest in frameworks, and I'm planning on building
 something
 that takes the best ideas I can find (and cook up) from these and my
 experiences maintaining a mostly-closed-source framework at my 9-5. It's
 for
 my own apps, I'll be dog-fooding it, but it will be open source. It's
 going
 to be a full-stack framework with an optional Java+Warp+BlazeDS component,
 so if you think you've got some good ideas, or would like to help, please
 drop me a line.
 
 Cheers,
 
 -Josh
 
 -- 
 Therefore, send not to know For whom the bell tolls. It tolls for thee.
 
 Josh 'G-Funk' McDonald
   -  j...@joshmcdonald.info
   -  http://twitter.com/sophistifunk
   -  http://flex.joshmcdonald.info/
 
 

-- 
View this message in context: 
http://www.nabble.com/-Req--What-do-you-%28love%7Chate%7Cwish-for%29-about-%28mx.*%7CCairngorm%7CPureMVC%7CMate%7CPrana%7CBlazeDS%29--tp21988486p22057354.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Re: Flas 10 on mobile is a go

2009-02-17 Thread Jon Bradley


On Feb 16, 2009, at 10:43 PM, Anatole Tartakovsky wrote:


Jon,
That is assumption based on the current status quo and not counting  
Adobe's and community capabilities and hardware in 15 month from  
now. Touchscreen is very questionable in most cases - slow and not  
very accessible in real life.
I would expect other features to be way more important - as iPhone  
user but also early adopter of bunch of linux/windows/palm/nokia/ 
android smartphones as well as great dumb phones that have no  
problem to serve as trunking devices/routers for laptops. Here is  
what I think Flash 10 is destined to do:


Sure, things are certainly going to change. My comment was mainly  
restricted to that of the Palm devices. I don't even own an iPhone  
btw (ATT service quality where I live is abysmal) ... but I do have  
an iPod touch.


3. Integration APIs are really important - exposing bluetooth,  
accelerometers, GPS, camera, photo and multitude of voice codecs  
for input and output and all other standard capabilities.


I definitely agree with that. However, I wouldn't expect any  
integration of Flash technology other than camera/mic for quite a  
long time. Those are very platform specific functionalities that are  
unlikely to make it into Flash in the near term. Those APIs are  
certainly available on devices that have that capability.


3a. I wonder if Adobe can work on simultaneous integration of their  
technologies into supporting platforms the way Apple built their  
business - building ecosystem - either with free or low cost  
licensing of embeddable technology.


Adobe already does embedded licensing but I figure that low cost  
isn't really in the cards most of the time. That's something the  
developer needs to take up with Adobe directly.


Many embedded devices (like your description of a GPS display screen)  
utilize Flash as the primary display model, and Adobe prices their  
licensing for embedded devices based on those types of assumptions.


I really think that GMaps on iPhone are way better then top of the  
line car navigation system based on stale hard drive data. But  
iPhone screen is not usable while driving. On contrary, 7+ car  
display is perfect - but you can't transfer phones display there.  
Perfect application for Adobe display technology.


It's only better because of two things - design and interactivity.  
Blame that on the software developers for the embedded devices. Not  
making excuses, but embedded systems in vehicles have a very unique  
set of human factors issues.


Certainly going to be exciting to see where it goes.

cheers,

Jon



[flexcoders] Anyone tried effects on ChartItems in charts?

2009-02-17 Thread Sam Lai
Hi everyone,

I've got a column chart that displays values for each day for say a
month. When I click on a particular bar, I want to fade out all the
days except those matching the one clicked, e.g. if I clicked on a bar
and that bar represented a Monday, I want to fade out all bars except
if they are for a Monday as well (hence there would likely be four
bars left in a month's worth of data).

I can get all that working, by changing the alpha value on the
ColumnSeriesItem.fill.alpha or ChartItem.itemRenderer.alpha.

Problem is, I want a fade effect doing it so it fades out, rather than
just immediately change. None of the mx.effects work on chart items
(chart items are not UIComponents), and the mx.charts.effects effects
only operate on an entire series and not individual ChartItems (and
there isn't one for fading anyway).

Has/does anyone know how to do something like this, or better yet, got
an example? I tried looking at the source, but it's all focused
towards effects for entire series, not individual ChartItems.

Thanks,

Sam


[flexcoders] Re: Mouse Clicks' Queue when Button is Disabled

2009-02-17 Thread Amy
--- In flexcoders@yahoogroups.com, giladozer gilado...@... wrote:

 Thanks Alex for the quick response.
 However, the button is supposed to turn enabled after the result is
 returned.
 The problem is that while it looks like the button is disabled -
 clicking on it results in entering to the function which listens to 
it.
 Moreover, I logged/traced the time the the button turns back to 
enable
 + the time entering to the function that listens to it - 
 it's exactly the same - by the millisecond. 
 meaning - i can't event log the time the button was clicked - cause
 the mouse click event is only dispatched after the button turned 
enable.
 
 one last thing - I found a workaround by removing the eventListener
 when the button is disabled , and adding it back with a timer that
 starts counting after it turned enabled in ticks of 100ms. ( the the
 clicks are not listened in that time space of when the button turned
 enable and 100ms after that).
 The thing is that i don't want to use a timer... it's a very ugly
 solution.

Did you try the solution I gave you on the other forum of setting 
MouseEvents on the button to false at the same time you disable it?



Re: [flexcoders] Re: DYNAMIC actionscript child layout.

2009-02-17 Thread - -
Hi Sunil, this is what I'm trying to replicate in actionscript:
mx:Canvasid=parentCanvas width=100% height=100%    
mx:Canvasid=childCanvas width={parentCanvas.width} 
height={parentCanvas.height-childText.height}//mx:Canvas
In MXML this layout is DYNAMIC, meaning if I resize my window, all my 
components are also resized... 
 
How can I replicate this in actionscript?
 
Thank you.
 
-David





From: sunild99 sunilbd...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 17, 2009 3:55:39 AM
Subject: [flexcoders] Re: DYNAMIC actionscript child layout.


Um, I think you just need to think about this a little differently.

It's a percent value, so by definition it can only be 0-100.

If you want a child component to be half the width of it's parent container, 
then you set 
the child component's width to be 50%... just like you would do in HTML.

If that's not making sense, post some sample code and perhaps I or someone else 
can 
show you how to restructure it to use percent widths/heights.

Sunil

--- In flexcod...@yahoogro ups.com, - - sailorsea21@ ... wrote:

 Using the percentWidth and percentHeight, how can I use values other than 
 0-100 ?
 Can I use the width of a component divided by two???
 testlayout. width/2
 How can I accomplish this?
 
 Thanks.
 
 -David


    mx:Textid=childText width={parentCanvas.width} bottom=0 
text=test/ 


  

[flexcoders] Using an itemRenderer in a grid and rendering glitches

2009-02-17 Thread biosmonkey
I have an adg that displays a tree of items, along with a custom item
renderer that shows an icon representing status.

For the most part this works well, however, in some rare circumstances
when scrolling I have seen the item renderer glitch ... sometimes it
appears to be double rendered, sometimes it is rendered in the wrong
place.  I have also seen the text labels in the tree superimpose on
top of themselves sometimes.

This problem is actually not unique to this situation, because I have
seen it in other grids with IRs.  This problem, however, just happens
to be in a MAJOR project of mine :).

Has anyone else seen similar problems?  I don't know how it would be
my code ... it seems more like a flash player bug.  I am using flash
10.  Note also that my IR is not doing any graphical drawing; it is
essentially an hbox with an img that just gets its source changed.





[flexcoders] FlexCamp Miami Registration Open

2009-02-17 Thread Andrew Powell
The next Flex Camp event in Miami, Florida in the Hurricane100 Room at  
the BankUnited Center on the campus of the University of Miami on  
March 6th.  Registration is only $30 for a whole day of great Flex and  
AIR content.

http://www.flexcampmiami.com

http://www.flexcampmiami.com/page.cfm/register


RE: [flexcoders] Prob with CopyTo in AIR[getting File or directory does not exist Error]

2009-02-17 Thread Kevin Benz
You need to use the HTTP objects to download the file and save it as a
local file. File which creates a reference to the file is incompatible
with the stream based HTTP. As I remember, File can only reference the
app:// and file:// local protocols. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of ursprakash6
Sent: Monday, February 16, 2009 11:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Prob with CopyTo in AIR[getting File or directory
does not exist Error]

 

Hi All

I'm very new to Adobe AIR,in My sample application i'm trying to copy
one image in website to local file system,i got File or directory does
not exist error

 i have tried the below lines of code

var vfile:File=new
File(http://tinycomb.com/wp-content/uploads/2008/12/adobe-logo.jpg;);
var dfile:File=File.applicationStorageDirectory.resolvePath(tempdata/
+ video_url);
vfile.copyTo(dfile, true);


here i'm copying to ApplicationstorageDirestory,this would be any local
direstory

But i'm gtting File or directory does not exist error fot the above
code.

Can any one tell me whats wrong with the above code 

Thanks in Advance

Gnanz...
http://gnanz-flexworld.blogspot.com




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

believed to be clean. 

image001.jpgimage002.jpg

[flexcoders] Unloading a swf that includes a ViewStack can cause a RTE

2009-02-17 Thread rob_mcmichael
Hi all,

I am sill seeing this bug when trying to unload a SWF in an AIR 1.5 project:

http://bugs.adobe.com/jira/browse/SDK-17422

I have tried everything mentioned but no avail.

If anyone can help, please let me know.

Thanks

Rob



[flexcoders] HTTPRequest and Air too slow?

2009-02-17 Thread florian.salihovic
I'm currently devloping an AIR app. This causes some serious headaches, because 
of the 
following problem:

When i run the application in my local network, it is fast and responses are in 
the client in a 
blink of an eye. But it seems like the app doesn't behave the same way 
everytime. It was 
tested in a different environment and the responses reached the client after 
seconds.

It was compared to an HTML-frontend which uses the same PHP-API in the 
background. The 
HTML frontend was constantly fast.

The data is send via HTTPService and JSON to the PHP service in the background.

Now the question: is the AIR client restricted to anything that i might forgot 
about?

Best regards.



Re: [flexcoders] Re: Installing an AIR APP with configuration

2009-02-17 Thread bjorn
yeah, I did make progress. You can give the Application arguments during
install:
http://www.davidtucker.net/2008/01/10/air-tip-5-passing-arguments-to-an-application-on-install/

..then it's just a matter of saving this in a file in
applicationStorageDirectory or EncryptedLocalStore ..




2009/2/6 dmkramerica kramer.da...@consultant.com

   Did you ever make progress or solve this?


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, bjorn
 itrashm...@... wrote:
 
  What's the best practice here? I need my app to know the username of the
  user who install it. So I'm thinking of adding it as a parameter to
 the app
  in the installer badge, and then saving it in a properties file
 locally in
  the app's directory.
  --
  
  http://www.juicability.com - flex blog
  http://www.nospoiler.com - link to youtube videos without the spoilers
 

  




-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


[flexcoders] Deep copy line chart

2009-02-17 Thread lolr3a
Hi,

Is there a simple way to deep copy a linechart?

I saw ObjectUtil.copy doesn't work because this is a displayObject.


thanks



[flexcoders] Displaying Extremely large fonts

2009-02-17 Thread Stephen More
Is there a way to display extremely large fonts in Flash ?

I have tried:

var format:TextFormat = new TextFormat();
format.font = Verdana;
format.color = 0x00;

format.size = 72;
[TextLineMetrics ascent:72, descent:16, leading:0, width:40, height:88, x:2]

format.size = 144;
[TextLineMetrics ascent:127, descent:27, leading:0, width:71, height:154, x:77]

format.size = 288;
[TextLineMetrics ascent:127, descent:27, leading:0, width:71, height:154, x:77]

But the height never gets larger than 154.

textfield.width = stage.stageWidth;
textfield.height = stage.stageHeight;

I am looking to display text almost as large as the stage, do I need
to use a different font or an embedded font ?


-Thanks


Re: [flexcoders] HTTPRequest and Air too slow?

2009-02-17 Thread Tom Chiverton
On Tuesday 17 Feb 2009, florian.salihovic wrote:
 behave the same way everytime. It was tested in a different environment and
 the responses reached the client after seconds.
 It was compared to an HTML-frontend which uses the same PHP-API in the
 background. The HTML frontend was constantly fast.

Are you measuring the same thing ? By which I mean does the Flex app do much 
processing after getting the data, and maybe the HTML version is better at 
that part.

-- 
Tom Chiverton
Helping to globally customize web-readiness



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

Re: [flexcoders] Deep copy line chart

2009-02-17 Thread Tom Chiverton
On Tuesday 17 Feb 2009, lolr3a wrote:
 Is there a simple way to deep copy a linechart?

With the aim of doing what ?
There are many examples of taking a bitmap of DisplayObjects, for instance.

-- 
Tom Chiverton
Helping to centrally transform virtual edge-of-your-seat web-readiness



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

Re: [flexcoders] Bones and inverse kinematics on FLEX : where to find IKManager ?

2009-02-17 Thread Tom Chiverton
On Tuesday 17 Feb 2009, yarekc wrote:
 Hello
 I have created a SWF with bones which works good.
 When I do import it into Flex 4

Have you tried in Flex 3, because Flex 4 isn't released yet, so could well be 
just broken.

 mx:Image src=bones.swf
 It is displayed, but bones are nort active.

Do you really want to import it as an image, not as an actual GUI component ?
By which I mean if you added the .swf as library, then you can do:
yourNameSpace:yourComponent /

-- 
Tom Chiverton
Helping to heterogeneously generate sticky information



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

Re: [flexcoders]Class path alias

2009-02-17 Thread Tom Chiverton
On Saturday 14 Feb 2009, dorkie dork from dorktown wrote:
 import com.domain.class;
 public var MyAlias = ClassAlias(com.domain.class);
 var instance:MyAlias = new MyAlias();

You could use something like ClassFactory, maybe, but what's your use case ?

-- 
Tom Chiverton
Helping to interactively utilize interdependent users



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

Re: [flexcoders] How to stop Flex from compiling my Java source files

2009-02-17 Thread Tom Chiverton
On Sunday 15 Feb 2009, elevight wrote:
 Java source files are in C:\Tomcat5\webapps\FlexApp\WEB-INF\src. When
 I build my Flex application, it tries to recompile the Java source
 files. Is there a way I can tell Flex Builder to leave my Java source
 files alone? It's causing me servlet errors.

Right click the Java source folder and remove the builders ?

-- 
Tom Chiverton
Helping to simultaneously benchmark market-driven professional one-to-one 
segments



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

Re: [flexcoders] Displaying Extremely large fonts

2009-02-17 Thread Weyert de Boer
Hmm. Did you try to scale it? Maybe that works?!?!


[flexcoders] Re: How to read the received ByteArray as SQLite?

2009-02-17 Thread handitan
Thx Johannes!

--- In flexcoders@yahoogroups.com, Johannes Nel johannes@... wrote:

 you have to write it to the file system. if security is your concern
encrypt
 it. we do this a lot, but we do not send it over web services, just
using
 https get.
 
 On Mon, Feb 16, 2009 at 5:58 PM, handitan handi...@... wrote:
 
I would like to clear one thing:
  - The .Net webservice returns the bytearray-conversion of a SQLite
  file from the server.
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  handitan handitan@ wrote:
  
   Hi all,
  
   I have a .Net webservice the bytearray-conversion of a SQLite file.
   My client call the webservice and I received the byteArray as
  expected
   but I couldn't treat it as SQLite until I do the following:
   - Write the byteArray to a file with .db extension.
   - Then open the SQLConnection to that file.
  
   So is there a way to treat the byteArray as SQLite without saving it
   first to the local storage and read it?
  
   Thx!
  
 
   
 
 
 
 
 -- 
 j:pn
 \\no comment





Re: [flexcoders] Deep copy line chart

2009-02-17 Thread Tzahi El-Hay
I'm using alivePDF to export a chart to a PDF file...
The export there makes use of a displayObject object...
and I want to deep copy mine, because when I don't it affects the original 
object.

http://alivepdf.bytearray.org/alivepdf-asdoc/

thanks





From: Tom Chiverton tom.chiver...@halliwells.com
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 17, 2009 6:15:53 PM
Subject: Re: [flexcoders] Deep copy line chart


On Tuesday 17 Feb 2009, lolr3a wrote:
 Is there a simple way to deep copy a linechart?

With the aim of doing what ?
There are many examples of taking a bitmap of DisplayObjects, for instance.

-- 
Tom Chiverton
Helping to centrally transform virtual edge-of-your- seat web-readiness

 * * * *  

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

CONFIDENTIALITY

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

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


  

[flexcoders] Re: HTTPRequest and Air too slow?

2009-02-17 Thread florian.salihovic
Actually both are doing the same thing. The HTML Frontend is an AJAX Client. It 
sends 
requests and gets the result.

Allthough flex processes more data (about 10 times more), it's just a few k's...

But somehow the HTTPService seems to wait longer for the service's response.

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

 On Tuesday 17 Feb 2009, florian.salihovic wrote:
  behave the same way everytime. It was tested in a different environment and
  the responses reached the client after seconds.
  It was compared to an HTML-frontend which uses the same PHP-API in the
  background. The HTML frontend was constantly fast.
 
 Are you measuring the same thing ? By which I mean does the Flex app do much 
 processing after getting the data, and maybe the HTML version is better at 
 that part.
 
 -- 
 Tom Chiverton
 Helping to globally customize web-readiness
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in England and 
 Wales under 
registered number OC307980 whose registered office address is at Halliwells 
LLP, 3 
Hardman Square, Spinningfields, Manchester, M3 3EB.  A list of members is 
available for 
inspection at the registered office together with a list of those non members 
who are 
referred to as partners.  We use the word ?partner? to refer to a member of the 
LLP, or an 
employee or consultant with equivalent standing and qualifications. Regulated 
by the 
Solicitors Regulation Authority.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above and may 
 be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and 
must not use any information contained in nor copy it nor inform any person 
other than 
Halliwells LLP or the addressee of its existence or contents.  If you have 
received this email 
in error please delete it and notify Halliwells LLP IT Department on 0870 365 
2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.






[flexcoders] I am having a similar problem with fonts in AIR (mine involves away3d)

2009-02-17 Thread David Kramer
I'm experiencing something similar.
To be more specific about my dilemma, the font distortion is in 3daway
(so no one at Adobe will chime in I bet).
The fonts aren't rendering correctly at all when at any angle but
straight on.
I embedded mine and...no dice either.
Any help would be great.
David


[flexcoders] Re: filter arraycollection with checkbox acting wired

2009-02-17 Thread Tim Hoff

This is asolutely comical.

-TH

--- In flexcoders@yahoogroups.com, johndoematrix johndoemat...@...
wrote:

 hi Ben when i tried the solution you gave, it worked very very well.
 but this is when am using a single criteria. when i try to add it to a
 filter function that filter's based on more than one criteria that's
 when there come's a problem.






[flexcoders] Capturing Phase

2009-02-17 Thread thelordsince1984
Hi,

if i have a root application and a canvas (application's child), is 
possible to dispatch an event from the application to the canvas? the
capturing phase is the right way, is it true?

Thanks in advance

Regards
Lorenzo




[flexcoders] Is there any way to use predefined functions for a sortCompareFunction?

2009-02-17 Thread Keith Hughitt
When working with DataGrid ItemRenderers, you can say something like
itemrenderer=Text, and Flex will know how to deal with the data.

Is there anyway you can do this with a sortCompareFunction, e.g. 

sortCompareFunction=Numeric or sortCompareFunction=String?

The reason is that I have some simple datatypes (Integers and Strings)
that are nested (e.g. time.start), and thus require using a
labelFunction instead of simply specifying a dataField. A result of
which is that Flex does not know how to sort them anymore. I can write
a sortable function for Integers and Strings, but I'm pretty sure this
has already been done.

Any ideas? Any help would be appreciated. :)

Thanks!
Keith





[flexcoders] Publishing source code without Flex Builder?

2009-02-17 Thread Keith Hughitt
Anyone know how to include a View Source option in the context menu
for Flex applications built using the SDK alone?



[flexcoders] Re: Flex End-User Documentation Tools

2009-02-17 Thread limscoder
Thanks for the info.

I've tried searching for this, but (predictably) search terms like
'flex documentation' pull up a ton of results for actual Flex
documentation and information about API documentation systems like
ASDoc. If you have a link to a previous discussion of this topic, or a
better search term I can use to find the discussion, that would be great.

--- In flexcoders@yahoogroups.com, jim.abbott45 jim.abbot...@...
wrote:

 This topic has come up more than once on FlexCoders. Please do a
 search for this. 
 
 That said, the last time it came up, I don't believe that anyone had
 any brilliant solutions for this challenge. Some people were using
 various forms of HTML-based documentation; *** but displaying it in a
 separate (stand-alone) browser window. Arguably, the lack of a
 more-integrated solution is a hole in the current Flex offering.
 
 --Jim
 
 --- In flexcoders@yahoogroups.com, limscoder limscoder@ wrote:
 
  --- In flexcoders@yahoogroups.com, dthomp325 dthompso@ wrote:
  
   Are there any tools available for creating in-application end-user
   documentation?
  
  
  So this question either has a really obvious answer, or I'm not being
  specific enough
  
  I'm looking for tools to put together end-user help documentation for
  a Flex 3.2 application. The documentation needs to be some type of
  structured text with headings, chapters, etc., and I need to be able
  to link to specific sections of the documentation when a user clicks a
  help icon located next to a component in the GUI. Support for embedded
  flash videos for showing tutorials would also be nice. I could do this
  with an HTML documentation system, but I would prefer more integration
  with flash/flex, so I that when components get moved around in the
  GUI, I won't have to worry about making sure all the URLs are pointing
  to the right documentation. Any suggestions?
 





[flexcoders] Re: writing data to SQL database

2009-02-17 Thread Anthony DeBonis
You may find not many people use the wizard - its ok for a quick demo 
(maybe code table admins) but not for real application development.

Check the CF Logs under the CF install dir, there may be something in 
the logs to tell what the problem is IF its on the CF side.

I often create a basic cfm file to test call the CFC function to be 
sure it returns what I expect and removed Flex from the complexity.
Write cfunit test is another great way to test each CFC call to be 
sure its correct.

Find the fault event handler (OR add one if it does not exist)and put 
a break just inside the event handler function - look at the 
FaultEvent in the debugger - it should have some info that will help 
you.

Anthony
www.troywebconsulting.com

--- In flexcoders@yahoogroups.com, Danny Buetow da...@... wrote:

  
 
 Greetings All,
 
  
 
 Yes, I am new to FLEX, as my question will surely show. I am making 
a simple
 CRUD app designed to administer my table of users. I used the 
ColdFusion
 wizard and created a Master/Detail set. The query is simple and 
tests out
 fine, however, when I Run the application and test it live, I am 
able to
 edit and delete records, yet I am not able to add a record. I 
receive no
 error and when running in debug mode, I get no breaks. I have tried 
to
 re-create the app and have googled my question in hopes of finding 
other
 newbie's with the same question. I have looked through all of the 
CFC's
 and see nothing glaring that would raise my lightly trained eyebrow.
 
  
 
 Any ideas why I would not be able to add a record?
 
  
 
 Thank You 
 
  
 
 Danny Buetow
 
 President and LOC
 
 DMB Services
 
 da...@...
 
 804.918.1027
 
  
 
  
 
 DMB Services accepts no liability for the content of this email, or 
for the
 consequences of any actions taken on the basis of the information 
provided,
 unless that information is subsequently confirmed in writing. Any 
views or
 opinions presented in this email are solely those of the author and 
do not
 necessarily represent those of DMB Services. WARNING: Computer 
viruses can
 be transmitted via email. The recipient should check this email and 
any
 attachments for the presence of viruses. DMB Services accepts no 
liability
 for any damage caused by any virus transmitted by this email. 
 
 
**
**
 
 IMPORTANT: This email is intended for the use of the individual 
addressee(s)
 named above and may contain information that is confidential, 
privileged or
 unsuitable for overly sensitive persons with low self-esteem, no 
sense of
 humour or irrational religious beliefs. If you are not the intended
 recipient, any dissemination, distribution or copying of this email 
is not
 authorised (either explicitly or implicitly) and constitutes an 
irritating
 social faux pas. 
 
 Unless the word
 http://www.it.rit.edu/~jxs/definitions/absquatulation.html 
absquatulation
 has been used in its correct context somewhere other than in this 
warning,
 it does not have any legal or grammatical use and may be ignored. No 
animals
 were harmed in the transmission of this email, although the kelpie 
next door
 is living on borrowed time, let me tell you. Those of you with an
 overwhelming fear of the unknown will be gratified to learn that 
there is no
 hidden message revealed by reading this warning backwards, so just 
ignore
 that Alert Notice from Microsoft. 
 
 However, by pouring a complete circle of salt around yourself and 
your
 computer you can ensure that no harm befalls you and your pets. If 
you have
 received this email in error, please add some nutmeg and egg whites, 
whisk
 and place in a warm oven for 40 minutes. 
 
 
**
**
 ***






[flexcoders] Interacting from outside local sandbox to java server

2009-02-17 Thread Jeremi Bergman
I have a java server that I modified based off of the SimpleServer
 java class.

Everything works perfectly when I run from flex builder.  As soon as I
deploy it, it will not connect.  I know this has to do with the
crossdomain.xml file, but I cannot get the java class to send back
what it needs to get this to work.

Does anyone have any examples of how this may work?  

I've tried sending it as soon as the socket connection is made, I've
tried after reading from the input stream that flex is asking for the
policy-file-request, etc.

Thanks



[flexcoders] Re: writing data to SQL database

2009-02-17 Thread Amy
--- In flexcoders@yahoogroups.com, Danny Buetow da...@... wrote:

  
 
 Greetings All,
 
  
 
 Yes, I am new to FLEX, as my question will surely show. I am making 
a simple
 CRUD app designed to administer my table of users. I used the 
ColdFusion
 wizard and created a Master/Detail set. The query is simple and 
tests out
 fine, however, when I Run the application and test it live, I am 
able to
 edit and delete records, yet I am not able to add a record. I 
receive no
 error and when running in debug mode, I get no breaks. I have tried 
to
 re-create the app and have googled my question in hopes of finding 
other
 newbie's with the same question. I have looked through all of the 
CFC's
 and see nothing glaring that would raise my lightly trained eyebrow.
 
  
 
 Any ideas why I would not be able to add a record?

I'm not sure what you mean by a SQL database.  Possibly you mean 
either SQL Server or mySQL.  I'm not sure about SQL Server, but you 
might want to check to see if your directory permissions allow the 
internet guest account to write and execute to the directory with the 
database files if it's mySQL. 



[flexcoders] Re: DYNAMIC actionscript child layout.

2009-02-17 Thread sunild999999
I think you want something like this:

var parentCanvas:Canvas = new Canvas();
parentCanvas.percentWidth =100;
parentCanvas.percentHeight = 100;

var childCanvas:Canvas = new Canvas();
childCanvas.percentWidth = 100;
childCanvas.percentHeight = 100;

var childText:Text = new Text();
childText.percentWidth = 100;

parentCanvas.addChild(childCanvas);
parentCanvas.addChild(childText);

Let the childCanvas be 100% of the height of it's parent.  The parent container 
will know to 
leave enough room for childText.  I'm not explaining this very well, but the 
above code 
should do what you're looking for.


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

 Hi Sunil, this is what I'm trying to replicate in actionscript:
 mx:Canvasid=parentCanvas width=100% height=100%    
mx:Canvasid=childCanvas width={parentCanvas.width} 
height={parentCanvas.height-childText.height}//mx:Canvas
 In MXML this layout is DYNAMIC, meaning if I resize my window, all my 
 components are 
also resized... 
  
 How can I replicate this in actionscript?
  
 Thank you.
  
 -David
 
 




[flexcoders] How do I use CellRenderer in my AdvancedDataGrid? please help

2009-02-17 Thread yossi.baram
Hi,
I need to implement an ItemRenderer on a specific column,
Inside the column I need to hane an HBox that includs several images,
the data I can take from the DataProvider of the dataGrid.
What is the best way of doing that?
Can you give me small example of using the CellRenderer, because I 
think its the best way,
Thanks a lot
Jo



[flexcoders] Module Issue....

2009-02-17 Thread Eric Dunn
I have done this twice before and apparently I am forgetting something.. 
1) Create a main app with add a ModuleLoader and a button to load module. 
2) Create Module - added some text field to display data.. 
3) Run app and click button to load module.. 
I click the button and nothing happens... 

What have I forgotten to do? Am I not importing something I need to declaring 
something? I have looked at the other code and don't see any difference other 
than lots more stuff... 

?xml version=1.0 encoding=utf-8? 
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute 
mx:Script 
![CDATA[ 
public function doItClick():void{ 
pissOff.url = modules/loaded.swf; 
} 
]] 
/mx:Script 
mx:Canvas 
mx:ModuleLoader id=pissOff width=227 height=156/ 
/mx:Canvas 
mx:Button click=doItClick() label=click me x=235 y=134/ 
/mx:Application 

?xml version=1.0 encoding=utf-8? 
mx:Module xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute 
width=400 height=300 
mx:Canvas 
mx:Text text=Will it work? x=123 y=29/ 
/mx:Canvas 
/mx:Module 




Eric W Dunn 
Adaption Technologies 
281-465-3326 
ed...@adpt-tech.com 


[flexcoders] Re: Is there any way to use predefined functions for a sortCompareFunction?

2009-02-17 Thread Tim Hoff

Some people have extended DataGridColumn to handle nested objects and
sorting.  but, You might find this helpful:

http://natescodevault.com/?p=61 http://natescodevault.com/?p=61

-TH

--- In flexcoders@yahoogroups.com, Keith Hughitt keith.hugh...@...
wrote:

 When working with DataGrid ItemRenderers, you can say something like
 itemrenderer=Text, and Flex will know how to deal with the data.

 Is there anyway you can do this with a sortCompareFunction, e.g.

 sortCompareFunction=Numeric or sortCompareFunction=String?

 The reason is that I have some simple datatypes (Integers and Strings)
 that are nested (e.g. time.start), and thus require using a
 labelFunction instead of simply specifying a dataField. A result of
 which is that Flex does not know how to sort them anymore. I can write
 a sortable function for Integers and Strings, but I'm pretty sure this
 has already been done.

 Any ideas? Any help would be appreciated. :)

 Thanks!
 Keith





[flexcoders] Re: Using an itemRenderer in a grid and rendering glitches

2009-02-17 Thread Amy
--- In flexcoders@yahoogroups.com, biosmonkey biosmon...@... 
wrote:

 I have an adg that displays a tree of items, along with a custom 
item
 renderer that shows an icon representing status.
 
 For the most part this works well, however, in some rare 
circumstances
 when scrolling I have seen the item renderer glitch ... sometimes it
 appears to be double rendered, sometimes it is rendered in the wrong
 place.  I have also seen the text labels in the tree superimpose on
 top of themselves sometimes.
 
 This problem is actually not unique to this situation, because I 
have
 seen it in other grids with IRs.  This problem, however, just 
happens
 to be in a MAJOR project of mine :).
 
 Has anyone else seen similar problems?  I don't know how it would be
 my code ... it seems more like a flash player bug.  I am using flash
 10.  Note also that my IR is not doing any graphical drawing; it is
 essentially an hbox with an img that just gets its source changed.

Check out Q2
http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf




[flexcoders] problem with services-config.xml in multiple work environments..

2009-02-17 Thread tchredeemed
Basically..

We develop on localhost:3000, we test on http://dev.oursite.com, and
we go live on https://www.oursite.com.

I need 3 different environments, one for each environment.

Right now I have to recompile the SWF everytime I want to create it
for a new environment.

Obviously, when we have multiple people using it on localhost, I have
to create these swf's too often.

I was hoping there is a way that I can set up services-config.xml to
point to the right url...

I would almost like to set up a daisy chain or something, it tries
www, if it can't get that, it tries dev, if it cant get that, it tries
localhost.

Any help would really be greatly appreciated...



[flexcoders] Colored Tabs

2009-02-17 Thread Wally Kolcz
I figured out how to turn one of the tabs red using a css snippet and the 
function below. Just it only works when the tab is not selected..what else 
would need to be added to get it to be all red all the time?

mx:Style
.tab1 {
 fill-colors: #e91116, #e91116;
}
/mx:Style

mx:Script
![CDATA[

  private function setTabStyles():void  {
 taskNavigator.getTabAt(4).styleName = tab1; 
 projectNavigator.getTabAt(4).styleName = tab1;
 } 

]]
/mx:Script



[flexcoders] Using Python with Flex

2009-02-17 Thread rbross77
Hello,

I am look ing for some code example of using Python with Flex.
I would like to be able to retrieve data using RemoteObjects and call the 
Python file/program 
to return the results in AMF format and not XML.

Thank you,





Re: [flexcoders] Using Python with Flex

2009-02-17 Thread Maciek Sakrejda
http://pyamf.org/ ?


-Original Message-
From: rbross77 ro...@cswllc.com
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using Python with Flex
Date: Tue, 17 Feb 2009 19:38:11 -

Hello,

I am look ing for some code example of using Python with Flex.
I would like to be able to retrieve data using RemoteObjects and call
the Python file/program 
to return the results in AMF format and not XML.

Thank you,









[flexcoders] Re: problem with services-config.xml in multiple work environments..

2009-02-17 Thread Anthony DeBonis
What is the service type?  If you talking AMF be sure to use 
{server.name}  and not hard code the name... this is the default for 
most of the services in the config... did you have to change yours?

Example - 
channel-definition id=my-amf 
class=mx.messaging.channels.AMFChannel
endpoint 
url=http://{server.name}:{server.port}/{context.root}/messagebroker/a
mf class=flex.messaging.endpoints.AMFEndpoint/
properties
polling-enabledfalse/polling-enabled
/properties
/channel-definition


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

 Basically..
 
 We develop on localhost:3000, we test on http://dev.oursite.com, and
 we go live on https://www.oursite.com.
 
 I need 3 different environments, one for each environment.
 
 Right now I have to recompile the SWF everytime I want to create it
 for a new environment.
 
 Obviously, when we have multiple people using it on localhost, I 
have
 to create these swf's too often.
 
 I was hoping there is a way that I can set up services-config.xml to
 point to the right url...
 
 I would almost like to set up a daisy chain or something, it tries
 www, if it can't get that, it tries dev, if it cant get that, it 
tries
 localhost.
 
 Any help would really be greatly appreciated...






[flexcoders] Determining sound levels on video playback? leftpeak?

2009-02-17 Thread luvfotography
How can I determine the sound levels on a video playback?

There is flash.media.SoundChannel.leftPeak, but it's only available on
sound files, how can I use this on a video?

Or is there another way?



[flexcoders] Re: Flex End-User Documentation Tools

2009-02-17 Thread stldvd
Hi,

While this doesn't give a definitive answer, it will point you to some of the 
previous 
discussion on this matter. Search Flexcoders for RoboHelp and you will find 
some threads, 
e.g.  One would hope that the company that owns Flash, Flex and RoboHelp is 
working on 
some integration...

-- David

--- In flexcoders@yahoogroups.com, limscoder limsco...@... wrote:

 Thanks for the info.
 
 I've tried searching for this, but (predictably) search terms like
 'flex documentation' pull up a ton of results for actual Flex
 documentation and information about API documentation systems like
 ASDoc. If you have a link to a previous discussion of this topic, or a
 better search term I can use to find the discussion, that would be great.
 
 --- In flexcoders@yahoogroups.com, jim.abbott45 jim.abbott45@
 wrote:
 
  This topic has come up more than once on FlexCoders. Please do a
  search for this. 
  
  That said, the last time it came up, I don't believe that anyone had
  any brilliant solutions for this challenge. Some people were using
  various forms of HTML-based documentation; *** but displaying it in a
  separate (stand-alone) browser window. Arguably, the lack of a
  more-integrated solution is a hole in the current Flex offering.
  
  --Jim
  
  --- In flexcoders@yahoogroups.com, limscoder limscoder@ wrote:
  
   --- In flexcoders@yahoogroups.com, dthomp325 dthompso@ wrote:
   
Are there any tools available for creating in-application end-user
documentation?
   
   
   So this question either has a really obvious answer, or I'm not being
   specific enough
   
   I'm looking for tools to put together end-user help documentation for
   a Flex 3.2 application. The documentation needs to be some type of
   structured text with headings, chapters, etc., and I need to be able
   to link to specific sections of the documentation when a user clicks a
   help icon located next to a component in the GUI. Support for embedded
   flash videos for showing tutorials would also be nice. I could do this
   with an HTML documentation system, but I would prefer more integration
   with flash/flex, so I that when components get moved around in the
   GUI, I won't have to worry about making sure all the URLs are pointing
   to the right documentation. Any suggestions?
  
 






[flexcoders] interaction between mx:Image and mx:VSlider: causing Security Sandbox Violation

2009-02-17 Thread mr_j_harris

Hello, 

   I've got an unusual and unwanted interaction between two controls
going on.

  The first control (A) is a semi-complex control with custom
actionscript and two Flex components: one custom (IconLoader) and one
'stock' (mx:Image): the custom pieice displays '.ico' files, the stock
piece displays '.png' (icon-sized) files.

The second control (B) that is triggering the unwanted behaviour,
is a plain-Jane instance of mx:VSlider (mx:HSlider has the same issues.)

   The unwanted behaviour is, when MouseDown or MouseUp on the
pointer-head of the slider control (B), it seems to initiate a fetch
of last-loaded mx:image item in the iconloader control (A)- which in
turn causes a Security Sandbox Violation message to issue to the trace
window, which, apart from likely 'slowness' is the only appreciable
symptom of this problem!

  Setting autoLoad=false for the mx:Image control stopped the unwanted
image fetch (attempt), it also stopped the wanted image fetch.  Using
AS3 image.load()   or image.load (image.source) image.source)  cuase
the wanted image to appear; it also resumed with the unwanted fetch
that results in the Security Sandbox Violation message.

   Has anyone else seen such an interaction between mx:Image and
mx:VSlider??





[flexcoders] Re: HTML editor for Flex Builder 3?

2009-02-17 Thread huu...@ymail.com
Thanks Alan.  I appreciate the response.  Unfortunately, I'd prefer to
use Flex Builder stand-alone and augment it via plugins rather than
download Eclipse and augment it with the Flex Builder plugin.

Any other suggestions?

--- In flexcoders@yahoogroups.com, Alan K ultr...@... wrote:

 Download Eclipse PDT and install Flex Builder as a Plug ­in.
 
 You will have code hinting and debugging for HTML, XML, PHP as well
as other
 nifty stuff.
 
 http://www.eclipse.org/pdt/release-notes/pdt2_0.php
 
 
 
 Alan





Re: [flexcoders] Re: DYNAMIC actionscript child layout.

2009-02-17 Thread - -
The text always overlaps the canvas and remains at the top... ??? Am I doing 
something wrong?

var
parentCanvas.percentWidth =100;
parentCanvas.percentHeight = 100;parentCanvas: Canvas = newCanvas();var
childCanvas.percentWidth = 100;
childCanvas.percentHeight = 100;childCanvas: Canvas = newCanvas();var
childText.percentWidth = 100;
childText.text = 
parentCanvas.addChild(childCanvas);
parentCanvas.addChild(childText);
box.addChild(parentCanvas); 
 
box is my mxml component.
 
Thanks.childText:Text = newText();'This is a test';




From: sunild99 sunilbd...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 17, 2009 1:37:28 PM
Subject: [flexcoders] Re: DYNAMIC actionscript child layout.


I think you want something like this:

var parentCanvas: Canvas = new Canvas();
parentCanvas. percentWidth =100;
parentCanvas. percentHeight = 100;

var childCanvas: Canvas = new Canvas();
childCanvas. percentWidth = 100;
childCanvas. percentHeight = 100;

var childText:Text = new Text();
childText.percentWi dth = 100;

parentCanvas. addChild( childCanvas) ;
parentCanvas. addChild( childText) ;

Let the childCanvas be 100% of the height of it's parent. The parent container 
will know to 
leave enough room for childText. I'm not explaining this very well, but the 
above code 
should do what you're looking for.

--- In flexcod...@yahoogro ups.com, - - sailorsea21@ ... wrote:

 Hi Sunil, this is what I'm trying to replicate in actionscript:
 mx:Canvasid= parentCanvas width=100% height=100%     
mx:Canvasid= childCanvas width={parentCanva s.width} 
height={parentCanv as.height- childText. height}/ /mx:Canvas
 In MXML this layout is DYNAMIC, meaning if I resize my window, all my 
 components are 
also resized... 
  
 How can I replicate this in actionscript?
  
 Thank you.
  
 -David
 
 





  

RE: [flexcoders] problem with services-config.xml in multiple work environments..

2009-02-17 Thread Gregor Kiddie
We construct our Remote Objects at runtime. You can use something like

servletPath = URLUtil.parseUriPath( Application.application.url ) +
messagebroker/amf;

 

to generate the URL you should be hitting (our URLUtil class strips the
URL back to the context root, YMMV).

 

That way you can generate a single swf, and it adapts to the environment
is deployed into.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

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

Registered Number: 1788577

Registered in the UK

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

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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of tchredeemed
Sent: 17 February 2009 19:32
To: flexcoders@yahoogroups.com
Subject: [flexcoders] problem with services-config.xml in multiple work
environments..

 

Basically..

We develop on localhost:3000, we test on http://dev.oursite.com,
http://dev.oursite.com,  and
we go live on https://www.oursite.com. https://www.oursite.com. 

I need 3 different environments, one for each environment.

Right now I have to recompile the SWF everytime I want to create it
for a new environment.

Obviously, when we have multiple people using it on localhost, I have
to create these swf's too often.

I was hoping there is a way that I can set up services-config.xml to
point to the right url...

I would almost like to set up a daisy chain or something, it tries
www, if it can't get that, it tries dev, if it cant get that, it tries
localhost.

Any help would really be greatly appreciated...





Re: [flexcoders] Is there any way to use predefined functions for a sortCompareFunction?

2009-02-17 Thread Jeffry Houser

Keith Hughitt wrote:
 When working with DataGrid ItemRenderers, you can say something like
 itemrenderer=Text, and Flex will know how to deal with the data.
   

  I just tested, this gives me a compiler error both on a ComboBox and 
DataGrid.
 What are you doing that I'm not doing?

 Is there anyway you can do this with a sortCompareFunction, e.g. 

 sortCompareFunction=Numeric or sortCompareFunction=String?
   

 Will using the sortOptions property on a DataGridColumn do what you want?
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/controls/dataGridClasses/DataGridColumn.html#sortOptions
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Array.html#sort()

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




Re: [flexcoders] Re: HTML editor for Flex Builder 3?

2009-02-17 Thread Jeffry Houser


What's the difference between the two options? 
And/or why wouldn't you be able to install PDT as a plugin to Flex 
Builder?   (Instructions for that seem to be here:  
http://wiki.eclipse.org/PDT/Installation#From_Update_Site )


Whether good or bad, I do most of my HTML editing in CFEclipse which is 
designed for ColdFusion / CFML. 


huu...@ymail.com wrote:

Thanks Alan.  I appreciate the response.  Unfortunately, I'd prefer to
use Flex Builder stand-alone and augment it via plugins rather than
download Eclipse and augment it with the Flex Builder plugin.

Any other suggestions?

--- In flexcoders@yahoogroups.com, Alan K ultr...@... wrote:
  

Download Eclipse PDT and install Flex Builder as a Plug ­in.

You will have code hinting and debugging for HTML, XML, PHP as well


as other
  

nifty stuff.

http://www.eclipse.org/pdt/release-notes/pdt2_0.php



Alan









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




  


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



Re: [flexcoders] Re: DYNAMIC actionscript child layout.

2009-02-17 Thread Jeffry Houser


 I think that x and y values are defaulted to 0, 0; which would put 
your text in the top left of the canvas.  The box may layout the canvas, 
but will not lay out children of the canvas.


This looks like it might be a createChildren method?   I would usually 
position elements in the updateDisplayList method. 



- - wrote:
The text always overlaps the canvas and remains at the top... ??? Am I 
doing something wrong?

* *

*var* parentCanvas: Canvas = *new* Canvas();

parentCanvas.percentWidth =100;

parentCanvas.percentHeight = 100;

* *

*var* childCanvas: Canvas = *new* Canvas();

childCanvas.percentWidth = 100;

childCanvas.percentHeight = 100;

* *

*var* childText:Text = *new* Text();

childText.percentWidth = 100;

childText.text = *'This is a test'*;

parentCanvas.addChild(childCanvas);

parentCanvas.addChild(childText);

box.addChild(parentCanvas);

 


box is my mxml component.

 


Thanks.



*From:* sunild99 sunilbd...@gmail.com
*To:* flexcoders@yahoogroups.com
*Sent:* Tuesday, February 17, 2009 1:37:28 PM
*Subject:* [flexcoders] Re: DYNAMIC actionscript child layout.

I think you want something like this:

var parentCanvas: Canvas = new Canvas();
parentCanvas. percentWidth =100;
parentCanvas. percentHeight = 100;

var childCanvas: Canvas = new Canvas();
childCanvas. percentWidth = 100;
childCanvas. percentHeight = 100;

var childText:Text = new Text();
childText.percentWi dth = 100;

parentCanvas. addChild( childCanvas) ;
parentCanvas. addChild( childText) ;

Let the childCanvas be 100% of the height of it's parent. The parent 
container will know to
leave enough room for childText. I'm not explaining this very well, 
but the above code

should do what you're looking for.

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


 Hi Sunil, this is what I'm trying to replicate in actionscript:
 mx:Canvasid= parentCanvas width=100% height=100%
mx:Canvasid= childCanvas width={parentCanva s.width}

height={parentCanv as.height- childText. height}/ /mx:Canvas
 In MXML this layout is DYNAMIC, meaning if I resize my window, all 
my components are

also resized...
  
 How can I replicate this in actionscript?
  
 Thank you.
  
 -David










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



Re: [flexcoders] Is there any way to use predefined functions for a sortCompareFunction?

2009-02-17 Thread Adrian Williams
I don't think you can use the sortCompareFunction that way...it needs a 
function to process your data against.


We use a number of customized sorting functions on a number of our 
fields via both sort.compareFunction as well as adg.sortCompareFunction, 
though funny enough, the compareFunction is a bit different depending on 
which way you are using it.  If you are tying it to an ADG 
sortCompareFunction, it takes two arguments while when using a Sort() 
compareFunction, it takes three.


When trying to do an alphabetical sort (on the ADG), we do this:

   public static function compareLastNames(name1:Object, 
name2:Object):int

   {
   var newName1:String = name1.LastName + name1.FirstName + 
name1.MiddleName;
   var newName2:String = name2.LastName + name2.FirstName + 
name2.MiddleName;
  
   if (newName1.toLowerCase()  newName2.toLowerCase())

   {
   return -1;
   }
   else if (newName1.toLowerCase()  newName2.toLowerCase())
   {
   return 1;
   }
   else
   {
   return 0;
   }
   }

and when using a Sort() we do the very same logic but we have to add a 
fields parameter into the method signature:


public static function compareLastNamesWithFields(name1:Object, 
name2:Object, fields:Array = null):int


In this case, we've automatically set the fields array to null as we 
never have any fields to pass in but without it, flex throws errors 
(we've long thought this to be a bug). 

Also note that these are public and static because we've abstracted them 
into a class. 


Hope this helps!
Adrian






Jeffry Houser wrote:



Keith Hughitt wrote:
 When working with DataGrid ItemRenderers, you can say something like
 itemrenderer=Text, and Flex will know how to deal with the data.


I just tested, this gives me a compiler error both on a ComboBox and
DataGrid.
What are you doing that I'm not doing?

 Is there anyway you can do this with a sortCompareFunction, e.g.

 sortCompareFunction=Numeric or sortCompareFunction=String?


Will using the sortOptions property on a DataGridColumn do what you want?
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/controls/dataGridClasses/DataGridColumn.html#sortOptions 
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/controls/dataGridClasses/DataGridColumn.html#sortOptions
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Array.html#sort 
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Array.html#sort()


--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h 
http://tinyurl.com/684b5h
http://www.twitter.com/reboog711 http://www.twitter.com/reboog711 | 
Phone: 203-379-0773

--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104 http://www.flextras.com?c=104
--
http://www.theflexshow.com http://www.theflexshow.com
http://www.jeffryhouser.com http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust




Re: [flexcoders]Class path alias

2009-02-17 Thread dorkie dork from dorktown
During the discussion of the Fx prefix thing I was reminded when I was
creating my own classes of the same name. For example, I think I was
extending button and didn't want to change the name to anything else besides
button so I had:

public class Button extends mx.controls.Button

Then in my application code hinting would always throw a disambiguity error.


So I was trying to remember if there was a way to alias my Button from the
mx Button and the not have the compiler throw errors or make me write out
the full class names each time (to get around the error).


[flexcoders] [flexcomponents]Writing comments for properties on parent classes

2009-02-17 Thread dorkie dork from dorktown
Good morning Class (programming joke)

I'm trying to write asdoc comments for properties on a class that i'm
extending but don't know how.

Example,

public class SetProperty extends mx.states.SetProperty {

public function SetProperty(target:Object = null, name:String =
null, value:Object = null) {
super(target, name, value);
}

}

So you see my SetProperty class is extending mx.states.SetProperty. I am
repurposing it and have to update the asdocs comments target, value,
etc.


[flexcoders] localConnection doesn't work with layered sfws

2009-02-17 Thread targetplanet
I have a project that was done in AS2, and instead of porting it to
AS3(no budget..)I created an AS3 shell for all new features to be
loaded into, and am communicating between the as2 and as3 with
localConnection. This works fine, but the problem is since I want the
new content to appear to be part of the old, I need to 'float' the as3
swf over/above the as2 swf. I can do this no problem using divs and
css, but as soon as I do, the localConnection fails to connect in
either swf. Both the swfs function fine in this configuration, but no
localConnection. Any thoughts?



RE: [flexcoders] interaction between mx:Image and mx:VSlider: causing Security Sandbox Violation

2009-02-17 Thread Alex Harui
If you don't get the exception dialog that halts the application, you can 
ignore those warnings.  It'll slow your app on the debugger player, but the 
release player shouldn't spit that out so 99% of your end users should be 
unaffected

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of mr_j_harris
Sent: Tuesday, February 17, 2009 12:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] interaction between mx:Image and mx:VSlider: causing 
Security Sandbox Violation


Hello,

I've got an unusual and unwanted interaction between two controls
going on.

The first control (A) is a semi-complex control with custom
actionscript and two Flex components: one custom (IconLoader) and one
'stock' (mx:Image): the custom pieice displays '.ico' files, the stock
piece displays '.png' (icon-sized) files.

The second control (B) that is triggering the unwanted behaviour,
is a plain-Jane instance of mx:VSlider (mx:HSlider has the same issues.)

The unwanted behaviour is, when MouseDown or MouseUp on the
pointer-head of the slider control (B), it seems to initiate a fetch
of last-loaded mx:image item in the iconloader control (A)- which in
turn causes a Security Sandbox Violation message to issue to the trace
window, which, apart from likely 'slowness' is the only appreciable
symptom of this problem!

Setting autoLoad=false for the mx:Image control stopped the unwanted
image fetch (attempt), it also stopped the wanted image fetch. Using
AS3 image.load() or image.load (image.source) image.source) cuase
the wanted image to appear; it also resumed with the unwanted fetch
that results in the Security Sandbox Violation message.

Has anyone else seen such an interaction between mx:Image and
mx:VSlider??



RE: [flexcoders] Capturing Phase

2009-02-17 Thread Alex Harui
The capture phase isn't really intended for that.

The canvas should addEventListener to the application.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of thelordsince1984
Sent: Tuesday, February 17, 2009 10:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Capturing Phase


Hi,

if i have a root application and a canvas (application's child), is
possible to dispatch an event from the application to the canvas? the
capturing phase is the right way, is it true?

Thanks in advance

Regards
Lorenzo



RE: [flexcoders] Module Issue....

2009-02-17 Thread Alex Harui
Make sure the SWF is where you think it is.  Other than that, looks ok.  Attach 
listeners to events and see what’s happening.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Eric Dunn
Sent: Tuesday, February 17, 2009 10:48 AM
To: flexcoders
Subject: [flexcoders] Module Issue

I have done this twice before and  apparently I am forgetting something..
  1) Create a main app with add a ModuleLoader and a button to load module.
  2) Create Module - added some text field to display data..
  3)  Run app and click button to load module..
I click the button and nothing happens...

What have I forgotten to do? Am I not importing something I need to declaring 
something?  I have looked at the other code and don't see any difference other 
than lots more stuff...

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
mx:Script
![CDATA[
public funct! ion doItClick():void{
pissOff.url = modules/loaded.swf;
}
]]
/mx:Script
mx:Canvas
mx:ModuleLoader id=pissOff  width=227 height=156/
/mx:Canvas
mx:Button click=doItClick() label=click me x=235 y=134/
/mx:Application

?xml version=1.0 encoding=utf-8?
mx:Module xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute 
width=400 height=300
mx:Canvas
mx:Text text=Will it work? x=123 y=29/
/mx:Canvas
/mx:Modu! le




Eric W Dunn
Adaption Technologies!
281- 465-3326
ed...@adpt-tech.com



RE: [flexcoders] Unloading a swf that includes a ViewStack can cause a RTE

2009-02-17 Thread Alex Harui
What is the exact stack trace of the RTE?

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of rob_mcmichael
Sent: Tuesday, February 17, 2009 7:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Unloading a swf that includes a ViewStack can cause a RTE


Hi all,

I am sill seeing this bug when trying to unload a SWF in an AIR 1.5 project:

http://bugs.adobe.com/jira/browse/SDK-17422

I have tried everything mentioned but no avail.

If anyone can help, please let me know.

Thanks

Rob



RE: [flexcoders] ImageSnapshot sandbox problem

2009-02-17 Thread Alex Harui
You can load foreign content, but you can't touch it.  There are potential 
security issues involving sniffing through images of charts and what not.

Normally you get around this using a proxy server

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Guy Morton
Sent: Tuesday, February 17, 2009 4:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ImageSnapshot sandbox problem


Hi all

I'm using Virtual Earth and the UMap component (afcomponents.com) to
display maps in my app. I want to use ImageSnapshot to capture the map
(and my overlays) and allow the user to save it to disk etc. However,
when I run the code on the server I get the dreaded sandbox issue:

SecurityError: Error #2122: Security sandbox violation:
BitmapData.draw: http://www.blergh.com/bin/myapp.swf cannot access 
http://us.maps1.yimg.com/us.tile.maps.yimg.com/tl?v=4.2md=2x=0y=0z=2r=1
. A policy file is required, but the checkPolicyFile flag was not set
when this media was loaded.
at flash.display::BitmapData/draw()
at mx.graphics::ImageSnapshot$/captureBitmapData()
at mx.graphics::ImageSnapshot$/captureImage()
at com.blergh.control::Map/saveSnapshot()
at com.blergh.view::SnapshotDialogue/generate()
at com.blergh.view::SnapshotDialogue/___SnapshotDialogue_Button2_click()

Now, first of all I don't really understand why if I can LOAD the maps
in the first place (which I can) I'm not then able to copy them.

Secondly, MS doesn't put crossdomain.xml files on it's tile servers,
so does that mean I'm up the proverbial creek without a paddle?

Guy



RE: [flexcoders] Presenting images with links to new Browser location

2009-02-17 Thread Alex Harui
You can put the image in a button, or place a Sprite over or under it as the 
hit detection area

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of brucewhealton
Sent: Monday, February 16, 2009 8:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Presenting images with links to new Browser location


Hello all,
I was looking at the navigateToURL method and wanted to see
about using an image as a clickable link to a website. The image
component does not have an onClick property, so it isn't possible to
make an image into an active link to a website. Is there a way to
accomplish this? Maybe by putting an image inside a button?
Thanks,
Bruce



RE: [flexcoders] Re: filter arraycollection with checkbox acting wired

2009-02-17 Thread Tracy Spratt
I've quit this one.  The original poster needs to develop his debugging
techniques before going any further.

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tim Hoff
Sent: Tuesday, February 17, 2009 12:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: filter arraycollection with checkbox acting
wired

 


This is asolutely comical.

-TH

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, johndoematrix johndoemat...@...
wrote:

 hi Ben when i tried the solution you gave, it worked very very well.
 but this is when am using a single criteria. when i try to add it to a
 filter function that filter's based on more than one criteria that's
 when there come's a problem.






Re: [flexcoders] Re: HTML editor for Flex Builder 3?

2009-02-17 Thread Sam Lai
That's definitely an option - go to Help - Software Updates - Find
and Install. At least select the Europa Discovery Site when prompted
for update sites. Click next and that should give you a list of things
to pick to install. The names are pretty cryptic, and the descriptions
aren't descriptions, but I think the Web Standard Tools should give
you want you need.

This way lets you be even more picky about what to install, and what
not to (e.g. if you don't need PHP support).

2009/2/18 Jeffry Houser j...@farcryfly.com:

  What's the difference between the two options?
  And/or why wouldn't you be able to install PDT as a plugin to Flex
 Builder?   (Instructions for that seem to be here:
 http://wiki.eclipse.org/PDT/Installation#From_Update_Site )

  Whether good or bad, I do most of my HTML editing in CFEclipse which is
 designed for ColdFusion / CFML.

 huu...@ymail.com wrote:

 Thanks Alan.  I appreciate the response.  Unfortunately, I'd prefer to
 use Flex Builder stand-alone and augment it via plugins rather than
 download Eclipse and augment it with the Flex Builder plugin.

 Any other suggestions?

 --- In flexcoders@yahoogroups.com, Alan K ultr...@... wrote:


 Download Eclipse PDT and install Flex Builder as a Plug ­in.

 You will have code hinting and debugging for HTML, XML, PHP as well


 as other


 nifty stuff.

 http://www.eclipse.org/pdt/release-notes/pdt2_0.php



 Alan




 

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






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

 


  1   2   >