[flexcoders] sort compare more than 2 items?

2007-01-25 Thread Impudent1
I have an array that populates a datagrid combobox item renderer of:

public var file_prioritylist:Array = [High, Medium, Normal, Low ];
[Bindable]
public var file_priority:ArrayCollection = new
ArrayCollection(file_prioritylist);

to avoid them sorting alphabetically I setup a sortCompareFunction for 
that column to use this function:

private function prioritySort(item1:Object, item2:Object):int
{
if (item1.priority == High )
{
return 1;
}
else if( item1.priority == Low )
{
return -1;
}
else
{
return 0;
}
}

which will get it to sort high or low, but how do I get it to sort the 
normal and medium appropriately??? I would also like to be able to group 
the datagrid list by values.

http://stackoverflowexception.blogspot.com/2007/01/minor-update-of-grid-component.html

has an example of what would pretty well cover it but I cannot get it to 
work with the swc file. I would also like to be able to learn from the 
code than just use it.

tia

Impudent1
LeapFrog Productions



Re: [flexcoders] sort compare more than 2 items?

2007-01-25 Thread Brendan Meutzner

Why not use numeric values for your priority... you wouldn't have to use a
special sort function, but instead just use a labelFunction for display in
the datagrid to acheive your high/medium/normal/low counts.


Brendan


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


  I have an array that populates a datagrid combobox item renderer of:

public var file_prioritylist:Array = [High, Medium, Normal, Low ];
[Bindable]
public var file_priority:ArrayCollection = new
ArrayCollection(file_prioritylist);

to avoid them sorting alphabetically I setup a sortCompareFunction for
that column to use this function:

private function prioritySort(item1:Object, item2:Object):int
{
if (item1.priority == High )
{
return 1;
}
else if( item1.priority == Low )
{
return -1;
}
else
{
return 0;
}
}

which will get it to sort high or low, but how do I get it to sort the
normal and medium appropriately??? I would also like to be able to group
the datagrid list by values.


http://stackoverflowexception.blogspot.com/2007/01/minor-update-of-grid-component.html

has an example of what would pretty well cover it but I cannot get it to
work with the swc file. I would also like to be able to learn from the
code than just use it.

tia

Impudent1
LeapFrog Productions

 





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


[flexcoders] Re: Printing in Flex

2007-01-25 Thread baardos
Hi Sam,

This issue was caused by the fact that the FlexPrintJob was preparing
the panel for printing (the print job was set to match or
width/height) and for some reason it was setting it's height to 0 -
that's why I think it was getting removed from the queue. 

I've noticed that wrapping a container in another one sometimes (just
a Canvas) helps however I cannot identify any rules when it helps or
why. Our print button was supposed to print whatever was conatined in
one of the panels (I must add that the structure of th app is qute
complicated). Depending on the content the behaviour was different.
Typical effect was moving, shrinking or maximizing/zooming the nested
containers - generaly breaking the view. It seems that the finishPrint
method that is invoked by the FlexPrintJob method was not restoring
the containers' properties properly. Any idea? 


Additionally we've noticed another issue with printing. Very often
when there's a number of jobs spooled on our network printers (or
there is an error due to lack paper or something similar) and spooling
from Flex takes long we are getting errors however at least partial
printout is generated. It is quite difficult to reproduce and depends
on an individual environments. Typically, it was observed with long
printouts (above 10 pages).Have you ever experienced anything like that?

Cheers,
Bartek

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

 Very strange,
 
 can you send me the code that you are using please?
 
 Thanks,
 -sam
 
 On 1/4/07, baardos [EMAIL PROTECTED] wrote:
 
Hi,
 
  I am trying to implement printing and I have the following issue.
  When I try to print ectire content of the screen everything seems to
  work fine. However If I change my code to print content of one of the
  panels I can see that there is a job sent to the printer queue but it
  never gets printed (the job disappear from the queue.). When I try to
  print to a file it's size is 0. Any ideas?
 
  I would be grateful for help.
 
  Cheers,
  Bartek
 
   
 





[flexcoders]

2007-01-25 Thread Oliver Bruehl
unsubscribe



Re: [flexcoders] Flowcharting/Drawing Components

2007-01-25 Thread Michael Schmalle

OpenLaszlo [1].


Yeah that is right.

That's also why it is not as good as it could be. ;-)

I can't say I could get all the server stuff together like they have but as
far as the UI components, I got them beat.

I can't imagine all the code they have to do what it does.

Peace, Mike

On 1/24/07, Darron J. Schall [EMAIL PROTECTED] wrote:


   Getting slightly off-topic here, but Gliffy iss actually written in
OpenLaszlo [1].  Because of that, I would doubt that they're worknig on a
Flex 2.0/AS3 version.

-d

[1] - http://www.gliffy.com/about.shtml

Doug McCune wrote:

 That's not Flex though, I guess it's older Flash. They only require Flash
Player 7. Although I wouldn't be surprised if they're working on a Flex AS3
version as we speak...

JesterXL wrote:

 http://www.gliffy.com/

 Don't see a download link, doesn't look like they are sharing the love.

 On Jan 24, 2007, at 12:08 PM, Jim Zafrani wrote:

  Hello All,

I am just getting started with Flex and was wondering whether or not a
component existed that would allow me to draw a flowchart on a canvas
or a tree-like diagram. Are there any such components/libraries for
flex out there?

Thanks in advance,

Jim Zafrani




 





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

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

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


[flexcoders] Re: TextField.embedFont strange behavior

2007-01-25 Thread polestar11
--- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote:

 I hate to ask a stupid question, but are you sure the entire font (or at
 least the Latin characters) is embedded?  How are you embedding the
font?


Hi Daniel

I wasnt embedding the font at all other than specifying the embed
property, since I assumed that it was done automatically through the
compiler. There was another part in my app where I was manually
embedding Verdana letters A-H.

So it turns out that one has to manually specify font embedding,
typically via an embed tag:
[Embed(source=C:/WINDOWS/Fonts/Verdana.ttf, fontFamily=Verdana)]

Googling this I also found a lot more on the topic, and of course
(rtfm) the help files :)
http://www.tink.ws/blog/embedding-fonts-in-as3/
http://www.db75.com/new_blog/?p=114

Cheers
Tracy




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

2007-01-25 Thread Adam Reynolds
I don't know if anybody else has signed up for the Flex 3 beta, but does 
anyone else feel that Flex 3 is a little bit too close to Flex 2?

I was discussing this with an editor of a PC magazine, here in the UK, 
and he was very surprised.

I'm assuming Adobe will not be charging much for upgrades from 2 to 3 
and is it really such a good idea to be going up a whole new version 
when Flex 2 has literally been around for months, not even years.

I really would like Adobe to comment on this as this seems a bit messed 
up. Can they assure the community that there will be a minor charge for 
upgrading from 2 to 3?

Adam



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

2007-01-25 Thread Jerome Clarke a.k.a sinatosk

I personally don't see a problem with it... it's not like they're releasing
a new Flash Player and AVM ... just a updated/new framework that still works
with Flash 9 AVM2 and other things ofcourse like SDK etc etc. People will
still be able to use Flex 2

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


  I don't know if anybody else has signed up for the Flex 3 beta, but does

anyone else feel that Flex 3 is a little bit too close to Flex 2?

I was discussing this with an editor of a PC magazine, here in the UK,
and he was very surprised.

I'm assuming Adobe will not be charging much for upgrades from 2 to 3
and is it really such a good idea to be going up a whole new version
when Flex 2 has literally been around for months, not even years.

I really would like Adobe to comment on this as this seems a bit messed
up. Can they assure the community that there will be a minor charge for
upgrading from 2 to 3?

Adam

 



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

2007-01-25 Thread Tom Chiverton
On Thursday 25 January 2007 10:16, Adam Reynolds wrote:
 I'm assuming Adobe will not be charging much for upgrades from 2 to 3
 and is it really such a good idea to be going up a whole new version
 when Flex 2 has literally been around for months, not even years.

The Flex 2 SDK is free, and I'm looking for a strong statement from Adobe that 
3 will follow in the same vain.

It's normal for a free upgrade to be given if a major version comes out close 
enough to when you purchased the older version.

-- 
Tom Chiverton
Helping to centrally build synergistic networks



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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] Size properties in AS3

2007-01-25 Thread Mikhail Shevchuk

Hello, Flexcoders!

Is there any way to set the size property (height and width) in AS3 in
percents?

--
A vivid and creative mind characterizes you.


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

2007-01-25 Thread hank williams
Yeah, I would much prefer it if they slowed down their innovation
substantially. Because I am absolutely sure that is the way microsoft
looks at it. In fact I think Bruce Chizen should call Steve Balmer and
say something like this. you know, as a favor to our users lets agree
that we will give then at least three years between releases so we
dont bum them out with too much stuff, you know this stuff *is* kinda
hard dude.

And Balmer would say, Sure Bruce, I know what you mean. And even
though we do want to put you out of business, fair is fair. Lets agree
to a two year innovation pause. That'll give both our user bases time
to take a breather. And we can let our developers focus on putting
someone else out of business!

Yup, thats whats gonna happen!

Hank

On 1/25/07, Adam Reynolds [EMAIL PROTECTED] wrote:
 I don't know if anybody else has signed up for the Flex 3 beta, but does
 anyone else feel that Flex 3 is a little bit too close to Flex 2?

 I was discussing this with an editor of a PC magazine, here in the UK,
 and he was very surprised.

 I'm assuming Adobe will not be charging much for upgrades from 2 to 3
 and is it really such a good idea to be going up a whole new version
 when Flex 2 has literally been around for months, not even years.

 I really would like Adobe to comment on this as this seems a bit messed
 up. Can they assure the community that there will be a minor charge for
 upgrading from 2 to 3?

 Adam



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






Re: [flexcoders] Size properties in AS3

2007-01-25 Thread Michael Schmalle

Hi,

No, percentWidth and percentHeight are creations found only in the
UIComponent class.

Flex is based from Containers which hold things 'inside' relative to each
other.  The AS3 Flash Play  has display lists that hold DisplayObject 'on'.

That being said having percentages in AS3 outside of the flex 2 framework
would not make sense because there is no Container in the AS3 framework. I'm
not talking about DisplayObjectContainer either just it has no idea that
it's children even care about being sized .

Now for the second answer.

If you are talking about Flex - AS3;

use;

myComponent.percentWidth = 100;
myComponent.percentHeight = 100;

Peace, Mike

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


  Hello, Flexcoders!

Is there any way to set the size property (height and width) in AS3 in
percents?

--
A vivid and creative mind characterizes you.
 





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

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

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


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

2007-01-25 Thread Adam Reynolds
I think 2.0.1 is an indication of what possibly went wrong. They 
introduced modules. 500 bugs, fix 250, and then introduce new features. WTF?

and now flex 3. What I'm assuming here is developer idea overload. Flex 
2 is fantastic and suddenly they realise how powerful it is, but they 
want to add new features, even though the old ones are buggy. Could even 
be a yeah we know that component is not quite right, but we re-wrote it 
completely, added in new functions now that we 'understand' what we can 
do with Flex. Is it worth fixing the issues with F2? No release the new 
component with F3.

I have a feeling this is what is happening, and although I don't mind 
it, it's not 'cricket'.

I am literally picking up my F2 box today. Knowing F3 Beta is about to 
start is a bit f'd up.

If Adobe are going to start releasing a new version every 6-9 months, 
could they at least agree that they will patch 95% of the outstanding 
bugs in each version before releasing the new one. If they are not 
prepared to do this, can they at least provide some concessions to 
people that will need to upgrade F2 to F3.

I'm pleased that Adobe feel that Flex needs a new major version and not 
a dot release. It implies they've been working hard on some new and 
exciting features. What I need more than anything else however is a 
solid stable Flex environment. I can extend Flex to my hearts content 
with various components as I need them. Just give me a 100% fantastic 
stable environment please. That is more critical than a new and exciting 
'features'.

Adam
Tom Chiverton wrote:
 On Thursday 25 January 2007 10:16, Adam Reynolds wrote:
   
 I'm assuming Adobe will not be charging much for upgrades from 2 to 3
 and is it really such a good idea to be going up a whole new version
 when Flex 2 has literally been around for months, not even years.
 

 The Flex 2 SDK is free, and I'm looking for a strong statement from Adobe 
 that 
 3 will follow in the same vain.

 It's normal for a free upgrade to be given if a major version comes out close 
 enough to when you purchased the older version.

   



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] Sun GlassFish

2007-01-25 Thread devisbalsemin
Hi, i'm using Sun Application Server 9 i have deploy samples.war and
with crm example i'm receiving always this excpetion

Can you help me pls
Thank in advance
Devis

[#|2007-01-25T13:00:50.205+0100|INFO|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=16;_ThreadName=Thread-31;|WebModule[/flex]
ServletContext.log():FlexMxmlServlet: Adobe Flex Web Tier Compiler
Build: 155539|#]

[#|2007-01-25T13:01:22.450+0100|SEVERE|sun-appserver-pe9.0|javax.enterprise.resource.jta|_ThreadID=17;_ThreadName=RTMP-Worker-2;_RequestID=fc9811e4-2673-4fcd-97b7-cb0f6ce74d74;|DTX5001:Exception
in enlistComponentResources.
java.lang.NullPointerException
at com.sun.appserv.util.cache.BaseCache.hash(BaseCache.java:192)
at com.sun.appserv.util.cache.BaseCache.get(BaseCache.java:313)
at
com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.getResourceList(J2EETransactionManagerImpl.java:781)
at
com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.enlistComponentResources(J2EETransactionManagerImpl.java:539)
at
com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.enlistComponentResources(J2EETransactionManagerImpl.java:385)
at
com.sun.enterprise.distributedtx.UserTransactionImpl.begin(UserTransactionImpl.java:150)
at
flex.data.DataServiceTransaction.doBegin(DataServiceTransaction.java:656)
at
flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:624)
at flex.data.DataService.serviceTransactedMessage(DataService.java:474)
at flex.data.DataService.serviceMessage(DataService.java:241)
at
flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:548)
at
flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:302)
at
flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage(AbstractRTMPServer.java:682)
at
flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTMPConnection.java:665)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:595)
|#]




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

2007-01-25 Thread Tom Chiverton
On Thursday 25 January 2007 12:38, Adam Reynolds wrote:
 do with Flex. Is it worth fixing the issues with F2? No release the new
 component with F3.

They might just be doing a Sun - rather than release x.6, call it 6.0 :-)

-- 
Tom Chiverton
Helping to biannually synthesize world-class e-services



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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] HTTPService Vs WebService

2007-01-25 Thread theduderino82
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] Flex Builder 2.0.1 - problem creating a library project

2007-01-25 Thread Danko Kozar
I'm trying to compile a library (swc) project for a first time, but 
nothing happens - the bin folder remains empty. 

The project is created with: File - New - Flex Library Project. I've 
included the classes as described in examples.

I've tried to 1) build the project manually, and 2) with Build 
Automatically option checked. In simply won't work. 

So, what's the catch?



[flexcoders] getObjectsUnderPoint Alternative?

2007-01-25 Thread Steve Cox
All,
 
I have the requirement to use mouse-over to cause a component to be
highlighted. Effectively the user will click a button activating a
'lookup'.. when they roll over a component on screen this component will
be highlighted (perhaps with a dropshadow, or glow or something). Now I
could use getObjectsUnderPoint however this is returning me components
within components - which I don't want. For example if I hover over a
button, it's the UITextField of the button that is being returned.
 
Has anyone any suggestions on how is best to approach this?
 
Steve


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

2007-01-25 Thread Charles Havranek
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)











[flexcoders] Re: How to convert XMLList Collection to an ArrayCollection ?

2007-01-25 Thread Danko Kozar
Have you tried: 

myDP = xmlData.partsList.catalog as ArrayCollection;

?


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

 Hello,
 I have XML data which comes back from a server via a custom socket.
 How can I convert that the to an ArrayCollection ?
 
 If I try:
 
 myDP = new ArrayCollection(); 
 myDP = ArrayCollection(xmlData.partsList.catalog);
 
 I get a runtime error the XML List collection can not be converted 
to 
 an array collection.
 
 I know I can do a for loop and re-build it but I was wondering if 
there 
 is a quick qay to do it.
 
 I know the HTTPService can do it with the result inline tag which 
will 
 convert the XML data to an Array Data provider but I am not using 
it. I 
 am using Sockets.
 
 Thank you for all the help,
 
 Sean.





Re: [flexcoders] HTTPService Vs WebService

2007-01-25 Thread Abdul Qabiz

HTTPService is good for doing standard HTTP GET/POST stuff...

Where as WebService can be used for SOAP, etc based webservices...


-abdul



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


  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?

 



Re: [flexcoders] getObjectsUnderPoint Alternative?

2007-01-25 Thread Abdul Qabiz

You can attach your handler to mouseOver event of your component. mouseOver
is triggered whenever mouse would be over the component.

-abdul

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


   All,



I have the requirement to use mouse-over to cause a component to be
highlighted. Effectively the user will click a button activating a 'lookup'
.. when they roll over a component on screen this component will be
highlighted (perhaps with a dropshadow, or glow or something). Now I could
use getObjectsUnderPoint however this is returning me components within
components – which I don't want. For example if I hover over a button, it's
the UITextField of the button that is being returned.



Has anyone any suggestions on how is best to approach this?



Steve

 



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

2007-01-25 Thread David Mendels
 
Hi,

Let me correct some misimpressions in this thread:

A) We are not rushing out Flex 3.  The Flex 3 beta has not started and
is some time away.  Once we have a first public alpha or beta, it will
still be a logn while until we ship.  What you are seeing is not about
us rushing the product, it is about us becoming much more open about
what is coming down the road in the future.  We started this with Adobe
Labs (initially Macromedia Labs) but in this cycle in the next few
months you will see up open up more so folks can see the roadmap and
give us feedback.

B) Keep in mind, we released the first public alpha of Flash at Max in
October 2005.  We had a small private alpha underway for a few months
before that.  But we didn't ship Flex 2 until June 27 2006.  Just
because we are looking for testers and able to demo so features doesn't
mean we are about to ship.  It just means we want to give you a view of
the product before it is baked so you can give us feedback (and also for
your planning).  From when we had our first external testers to when we
shipped Flex 2 ws almost 12 months.  It may not be as long this time
because it is not such an major architectural change, but we are going
to let the product bake and stay focused on quality. 

C) Flex 2 was a major architectural release.  We changed the VM, the
language, the framework, and the tool in fundamental and non-compatible
ways.  Flex 3 will not be such a release.  We are now able to leverage
those years of work and build on it incrementally.  I think we can add a
ton of value in areas like productivity, designer developer workflow,
approachability, etc; but this release will not be a rewrite and will
not be something each of you needs to relearn and invest heavily to
migrate to.

D) A key point is that we are going to be targetting the Flash 9 Player
again.  It has been very succussfull, it has already underdone a
significant .oX release with any fixes, and we believe it is and will
continue to be rock solid when Flex 3 ships.  So we are not introducing
change for your end customers, or a new target platform for you to
consider fixing.

E) We did invest heavily in Flex 2.0.X and in polishing the 2.0
release.  We continue to do this and our team will release hot fixes
on occasion for critical issues.  Just because we are working on 3.0,
doesn't mean we don't also have people supporting and doing fixes when
needed on Flex 2

Hope this helps.  We really hope by being more open about what is coming
earlier we help you, not create all this stress in this thread :) Let me
know if this addresses all your concerns.

-David
Adobe


Re: [flexcoders] Re: How to convert XMLList Collection to an ArrayCollection ?

2007-01-25 Thread Michael Schmalle

Hi,

I don't think you can...

In the help docs they have this example

for each (var item in doc.p)
{
  trace(item);
}

I would say you are going to have to bite the bullet and loop.
ArrayCollection is just a wrapped array and I don't see any  place where
XMLList returns and array. It's like mixing apples and oranges.

Although XMLList looks like an array it isn't.

Peace, Mike

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


  Have you tried:

myDP = xmlData.partsList.catalog as ArrayCollection;

?

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

 Hello,
 I have XML data which comes back from a server via a custom socket.
 How can I convert that the to an ArrayCollection ?

 If I try:

 myDP = new ArrayCollection();
 myDP = ArrayCollection(xmlData.partsList.catalog);

 I get a runtime error the XML List collection can not be converted
to
 an array collection.

 I know I can do a for loop and re-build it but I was wondering if
there
 is a quick qay to do it.

 I know the HTTPService can do it with the result inline tag which
will
 convert the XML data to an Array Data provider but I am not using
it. I
 am using Sockets.

 Thank you for all the help,

 Sean.


 





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

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

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


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

2007-01-25 Thread Merrill, Jason
I am literally picking up my F2 box today. Knowing F3 Beta is 
about to start is a bit f'd up.

Any rumors/guesses as to when roughly we might see Flex 3?  I'm getting
ready to buy Flexbuilder 2 in the next month, but wonder if I should
wait until the second quarter.  Seems there are rumors Flash 9
IDE/Creative suite will be Q2 also - I wonder if Adobe is getting ready
to try and get Flex in synch with those product cycles - would love it
if they offered a Creative Suite that has Flex Builder 3, Flash 9,
Photoshop, Illustrator, Dreamweaver.

Jason Merrill
Bank of America 
Learning  Organizational Effectiveness
 
 
 
 
 
 


[flexcoders] 0E-8 problem in Flex 1.5

2007-01-25 Thread Dharmendran A
Hi,

Iam getting a strange problem in Flex Grid. The problem is 0E-8. I have a 
column ReceivedQuantity(decimal datatype) in the Database(SQL Server). This 
data is returned as a resultset using a web-service, converted in to a XML and 
assigned to flex grid. The bug is if i have a value 0 (actually it is .00) 
in the ReceivedQuantity column, then instead of getting the actual value of 0, 
iam getting 0E-8. If the value is greater than 0 then iam getting the correct 
value.

It might be problem with SQL Server also. If anyone could help me pls reply..

Dharmendran A


 

Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 

[flexcoders] Sample FDS/J2EE application(Article) required

2007-01-25 Thread techunar
Hello everyone,

Finally, today I succesfully configured Flex with Tomcat  ran few
sample FDS/Java applications. 

I have to work on Data Management Services of FDS, can you people
provide me any sample article for this? (or a sample application)
I have followed  completed the few applications who use
hibernate/mySQL etc, but still I am not sure about there working inside. 

Please Help! 
Thanks !

Wajid Unar
Pakistan.



Re: [flexcoders] FDS Issue

2007-01-25 Thread João Fernandes

Where are stored your cfcs?

The coldfusion instance won't be able to see your cfcs inside a IIS website
unless you add a mapping like
/com/mydomain/myassemblerfolder/ (expecting that you assembler is
com.mydomain.myassemblerfolder.myassembler.cfc ) or you put your cfcs inside
the cfusion-war folder.

João Fernandes



On 24/01/07, fermartel [EMAIL PROTECTED] wrote:


  I am not able to contact my cfc with FDS, even though it works like a
charm with remoting.

As far as I am concerned, I have set everything up correcly:

I am running the FDS JRun4 server, I have set up both my destination
in data-management-config.xml and the coldfusion-dao adapter in
services-config.xml (both in WEB-INF/flex folder of FDS default
server).
I have my cfc's in the CF root (Assembler, DAO, Bean) with all the
required FDS methods/functions (fill, count, etc...) and made sure
they are accessible.

But it still tells me that it cannot find the Assembler component.
Can anyone give me any pointers as to how I can find where the source
of the problem is or how to debug this?

I am running CF 7.0.2 w/ multiserver configuration using IIS, and
using Flex Builder 2.0.1 and FDS 2 (w/ JRun4)

Thank you!

 





--

João Fernandes


[flexcoders] Re: Flex plus GoogleMap integration

2007-01-25 Thread jonrmayer
To my knowledge there is no API for flex 2 and google maps.

It's not difficult to do:- there was a great website out there called 
flashearth that accessed the API s for google,virtual earth and yahoo 
but even the author admitted that it went against the spirit of the 
terms  conditions of the various APIs. For a proof of concept test - 
it's relatively easy to work out how to call and stitch the individual 
images together - just go to your temp internet files folder and 
you'll see how they're called

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

 Hi All. Is there some API for integration GoogleMap and Flex2?





Re: [flexcoders] HTTPService Vs WebService

2007-01-25 Thread Nick Sophinos
The simplest dinstinction is that one is SOAP and the other one is XML.

A SOAP interface, with its type safety and other such assurances
contrasts to plain old XML, which has the advantage of simplicity.

- Nick

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






 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?

  


RE: [flexcoders] Get a FlexJob - http://tech.groups.yahoo.com/group/flexjobs/

2007-01-25 Thread Boydlee Pollentine
I will be looking for some good flex coders for contracts in Australia in
the coming months, if anyone is interested in a Flex Job here please feel
free to send your details to us via
http://www.zenkey.com.au/recruitment/submityourresume.aspx

 

Regards,
Boydlee Pollentine

 

Zenkey Group Pty Ltd

e. [EMAIL PROTECTED]

w. www.zenkey.com.au http://www.zenkey.com.au/  

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ju Aedis
Sent: Thursday, 25 January 2007 11:31 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Get a FlexJob -
http://tech.groups.yahoo.com/group/flexjobs/

 

It's very interesting.

I thought the flex job in the Europe or America is so hot.

I hope that these chances give more people in my country.

In China, the Flex spread so fast...
 

2007/1/24, Merrill, Jason jason.merrill@
mailto:[EMAIL PROTECTED] bankofamerica.com: 

My goal this year is to get everyone a serious Flex job. It is the best way
to spread Flex and it helps developers and companies succeed.  

 

...Or make your current job a serious Flex job =:)  Flex is starting to take
off here at the Bank, and I'm working my way into more of it and trying to
increase the momentum. Keep up the great work Ted! 

 

Jason Merrill 
Bank of America
Learning  Organizational Effectiveness  
  
  
  

 

 



Re: [flexcoders] Skins

2007-01-25 Thread Nick Sophinos
I was impressed by: http://www.scalenine.com/

- Nick

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






 I'm doing an app and want it to have the look and feel of a desktop
  app, like photoshop or illustrator. Somehow I don't see styles as
  being enough, but skinning sounds time cosuming. Does anyone know of a
  set of skins that would suit. All I could find were the XP skin and
  that isn't wnat I'm looking for.

  Weldon
  


[flexcoders] Re: WebService woes - faultCode: EncodingError - faultString: Unknown Property

2007-01-25 Thread gustavo.saume
Hello yall,

we had the same problem and realize that when you define in your 
server side that a WebService receive an ArrayList (Java) of an 
specific type of content you can´t pass an empty ArrayCollection from 
Flex to the Server. You must at least add an empty Item of the 
speficed type to the ArrayCollection and it´ll solve the problem

HTH
Gustavo Saume
CINet Consultores
+58412.224.17.58
Caracas-Venezuela

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

 Turns out this was caused by the images property which was an empty 
 ArrayCollection. The operation succeeds if I pass null for the 
images. I 
 have no idea why the error was reporting what it was.
 
 
 
 Paul Spitzer wrote:
  Hi all,
 
  Hoping someone can help me out here. We've recently switched our 
Web 
  Services implementation on the server from Axis to XFire. With 
the 
  switch one of the existing working operations is now failing. The 
  failure happens somewhere in the Flex Web Service classes when 
the 
  request to call the service operation occurs. The request never 
makes it 
  to the server as Flex stops it and throws a fault. Here's some 
  (simplified) code..
 
  ---
  // AbstractWebServiceRequest class
 
  // constructor
  this.service = new WebService();
  this.service.makeObjectsBindable = false;
  this.service.wsdl = this.getWsdlPath();
  this.service.addEventListener(ResultEvent.RESULT, 
this.handleResult);
  this.service.addEventListener(FaultEvent.FAULT, this.handleFault);
  this.service.loadWSDL();
 
  ...
 
  // execute method
  var args: Array = this.getOperationArguments();
  var operationName: String = this.getOperationName();
  var operation: Operation = this.service.getOperation
(operationName) as 
  Operation;
  operation.send.apply(this, args);
  ---
 
  Everything is fine up to the point that the request is sent via 
the 
  operation's send method. The request is never actually sent to 
the 
  server. Instead the handleFault handler is called. The Fault 
object in 
  the FaultEvent reports..
 
  faultCode:EncodingError
  faultString:'Unknown Property: 'creationDate'.'
  faultDetail:'null'
 
  The object that is sent as an argument to the operation has the 
  following schema..
 
  xsd:complexType name=TheObject
xsd:sequence
  xsd:element minOccurs=0 name=creationDate 
type=xsd:dateTime/
  xsd:element minOccurs=0 name=customerId type=xsd:long/
  xsd:element minOccurs=0 name=height type=xsd:int/
  xsd:element minOccurs=0 name=id type=xsd:long/
  xsd:element minOccurs=0 name=images nillable=true 
  type=ns1:ArrayOfScrollerImage/
  xsd:element minOccurs=0 name=modificationDate 
type=xsd:dateTime/
  xsd:element minOccurs=0 name=name nillable=true 
  type=xsd:string/
  xsd:element minOccurs=0 name=version type=xsd:long/
  xsd:element minOccurs=0 name=width type=xsd:int/
/xsd:sequence
  /xsd:complexType
 
  The actual object looks like (including the creationDate)..
 
  object = TheObject (@ee5f8b1)
 creationDate = Date (@f0695b1)
 date = 17 [0x11]
 dateUTC = 17 [0x11]
 day = 5 [0x5]
 dayUTC = 5 [0x5]
 fullYear = 2006 [0x7d6]
 fullYearUTC = 2006 [0x7d6]
 hours = 10 [0xa]
 hoursUTC = 17 [0x11]
 milliseconds = 234 [0xea]
 millisecondsUTC = 234 [0xea]
 minutes = 1 [0x1]
 minutesUTC = 1 [0x1]
 month = 10 [0xa]
 monthUTC = 10 [0xa]
 seconds = 23 [0x17]
 secondsUTC = 23 [0x17]
 time = 1163782883234 [0x10ef6dd87a2]
 timezoneOffset = 420 [0x1a4]
 customerId = 117 [0x75]
 height = 160 [0xa0]
 id = -1 [0x]
 images = mx.collections.ArrayCollection (@32dd551)
 imagesLength = 0 [0x0]
 imagesXmlString = images/images
 modificationDate = Date (@f069881)
 name = TheObjectName
 template = TheObjectTemplate (@eee6b31)
 templateId = 1 [0x1]
 version = -1 [0x]
 width = 266 [0x10a]
 
 
  Anyone have any ideas what's causing the fault?
 
  thanks,
 
  Paul
 
   
 
 





[flexcoders] Flex2 Metadata / Compiler Options Question

2007-01-25 Thread gtuhl
I'll try to keep this brief and clear, bear with me and please request
additional information if it would help.  We came across a situation
in a very large Flex2 application where we wanted to know the types of
items inside of collections at runtime.  I can provide more details if
desired, but in short we are doing a lot of automatic detection of
object and property types to make a running locally on xml version
of the product work with very little pain and very little extra
configuration.

In Java 1.5, you can specify these types like this:

ListContactVO foo;

In Flex2, if you have something like this:

var foo : ArrayCollection;

There is obviously no way of discovering at runtime, by reading the
class definition, what types of objects are meant to be in that
ArrayCollection.

So we took advantage of the metadata construct in Flex2 to create a
sort of annotation, which would make the Flex2 example look like this:

[Collection(type=ContactVO)]
var foo : ArrayCollection;

Now by reading the metadata of the property foo, we are able to
determine at runtime both that foo is an ArrayCollection, and that it
is meant to contain ContactVO object instances.  This doesn't have the
Java benefit of actually enforcing the fact that only ContactVOs are
in the collection, but it at least allows us to make very useful
convention-based assumptions.

This is a pretty powerful option in my opinion, unfortunately Flex2
blindly throws out all metadata it doesn't understand.  Through some
google code searching, we were able to discover an obscure compiler
option that looks like this:

-keep-as3-metadata+=Collection

This option would then make it such that Flex does not throw out
[Collection] metadata.

The problem is, this compiler option only works in DEBUG mode.  In
debug mode all of our code affected by this works beautifully and
without fault (and would probably be a very useful tool to provide to
the community).  In RUN mode, it fails miserably.  In short, Flex2 is
ignoring these extra compiler options when not in DEBUG mode.  We are
no longer able to see the [Collection] metadata.

Does anyone have any idea for working around this?  We are using ANT
for our builds, and I can guarantee that the -keep-as3-metadata
compiler option is being used identically in all cases.  It simply
gets ignored in RUN mode, and Flex2 goes back to throwing out all
metadata it doesn't understand.





[flexcoders] Slightly OT: Vista Feedback

2007-01-25 Thread Battershall, Jeff
My biggest concern in installing Vista on my laptop is whether it's
going to break my existing development setup:

CFMX 7.02 running with Apache with heavy use of Flex Builder. 

Anyone out there has Vista running on such a setup without issues? Or
with issues?  I'm still on the fence as to whether the feature set of
Vista is compelling enough to warrant the upgrade, and my concerns about
screwing up my development environment are a big factor in my decision.


Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)


Re: [flexcoders] Flex Builder 2.0.1 - problem creating a library project

2007-01-25 Thread Michael Schmalle

Hi,

One thing that happens sometimes is there is an error in your classes some
where.

When you add classes to the library, the compiler checks them as it builds
the swf.

If everything looks good and you see no errors.

Try Project-Clean and clean the library project.

Peace, Mike

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


  I'm trying to compile a library (swc) project for a first time, but
nothing happens - the bin folder remains empty.

The project is created with: File - New - Flex Library Project. I've
included the classes as described in examples.

I've tried to 1) build the project manually, and 2) with Build
Automatically option checked. In simply won't work.

So, what's the catch?

 





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

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

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


RE: [flexcoders] HTTPService Vs WebService

2007-01-25 Thread Merrill, Jason
The simplest dinstinction is that one is SOAP and the other one is
XML.

not quite that simple - not to confuse anyone further, but SOAP is
actually an XML-based protocol... :) 

Jason Merrill 
Bank of America
Learning  Organizational Effectiveness 
  
  
  
 
http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/
msgId=62622/stime=1169732739/nc1=3848640/nc2=2/nc3=3 
 



[flexcoders] Re: no rtmp connection on win xp ?

2007-01-25 Thread chrisnoeflex
Jeff,

I think the problem is that i'm not able to connect from the browser, 
to the app. server, so logging is also not possible. Keep getting the 
connection failed.
Now when i start up the application, i get a flash box asking where 
the debugger or host application is running, on localhost or on a ip 
address i can enter. I tried both, but it keeps popping up . When i 
press cancel , it gives the error : 'A connection to the debugger or 
profiler could not be established by Adobe Flash Player 9'.

Then, in the first window i get the error i mentioned earlier, and 
then , after hitting continue i get the error
 
# Error 2007 Parameter source must be non-null.

I'm getting really desperate here :-(   

If i find something, i'll let you know.

Chris.



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

2007-01-25 Thread adobeted
Adam,

Release cycles average 18 months. Flex 2 launched June 28 so to date
it has been 7 months since its release. Adobe is in the early stages
of development of Flex 3 and we are looking to release in 2007.

So why did I start talking about Flex 3 so early?

This release cycle is going to be very different and break the norm
for how release cycles work at Adobe. We are changing and in the next
few months this will become crystal clear as to our plans. We need to
get more community involved in the release to shape the features and
quality of Flex 3. Overall we are committed to delivering a first
class framework and development toolset for our customers.

Flex 3.0 is not right around the corner but will happen in 2007. My
announcement on Flex 3 earlier this week was to state that we are
committed to targeting Flash Player 9 for the release.

Pricing and release details are far from complete.

Patience, good things take time.

Cheers,

ted :)



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

2007-01-25 Thread adobeted
Flex SDK will remain FREE.

Ted Patrick
Adobe



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

2007-01-25 Thread adobeted
Negative, not pulling a Sun. Flex 3 is a full release cycle and the
changes within are substantial.

Ted :)



[flexcoders] Cold Fusion Report Builder Preview Issue

2007-01-25 Thread ahhierl
I just downloaded CF Report Builder and tried to do a quick sample 
report using the report wizard. I was able to connect via RDS to a CF 
server on the same machine and tested the query successfully. The 
problem is trying to preview the report. I get a Preview Report window 
with the message Loading... Then an Internet Explorer Script Error 
window pops up with the message that An error occurred on this page.
Line 2
Char 1
Error Invalid character
Code 0
URL http://localhost/Tes1tCFReport ==my report name.
The report is save in c:\inetpub\wwwroot on the same machine.
I'm using IE 7.

I also installed CF Report Builder on my laptop and got exactly the 
same result. Any help on getting past this would be greatly appreciated.
Thanks.
Art Hierl



[flexcoders] RepeatableBinding is not defined

2007-01-25 Thread vargaandrea
Hi,

Has anybody any idea what this error means?

Variable mx.binding::RepeatableBinding is not defined

Thanks



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

2007-01-25 Thread David Mendels
Hello,
 
No, we are not trying to sync the schedule of Flex 3 and CS3.  And the
ship of Flex 3 is a ways out.  We will of course have a public beta in
advance, but if you are at all serious about doing work with Flex it
would be crazy to wait--it is not around the corner.  
 
Please recall, from the first public Alpha at MAX 2005 it was 8 full
months till we shipped Flex 2.  We might go faster this time, but we
haven't even done a first public release.
 
Thanks,
David



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



I am literally picking up my F2 box today. Knowing F3 Beta is 
about to start is a bit f'd up.

Any rumors/guesses as to when roughly we might see Flex 3? I'm getting
ready to buy Flexbuilder 2 in the next month, but wonder if I should
wait until the second quarter. Seems there are rumors Flash 9
IDE/Creative suite will be Q2 also - I wonder if Adobe is getting ready
to try and get Flex in synch with those product cycles - would love it
if they offered a Creative Suite that has Flex Builder 3, Flash 9,
Photoshop, Illustrator, Dreamweaver. 

Jason Merrill
Bank of America 
Learning  Organizational Effectiveness








 


[flexcoders] Help needed in accesing files located in remote location

2007-01-25 Thread Vinod M Jacob
Hi ,
   
  In my apllication i am using Flex 2.0  ,JSP and tomcat server.
  I have hosted this application under Tomcat on a remote server.
  The file which i am acessing from this application is stored in local drive 
C://
  This file when stored under context root is acessible but not from the local 
drive. 
  Hence this following  error when i run the apllication.
   
   
  SecurityError: Error #2148: SWF file 
http://myserver:8080/application/bin/page.swf cannot access local resource 
file:///C:/User_Content/Podcast/BasRutten.JPG. Only local-with-filesystem and 
trusted local SWF files may access local resources.
 at flash.display::Loader/flash.display:Loader::_load()
 at flash.display::Loader/load()
 at mx.controls::SWFLoader/::loadContent()
 at mx.controls::SWFLoader/load()
 at mx.controls::SWFLoader/mx.controls:SWFLoader::commitProperties()
 at mx.core::UIComponent/validateProperties()
 at mx.managers::LayoutManager/validateClient()
 at 
mx.controls.listClasses::TileBase/mx.controls.listClasses:TileBase::makeRowsAndColumns()
 at 
mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::updateDisplayList()
 at 
mx.controls.listClasses::TileBase/mx.controls.listClasses:TileBase::updateDisplayList()
 at mx.core::UIComponent/validateDisplayList()
 at mx.managers::LayoutManager/::validateDisplayList()
 at mx.managers::LayoutManager/::doPhasedInstantiation()
 at Function/http://adobe.com/AS3/2006/builtin::apply()
 at mx.core::UIComponent/::callLaterDispatcher2()
 at mx.core::UIComponent/::callLaterDispatcher()
 at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
 at flash.utils::Timer/flash.utils:Timer::tick()

   
  I would really appreciate your quick response.
   
  Thanks ,
  Vinod M Jacob

 
-
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.

[flexcoders] Re: Sample FDS/J2EE application(Article) required

2007-01-25 Thread jrunrandy
Christophe Coenraets has an FDMS Tutorial (and Tomcat-based test-drive 
server) that should have what you need: http://coenraets.org/

HTH
Randy Nielsen
Flex Documentation Manager
Adobe Systems, Inc.


--- In flexcoders@yahoogroups.com, techunar [EMAIL PROTECTED] wrote:
 
 I have to work on Data Management Services of FDS, can you people
 provide me any sample article for this? (or a sample application)
 I have followed  completed the few applications who use
 hibernate/mySQL etc, but still I am not sure about there working 
inside. 




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

2007-01-25 Thread Merrill, Jason
Thanks David and Ted - great to see Adobe so active on this list - helps
puts us as ease and helps with product buy-in.  Makes you all seem so
less evil ;).  
 

Jason Merrill 
Bank of America
Learning  Organizational Effectiveness 
  
  
  
  
  



Re: [flexcoders] Slightly OT: Vista Feedback

2007-01-25 Thread Shannon Hicks
I installed Vista on my laptop running MX 7.02, IIS and FB 2. They all 
continued to work. It was everything else that broke. I lost printer 
support (no Vista drivers, and the XP drivers didn't transfer over). 
They did fix the hibernate bug, so Vista did finally allow my laptop to 
hibernate, but the rest of the interface was not only unimpressive, but 
confusing. If you use Windows-R to access your filesystem, you're in for 
a shock when you find out that they've moved some of the core 
directories like Desktop, My Documents, etc. I didn't play around with 
it long enough to figure it out... I ended up formatting it and going 
back to XP.


Shan

Battershall, Jeff wrote:


My biggest concern in installing Vista on my laptop is whether it's
going to break my existing development setup:

CFMX 7.02 running with Apache with heavy use of Flex Builder.

Anyone out there has Vista running on such a setup without issues? Or
with issues? I'm still on the fence as to whether the feature set of
Vista is compelling enough to warrant the upgrade, and my concerns about
screwing up my development environment are a big factor in my decision.

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED] mailto:jeff.battershall%40dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)

 




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

2007-01-25 Thread Adam Reynolds
I must admit I now have a warm fuzzy feeling now :)

Thank you for the feedback.

Merrill, Jason wrote:

 Thanks David and Ted - great to see Adobe so active on this list - 
 helps puts us as ease and helps with product buy-in.  Makes you all 
 seem so less evil ;). 
  

 Jason Merrill
 Bank of America
 Learning  Organizational Effectiveness 
   
   
   
   
  

  



RE: [flexcoders] Slightly OT: Vista Feedback

2007-01-25 Thread Giles Roadnight
I've tried Vista a few times at various stages of development. I do really
like the interface and will be switching to it soon. I'll also be using it
on my 3 media centers which will possibly show the biggest improvement.

 

Once concern I have had is Flash MX 2004 (and Flash 8). When I run these
when I open a movie clip the opening animation is VERY slow and almost makes
it unusable. I am not sure if you can turn these animations off.

 

Has anyone else had this problem?

 

Giles Roadnight

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Shannon Hicks
Sent: 25 January 2007 14:50
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Slightly OT: Vista Feedback

 

I installed Vista on my laptop running MX 7.02, IIS and FB 2. They all
continued to work. It was everything else that broke. I lost printer support
(no Vista drivers, and the XP drivers didn't transfer over). They did fix
the hibernate bug, so Vista did finally allow my laptop to hibernate, but
the rest of the interface was not only unimpressive, but confusing. If you
use Windows-R to access your filesystem, you're in for a shock when you find
out that they've moved some of the core directories like Desktop, My
Documents, etc. I didn't play around with it long enough to figure it out...
I ended up formatting it and going back to XP.

Shan

Battershall, Jeff wrote: 

My biggest concern in installing Vista on my laptop is whether it's
going to break my existing development setup:

CFMX 7.02 running with Apache with heavy use of Flex Builder. 

Anyone out there has Vista running on such a setup without issues? Or
with issues? I'm still on the fence as to whether the feature set of
Vista is compelling enough to warrant the upgrade, and my concerns about
screwing up my development environment are a big factor in my decision.

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battershall@ mailto:jeff.battershall%40dowjones.com dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)

 

 



[flexcoders] Re: Flex Builder 2.0.1 - problem creating a library project

2007-01-25 Thread Danko Kozar
I tried it - unfortunatelly it doesn't help.

:-|


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

 Hi,
 
 One thing that happens sometimes is there is an error in your 
classes some
 where.
 
 When you add classes to the library, the compiler checks them as 
it builds
 the swf.
 
 If everything looks good and you see no errors.
 
 Try Project-Clean and clean the library project.
 
 Peace, Mike
 
 On 1/25/07, Danko Kozar [EMAIL PROTECTED] wrote:
 
I'm trying to compile a library (swc) project for a first 
time, but
  nothing happens - the bin folder remains empty.
 
  The project is created with: File - New - Flex Library 
Project. I've
  included the classes as described in examples.
 
  I've tried to 1) build the project manually, and 2) with Build
  Automatically option checked. In simply won't work.
 
  So, what's the catch?
 
   
 
 
 
 
 -- 
 Teoti Graphix
 http://www.teotigraphix.com
 
 Blog - Flex2Components
 http://www.flex2components.com
 
 You can find more by solving the problem then by 'asking the 
question'.





Re: [flexcoders] saving a manipulated jpg

2007-01-25 Thread franto

my question is, how can you upload to server, i cant do that :(

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


  Another problem that I have is that my cfc method will not accept my
ByteArray.

Actionscript:
=
var picture:Picture = Slideshow.getInstance().getPicture();
var bmp:BitmapData = new BitmapData( picture.width,picture.height,false);
bmp.draw(picture);
var myPNG:ByteArray = PNGEncoder.encode(bmp);

Coldfusion:

cffunction name=saveToDisk access=remote returntype=any
 cfargument name=ext type=string required=true default=jpg
 cfargument name=img type=binary required=true
  
/cffunction

It always throws an error:  The argument IMG passed to function
saveToDisk() is not of type binary.


 





--
-
Franto

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


Re: [flexcoders] Help needed in accesing files located in remote location

2007-01-25 Thread Abdul Qabiz

Security sandbox in Flash Player 8 onwards has changed. Which means SWF can
be compiled with two different config:-

1) Either access local files but no data from network
2) Or access network data but no local data.

I believe, FlexBuilder/MXMLC compiles with second config mentioned above.

You can however give a particular file or directory special permission
(policy) to achieve both of above.

I suggest a reading of Flash Security
Whitepapewww.adobe.com/devnet/flashplayer/articles/flash_player_9_security.pdf
r www.adobe.com/devnet/flashplayer/articles/flash_player_9_security.pdf to
understand things much better way. You can use Flash Player Security manager
to add the file or directory,

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

Security manager basically creates trust files on your system. You can also
create trust files manually (without using GUI), Please Flash Player
Security Whitepaper to learn more.

www.adobe.com/devnet/*flash**player*/articles/*flash*_*player*_9_*security*.pdf



-abdul

On 1/25/07, Vinod M Jacob [EMAIL PROTECTED] wrote:


  Hi ,

In my apllication i am using Flex 2.0  ,JSP and tomcat server.
I have hosted this application under Tomcat on a remote server.
The file which i am acessing from this application is stored in local
drive C://
This file when stored under context root is acessible but not from the
local drive.
Hence this following  error when i run the apllication.


SecurityError: Error #2148: SWF file
http://myserver:8080/application/bin/page.swf cannot access local resource
file:///C:/User_Content/Podcast/BasRutten.JPG. Only local-with-filesystem
and trusted local SWF files may access local resources.
 at flash.display::Loader/flash.display:Loader::_load()
 at flash.display::Loader/load()
 at mx.controls::SWFLoader/::loadContent()
 at mx.controls::SWFLoader/load()
 at mx.controls::SWFLoader/mx.controls:SWFLoader::commitProperties()
 at mx.core::UIComponent/validateProperties()
 at mx.managers::LayoutManager/validateClient()
 at
mx.controls.listClasses::TileBase/mx.controls.listClasses:TileBase::makeRowsAndColumns
()
 at
mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::updateDisplayList
()
 at
mx.controls.listClasses::TileBase/mx.controls.listClasses:TileBase::updateDisplayList
()
 at mx.core::UIComponent/validateDisplayList()
 at mx.managers::LayoutManager/::validateDisplayList()
 at mx.managers::LayoutManager/::doPhasedInstantiation()
 at Function/http://adobe.com/AS3/2006/builtin::apply()
 at mx.core::UIComponent/::callLaterDispatcher2()
 at mx.core::UIComponent/::callLaterDispatcher()
 at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
 at flash.utils::Timer/flash.utils:Timer::tick()

I would really appreciate your quick response.

Thanks ,
Vinod M Jacob

--
Don't be flakey. Get Yahoo! Mail for 
Mobilehttp://us.rd.yahoo.com/evt=43909/*http://mobile.yahoo.com/mailand
always stay 
connectedhttp://us.rd.yahoo.com/evt=43909/*http://mobile.yahoo.com/mailto 
friends.

 



Re: [flexcoders] HTTPService Vs WebService

2007-01-25 Thread Abdul Qabiz

Yup! You can use HTTPService with backend-scripts that return text or
name-value pairs...You can even use it for SOAP but you would need to do
more work.

Where as WebService can easily be used with SOAP but expects right input and
result.

-abdul


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


   The simplest dinstinction is that one is SOAP and the other one is
XML.
not quite that simple - not to confuse anyone further, but SOAP is
actually an XML-based protocol... :)

Jason Merrill
Bank of America
Learning  Organizational Effectiveness





 



RE: [flexcoders] Slightly OT: Vista Feedback

2007-01-25 Thread Battershall, Jeff
Gosh Shannon, what a resounding, even gushing endorsement of Vista
(not)! :-)
 
In my 'old' age I'm getting a bit conservative having been bitten by the
'curse of the early adopter' a few too many times - like doing RIA
development with AS 1.0.  Maybe I can actually hold off being the 'first
on my block' to install.
 
Jeff

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Shannon Hicks
Sent: Thursday, January 25, 2007 9:50 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Slightly OT: Vista Feedback


I installed Vista on my laptop running MX 7.02, IIS and FB 2.
They all continued to work. It was everything else that broke. I lost
printer support (no Vista drivers, and the XP drivers didn't transfer
over). They did fix the hibernate bug, so Vista did finally allow my
laptop to hibernate, but the rest of the interface was not only
unimpressive, but confusing. If you use Windows-R to access your
filesystem, you're in for a shock when you find out that they've moved
some of the core directories like Desktop, My Documents, etc. I didn't
play around with it long enough to figure it out... I ended up
formatting it and going back to XP.

Shan

Battershall, Jeff wrote: 

My biggest concern in installing Vista on my laptop is
whether it's
going to break my existing development setup:

CFMX 7.02 running with Apache with heavy use of Flex
Builder. 

Anyone out there has Vista running on such a setup
without issues? Or
with issues? I'm still on the fence as to whether the
feature set of
Vista is compelling enough to warrant the upgrade, and
my concerns about
screwing up my development environment are a big factor
in my decision.

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
mailto:jeff.battershall%40dowjones.com 
(609) 520-5637 (p)
(484) 477-9900 (c)



 



[flexcoders] Re: FDS createItem - how to find ID of inserted record?

2007-01-25 Thread sunilpatel_10
Yes, this did work. Thanks a lot Jeff.

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

 You'll need to make sure you have dept defined as an association
 property in the Emp destination.
 
  
 
 When you have association properties between two data types, those types
 will use the same commit queue so you can remove the first
 dataServiceDEPT.commit().  The second commit on the dataServiceEMP
 instance will commit both the new department and the new employee.
 (The queue is stored on the DataService's dataStore - so
 dataService.commit() really is just a call to
 dataService.dataStore.commit().  dataServiceDEPT.dataStore should equal
 dataServiceEMP.dataStore.  By sharing one queue, we can keep
 dependencies like the one between the dept and the emp in the right
 order. 
 
  
 
 If you send two new items to the server in the same batch, FDMS will
 create the first item get its id, update that id in the reference for
 the second item, then create the second item.  
 
  
 
 If you send the create for the first item in one batch, you need to wait
 for the commit result to come back before you can issue the create for
 the second item.  This is a bug in FDMS that we need to fix... 
 
  
 
 Jeff
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of sunilpatel_10
 Sent: Tuesday, January 23, 2007 7:18 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: FDS createItem - how to find ID of inserted
 record?
 
  
 
 Thans Olivier for the reply. However, I am using Hibernate, FDS and
 Flex 2.0 with MySQL - Much like the CRM sample application with
 Hibernate. I didn't write my own DAO. The canvas has dept code, dept
 name, emp first name, emp last name. On click of save, I want to save
 dept info in DEPT table (ID, CODE, NAME) and EMP info in EMP table
 (ID, DEPT_ID, FNAME, LNAME) with EMP.DEPT_ID as new DEPT.ID - the code
 looks something like this - 
 
 dept = new Dept();
 dept.code = fcode.text;
 dept.name = fname.text;
 var ir:ItemReference = dataServiceDEPT.createItem(dept);
 dataServiceDEPT.commit();
 
 emp =new Emp();
 emp.dept = dept;
 emp.fname = ffname.text;
 emp.lname = flname.text;
 dataServiceEMP.createItem(emp);
 dataServiceEMP.commit();
 
 This code creates a new DEPT but not an EMP record. Help !!!
 
 Thanks
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Stembert Olivier (BIL)
 olivier.stembert@ wrote:
 
  Hi,
  
  You should set the id in your dao class.
  Here is an example with a dao using Spring:
  
  public void create(Dept dept) throws DataAccessException
  {
  String sql = ...
  NamedParameterJdbcTemplate template = new
  NamedParameterJdbcTemplate(this.getDataSource());
  MapSqlParameterSource namedParameters = new MapSqlParameterSource();
  ...
  template.update(sql, namedParameters);
  int id = getJdbcTemplate().queryForInt(call identity());
  dept.setDeptId(id);
  
  }
  
  Regards,
  
  Olivier
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of sunilpatel_10
  Sent: Saturday, January 20, 2007 2:25 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] FDS createItem - how to find ID of inserted
  record?
  
  
  
  Hi,
  
  I have a page where I capture DEPT and EMP data. On click of a button
  I want to save DEPT record and all the EMP records with ID of newly
  created DEPT as a parent. I use FDS, hibernate and db generated IDs.
  The problem I am facing is how do I get the ID of DEPT record created
  by createitem() and access it to assign this DEPT as a parent of EMP
  records that I want to create? If I examine ID of dept object used in
  createitem after FDS commit(), it is still 0. Appreciate your help.
  
  
  
  
  
  -
  
  An electronic message is not binding on its sender.
  
  Any message referring to a binding engagement must be confirmed in
  writing and duly signed.
  
  -
  
  
  
  
  -
  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] Re: Flex 3.0 - What happened to letting Flex 2 bed in?

2007-01-25 Thread adobeted
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 think you will see that the development and delivery of Flex 3 will
be a great change in this regard. We are opening up and there are some
great things in store.

If you ever have an Adobe issue, email me at [EMAIL PROTECTED] I read
every single email and will do my best to help.

Cheers,

Ted :)


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

 Thanks David and Ted - great to see Adobe so active on this list - helps
 puts us as ease and helps with product buy-in.  Makes you all seem so
 less evil ;).  
  
 
 Jason Merrill 
 Bank of America
 Learning  Organizational Effectiveness





Re: [flexcoders] saving a manipulated jpg

2007-01-25 Thread Webdevotion

I have resolved the bytearray problem.
Only question: how to apply blendmodes etc to the generated bitmap ?


RE: [flexcoders] Flex Builder 2.0.1 - problem creating a library project

2007-01-25 Thread Brian Holmes
This also happens when you fail to add files in the build path of your
library. Right click on the project, go to properties and check the
files you want to include in the build. That was the mistake I made the
first time I put a library together.
 
B.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Schmalle
Sent: Thursday, January 25, 2007 6:23 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex Builder 2.0.1 - problem creating a
library project


Hi,

One thing that happens sometimes is there is an error in your classes
some where.

When you add classes to the library, the compiler checks them as it
builds the swf.

If everything looks good and you see no errors. 

Try Project-Clean and clean the library project.

Peace, Mike


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

I'm trying to compile a library (swc) project for a first time,
but 
nothing happens - the bin folder remains empty. 

The project is created with: File - New - Flex Library
Project. I've 
included the classes as described in examples.

I've tried to 1) build the project manually, and 2) with Build 
Automatically option checked. In simply won't work. 

So, what's the catch?








-- 
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'.
 


***
The information in this e-mail is confidential and intended solely for the 
individual or entity to whom it is addressed.  If you have received this e-mail 
in error please notify the sender by return e-mail delete this e-mail and 
refrain from any disclosure or action based on the information.
***


Re: [flexcoders] File upload via JAVA

2007-01-25 Thread Abdul Qabiz

You can write simple servlet/jsp that does the uploading.

If you can write a simple app with html front end and java backend for file
uploading, you can transparently replace front-end with  Flash based
uploader. You have to take care of cases when multiple-files are being
uploaded together, on server-side you might need to check for that do the
appropriate.

-abdul



On 23 Jan 2007 20:29:28 -, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:



I'm trying to implement the file upload using the FileReference class and
can't find an example of the JAVA code that would be required, I've found
.net and php but no java, does anyone have an example ?

Cheers
Grant




Re: [flexcoders] saving a manipulated jpg

2007-01-25 Thread Webdevotion

Here you go franto,
http://blog.webqem.com.au/index.php/2006/09/08/flex-20-image-saving/

my problem still stands, anyone ?


[flexcoders] Posting PNG to server

2007-01-25 Thread franto

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


Re: [flexcoders] Convert Videos to FLV via Web

2007-01-25 Thread Abdul Qabiz

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.


 



RE: [flexcoders] Slightly OT: Vista Feedback

2007-01-25 Thread Brian Deitte
The Windows XP hibernation problem (which I ran into as well) is solved
with this hotfix:
http://www.u-g-h.com/InsufficientSystemResourcesExistToCompleteTheAPISOL
IVED.aspx




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Shannon Hicks
Sent: Thursday, January 25, 2007 9:50 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Slightly OT: Vista Feedback



I installed Vista on my laptop running MX 7.02, IIS and FB 2.
They all continued to work. It was everything else that broke. I lost
printer support (no Vista drivers, and the XP drivers didn't transfer
over). They did fix the hibernate bug, so Vista did finally allow my
laptop to hibernate, but the rest of the interface was not only
unimpressive, but confusing. If you use Windows-R to access your
filesystem, you're in for a shock when you find out that they've moved
some of the core directories like Desktop, My Documents, etc. I didn't
play around with it long enough to figure it out... I ended up
formatting it and going back to XP.

Shan

Battershall, Jeff wrote: 

My biggest concern in installing Vista on my laptop is
whether it's
going to break my existing development setup:

CFMX 7.02 running with Apache with heavy use of Flex
Builder. 

Anyone out there has Vista running on such a setup
without issues? Or
with issues? I'm still on the fence as to whether the
feature set of
Vista is compelling enough to warrant the upgrade, and
my concerns about
screwing up my development environment are a big factor
in my decision.

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
mailto:jeff.battershall%40dowjones.com 
(609) 520-5637 (p)
(484) 477-9900 (c)





 



[flexcoders] Decoupling a Flex 1.5 App from Flex 1.5 Server

2007-01-25 Thread Battershall, Jeff
We're in the middle of migrating existing apps/development from Flex 1.5
to 2 and at the same time migrating from CFMX 7.01 to CFMX 7.02.

We currently have Flex 1.5 and CF integrated, but we'd like to move away
from that where we're not really leveraging Flex server capabilities and
merely compile our .swfs via command line until we can entirely re-write
them in Flex 2. However it seems that History Management is an issue
that might keep us needing our server install. With Flex 2 that's not an
issue but I'm under the impression (correct or not) that we'll need Flex
Server running in order to use History Management with Flex 1.5.  

True or not true? Any advice along these lines appreciated.

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)


RE: [flexcoders] Convert Videos to FLV via Web

2007-01-25 Thread Merrill, Jason
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] mailto:[EMAIL 
PROTECTED]  wrote: 

ffmpeg should help you out.  Here is a tutorial:

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

Gus



On 1/23/07, Marlos Carmo | 5clicks.com.br 
http://5clicks.com.br   [EMAIL PROTECTED] mailto:[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] mailto:[EMAIL PROTECTED]  ups.com http://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.















 



Re: [flexcoders] Slightly OT: Vista Feedback

2007-01-25 Thread Shannon Hicks
Yeah, I know. I'm usually running the latest  greatest betas of stuff, 
but Vista left a bad taste in my mouth. I have memories of when I first 
installed XP... No driver support, the system files all got moved 
around, etc. The last nail in the coffin was the open/save dialog boxes 
in Vista. They're beyond useless, and in fact a few steps backward. My 
wife just got a new laptop in November that comes with a free upgrade to 
Vista. We ordered it, but don't plan on installing it anytime soon. 
Maybe toward the end of 2007 when SP1 is supposed to come out.


Yes, I'd rather be on a Mac, but I have similar views about OS X's 
finder... The new views just aren't as handy as what was available in 
MacOS 9. But at least they're usable.


Of course, this is my personal opinion. If you're seriously considering 
installing vista, I recommend buying a hard drive to install it on, so 
you can just swap back to the old XP one if you need to. Also, I'm only 
talking about using Vista as a development machine. If you're talking 
Media Center, then yes the Vista Media Center is well worth the upgrade.


Shan


Battershall, Jeff wrote:


Gosh Shannon, what a resounding, even gushing endorsement of Vista 
(not)! :-)
 
In my 'old' age I'm getting a bit conservative having been bitten by 
the 'curse of the early adopter' a few too many times - like doing RIA 
development with AS 1.0.  Maybe I can actually hold off being the 
'first on my block' to install.
 
Jeff


-Original Message-
*From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On Behalf Of *Shannon Hicks
*Sent:* Thursday, January 25, 2007 9:50 AM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Slightly OT: Vista Feedback

I installed Vista on my laptop running MX 7.02, IIS and FB 2. They
all continued to work. It was everything else that broke. I lost
printer support (no Vista drivers, and the XP drivers didn't
transfer over). They did fix the hibernate bug, so Vista did
finally allow my laptop to hibernate, but the rest of the
interface was not only unimpressive, but confusing. If you use
Windows-R to access your filesystem, you're in for a shock when
you find out that they've moved some of the core directories like
Desktop, My Documents, etc. I didn't play around with it long
enough to figure it out... I ended up formatting it and going back
to XP.

Shan

Battershall, Jeff wrote:


My biggest concern in installing Vista on my laptop is whether it's
going to break my existing development setup:

CFMX 7.02 running with Apache with heavy use of Flex Builder.

Anyone out there has Vista running on such a setup without issues? Or
with issues? I'm still on the fence as to whether the feature set of
Vista is compelling enough to warrant the upgrade, and my
concerns about
screwing up my development environment are a big factor in my
decision.

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
mailto:jeff.battershall%40dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)



 




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

2007-01-25 Thread Merrill, Jason
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 
  
  
  
  



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

2007-01-25 Thread Battershall, Jeff
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] Code Highlighting Bug?

2007-01-25 Thread Steve House

Brendan,

I am getting the same problem with:

mx:DateField id=dtNeeded disabledRanges={[{rangeEnd: new Date()}]}
   selectedDate={detailObject.dtNeeded}
editable=true /

Really Annoying!  Adobe, is this a bug and is there a workaround???

Steve

On 1/22/07, Brendan Meutzner [EMAIL PROTECTED] wrote:


  Hi,

The following line causes the code-highlighting features in FlexBuilder to
stop working...

DateChooser selectedRanges={[{rangeStart:range1Start,
rangeEnd:range1End}]}  /

Is this a bug?

Brendan

 



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

2007-01-25 Thread Tom Chiverton
On Thursday 25 January 2007 14:26, adobeted wrote:
 Flex SDK will remain FREE.

Great, many thanks for confirming that !
Also ta to David for a very nice explanation of why this isn't a dressed up 
point release, or a rush to market - in actually fact it's just Adobe showing 
us what is around the corner earlier (further ?), which can only be a good 
thing.

-- 
Tom Chiverton
Helping to continually network cutting-edge interfaces



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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


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

2007-01-25 Thread Doug McCune
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] FlexManiacs 2007 Conference - 2 days left to submit topics

2007-01-25 Thread Steve Drucker
Just two days left to submit topics for the FlexManiacs 2007 Conference in
Washington, DC June 25-26!
 
We want to hear from the best  brightest in the Flex community!
 
Note that we are paying for hotel, coach airfare, and conference admission
for selected speakers.
 
Please submit a topic to
http://flex2conference.figleaf.com/sessions/callforpapers.cfm
http://flex2conference.figleaf.com/sessions/callforpapers.cfm 
 
We're received some great submissions so far and will announce selected
topics on Jan 29th.
 
We are currently projecting that there will be 5 tracks containing a total
of 24 lectures and 18 hands-on presentations falling into the following
broad categories:
 
-Intro to Flex
-Advanced Flex
-Designing for Flex
-Server-Side Flex
-Apollo
 
Regards,
Steve Drucker
CEO
Fig Leaf Software
www.figleaf.com http://www.figleaf.com 
 
 


Re: [flexcoders] Re: remoting with public access modifier in cfc

2007-01-25 Thread Jason Y. Kwong

I've been tinkering with the services-config.xml file in the
wwwroot/WEB-INF/flex/ directory, specifically the method-access-level
switch.  The thing is, it doesn't seem to do anything (yes, I did restart
the CF server).  Whether it is set to public or remote, any Flex app can
access both public and remote functions (while older Flash apps can access
only remote functions).  This is true even if the Flex app is loaded from
the local hard drive.

What I'm trying to do is to prevent Flex apps from accessing public
functions.  It doesn't make sense to me that you can't create server-side
only CFCs. ie. utility components meant only for other CFCs to use.  These
utility CFCs need to have their functions marked public, but as soon as you
do that, any Flex app can then access them remotely?  Am I missing
something?


On 12/14/06, phillips1021 [EMAIL PROTECTED] wrote:


  Kevin Schmidt posted this in response to a blog entry on Ray Camden's
blog:

you only need to set access=remote if you are using flex with web
services. If you are usimg AMF (Flash Remoting) you don't need to set
access=remote.

See:

http://ray.camdenfamily.com/index.cfm/2006/11/24/Next-build-of-my-Flex-2ColdFusion-Security-Homework#more
and check the comments

It makes sense since both the Flex app and the CFC are on the same
host, just like the CFM file and the CFC are on the same host.

 



Re: [flexcoders] Re: Max OS X Flex Builder 2.01 License Issue - still waiting

2007-01-25 Thread Tom Chiverton
On Wednesday 24 January 2007 19:53, John Dowdell wrote:
 What you and Ethan describe doesn't seem acceptable to me either, but
 let me get some more information on this, and get back to the list when
 I do, good?

Sounds great.
Could you also try and find out if there are plans to just automate the whole 
process ?
It strikes me that converting license betwen platforms shouldn't really 
require a human in the loop, if it's only done once.

-- 
Tom Chiverton
Helping to advantageously aggregate prospective experiences



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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


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

2007-01-25 Thread Battershall, Jeff
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)









 



[flexcoders] Cannot access a property or method of a null object reference

2007-01-25 Thread Roger Ross
Hello,

Working my way throught the Training From the Source turorial and
ran into this error message.

Not sure why I am getting it. I compared my code to the completed code
for the lesson and it looks the same with no problems when I compile it.


TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at Dashboard/::catHandler()
at Dashboard/__catRPC_result()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at ::DirectHTTPMessageResponder/completeHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()


Here is a copy of the code that it has me write with the comboBox that
is to receive the data:
 

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=horizontal
creationComplete=catRPC.send()

mx:Script
![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;

[Bindable]
private var categories:ArrayCollection=new ArrayCollection();

private function catHandler(event:ResultEvent):void{
categories = event.result.catelog.category;
var catObj:Object = new Object();
catObj.name = All;
catObj.categoryID = 0;
categories.addItemAt(catObj, 0);
catCombo.selectedIndex = 0;
}

]]
/mx:Script

mx:HTTPService id=catRPC
url=http://www.flexgrocer.com/category.xml;
result=catHandler(event)/


mx:ComboBox id=catCombo
   dataProvider={categories}
   labelField=name/


Any Idea's…

Thanks,

Roger





[flexcoders] Command-line compiler Java errors

2007-01-25 Thread Derek Vadneau
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


Re: [flexcoders] Cannot access a property or method of a null object reference

2007-01-25 Thread Doug McCune

Is catalog misspelled?

categories = event.result.catelog.category;

If there's no catelog child of the XML root, then trying to access a 
child of that node will probably throw the error.


Doug

Roger Ross wrote:


Hello,

Working my way throught the Training From the Source turorial and
ran into this error message.

Not sure why I am getting it. I compared my code to the completed code
for the lesson and it looks the same with no problems when I compile it.

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at Dashboard/::catHandler()
at Dashboard/__catRPC_result()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent 
http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()

at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler 
http://www.adobe.com/2006/flex/mx/internal::resultHandler()

at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at ::DirectHTTPMessageResponder/completeHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()

Here is a copy of the code that it has me write with the comboBox that
is to receive the data:


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

layout=horizontal
creationComplete=catRPC.send()

mx:Script
![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;

[Bindable]
private var categories:ArrayCollection=new ArrayCollection();

private function catHandler(event:ResultEvent):void{
categories = event.result.catelog.category;
var catObj:Object = new Object();
catObj.name = All;
catObj.categoryID = 0;
categories.addItemAt(catObj, 0);
catCombo.selectedIndex = 0;
}

]]
/mx:Script

mx:HTTPService id=catRPC
url=http://www.flexgrocer.com/category.xml 
http://www.flexgrocer.com/category.xml

result=catHandler(event)/

mx:ComboBox id=catCombo
dataProvider={categories}
labelField=name/

Any Idea's...

Thanks,

Roger

 




Re: [flexcoders] Cannot access a property or method of a null object reference

2007-01-25 Thread Clint Tredway

most likely the setting of the selectedIndex is what is causing that error.
Its trying to set a property to a component that doesnt exist yet.

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


  Hello,

Working my way throught the Training From the Source turorial and
ran into this error message.

Not sure why I am getting it. I compared my code to the completed code
for the lesson and it looks the same with no problems when I compile it.

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at Dashboard/::catHandler()
at Dashboard/__catRPC_result()
at

flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction
()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.rpc.http.mxml::HTTPService/
http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at
mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::resultHandler()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at ::DirectHTTPMessageResponder/completeHandler()
at

flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction
()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()

Here is a copy of the code that it has me write with the comboBox that
is to receive the data:


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=horizontal
creationComplete=catRPC.send()

mx:Script
![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;

[Bindable]
private var categories:ArrayCollection=new ArrayCollection();

private function catHandler(event:ResultEvent):void{
categories = event.result.catelog.category;
var catObj:Object = new Object();
catObj.name = All;
catObj.categoryID = 0;
categories.addItemAt(catObj, 0);
catCombo.selectedIndex = 0;
}

]]
/mx:Script

mx:HTTPService id=catRPC
url=http://www.flexgrocer.com/category.xml;
result=catHandler(event)/

mx:ComboBox id=catCombo
dataProvider={categories}
labelField=name/

Any Idea's…

Thanks,

Roger

 





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


Re: [flexcoders] Command-line compiler Java errors

2007-01-25 Thread Shannon Hicks

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

 




RE: [flexcoders] Re: How to convert XMLList Collection to an ArrayCollection ?

2007-01-25 Thread Tracy Spratt
Hve you considered using XMLListCollection?  It has all the benefits of
a collection, retains the benefits of e4x expressions, and is easily
created from XMLList:

Var myDP:XMLListCollection = new
XMLListCollection(xmlData.partsList.catalog);

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Schmalle
Sent: Thursday, January 25, 2007 8:34 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: How to convert XMLList Collection to an
ArrayCollection ?

 

Hi,

I don't think you can...

In the help docs they have this example

for each (var item in doc.p) 
{ 
   trace(item); 
}

I would say you are going to have to bite the bullet and loop.
ArrayCollection is just a wrapped array and I don't see any  place where
XMLList returns and array. It's like mixing apples and oranges. 

Although XMLList looks like an array it isn't.

Peace, Mike

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

Have you tried: 

myDP = xmlData.partsList.catalog as ArrayCollection;

?

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

 Hello,
 I have XML data which comes back from a server via a custom socket.
 How can I convert that the to an ArrayCollection ?
 
 If I try:
 
 myDP = new ArrayCollection(); 
 myDP = ArrayCollection(xmlData.partsList.catalog);
 
 I get a runtime error the XML List collection can not be converted 
to 
 an array collection.
 
 I know I can do a for loop and re-build it but I was wondering if 
there 
 is a quick qay to do it.
 
 I know the HTTPService can do it with the result inline tag which 
will 
 convert the XML data to an Array Data provider but I am not using 
it. I 
 am using Sockets.
 
 Thank you for all the help,
 
 Sean.





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

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

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

 



[flexcoders] Re: Cannot access a property or method of a null object reference

2007-01-25 Thread Roger Ross
THANK YOU..
its always nice to have another pair of eyes when dealing with this
syntax!!!

My current dev. tool is nothing like this...

Roger



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

 Is catalog misspelled?
 
 categories = event.result.catelog.category;
 
 If there's no catelog child of the XML root, then trying to access a 
 child of that node will probably throw the error.
 
 Doug
 
 Roger Ross wrote:
 
  Hello,
 
  Working my way throught the Training From the Source turorial and
  ran into this error message.
 
  Not sure why I am getting it. I compared my code to the completed code
  for the lesson and it looks the same with no problems when I
compile it.
 
  TypeError: Error #1009: Cannot access a property or method of a null
  object reference.
  at Dashboard/::catHandler()
  at Dashboard/__catRPC_result()
  at
 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at
 
mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent

  http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
  at
 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler

  http://www.adobe.com/2006/flex/mx/internal::resultHandler()
  at mx.rpc::Responder/result()
  at mx.rpc::AsyncRequest/acknowledge()
  at ::DirectHTTPMessageResponder/completeHandler()
  at
 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at flash.net::URLLoader/flash.net:URLLoader::onComplete()
 
  Here is a copy of the code that it has me write with the comboBox that
  is to receive the data:
 
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
  http://www.adobe.com/2006/mxml
  layout=horizontal
  creationComplete=catRPC.send()
 
  mx:Script
  ![CDATA[
  import mx.collections.ArrayCollection;
  import mx.rpc.events.ResultEvent;
 
  [Bindable]
  private var categories:ArrayCollection=new ArrayCollection();
 
  private function catHandler(event:ResultEvent):void{
  categories = event.result.catelog.category;
  var catObj:Object = new Object();
  catObj.name = All;
  catObj.categoryID = 0;
  categories.addItemAt(catObj, 0);
  catCombo.selectedIndex = 0;
  }
 
  ]]
  /mx:Script
 
  mx:HTTPService id=catRPC
  url=http://www.flexgrocer.com/category.xml 
  http://www.flexgrocer.com/category.xml
  result=catHandler(event)/
 
  mx:ComboBox id=catCombo
  dataProvider={categories}
  labelField=name/
 
  Any Idea's...
 
  Thanks,
 
  Roger
 
 





Re: [flexcoders] Command-line compiler Java errors

2007-01-25 Thread Derek Vadneau

I tried that before I posted, to no avail - it produces the same error.


On 1/25/07, Shannon Hicks [EMAIL PROTECTED] 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


 





--

Derek Vadneau


Re: [flexcoders] Modules and Cairngorm

2007-01-25 Thread Todd Breiholz

It would appear that you are trying to use the CairngormEventDispatcher to
dispatch a standard Flash event instead of a CairngormEvent (or subclass).
I'd have to see the code to be more specific though.

Todd

On 1/24/07, 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] Posting PNG to server

2007-01-25 Thread Simeon Bateman

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
 



Re: [flexcoders] Code Highlighting Bug?

2007-01-25 Thread Brendan Meutzner

Hey,

Yes, very annoying... it appears that  the combination of {[{ causes
problems...


Brendan


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


  Brendan,

I am getting the same problem with:

mx:DateField id=dtNeeded disabledRanges={[{rangeEnd: new Date()}]}
selectedDate={detailObject.dtNeeded }
editable=true /

Really Annoying!  Adobe, is this a bug and is there a workaround???

Steve


On 1/22/07, Brendan Meutzner [EMAIL PROTECTED] wrote:

   Hi,

 The following line causes the code-highlighting features in FlexBuilderto 
stop working...

 DateChooser selectedRanges= {[{rangeStart:range1Start,
 rangeEnd:range1End}]}  /

 Is this a bug?

 Brendan


 





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


RE: [flexcoders] DataGrid Tooltips

2007-01-25 Thread Tracy Spratt
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

 



RE: [flexcoders] e4x - attribute based selector

2007-01-25 Thread Tracy Spratt
That is a tough one.  It is more of a transformation than a selection.

 

If you can't do it directly, consider using the selection expression to
return the nodes you do NOT want, then deleting them from the XML.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Shailesh Mangal
Sent: Wednesday, January 24, 2007 8:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] e4x - attribute based selector

 

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] Command-line compiler Java errors

2007-01-25 Thread Derek Vadneau

My bad.

I missed the detail on this page:
http://www.adobe.com/products/flex/productinfo/systemreqs/

Requirements for Flex 2 SDK:
Windows 2000, XP, or Server 2003, Java 1.4 (Sun, IBM, or BEA) or 1.5 (Sun)

I'm going to install JRE 1.4. I'll post back after I've tried again.


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


I tried that before I posted, to no avail - it produces the same error.


On 1/25/07, Shannon Hicks [EMAIL PROTECTED]  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


  





--

Derek Vadneau





--

Derek Vadneau


[flexcoders] Setting Initial NetStream Sound Volume

2007-01-25 Thread John Kirby
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


[flexcoders] Ogg Vorbis Tremor in AS3?

2007-01-25 Thread Kevin Newman
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.





[flexcoders] Re: Modules and Cairngorm

2007-01-25 Thread ben.clinkinbeard
I am getting this exact same error. The only place it references my
own code is at the bottom of the stack, where it refers to a line
calling executeNextCommand(). I am not getting this error every time
my command (part fo a sequence) is run, it only happens under specific
conditions.

Should we really be getting references to a path on what I can only
assume is the machine that this build of Cairngorm was generated from?
(C:\dev\swat\projects\ac_emea\...) That is not a path on my machine. I
am also not using modules at all.

Can someone advise?

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: Cairngorm's Anaemic Domain Model

2007-01-25 Thread Aldo Bucchi
Cairngorm Enterprise...

 ...will also encapsulate all the business rules that apply to the UI. I see 
 this being different  to the domain model and the business rules that reside 
 on the server.

All the business rules... wow.
OK, please give me a hint... what kind of rules are we talking about here... ?





On 12/11/06, Lachlan Cotter [EMAIL PROTECTED] wrote:







 Hi Peter,


 Thanks for this information, it has certainly helped to clarify some things 
 in my mind.



 With Cairngorm Enterprise one of goals is to promote an application model on 
 the client (RIA) and a domain model on server. We see the application model 
 being a good OO model that reflects the UI and tells us about the entities 
 and their relationships that we are surfacing. It will also encapsulate all 
 the business rules that apply to the UI. I see this being different to the 
 domain model and the business rules that reside on the server.

 The thing that is most interesting to me here is the talk of relationships 
 because this is what seems to be lacking somewhat in the current Cairngorm 
 paradigm. Not to imply that it can't be done, just that it doesn't seem to be 
 part of the standard practice.


 This sort of shifts the concept we have at the moment, whereby you call a 
 command, which may invoke a service via a delegate. In essence we are going 
 to move the delegates behind the model and have the command call an operation 
 on the model.

 This sounds promising. Where does this put the service locator?



 In essence it would be nice to see VOs / DTOs being used for transporting 
 data rather than making their way in to the view via the ModelLocator.
 Again, glad to hear this is an issue for others as well. In simple cases, the 
 VO is adequate because it sufficiently represents both the domain object and 
 the view you want to take of it. When the relationships become more complex 
 however, inconsistencies begin to arise. For example, when you have 
 many-to-many relationships and such and you want to be able to traverse the 
 object graph in bindings or whatever, you need to construct a more 
 interconnected object graph rather than a collection of records as it were. 
 Then you have the problem of how you get from A to B. Is there a best 
 practice you are advocating for mapping and building object graphs out of 
 data in DTOs? or is it left up to the specific requirements of the 
 application?


   



-- 
: Aldo Bucchi :
mobile (56) 8 429 8300


Re: [flexcoders] Posting PNG to server

2007-01-25 Thread franto

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


Re: [flexcoders] Posting PNG to server

2007-01-25 Thread Webdevotion

Franto,
I posted a reply on your question today in the other thread ; )


[flexcoders] Re: Posting PNG to server

2007-01-25 Thread dario.drome
Try this bellow, it is working for me (though I do not use PHP in 
server side, I use an ASP page.)

P.S.- Any help on message #61263?... I'm also in deadline

function upLoadRemote(endpointURL:String, binData:ByteArray):void
{
   var loader:URLLoader;
   var request:URLRequest;

   loader = new URLLoader();
   request = new URLRequest(endpointURL);
   request.method = POST;
   binData.position = 0;
   request.data = binData;
   request.contentType = application/octect-stream;

   loader.addEventListener(COMPLETE, uploadComplete );
   loader.addEventListener(IO_ERROR, uploaderIOError );

   loader.load(request);
}
--- In flexcoders@yahoogroups.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





[flexcoders] using mx:Tree to get custom icons

2007-01-25 Thread jensen.axel
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/wwhelp.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] Re: scrollToIndex just won't work ... any workarounds ?

2007-01-25 Thread jensen.axel
If you are using xml in your tree, you can use e4x to manipulate which
item you want to be selected by searching with e4x... 

for example:

import mx.events.*
import mx.rpc.events.*;
import mx.collections.*;

[Bindable]  
public var treeCollection:XML;  

/* this would be in your receivedEvent from your remote object or
http call /
treeCollection = new XML(event.result);

/* 
your xml looks like this
country
  state name=Alabama id=29 type=state
city name=Birmingham id=233 stateID=29 type=city /
city name=Mobile id=234 stateID=29 type=city /
city name=Montgomery id=235 stateID=29 type=city /
  /state
/country
*/

mx:Tree x=10 y=30 
  id=activeTree dataProvider={treeCollection} 
  labelField=@name change=treeChange(); height=436 
  showRoot=false width=162/

say i want to select Mobile from the tree with actionscript, and i
want my change event to happen, just like somebody clicked on it

private function refetchCurrentCity(cityID:Number):void{
activeTree.selectedItem = treeCollection.state.city.(@id==cityID);
activeTree.dispatchEvent(new Event(change));
}

your treeCollection is already xml so you can go ahead and tear it up
using the very awesome e4x! and then dispatch your change event or
click event

I'm not even sure if thats what your going for... but maybe that will
help...





Re: [flexcoders] Posting PNG to server

2007-01-25 Thread franto

1 more thing

can be sent in 1 URLRequest post data + PNG
i think its not possible, but just asking

because for png i need to set
request.contentType = multipart/form-data;

but it removes ll POST vars (text)
is it possible to merge these 2 kinds of data?

Franto



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


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





--
-
Franto

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


  1   2   >