Re: [flexcoders] Re: Does Flex work with Java without FDS?

2007-01-26 Thread dorkie dork from dorktown

Charles,

Thank you for your response. You already know what my next question is? How
did you do this magic? Do you have an example or can you point to one?

On 1/25/07, Charles Havranek [EMAIL PROTECTED] wrote:


Yes it does, you can use plain HTTP/HTTPS GET  POST or Web Services.
(Maybe some others, but that's all I looked at)

I end up using fine grained REST style Web Services which results in
excellent performance and memory usage.

I did find some problem returning multiple serialized unbounded complex
types in Web Services using the Data Binding features of Flex, but got
around them using Action Script.  (And have much more reusable 
maintainable code to boot)













Re: [flexcoders] Ogg Vorbis Tremor in AS3?

2007-01-26 Thread Jeffry Houser

  I'd love to see a way to get this working, although assumed it was 
not possible.  Are the sound classes in AS3 open source?  Could they 
be used as a base for an Ogg Vorbis decoder?

  The question that comes to mind is, why bother?  Just use an mp3!

  I actually have an answer, for those wondering.  Despite popular 
belief, the mp3 format is neither open nor free.

  When I last researched it, the decoder was free, but the encoder 
had to be licensed.  The Flash player didn't encode mp3s, so 
therefore there was no licensing issue involved there.

  It looks like this has changed at some point, and now the decoder 
must be 
licensed.  http://www.mp3licensing.com/royalty/software.html  In 
theory that means that Adobe is paying a price for each Flash Player 
download.  I suspect this was also why mp3 was left out of the 
Soundbooth beta on labs.

  If you start a business selling mp3s, they also take a cut ( 
http://www.mp3licensing.com/royalty/emd.html ) .  I would theorize 
that this licensing fee is why iTunes did not use the mp3 format, but 
rather ACC.

  I looked into this a while back, and even submitted a feature 
request that Flash Player support Ogg.  Nothing came of it, 
presumably because of lack of demand.

  I'd love to attempt to this; feeling adventurous?

  Is this my first list post?  ( Hi Everyone )


At 01:03 PM 1/25/2007, you wrote:

Hello,

I was wondering what the feasibility of porting an integer based audio
decoder like Ogg Vorbis Tremor to Actionscript 3 is. Are there APIs in
place that would allow you to load a vorbis file, decode it and output
the audio? Does AVM2 have the horse power to pull off something like that?

Just curious. :-)

Kevin N.



--
Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com
Connecticut Macromedia User Group: http://www.ctmug.com




Re: [flexcoders] Setting Initial NetStream Sound Volume

2007-01-26 Thread Abdul Qabiz

does adding [Bindable] metadata help?

[Bindable]
private var _volume:int = 100;

-abdul

On 1/26/07, John Kirby [EMAIL PROTECTED] wrote:


   I am trying to dynamically set the sound volume when different video is
played via:

stream = new NetStream(nc);
var st:SoundTransform = stream.soundTransform;
st.volume =( 40) * .01;
_volume = st.volume;


Here is the  volume control
mx:VSlider id=volumeSlider height=73 thumbDrag=updateVolume(event)
minimum=0 maximum=100 value={_volume}  dataTipPlacement= right
tickColor=white  allowTrackClick=true  liveDragging=true
toolTip=Slide to increase/decrease sound  showTrackHighlight=true
borderColor=#FF width=27  x=15 y=10/

However it always defaults to 100% volume.  What am I doing wrong here?

.j
--
*Whether you think that you can, or that you can't, you are usually right.
*
 - Henry Ford

 



Re: [flexcoders] Posting PNG to server

2007-01-26 Thread franto

we got it working now, thanks for help anyway :)

On 1/25/07, franto [EMAIL PROTECTED] wrote:


what do ou mean exactly?

On 1/25/07, Simeon Bateman [EMAIL PROTECTED] wrote:

   I have done this with ColdFusion using the RemoteObject tag.  Can you
 use one of the remote object php tools to pass the binary data?

 simeon


 On 1/25/07, franto [EMAIL PROTECTED] wrote:
 
Hi,
 
  Please help me, how can I post PNG (ByteArray created by Tini Uro's
  convertor) to server (PHP)
 
  Im try URLLoader + URLRequest.data = png
 
  but it doesnt work :(
  Does anyone know, what should I do?
 
  Thanks
  P.S. Close to deadline :))
 
  Franto
 

  





--

-
Franto

http://blog.franto.com
http://www.flashcoders.sk





--
-
Franto

http://blog.franto.com
http://www.flashcoders.sk


[flexcoders] Re: DataService fill not filling on first try? timing issue?

2007-01-26 Thread ripe101
Continuing in the tradition of replying to my own posts when I find 
the solution...

I found the issue is caused by the fill method being processed 
asynchronously to the actionscript execution (duh!)  I didn't know 
that obviously ;)

I just moved my code that processes the returned object into an event 
handler that gets called when a result is returned by the fill...

So one question, is there a way to avoid filling the first array 
collection and just dealing with the object that is returned in the 
ResultEvent?

it looks like this (it's ugly):

private function getAdminOption(username:String):void 
{
 var theUser:ArrayCollection = new ArrayCollection;
 ID_USERS.addEventListener(result, processAdminOption);
 ID_USERS.fill(theUser,IdUser.single,[username]); 
}

private function processAdminOption(event: ResultEvent):void
{   
 if (event.result.length != 0)
 {
  if (event.result[0].administratorGroupKey == 1)
  {  
   currentState='AdminOption';
  }
  else
  {
   currentState='';
  }
 }
 else
 {
  currentState='';
 }
}


cheers,
JK

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

 I have a fill method being called in an event handler, and I can 
see 
 the correct data coming back in FDS (from Hibernate), but my 
 ArrayCollection is empty the first time the method is called.
 
 If I trigger the exact same event with the same parameter a second 
 time it behaves as expected.  I think I am missing something 
subtle...
 
 the event handler is as follows:
 
 private function getAdminOption(username:String):void 
 {
   var theUser:ArrayCollection = new ArrayCollection; 
   ID_USERS.fill(theUser,IdUser.single,[username]);
   if (theUser.length != 0) 
   {
 if (theUser.getItemAt(0).administratorGroupKey == 1) 
 {
   currentState='AdminOption';
 }
 else
 {
   currentState='';
 }
   }
 }
 
 Anyone else seen this happen?
 
 Thanks
 JK





[flexcoders] Re: Launching FlexBuilder from multiple User accounts

2007-01-26 Thread Ward Ruth
Hi Tom:

Thanks for the feedback. Both user accounts have admin priveleges -- the group 
for the 
Flex Builder files is admin. This sits in an Application directory next to the 
Users directory. 
So, I dunno! I was able to install Flex Builder inside the second user account. 
I then made 
symbolic links from most of the resources in this install to the higher one. 
Using that 
technique I only had 3.1 MB of non-linked resources (which would cause the 
error if I tried 
to link them). Not the most elegant solution, but it works!

Ward

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

 On Wednesday 17 January 2007 03:07, wardmruth wrote:
  Anyone else run into this? Is this some sort of licensing check? I though
  about trying to launch FB providing the -data flag -- how would I supply
 
 I would guess Eclipse can't read some file because it is owned by the 
 original 
 user.
 
 -- 
 Tom Chiverton
 Helping to proactively engage essential systems




[flexcoders] Organize imports

2007-01-26 Thread Stembert Olivier (BIL)
Ho all,

Do you know how to organize imports in FlexBuilder?

Rgds,

Olivier

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



Re: [flexcoders] Re: Localization - URGENT

2007-01-26 Thread Abdul Qabiz

This is the question for Gordon and Roger,

I am curious if we can use Modules/Shared-Libs to load
localization-resources on runtime? I have not been doing much in Flex 2 for
sometime. But just curious if we can come up something using new facilities
in Flex 2.0.1


Thanks

-abdul

On 1/26/07, Gordon Smith [EMAIL PROTECTED] wrote:


   BTW, I meant to say the next major release, not the next bug-fix
release (if there is one).



- Gordon


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *coldfusionpaul
*Sent:* Wednesday, January 24, 2007 8:28 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Re: Localization - URGENT



 The Flex framework doesn't currently have any support for runtime locale
 changes, but we're considering adding this in the next release.

pretty please ;-)

 



RE: [flexcoders] Posting PNG to server

2007-01-26 Thread Andrew Trice
If you are using AMF3 (RemoteObject), you can serialize binary data
without any conversion.  If you are trying a standard HTTP post, I would
use a HTTPService with the method= POST.  Then you have to Base64
encode the binary data and attach it to the parameters of the http
service.  On the server side, you will need to decode the base64 encoded
data back into binary.

 

Example:

 

mx:HTTPService 

id=httpService

   showBusyCursor=true

   useProxy=false

   method=POST

   resultFormat=text

   url=/BinaryData/cf/HTTPImageSave.cfm 

result=onResult('Data Saved via mx:HTTPService') 

fault=onFault(event) /

 

private function base64Encode( data : ByteArray ) : String

{

var encoder : Base64Encoder = new Base64Encoder();

encoder.encodeBytes( data );

return encoder.flush();

}

 

private function sendData() : void

{

var data : ByteArray = encoder.encode( myPngByteArray );  

var params : Object = { data : base64Encode( data ) };

httpService.send( params );

}

 

In ColdFusion, you can decode the base64 data simply by using the
toBinary function.  Other languages have similar functions as well.  

 

Just a FYI... using the JPG instead of PNG requires significantly less
bandwidth  time to post the data to the server.  Base64 encoding the
data also increases the size of the data being transferred across the
wire.  It is much more efficient to use a remoteObject method with
JPG-compressed data.

 

-Andy

_

Andrew Trice

Cynergy Systems, Inc.

http://www.cynergysystems.com

 

Blog: http://www.cynergysystems.com/blogs/page/andrewtrice

Email: [EMAIL PROTECTED]

Office: 866-CYNERGY 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Simeon Bateman
Sent: Thursday, January 25, 2007 2:20 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Posting PNG to server

 

I have done this with ColdFusion using the RemoteObject tag.  Can you
use one of the remote object php tools to pass the binary data?

simeon

On 1/25/07, franto [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
wrote:

Hi,

Please help me, how can I post PNG (ByteArray created by Tini Uro's
convertor) to server (PHP)

Im try URLLoader + URLRequest.data = png

but it doesnt work :(
Does anyone know, what should I do? 

Thanks
P.S. Close to deadline :))

Franto

 

 



[flexcoders] Re: Slightly OT: Vista Feedback

2007-01-26 Thread TJ Downes
Eclipse 3.2 has known issues with Vista. I run Flex Builder as a
plugin and Eclipse crashes about 10-15x per day on average.

3.3 addresses this issue and runs VERY stable and fast on Vista.
Unfortunately Flex Builder has serious issues with 3.3, it wont even
build.

So if you can deal with the crashes, yes, its feasible to run your
desired environment on Vista. I've been doing it for 5 months



Re: [flexcoders] Convert Videos to FLV via Web

2007-01-26 Thread Abdul Qabiz

Merrill,

You can use FFMPEG in .Net also. You need to compile the wrappers and link
FFMPEG libraries. I was trying to do something using C#.

You can find some examples on FFMPEG site and on some blogs.

Hope that helps..

-abdul

On 1/25/07, Merrill, Jason [EMAIL PROTECTED] wrote:


   If I could tap on to this thread, anyone know of anything that does the
same using .NET?


Jason Merrill
Bank of America
Learning  Organizational Effectiveness







 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Abdul Qabiz
*Sent:* Thursday, January 25, 2007 10:20 AM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Convert Videos to FLV via Web

 There is php hooks for ffmpeg: *http://ffmpeg*-*php*.sourceforge.net

On 1/24/07, Steve Gustafson [EMAIL PROTECTED] wrote:

   ffmpeg should help you out.  Here is a tutorial:

 http://soenkerohde.com/tutorials/ffmpeg/

 Gus

 On 1/23/07, Marlos Carmo | 5clicks.com.br  [EMAIL PROTECTED]
 wrote:
 
 Hi Folks,
 
 
 
  I need develop a video conversor to flv via Web, using PHP. Anybody
  have a suggestion for help me?
 
 
 
  Thanks,
 
 
 
  Marlos Carmo
 
 
   --
 
  *De:* [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com]
  *Em nome de *Jason Goodwin
  *Enviada em:* terça-feira, 23 de janeiro de 2007 17:10
  *Para:* flexcoders@yahoogroups.com
  *Assunto:* [flexcoders] Accessibility and imported components
 
 
 
  I have an app with lots of imported components. I can't seem to get
  JAWS to read anything that's not on the main page. I have tried
  several ways of add in the accessibility properties to the controls.
  Thanks.
 
 

  



[flexcoders] Help me find the Amazon book spider example

2007-01-26 Thread oneproofdk
A few weeks ago (as far as I remember) I saw a cool Flex2 app, that
would take a search string for a book title, retrieve data from Amazon
and display books in a web-like setup, where the books are connected
by wires, if I click on a book, it would retrieve data from Amazon on
that book.

All those bookcovers were floating around, allowing the user to drag
in the web and all things would follow.

I'd love to see some example code on how to do this - can anyone help me ?

I tryed to post this yesterday - but it never showed up here - so
sorry for the double posts if it should arrive twice.

Thanks,
Mark



RE: [flexcoders] HTTPService Vs WebService

2007-01-26 Thread Tracy Spratt
Web services use the SOAP protocol and the wsdl file in order to provide
anonymous third parties with information about the interface.  So you
can easily consume a web service, without any other knowledge of the
service or documentation.

 

HTTPService is simpler, but to use an HTTPService source you will need
to know, via documentation, or looking at the code if you control it,
what it requires as input and what it will output.

 

If you control both server and client, and you do not plan to make your
data service accessible to outside third parties, then HTTPService is a
good option.  It is very easy to build xml on the server, in almost any
server language. It is simple string or dom manipulation.  And some data
bases make it even easier (FOR XML AUTO).  

 

Creating a Web service is more complicated.  There is a significant
learning curve.  If you do not plan to make your service publicly
available, you do not need the complexity.  Also, the SOAP protocol adds
some bulk to the data passed down the wire, but in my experience this a
minor consideration compared to the business issues.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of theduderino82
Sent: Thursday, January 25, 2007 8:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HTTPService Vs WebService

 

I've seen many tutorials and I just can't figure out what is the
difference between this too services. I usually use it to interrogate
mysql database through a php file. Which is best?

 



[flexcoders] Problem with code in Adobe Flex Training from the Source

2007-01-26 Thread primemate10
Could anyone assist me with a section of the Training from the Source
book on Adobe Flex?

Specifically, the section Working with View States (pages 52-56)
just doesn't work as expected. I did the example over third times
without any success.

Any assistance that anyone can provide will be greatly appreciated.





Re: [flexcoders] Ogg Vorbis Tremor in AS3?

2007-01-26 Thread Abdul Qabiz

There are APIs (URLLoader, URLStream) to load binary data (file, stream
etc), manipulate bits (ByteArray) and create also.

I don't think there is out of box vorbis decoder in Adobe Flash Player.

You can achieve what you want to do... There are APIs to do that... And I
guess, once you are done transcoding (vorbis to MP3?) media,
you can load it in sound object ?

-abdul




On 1/25/07, Kevin Newman [EMAIL PROTECTED] wrote:


  Hello,

I was wondering what the feasibility of porting an integer based audio
decoder like Ogg Vorbis Tremor to Actionscript 3 is. Are there APIs in
place that would allow you to load a vorbis file, decode it and output
the audio? Does AVM2 have the horse power to pull off something like that?

Just curious. :-)

Kevin N.

 



Re: [flexcoders] Ogg Vorbis Tremor in AS3?

2007-01-26 Thread Martin Wood-Mitrovski
Its been done. :)

http://flash.j-ogg.de/

Hopefully the source will be released at some point.

I know that its built on top of the audio engine made by Chris Sperry of 
FlashCodersBrighton fame.

http://www.flashcodersbrighton.org/wordpress/?p=9

There is a version of the core audio engine in the SID branch of the FC64 
project if you are interested in seeing some source. (and it includes the 
sample 
rate fix)

Chris said that he has made some improvements to the engine but they are not 
public yet, hopefully these will be released soon.

for now thats all I know :)

martin.

Kevin Newman wrote:
 Hello,
 
 I was wondering what the feasibility of porting an integer based audio 
 decoder like Ogg Vorbis Tremor to Actionscript 3 is. Are there APIs in 
 place that would allow you to load a vorbis file, decode it and output 
 the audio? Does AVM2 have the horse power to pull off something like that?


[flexcoders] Binding a property to a function

2007-01-26 Thread Lieven Cardoen
Is it possible to bind a property to a function... A bit like the
MVC-pattern...

 

When a property changes, a function should be triggered...

 

BindingUtils can't seem to do this.

 

Thx, Lieven Cardoen

 

Lieven Cardoen
Application developer

indiegroup
interactive digital experience
engelse wandeling 2 k18 
b8500 kortrijk 

 

 



[flexcoders] SWC config xml :: include-classes error

2007-01-26 Thread Michael Schmalle

I had working SWC Library projects for my component in Flex 2.0.0.

Now using those same project (svn) and also rebuilding them from scratch, my
xml configuration files are throwing an error.

unknown configuration variable 'include-classes'

Simplified file

?xml version=1.0?
flex-config xmlns=http://www.adobe.com/2006/flex-config;
 compiler
   keep-generated-actionscriptfalse/keep-generated-actionscript
   external-library-path append=true
 path-element${flexlib}/libs/framework.swc/path-element
   /external-library-path
   source-path
 path-element../teoframework//path-element
   /source-path
 /compiler
 include-classes
   classcom.teotiGraphix.managers.MoveManagerFX/class

   .

 /include-classes
/flex-config

This was working!?? Now it's not. Has anybody else run into this problem.

Peace, Mike


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

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

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


[flexcoders] DataTip on DataGrid doesn't support html?

2007-01-26 Thread ben.clinkinbeard
The docs show examples of using dataTipFunction for charts, and they
show/say you can use simple html tags in the returned string. However,
I am using dataTipFunction on a dataGrid, and any tags I put in the
return string (b) are displayed as plain text. Am I missing a flag
somewhere or is html just not supported in this context?

Thanks,
Ben



RE: [flexcoders] Help me find the Amazon book spider example

2007-01-26 Thread Merrill, Jason
This isn't quite the same link, but it is a Flex app that uses Amazon's
webservices API:
 
http://d-p.com/Internet-Development-Services/ria/amazon.cfm
 
For how to do, You can start reading here:
 
http://jeff.mxdj.com/using_amazons_itemsearch_webservice_from_flex.htm
http://www.amazon.com/gp/browse.html?node=3435361
 
 

Jason Merrill 
Bank of America
Learning  Organizational Effectiveness 
  
  
  
  
  

 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of oneproofdk
Sent: Friday, January 26, 2007 2:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Help me find the Amazon book spider
example



A few weeks ago (as far as I remember) I saw a cool Flex2 app,
that
would take a search string for a book title, retrieve data from
Amazon
and display books in a web-like setup, where the books are
connected
by wires, if I click on a book, it would retrieve data from
Amazon on
that book.

All those bookcovers were floating around, allowing the user to
drag
in the web and all things would follow.

I'd love to see some example code on how to do this - can anyone
help me ?

I tryed to post this yesterday - but it never showed up here -
so
sorry for the double posts if it should arrive twice.

Thanks,
Mark



 



[flexcoders] Re: Can't seem to customize Flash ContextMenu

2007-01-26 Thread davcavs
I had a similar issue with the default contextmenu appearing when a
custom mouse cursor was set. I solved it by adding a custom
contextmenu to Application.application.root as well as
Application.application. That might be worth a shot.

-David

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

 One thing to know about my app is that it has a jpg on the background
 and no backgroundColor.  
  
 One way I found to work around it was to wrap a canvas container around
 all my UI objects and set the backgroundColor t= 0xFF and
 backgroundAlpha = 0.  I don't think a workaround like this should be
 necessary.  
  
 Jeff
 
   -Original Message-
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff
   Sent: Thursday, January 25, 2007 11:11 AM
   To: flexcoders@yahoogroups.com
   Subject: RE: [flexcoders] Can't seem to customize Flash
 ContextMenu
   
   
   Just to bump this up a bit - I'm able to confirm this behavior -
 setting a contextMenu at the Application container level sets the
 context menu for any UI objects contained within it - BUT NOT FOR THE
 BACKGROUND OF THE APP. So if there's any app background not covered by a
 UI object you'll see the default Flash ContextMenu when you right-click
 on it.

   How can this be handled For sure, I want to suppress the
 default context menu in my app for the entire area of the player. 

   Jeff
 
   -Original Message-
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff
   Sent: Wednesday, January 24, 2007 3:34 PM
   To: flexcoders@yahoogroups.com
   Subject: RE: [flexcoders] Can't seem to customize Flash
 ContextMenu
   
   
   Abdul,

   Thanks - yes, the positioning is absolute but no - the
 wrapper's width/height attributes are the same as the mxml width/height.
 And you can get the flash context menu from anywhere on the screen that
 there isn't a UI item.  Basically the controls are resting right on top
 of the application - there's no intermediary container.  It seems like
 the reference you get to the application (Application.application) is
 still one level (or so) down from the player itself.  How do you get a
 reference to the player so you can set its context menu?

   Jeff

   -Original Message-
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of Abdul Qabiz
   Sent: Wednesday, January 24, 2007 3:02 PM
   To: flexcoders@yahoogroups.com
   Subject: Re: [flexcoders] Can't seem to customize Flash
 ContextMenu
   
   
 
   It should work. 
   
   But I am guessing that your Application has
 absolute width/height specified in your MXML. And your html-wrapper has
 different (greater) width/height.
   
   That's the only case, in my opinion, when
 flash-player's stage gets exposed. 
   
   Try to keep the dimensions specified in MXML and
 HTML same.
   
   -abdul
   
   
   
   
   On 1/25/07, Battershall, Jeff 
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 wrote: 
 
   I've got an app which I create a custom
 context menu for during
   initialization, but I've noticed that
 the context menu only shows up
   when I right click on UI objects (Tree,
 ApplicationControlBar, etc). but
   still I get the default Flash context
 menu when I right click on the
   background of the app. 
   
   I've tried setting my custom menu to
   Application.application.contextMenu, but
 the behavior is the same.
   
   What am I missing here?
   
   Jeff Battershall
   Application Architect
   Dow Jones Indexes
   [EMAIL PROTECTED]
 mailto:jeff.battershall%40dowjones.com 
   (609) 520-5637 (p)
   (484) 477-9900 (c)





Re: [flexcoders] Problem with code in Adobe Flex Training from the Source

2007-01-26 Thread Weldon MacDonald

What exactly is the problem, I did those examples and they worked perfectly.

On 1/25/07, primemate10 [EMAIL PROTECTED] wrote:


  Could anyone assist me with a section of the Training from the Source
book on Adobe Flex?

Specifically, the section Working with View States (pages 52-56)
just doesn't work as expected. I did the example over third times
without any success.

Any assistance that anyone can provide will be greatly appreciated.

 



Re: [flexcoders] Organize imports

2007-01-26 Thread Troy Gilbert

If by organizing imports you mean having the import statements automatically
grouped by package and alphabatized, then you hit Ctrl+Shift+O (I believe...
it's under the source menu when you're in the text editor).

Unfortunately, it doesn't work for MXML files, only AS files.

Troy.


On 1/26/07, Stembert Olivier (BIL) [EMAIL PROTECTED]
wrote:


  Ho all,

Do you know how to organize imports in FlexBuilder?

Rgds,

Olivier

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing
and duly signed.
-

 



[flexcoders] HTTP Request Error and long strings

2007-01-26 Thread michael.ritchie

There seems to be a size limit the value you set on the url propery
for a Flex HTTPService call, around 12000 characters (12KB?).   Could
there be maxrequestlength setting in a config file for Flex 2 some
place that we can adjust the limit?

When we send a JSON string on with the HTTP service that is over 12000
characters we receive the following error message:

Error: [RPC Fault faultString=HTTP request error
faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent
type=ioError bubbles=false cancelable=false eventPhase=2 text=Error
#2032: Stream Error. URL: [...12716 character string...]

We tested this on both IE 7 and Firefox.  I don't think this is a
browser post limit as we have other non-Flex applications that post
that many characters.  


Michael Ritchie
AOL Xdrive




[flexcoders] Removing Slider Thumb

2007-01-26 Thread Daniel Freiman

Does anyone know how to remove a single thumb from a slider without losing
the values of the other thumbs?

thanks,

- Dan


Re: [flexcoders] Drag proxy and BitmapAsset

2007-01-26 Thread Troy Gilbert

Solved my own problem. Apparently it was an initialization order issue... I
was attempting to assign the BitmapAsset to the drag proxy (and elsewhere)
before it had been completely loaded. It was loading off the local
harddrive, so the lag was imperceptible to me, but not quick enough for the
data providers that were binding to it! ;-)

And of course, that explains why the images would show up in UI that was
constructed-on-demand later in the app! ;-)

Thanks for listening...

Troy.


On 1/24/07, thirtyfivemph [EMAIL PROTECTED] wrote:


  My RIA has been using Image components as drag proxies, which was fine
and worked exactly like I wanted (the images were PNGs and had alpha
and that all came through correctly).

Now, I've needed to change the drag proxy to accept BitmapData. It
doesn't appear to be able to use it directly as it expects an
IFlexDisplayObject. So, I figured I could wrap the BitmapData in a
BitmapAsset (which implements IFlexDisplayObject) and everything would
be fine. But its not. I just got a black box for the proxy.

Looking at the drag proxy source code, it looks like it takes the
proxy and makes it a child of a UIComponent (a popup)... again, from
reading about the BitmapAsset, it looks like it implements all the
right classes for this to work.

So, I tried keeping the image controls that worked and trying to feed
it a bitmap. Even though the docs seem to imply that BitmapAsset is
the thing you get inside of an Image, I can't assign it to source and
there doesn't appear to be any appropriate properties.

Any suggestions?

Thanks,

Troy.

 



[flexcoders] Is there any code formatter for mxml and actionscript

2007-01-26 Thread aristotlestone
Hi all,

New inserted code is well-formatted in Flex Builder, but how to format
existed mxml or AcitionScript code? 

Is any plugin or tool for flex like Jalopy for Java?

Thanks in advance.



Re: [flexcoders] Binding a property to a function

2007-01-26 Thread michael . corbridge
The approach I have used in this case is the ChangeWatcher class
(mx.binding.utils)

---
// set up the watcher when the app loads
private function doInit():void
{

ChangeWatcher.watch(changeText,text,updateResultsPopup);

}

// call this function anytime 'changeText' component is changed
via the model
private function updateResultsPopup(event:FlexEvent):void
{
//do something
}

!--   this component lurks at the bottom of the template, listening for
change --
mx:Text id=changeText text={modelLocatorAdmin.updateResults}
height=0 width=0 visible=false/
---

there is probably a better way of achieving the same result, but this works
- let me know

 - mike





   

   
 Lieven Cardoen   To: 
flexcoders@yahoogroups.com   
 [EMAIL PROTECTED]   cc:   
 
 e Subject:  [flexcoders] Binding 
a property to a function
 Sent by:   
   
 flexcoders@yahoogroups.com 
   
 01/26/2007 08:20 AM
   
 Please respond to flexcoders   
   

   














 Is it possible to bind a property to a function... A bit like the MVC-pattern… 











 When a property changes, a function should be triggered…   











 BindingUtils can’t seem to do this.











 Thx, Lieven Cardoen











 Lieven Cardoen 

 Application developer  

   

[flexcoders] Re: e4x - attribute based selector

2007-01-26 Thread dario.drome
It is not possible. You will need to perform that kind of selection 
by yourself (i.e. transversing the xml tree)

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

 All,
 
I have a following xml structure retrieved from server
 root
parent name=good
   child name=abc/
   child name=cba/
   child name=abc/
/parent
parent name=notGood
   child name=abc/
   child name=def/
   child name=fed/
/parent
 /root
  
 and I want to make a selection based on the attribute of child. e.g.
 for child with name abc, get a result as..
 root
parent name=good
   child name=abc/
   child name=abc/
/parent
parent name=notGood
   child name=abc/
/parent
 /root
 
 I tried following, 
  result..child.(@name==abc)
  result.root.parent.child.(@name==abc)
 but I end up getting following 
   child name=abc
   child name=abc
   child name=abc
 
 Any suggestions?
 sxm





Re: [flexcoders] Modules and Cairngorm

2007-01-26 Thread Martin Wood-Mitrovski
I just had the same error and it was because i was trying to re-use event 
instances rather than dispatching new ones each time. But i wasnt using 
modules, 
just a normal Cairngorm app.

I was going to look into it to find out exactly what was happening but I just 
dont have the time at the moment.

maybe this is enough of a clue for someone else to say why :)

Bjorn Schultheiss wrote:
 Hey Can anyone give me the lowdown on this error
 
 TypeError: Error #1034: Type Coercion failed: cannot convert 
 flash.events::[EMAIL PROTECTED] to com.adobe.cairngorm.control.CairngormEvent.


Re: [flexcoders] Binding a property to a function

2007-01-26 Thread Brendan Meutzner

Hi Lieven,

Have a look at implicit getters and setters...


Brendan



On 1/26/07, Lieven Cardoen [EMAIL PROTECTED] wrote:


   Is it possible to bind a property to a function... A bit like the
MVC-pattern…



When a property changes, a function should be triggered…



BindingUtils can't seem to do this.



Thx, Lieven Cardoen



*Lieven Cardoen
**Application developer
**
**indie**group**
**interactive digital experience**
**engelse wandeling 2 k18
b8500 kortrijk ***





 





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


RE: [flexcoders] DataTip on DataGrid doesn't support html?

2007-01-26 Thread Ely Greenfield
 
 
I don't believe DatGrid supports HTML datatips.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Friday, January 26, 2007 6:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataTip on DataGrid doesn't support html?



The docs show examples of using dataTipFunction for charts, and they
show/say you can use simple html tags in the returned string. However,
I am using dataTipFunction on a dataGrid, and any tags I put in the
return string (b) are displayed as plain text. Am I missing a flag
somewhere or is html just not supported in this context?

Thanks,
Ben



 


[flexcoders] organizing projects in eclipse and publishing source

2007-01-26 Thread Doug McCune
I have a question regarding what people do in terms of project 
organization and distribution of source code for publication (say on a 
blog).

Here's my scenario:
I've got a bunch of AS components, I would like to keep them all in one 
main Flex Library project, they're all part of the same top-level 
package. Now, what I'd like to do is be able to keep all the components 
I create in the same project, then create individual projects for the 
examples of how to use the components. So say I have Component A and 
Component B. The AS code for both components remains in my Library 
project. Now I want to blog about how I made Component A and I want to 
include an MXML example of how to use the component. What I want to 
publish is the source of the MXML file, along with the sources of the 
classes that I used for the example. So I want to include the MXML file 
and the source of Component A, but not the source of Component B. 
Ideally I'd like to be able to say Publish Source on my MXML project and 
specify that I want to include the source of certain classes in my 
Library Project. While in reality, the Flex compiler may be using the 
compiled SWC of the Library Project, I want to make it look like the 
component classes are within the MXML project when I publish the source. 
Am I making sense?

One thought I had for my MXML project, instead of adding the SWC or the 
Library project to my build path, maybe I can add the directory of my 
Library project as an external source location for my MXML project. But 
if you link to a external source then Flex Builder doesn't let you 
include those external AS classes when you try to Publish Source.

Also, I'd like to be able to easily make individual SWC files out of 
various classes, all of which are contained in the same Library Project. 
So instead of just always having one SWC file for a library project, I'd 
like to say, make a SWC file called SliderComponent.SWC and include 
certain specified classes, then make a SWC called AnimatedGifLoader.SWC 
and include different specified classes.

Maybe the best I'm going to get is to file feature requests with Adobe 
and hope they get incorporated into FB 3 or later.


[flexcoders] Re: Binding a property to a function

2007-01-26 Thread Doug Lowder

Yes - it's called a setter function.

http://livedocs.macromedia.com/flex/2/langref/statements.html#set
http://livedocs.macromedia.com/flex/2/langref/statements.html#set

There is also a corresponding way to define getter functions (keyword
get), where a function is triggered when the property is read.

HTH,

Doug


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

 Is it possible to bind a property to a function... A bit like the
 MVC-pattern...



 When a property changes, a function should be triggered...



 BindingUtils can't seem to do this.



 Thx, Lieven Cardoen



 Lieven Cardoen
 Application developer

 indiegroup
 interactive digital experience
 engelse wandeling 2 k18
 b8500 kortrijk





RE: [flexcoders] HTTP Request Error and long strings

2007-01-26 Thread Tracy Spratt
Change the method to POST.  GET has a limit, but I have used POST for
quite large data streams.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of michael.ritchie
Sent: Thursday, January 25, 2007 3:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HTTP Request Error and long strings

 


There seems to be a size limit the value you set on the url propery
for a Flex HTTPService call, around 12000 characters (12KB?). Could
there be maxrequestlength setting in a config file for Flex 2 some
place that we can adjust the limit?

When we send a JSON string on with the HTTP service that is over 12000
characters we receive the following error message:

Error: [RPC Fault faultString=HTTP request error
faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent
type=ioError bubbles=false cancelable=false eventPhase=2 text=Error
#2032: Stream Error. URL: [...12716 character string...]

We tested this on both IE 7 and Firefox. I don't think this is a
browser post limit as we have other non-Flex applications that post
that many characters. 

Michael Ritchie
AOL Xdrive

 



[flexcoders] Syntax Error: A string literal must be terminated before the line break.

2007-01-26 Thread Roger Ross
Hello,

What does this error mean?
I have compared my code to the code in the tutorial files and it looks
the same.

Syntax Error: A string literal must be terminated before the line break.

I get the error for this code as well;

mx:SetProperty target={products} name=width value=0/
mx:SetProperty target={products} name=height value=0/
mx:SetProperty target={cartBox} name=width value=100%/
mx:AddChild relativeTo={cartBox} position=lastChild
 other code
/mx:AddChild

any idea's...

Thanks

Roger



[flexcoders] DataGrid Column width Resizing

2007-01-26 Thread sanjaypmg
Hi All,

I have two major issues with DataGrid. Please help to come out 

First Column Width

I am not able get the width of datagrid's column.

I need to store the width of each column of a datagrd in database 
and resize each column everytime it loads on the basis of value 
stored in the database.

Second  Column ReOrder

Lets say user changed the order of dataGrid. I want to save this 
order in database but this order should be user specific i.e users 
can save their order and see the same what they have changed last 
time.

Since it should be user specific, so I cant save arrayCollection 
again n again for each user.

How can I implement these functionalies in my project. 
Kindly help.

Thanks,
Sanjay sharma



[flexcoders] for/for each iteration order for Array

2007-01-26 Thread pkleppner
In Flex 2.0, when iterating through elements of an Array with for ...
in, or for each ... in, is the iteration guaranteed to occur in index
order?

It appears to be the case, but I can't find any authoritative
reference that says so explicitly.




RE: [flexcoders] Binding a property to a function

2007-01-26 Thread Alex Uhlmann
Checkout 
mx:Binding and function bindings from Chapter 37 in Part 5 of Flex 2
Developer Guide about Bindings.
 
and Observe/ObserveValue
http://weblogs.macromedia.com/auhlmann/archives/2006/09/using_binding_s.
cfm#more 
http://weblogs.macromedia.com/paulw/archives/2006/05/the_worlds_smal.cf
m 
 
Best,
Alex

 Alex Uhlmann 
Consultant (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, 
South Gyle, Edinburgh, EH12 9DQ, UK
p: +44 (0) 131 338 6969
m: +44 (0) 7917 428 951
[EMAIL PROTECTED]
http://weblogs.macromedia.com/auhlmann

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lieven Cardoen
Sent: 26 January 2007 13:21
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Binding a property to a function



Is it possible to bind a property to a function... A bit like the
MVC-pattern...

When a property changes, a function should be triggered...

BindingUtils can't seem to do this.

Thx, Lieven Cardoen

Lieven Cardoen
Application developer

indiegroup
interactive digital experience
engelse wandeling 2 k18 
b8500 kortrijk 

 


att14d75.gif
Description: att14d75.gif


Re: [flexcoders] Re: Posting PNG to server

2007-01-26 Thread franto

i got my PNG upload working guys

thank you :)

On 1/26/07, red_shovel [EMAIL PROTECTED] wrote:



Just thinkin out loud, but couldn't you post the PNG data using an
httpservice? You may
need to base 64 encode before you post.

Script
...
pngService.send( { PNGData : yourPNGData } );
...
/Script

mx:HTTPService id=pngService
url=myScript.php
method=post/

?php

$png = $_POST['PNGData'];

?

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

 Hi,

 Please help me, how can I post PNG (ByteArray created by Tini Uro's
 convertor) to server (PHP)

 Im try URLLoader + URLRequest.data = png

 but it doesnt work :(
 Does anyone know, what should I do?

 Thanks
 P.S. Close to deadline :))

 Franto


 





--
-
Franto

http://blog.franto.com
http://www.flashcoders.sk


Re: [flexcoders] Help me find the Amazon book spider example

2007-01-26 Thread Doug McCune
That uses the SpringGraph component that you can get off of Adobe 
Exchange. It's an amazing component, by far the most impressive one I've 
seen posted to the exchange.


Doug

oneproofdk wrote:


A few weeks ago (as far as I remember) I saw a cool Flex2 app, that
would take a search string for a book title, retrieve data from Amazon
and display books in a web-like setup, where the books are connected
by wires, if I click on a book, it would retrieve data from Amazon on
that book.

All those bookcovers were floating around, allowing the user to drag
in the web and all things would follow.

I'd love to see some example code on how to do this - can anyone help me ?

I tryed to post this yesterday - but it never showed up here - so
sorry for the double posts if it should arrive twice.

Thanks,
Mark

 




RE: [flexcoders] using mx:Tree to get custom icons

2007-01-26 Thread Tracy Spratt
This is much easier than you suspect.  You need to use an
iconFunction().  I don't have an example to point to, but I'm sure there
is one in the docs.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jensen.axel
Sent: Thursday, January 25, 2007 4:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] using mx:Tree to get custom icons

 

I'm working with a real estate company, and making an administrative
utility, to manage properties... some of these properties are not
active, or they are in a certain price range (100,000 - 200,000) or
(200,000 - 300,000) and for ease of use, I would love to be able to
replace the icon on my leaf nodes with custom ones, depending on
data... for example (is the property active... if not... put a red X
there, and if it is in a 100,000 - 200,000 price range, put a blue
icon there...) there are many different status states that these
properties could be in... 

We integrated flex with google maps with using the FA-bridge, and I'm
using custom icons on the map... google maps needs a Latitude,
Longitude for plotting pointers(markers) on the map... 

Say a property doesn't have a latitude and longitude assigned yet, i
would like a custom icon in the tree for that... as well as if the
property isActive, and the different price ranges as well... so i
think you are probably getting the point of what i want...

I have a tree, and i want the leaf nodes to be those custom icons... 

The icons will depend on data in the dataProvider, but I haven't got
the slightest clue as to how to even put a custom icon into the tree,
let alone, differentiating the icon depending on data... if anyone out
there has used custom icons in the mx:Tree that would be awesome

I could probably figure it out from there... I've looked at extending
the tree on livedocs

http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/ww
help.htm?context=LiveDocs_Partsfile=0856.html
http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/w
whelp.htm?context=LiveDocs_Partsfile=0856.html 

but it changes the display of the data, but I'm trying to chase down
where the actual icon gets set, and I cant seem to figure it out... 

I will used the hasChildren() function to find out if the node is a
leaf node or not, and if so then use the custom icon... 

anyway... Thanks for your time

Axel Jensen

 



[flexcoders] Flex Builder launch application from Additional source folder

2007-01-26 Thread roman_dolgov
Is it possible to launch application located in additional source folder?

For ex. I have two source folders in Flex Builder Project
/src
/test

I have main app in src file. I would like have FlexUnit app/launcher
in /test folder. The problem that I cannot launch FlexUnit runner.
Looks like Flex Builder always adds src prefix into the application
path, so it becomes '/src/test/FlexUnitRunner' and fails.

Do I miss something or is this a bug? 

Thanks
RD



[flexcoders] Initializing components in views

2007-01-26 Thread Marlon Moyer

I've got a component, a simple form, that I need to figure out how to clear
out the contents between uses.  The first time the view is activated, the
fields are clear.  The second time the view in activated, the old values are
prefilled.  What event do I need to tie into so that the form is cleared
every time it's activated?

Thanks

Marlon


[flexcoders] binding/watch xml attributes

2007-01-26 Thread hosey hosey

I would like to call a function when an xml attribute changes.  None of the
isWatching() calls return true...Is there a way to watch/bind frelling
notice when an attribute of an XML gets changed?

package {
   import flash.display.Sprite;

   public class test extends Sprite{
   import mx.binding.utils.BindingUtils;
   import mx.binding.utils.ChangeWatcher;
   [Bindable]
   public var xml:XML=a
 b id=1
b id=2/
b id=3/
 /b
   /a;

   public var out:String=
   public function test(){
   var watcher:ChangeWatcher = ChangeWatcher.watch (this,
[xml.b[0].b.(@id=='3')[EMAIL PROTECTED]]
, this.changed);
   trace(watcher.isWatching())


   var watcherSetter:ChangeWatcher= BindingUtils.bindSetter(
   function(v:String):void {trace(WE+v)},
xml.b[0].b.(@id=='3')[0], @id)
   var watcherSetter2:ChangeWatcher= BindingUtils.bindSetter(
   function(v:String):void {trace(WEE+v)},
xml..b.(@id==3)[0], @id)
   trace(watcherSetter.isWatching())
   trace(watcherSetter2.isWatching())

   xml.b[0].b.(@id=='3')[EMAIL PROTECTED]5
   trace(xml.b[0])
   }
   private function changed():void{
 trace(wee)
   }
   }
}

Thanks
Hosey


[flexcoders] Re: Command-line compiler Java errors

2007-01-26 Thread wanjos
Derek,

You do need the Java SDK as per the Flex 2 SDK system requirements bellow:

Flex 2 SDK

* Windows 2000, XP, or Server 2003, Java 1.4 (Sun, IBM, or BEA) or
1.5 (Sun)
* Mac OS X 10.4.x, Java 1.5 (as shipped from Apple) on PowerPC and
Intel processor
* Redhat Enterprise Linux 3 or 4, Suse 10, Java 1.4 (Sun, IBM, or
BEA) or 1.5 (Sun)
* Solaris 9, 10, Java 1.4 or 1.5 (Sun) Compilers only
* 512 MB of RAM , 1 GB recommended
* 200 MB of free disk space 

You can find the above information at:

http://www.adobe.com/products/flex/productinfo/systemreqs/

Since you already have Flex Builder installed and working, it's
probably just a matter of setting your 'path' environment variable to
point to the path where you have the correct Java version.  To check
the Java version you are currently pointing to, try 'java -version'
from the command line.

I hope this helps,

Wagner dos Anjos

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

 Hi all,
 
 I have Flex Builder 2 but I need to start using the command-line
 compilers to produce projects that are being integrated with a build
 system.
 
 However, when I try running from the command-line I get this:
 
 Exception in thread main java.lang.UnsupportedClassVersionError:
flex2/tools/C
 ompiler (Unsupported major.minor version 48.0)
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(Unknown Source)
 at java.security.SecureClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.access$100(Unknown Source)
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 
 The above is what I get after running one of the samples included in
 the Flex SDK 2 directory. I tried my own projects with the same
 result.
 
 I'm not sure what's going on here. Looks like something about the
 version of JRE I have. Am I right in this assumption? If so, what is
 required for the Flex 2 SDK? I couldn't find anything about requiring
 JRE on the SDK pages on Adobe.
 
 -- 
 
 Derek Vadneau





[flexcoders] Re: Binding a property to a function

2007-01-26 Thread red_shovel
Take a look at ChangeWatcher.watch(..)

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

 Hi Lieven,
 
 Have a look at implicit getters and setters...
 
 
 Brendan
 
 
 
 On 1/26/07, Lieven Cardoen [EMAIL PROTECTED] wrote:
 
 Is it possible to bind a property to a function... A bit like the
  MVC-pattern…
 
 
 
  When a property changes, a function should be triggered…
 
 
 
  BindingUtils can't seem to do this.
 
 
 
  Thx, Lieven Cardoen
 
 
 
  *Lieven Cardoen
  **Application developer
  **
  **indie**group**
  **interactive digital experience**
  **engelse wandeling 2 k18
  b8500 kortrijk ***
 
 
 
 
 
   
 
 
 
 
 -- 
 Brendan Meutzner
 Stretch Media - RIA Adobe Flex Development
 [EMAIL PROTECTED]
 http://www.stretchmedia.ca





[flexcoders] Return a PDF as response to request

2007-01-26 Thread pdflibpilot
Is there any why to display a PDF within a Flex app that would be
returned in response to an HTTPservice request ?

Currently we plan to launch a new browser window with a URL to the PDF
but we can return this dynamically generated PDF directly but can Flex
handle it ??



Re: [flexcoders] What's in a name? That which we call Apollo by any other name would smell as sweet....

2007-01-26 Thread Hervé Crespel
Brendan Meutzner a écrit :

 Curious question... Apollo has been the code name since we first 
 started hearing about it... I've gotten so comfortable with it now, 
 will I be disappointed to hear that it will be called something 
 entirely different by June?  Can anyone at Adobe comment?

 Brendan

  

I think the the simplicity of the name will be a part of the success. 
Microsoft is looking for another name instead of the ugly WPF/E.

If Adobe want to change Apollo, why not to run a contest for findind the 
new one ?

Hervé



[flexcoders] Help me find the cool Flex2 - Amazon dataminer

2007-01-26 Thread oneproofdk
A few weeks ago I saw a cool Flex2 app, that would take a search
string, then pull data from Amazon and make a web of images, linked
together and draggable. WHen you click on a book, it would get new
data from Amazon etc.

Any one who has a link ?

Thanks,
Mark



[flexcoders] Re: Return a PDF as response to request

2007-01-26 Thread dranoel1967
could younot use an iFame and embed the pdf in the url?


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

 Is there any why to display a PDF within a Flex app that would be
 returned in response to an HTTPservice request ?
 
 Currently we plan to launch a new browser window with a URL to the PDF
 but we can return this dynamically generated PDF directly but can Flex
 handle it ??





Re: [flexcoders] Ogg Vorbis Tremor in AS3?

2007-01-26 Thread Jeffry Houser


 The first link throws a lot of errors, although I do hear staggered 
noise between them. other than that it looks like really cool stuff.


At 05:23 AM 1/26/2007, you wrote:


Its been done. :)

http://flash.j-ogg.de/http://flash.j-ogg.de/

Hopefully the source will be released at some point.

I know that its built on top of the audio engine made by Chris Sperry of
FlashCodersBrighton fame.

http://www.flashcodersbrighton.org/wordpress/?p=9http://www.flashcodersbrighton.org/wordpress/?p=9

There is a version of the core audio engine in the SID branch of the FC64
project if you are interested in seeing some source. (and it 
includes the sample

rate fix)

Chris said that he has made some improvements to the engine but they are not
public yet, hopefully these will be released soon.

for now thats all I know :)

martin.

Kevin Newman wrote:
 Hello,

 I was wondering what the feasibility of porting an integer based audio
 decoder like Ogg Vorbis Tremor to Actionscript 3 is. Are there APIs in
 place that would allow you to load a vorbis file, decode it and output
 the audio? Does AVM2 have the horse power to pull off something like that?



--
Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com
Connecticut Macromedia User Group: http://www.ctmug.com


[flexcoders] Label vs. Text

2007-01-26 Thread Howard Fore
Can someone tell me what the difference is between the Label and Text controls?

-- 
Howard Fore, [EMAIL PROTECTED]
Gliddy glub gloopy / Nibby nabby noopy / La la la lo lo / Sabba sibby
sabba / Nooby abba nabba / Le le lo lo / Tooby ooby walla / Nooby abba
naba / Early morning singing song - Good Morning Starshine


[flexcoders] Line Chart: Out of range data points appear broken

2007-01-26 Thread dkhvost
Hi all,

I have a problem with the Linechart / Lineseries. I have a simple 
linechart which contains datavalues over time and 0 -100 y axis range. 
If I change the y axis range to let's say 50 - 80 then the connecting 
lines to the data points outside the range dissapear which creates a 
very bad visual effect which consists of broken line segment cluttering 
the charting screen.

Thank You,
Dennis



Re: [flexcoders] Label vs. Text

2007-01-26 Thread JesterXL
Label is 1 line only, and truncates text that is longer than it is  
wide via Super becoming Su


Text allows multiline and word wrapping whereas Label does not.

On Jan 26, 2007, at 10:21 PM, Howard Fore wrote:

Can someone tell me what the difference is between the Label and Text  
controls?


--
Howard Fore, [EMAIL PROTECTED]
Gliddy glub gloopy / Nibby nabby noopy / La la la lo lo / Sabba sibby
sabba / Nooby abba nabba / Le le lo lo / Tooby ooby walla / Nooby abba
naba / Early morning singing song - Good Morning Starshine





[flexcoders] Re: DataTip on DataGrid doesn't support html?

2007-01-26 Thread ben.clinkinbeard
Thats poopy. :) I'm off to the wish form.

Thanks,
Ben

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

  
  
 I don't believe DatGrid supports HTML datatips.
  
 Ely.
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Friday, January 26, 2007 6:23 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] DataTip on DataGrid doesn't support html?
 
 
 
 The docs show examples of using dataTipFunction for charts, and they
 show/say you can use simple html tags in the returned string. However,
 I am using dataTipFunction on a dataGrid, and any tags I put in the
 return string (b) are displayed as plain text. Am I missing a flag
 somewhere or is html just not supported in this context?
 
 Thanks,
 Ben





[flexcoders] Re: DataGrid Tooltips

2007-01-26 Thread sgrosven2
What you want to do is set the 'dataTipFunction' property on the 
DataGridColumn class to point at your custom function. 

DataGridColumn   showDataTips=true 
dataTipFunction=createCustomToolTip()

And you'll want to change the declaration of your 
createCustomTooltip to a single item of class Object.  The object 
that will be passed in is the object that represents the target row 
of data in the grid.  You can recast that back into whatever it 
really is inside createCustomTooltip


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

 You want to look at dataTip instead of toolTip.
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Steve House
 Sent: Wednesday, January 24, 2007 3:09 PM
 To: FlexCoders
 Subject: [flexcoders] DataGrid Tooltips
 
  
 
 With Flex 2, when the user mouses over a row in a datagrid, I would
 like to show details of that particular row's object in the 
tooltip.
 The datagrid dataProvider is an ArrayCollection of objects with 
many
 properties. Only a few of the properties are shown in the DataGrid.
 
 I am currently using this to get a custom tool tip...
 
 (mx:script section)
 private function createCustomTip(title:String, body:String,
 event:ToolTipEvent):void {
 var rtt:RequestToolTip = new RequestToolTip();
 rtt.title = title
 rtt.bodyText = body;
 event.toolTip = rtt;
 }
 
 mx:DataGrid id=dgRequestList dataProvider={requests} 
toolTip= 
 toolTipCreate=createCustomTip('DELETE','Click this button to 
delete
 the report.', event)
 mx:columns
 mx:DataGridColumn headerText=Id dataField=iRequestId
 width=50 / mx:DataGridColumn headerText=Title
 dataField=sRequestTitle width=300/
 /mx:columns
 /mx:DataGrid
 
 For example, these objects also have sRequestDescription properties
 that I would like to show in the tooltip.
 
 Thanks in advance,
 
 Steve House





[flexcoders] Re: Modules and Cairngorm - Solution... I think

2007-01-26 Thread ben.clinkinbeard
Martin, you did give me enough of an idea to wonder if SequenceCommand
was making the same mistake you were. After some experimenting I
suspect that it was. I was setting nextEvent in the execute method of
my SequenceCommand subclass. I went and looked at the docs
(http://www.cairngormdocs.org/docs/cairngorm_2_1/index.html) and they
suggest setting it in the constructor, so I tried that. Same error.
Finally, I tried setting it in a handler method in my SC subclass (its
a file upload command), on the line right before executeNextCommand()
and that seems to have fixed it.

It makes me wary of SequenceCommand though, so I am converting any
classes that subclass it to regular command classes and I will just
set and dispatch the next event manually. I also tried (very
briefly) switching to the Cairngorm 2.2 beta SWC and was still getting
the error.

Hey AC guys, is there a bug in SequenceCommand? :)

Hopefully this info helps others.
Ben



--- In flexcoders@yahoogroups.com, Martin Wood-Mitrovski
[EMAIL PROTECTED] wrote:

 I just had the same error and it was because i was trying to re-use
event 
 instances rather than dispatching new ones each time. But i wasnt
using modules, 
 just a normal Cairngorm app.
 
 I was going to look into it to find out exactly what was happening
but I just 
 dont have the time at the moment.
 
 maybe this is enough of a clue for someone else to say why :)
 
 Bjorn Schultheiss wrote:
  Hey Can anyone give me the lowdown on this error
  
  TypeError: Error #1034: Type Coercion failed: cannot convert 
  flash.events::[EMAIL PROTECTED] to
com.adobe.cairngorm.control.CairngormEvent.





[flexcoders] Re: Module subclass issue

2007-01-26 Thread jerome_cordiez
Hi Roger,
thanks for your answer.
Actually I didn't set the application domain of the modules i was
loading so i believe your diagnose could be right, since I was
actually loading these modules inside another module, that itself was
loaded in the mainapp (without changing any application domains anywhere).
What I did for the moment because of a pretty tight deadline, is
converting the block modules to components that are then embedded in
larger modules that are loaded in the main app. That works fine, even
if i would have liked to have every block in separated modules, but
the deadline being very close, I had to take action quickly :)

On the other hand, the first issue i posted about returned to the
surface :

Main application is loading a bunch of swf's that define classes that
all inherit from the same super class.
When playing the app with the debug player, it throws #1074 errors for
each component, because apparently it tries to overwrite the already
defined superclass.
I load the swf's using a pretty classic approach

ldr = new Loader(); 
context = new LoaderContext();
context.applicationDomain = ApplicationDomain.currentDomain;
ldr.load(url, context); // url is an URLRequest instance

any idea what could be causing that error? I remember you said
something about looking at the externs options of the compiler... I
took a look but I have to admit i'm still unsure about what to do in
this case :)

Anyway, thanks a lot for your help, have a nice weekend :)
J.


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

 This sort of situation usually arises when the interface isn't defined
 in a common ApplicationDomain (generally the parent).  Did you load the
 module into a separate ApplicationDomain rooted off the system domain?
 If so, then the two interfaces are unrelated (even though they have the
 same name/definition).  Make sure you're loading the module into a child
 of the main app.  (I assumed that you were - is the ready event
 handler you cite defined in the parent?  If so, I'd think it would be
 linked in.  Just checking.)
  
 Dump out a link-report for each of the things that you're compiling and
 ensure that the interface is defined where you expect.
  
 -rg
 
 
 
 
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of jerome_cordiez
   Sent: Tuesday, January 23, 2007 10:54 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Module subclass issue
   
   
 
   Hello,
   
   I finally decided to port an existing development towards the
 new
   Modules architecture, and i am facing a pretty tough issue here.
   
   I have a bunch of modules, that all extend BlockModule, which is
 a
   Module subclass that itself implements the IBlockModule
 interface.
   BlockModule and IBlockModule are in a library that the modules
 project
   includes. 
   Apparently, everything compiles fine, so far so good.
   
   But now, in my application, I load these modules (using
 ModuleLoader),
   and, when ready, try to set a symbol property on these
 modules.
   Using the target property of the ModuleEvent, I correctly find
 the
   modules. But, in order to be able to set the symbol property,
 I need
   to cast them as IBlockModule.
   
   And, that simply doesn't work.
   
   Here is what my ready event listener looks like :
   
   private function blockReady( pEvt:ModuleEvent ) : void
   {
   var ml:ModuleLoader = pEvt.target as ModuleLoader;
   var block:IBlockModule = ml.child as IBlockModule;
   trace (ml.child); // output is correct
   trace (block); // null (apparently, the casting failed)
   if( block != null) {
   block.symbol = symbol;
   }
   }
   
   From what my googling tells me, I believe it might be an issue
 with
   the shared library But I honestly have no clue of what
 precisely
   (everything seems correct to me) nor of how I could solve this.
   
   If anyone has an idea, i would love to hear it :)
   cheers,
   J.





[flexcoders] Re: need help on showing line series based on list box selection (Flex Charts)

2007-01-26 Thread arthurcoutinhoonline
Hi Ely,

im going bonkers, trying to filter the arraycollection, plz need ur
help, help with an example for trying multiple filter on a
arraycolection, based on a list control selction from the user!

regards,
Arthur



[flexcoders] LiveDocs, Release Notes?

2007-01-26 Thread lostinrecursion
Hi all,

I have read the Flex 2 documentation like my morning paper since beta,
but my question is since the new 2.0.1 updater rolled out and there is
a new /201 docs out there - is there any place I can see where things
have changed in the docs instead of having to read through and say
Oh, that's new!

Thanks!



[flexcoders] Re: Modules and Cairngorm

2007-01-26 Thread ben.clinkinbeard
I posted a reply to this about 90 minutes ago through the Yahoo site
and my message still has not appeared (even though other new messages
have, whats up mods?), so I will post again.

I am getting the exact same error message. It seems odd that we are
receiving those path references that are nonexistent on our machines:
C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\commands 
 \SequenceCommand.as, etc.

Anyone have any idea how to solve or even effectively debug?

Thanks,
Ben


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

 Hey Can anyone give me the lowdown on this error
 
 TypeError: Error #1034: Type Coercion failed: cannot convert  
 flash.events::[EMAIL PROTECTED] to  
 com.adobe.cairngorm.control.CairngormEvent.
   at flash.events::EventDispatcher/ 
 flash.events:EventDispatcher::dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at com.adobe.cairngorm.control::CairngormEventDispatcher/ 
 dispatchEvent()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe 
 \cairngorm\control\CairngormEventDispatcher.as:113]
   at com.adobe.cairngorm.commands::SequenceCommand/executeNextCommand() 
 [C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\commands 
 \SequenceCommand.as:134]
 
 To give some context i've got 3 modules in a viewstack, when i  
 returned to a previously viewed child 'module' i get this error.
 Any help would be appreciated.
 
 
 Regards,
 
 Bjorn





RE: [flexcoders] Re: Flex 3.0 - What happened to letting Flex 2 bed in?

2007-01-26 Thread Matt Chotin
We don't know right now what the exact behavior of Flex Builder 2 will
be if you try to pair it with a later version of the SDK.  For example,
Design View may break if we refactor some framework code (in
implementation, not interface) as we set things up for other features.
But the AS3 language won't be changing, and it's still Player 9, so the
fundamentals should still work.  I don't expect that you'd be able to
pair FB2 with a new compiler though, so if we add any MXML language
features you may not be able to leverage them.  To be very honest,
backwards compatibility for apps in an SDK is more important to us than
a newer SDK working on an older FB.  With that said, one thing that we
are investigating is making sure that you can use a newer version of FB
with older projects, so you don't have to keep old copies of FB around.


 

Hope that helps,

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Doug McCune
Sent: Thursday, January 25, 2007 8:29 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Flex 3.0 - What happened to letting Flex 2
bed in?

 

Quick question regarding updates to the framework, new components, etc.
If the SDK remains free then in theory we'd be able to use our existing
Flex Builder 2 to use any updated components or new ones that are added
to the framework, right? You obviously wouldn't get the changes that are
made to Flex Builder itself (all the stuff mentioned about workflow,
productivity, etc). But any new components should be fairly straight
forward to get working in FB 2?


Merrill, Jason wrote: 

We need to do a better job of being more open about releases
and
allowing our customers to participate openly in shaping the
products.

 

I agree - I haven't heard much from Adobe on Flashcoders lately
re: the Flash 9 IDE  (Flash CS3?) - JD @ Adobe did respond to an
unrelated question I had yesterday, which was much appreciated, but I
haven't heard much about Flash 9 IDE in a looonng time.  Maybe you could
poke someone with a small pin over there @ HQ or something. :)

 

Jason Merrill 
Bank of America
Learning  Organizational Effectiveness 
  
  
  
  

 

 



[flexcoders] Re: Help me find the cool Flex2 - Amazon dataminer

2007-01-26 Thread dranoel1967
http://mark-shepherd.com/SpringGraph/AmazonDemo/bin/AmazonDemo.html



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

 A few weeks ago I saw a cool Flex2 app, that would take a search
 string, then pull data from Amazon and make a web of images, linked
 together and draggable. WHen you click on a book, it would get new
 data from Amazon etc.
 
 Any one who has a link ?
 
 Thanks,
 Mark





[flexcoders] Re: HTTP Request Error and long strings

2007-01-26 Thread michael.ritchie
Tracy, 

Your last suggestion did the trick.  I was able to send my large
string using by sending the data in the body, not the url.  For the
list, here is the fix to my problem.

Tracy writes:
 
I believe that when the message body is empty, Flex always uses GET. 
And when you put your data on the url, you are using the querystring
and not the body.

Instead. use the naked url, and in AS, do:

var oRequest:Object = new Object();

oRequest.data = { ...large JSON data sring ...}

JSONSaveCollection.send(oRequest);  // call to the HTTPService

---

Thanks again Tracy... :D

Michael

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

 Change the method to POST.  GET has a limit, but I have used POST for
 quite large data streams.
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of michael.ritchie
 Sent: Thursday, January 25, 2007 3:39 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] HTTP Request Error and long strings
 
  
 
 
 There seems to be a size limit the value you set on the url propery
 for a Flex HTTPService call, around 12000 characters (12KB?). Could
 there be maxrequestlength setting in a config file for Flex 2 some
 place that we can adjust the limit?
 
 When we send a JSON string on with the HTTP service that is over 12000
 characters we receive the following error message:
 
 Error: [RPC Fault faultString=HTTP request error
 faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent
 type=ioError bubbles=false cancelable=false eventPhase=2 text=Error
 #2032: Stream Error. URL: [...12716 character string...]
 
 We tested this on both IE 7 and Firefox. I don't think this is a
 browser post limit as we have other non-Flex applications that post
 that many characters. 
 
 Michael Ritchie
 AOL Xdrive





[flexcoders] Re: Removing Slider Thumb

2007-01-26 Thread Daniel Freiman

nevermind, I had a bad splice statement that was screwing something up.  For
future reference for anyone else who wants to do this, remove the value you
don't want from Slider.values and manually update thumbCount.

- Dan

On 1/26/07, Daniel Freiman [EMAIL PROTECTED] wrote:


Does anyone know how to remove a single thumb from a slider without losing
the values of the other thumbs?

thanks,

- Dan



Re: [flexcoders] Command-line compiler Java errors

2007-01-26 Thread Christian Edward Gruber
I would check what version of Java you're running the class in.  I 
suspect that you are using an older or incorrect version of Java and the 
flex compiler jars are not compatible with it.

I can't remember what 48.0 is.  Do any of the Adobe folks know what 
version of Java was used to compile the released compiler jars?

Christian.

Shannon Hicks wrote:

 Sounds to me like you need one of these:

 http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks
 http://labs.adobe.com/wiki/index.php/Flex_Compiler_Shell

 Just released!

 Shan

 Derek Vadneau wrote:

 Hi all,

 I have Flex Builder 2 but I need to start using the command-line
 compilers to produce projects that are being integrated with a build
 system.

 However, when I try running from the command-line I get this:

 Exception in thread main java.lang.UnsupportedClassVersionError: 
 flex2/tools/C
 ompiler (Unsupported major.minor version 48.0)
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(Unknown Source)
 at java.security.SecureClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.access$100(Unknown Source)
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)

 The above is what I get after running one of the samples included in
 the Flex SDK 2 directory. I tried my own projects with the same
 result.

 I'm not sure what's going on here. Looks like something about the
 version of JRE I have. Am I right in this assumption? If so, what is
 required for the Flex 2 SDK? I couldn't find anything about requiring
 JRE on the SDK pages on Adobe.

 -- 

 Derek Vadneau


  


-- 

*christian** gruber + process coach and architect*

*Israfil Consulting Services Corporation*

*email** [EMAIL PROTECTED] + bus 905.640.1119 + mob 416.998.6023*