RE: [flexcoders] SWFLoader

2007-06-08 Thread Alex Harui
Depends on what you mean by that.  You can stop its timeline from
advancing.  You can block it from getting mouse events, but you probably
can't keep it from doing some thinking.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Christopher Olsen
Sent: Thursday, June 07, 2007 6:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] SWFLoader

 

Hey,

I'm not sure if this is possible but if I load a swf with swfload is 
there a way to halt the execution of that swf and then resume it?

-Christopher

 



[flexcoders] [SOLVED] Re: fullscreen question

2007-06-08 Thread Bogdan BALAJ
Here is the code:

mx:Script
![CDATA[
import mx.containers.Canvas;
import flash.system.fscommand
   // Event handler function to set the value of the 
  // ProgressBar control.
  private function fscreen():void
  {
   
fscommand(showmenu,false);
fscommand(fullscreen,true);
   
aplication.addEventListener(KeyboardEvent.KEY_DOWN,keyHandler);
application.setFocus()
  }
  
private function keyHandler(event:KeyboardEvent):void
  {
//Handle ESC
if(event.keyCode==27) {
fscommand(showmenu,false);
fscommand(fullscreen,true);
}

  }
   ]]
/mx:Script


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

 Yes, you're right. The ESC key will switch FS off. 
 
 The idea is to switch back on if I detect that the application is not
 in fullscreen. This is something I can't manage to solve  in Flex.
 
 
 B.
 --- In flexcoders@yahoogroups.com, arpitmathur_80 arpitflex@ wrote:
 
  I think there may not be an option to alter that behavior since adobe
  is worried that people may use the feature to take away the user's
  navigation and ability to move out of the experience. So the esc key
  is permanently tied to escaping the fullscreen experience, as far as I
  know.
  
  
  --- In flexcoders@yahoogroups.com, Bogdan BALAJ bogdan.balaj@
  wrote:
  
   Hi,
   
   we are looking to build a standalone app that will run in full
screen.
   To go to fullscreen on start is easy, the only problem that I
have is
   that when the user is pressing ESC, the player is getting back
to it's
   window size. 
   
   This might be easy also to solve with an addEventListener function.
   However, all of my tries are not succesfull with this particular
 issue. 
   
   Anyone have managed to solved it? Can you share a working
example for
   this issue?
   
   Thank you,
   Bogdan
  
 





RE: [flexcoders] Couldn't find item renderer in the event

2007-06-08 Thread Alex Harui
Which event?  There's a difference between CLICK and ITEM_CLICK

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of handitan
Sent: Thursday, June 07, 2007 6:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Couldn't find item renderer in the event

 

Hi,

I have a datagridColumn's itemRenderer is being set to CheckBox.

I use a custom datagrid for this so that I would be able to capture the 
mouseEvent.

When I got the event, I couldn't find the property that tells me the 
CheckBox in the row that I selected.

If I remember correctly, which I doubt coz I have been working late, 
the flex doc said that it is not included on the event or something.

Thank you!

 



RE: [flexcoders] I need to pass an XMLCollection as a parameter to a JSP or Servlet

2007-06-08 Thread Alex Harui
I'm surprised no experts have answered this yet.  I believe most folks get the 
source from the collection and call toXMLString:

 

XML_Grupos.source.toXMLString()

 

Not sure if you can wrap it in {} or not.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL 
PROTECTED]
Sent: Thursday, June 07, 2007 7:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] I need to pass an XMLCollection as a parameter to a JSP 
or Servlet

 

Esteemed fellow listers:

I need to pass an XMLCollection as a parameter to a JSP or Servlet

I have used a Datagrid to organize the information , and I need to pass the new 
data in the DataGrid to a JSP or Servlet.

mx:XMLListCollection id=XML_Grupos ./ // Has the data from the DataGrid
 

mx:HTTPService id=serviceJSP url=Diagrama.jsp resultFormat=e4x 
showBusyCursor=true 
fault=Alert.show(event.fault.faultString), 'Error' 
result=Alert.show(event.toString())
mx:request
quienflex/quien
Grupos{XML_Grupos}/Grupos 
/mx:request
/mx:HTTPService


A button which calls serviceJSP.send() is used to send the data

The parameter quien is received without any problem by the JSP

But the parameter XML_Groups, I can't receive or work with the data.

The communication with the JSP is working OK, but the Array String[] Grupos 
in the JSP does not contain the information sent by Flex.

I need to do this with HTTPService because I don't want to use FDS because of 
the license (because the client has a 2-processor server), and because I also 
don't want to buy FDS.

I'm coming to you all because I couldn't find anything about this in the Adobe 
docs.

Thanks...





Pablo Dario Ingelhorn
Ingelhorn Sistemas
(6303) Toay  - La Pampa - Argentina 






-- 
Pablo Dario Ingelhorn
Ingelhorn Sistemas
Teléfonos: 02954-498469 // celular:02954-15513545
Calle Gaviota Nº4881 esquina Misto Nº323
(6303) Toay  - La Pampa - Argentina 
 
P.D.: (claves para vivir bien)
Romanos 10:9 Que si confesares con tu boca que Jesús es el Señor, y creyeres 
en tu corazón que Dios le levanto de los muertos, serás salvo.
Juan 14:6 (Jesús nos dice..) Yo soy el camino y la verdad y la vida, nadie 
viene al padre sino es por mí.
3era.de Juan 2 (Dios nos dice..) Amado, Yo deseo que tu seas prosperado en 
todas las cosas, y que tengas salud, así como prospera tu alma.
Juan 10:10 (Jesús nos dice..) ...Yo he venido para que tengan vida y para que 
la tengan en abundancia.
 



Re: [flexcoders] OK,

2007-06-08 Thread greg h

Patrick,

Jesse Warden did a nice job walking through using the Flex Component Kit
for Flash 
CS3http://labs.adobe.com/wiki/index.php/Flex_Component_Kit_for_Flash_CS3
in the following blog post:

Example for Flex Component Kit for Flash CS3
http://www.jessewarden.com/archives/2007/04/example_for_fle.html

hth,

g


[flexcoders] Re: embed image assets in a Source Path folder?

2007-06-08 Thread seriousbraincancer
Sorry, I must have mis-worded my response.

You don't have to make any shortcuts or links since your assets are in
the same folder as your packages:

- root
-- images
 image1.png
 image2.png
-- com
--- mycompany
 MyApp.as

In MyApp.as, you can embed any image in 'images' by prepending / to
the beginning of the path:

[Embed(source=/images/image1.png)]
public var Image1:Class;

I think that will work for the situation you described -- you don't
need to do any hackery.

-

To answer your link question: I assume you're trying to link the
assets directory under root/com/mycompany so that MyApp.as can refer
to it as assets/image1.png by creating a shortcut under
root/com/mycompany that points to root/assets.  Unfortunately that
won't work because you can't create proper symbolic links in Windows, see:

  http://answers.google.com/answers/threadview?id=341355

If you're on any Unix-based system (this includes Mac OSX), you can
create a proper link like the one you wanted to create using the `ln`
command.

Again, you don't have to worry about this, because you don't even need
to create a link.

--- In flexcoders@yahoogroups.com, tddclare [EMAIL PROTECTED] wrote:
 What kind of hackery is needed?  It seems silly to not be able to use
 common resources across projects -- what's the point of all this great
 OOP practice if I can't reuse my items across projects?
 
 By the in windows I assume you mean that if I were (say) on a Mac [I
 WISH!] and tried this it would work?





[flexcoders] Re: Visible Buttons

2007-06-08 Thread David
Hi Tim,
Thanks again for that! Worked like a charm! I just had to declare a
type on it so it read: private var linkedFormButtonLabel:String= ;.
I also had to change the Change event to Click for the datagrid
since my grid. If its not too much trouble can you take a peek at
another post of mine?
http://tech.groups.yahoo.com/group/flexcoders/message/76766 I don't
think anyone has really looked at it and its now pretty far back in
the list. I just don't have any idea on where to begin with this one.
Thanks again,
David



[flexcoders] Re: date localization

2007-06-08 Thread georgeriley
I can't seem to find the build_framework.xml Ant script.  The Flex
docs make reference to it as well, but I checked on both a Mac and
Windows installation with no luck.

Does anyone know if it has been removed from the Flex 2.0.1 install?


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

 On 5/4/07, xho [EMAIL PROTECTED] wrote:
 

 
 You have to rebuild framework_rb.swc.
 
   ant -f build_framework.xml -Dflex.locale=it_IT build-framework-rb
 
 This will place a new framework_rb.swc in your locale's directory. Now
 if you specify locale=it_IT to mxmlc it'll pick up values from this
 new locale SWC.
 
 Hope this helps.





[flexcoders] I need to pass an XMLCollection as a parameter to a JSP or Servlet

2007-06-08 Thread [EMAIL PROTECTED]

Esteemed fellow listers:

I need to pass an XMLCollection as a parameter to a JSP or Servlet

I have used a Datagrid to organize the information , and I need to pass 
the new data in the DataGrid to a JSP or Servlet.


mx:XMLListCollection id=*XML_Grupos* ./ // Has the data from the 
DataGrid
   

mx:HTTPService id=serviceJSP url=Diagrama.jsp resultFormat=e4x 
showBusyCursor=true
   fault=Alert.show(event.fault.faultString), 'Error' 
result=Alert.show(event.toString())

   mx:request
   quienflex/quien
   Grupos{*XML_Grupos*}/Grupos
   /mx:request
/mx:HTTPService


A button which calls *serviceJSP.send(**) *is used to send the data

The parameter quien is received without any problem by the JSP

But the parameter XML_Groups, I can't receive or work with the data.

The communication with the JSP is working OK, but the Array String[] 
Grupos in the JSP does not contain the information sent by Flex.


I need to do this with HTTPService because I don't want to use FDS 
because of the license (because the client has a 2-processor server), 
and because I also don't want to buy FDS.


I'm coming to you all because I couldn't find anything about this in the 
Adobe docs.


Thanks...


Pablo Dario Ingelhorn
Ingelhorn Sistemas
(6303) Toay  - La Pampa - Argentina 





[flexcoders] Flex event addition

2007-06-08 Thread Ariel Jakobovits
Could it be added that an event gets fired, say for a ComboBox, when the 
dataProvider changes? There is already one for 'data'.



--
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: embed image assets in a Source Path folder?

2007-06-08 Thread Tom Chiverton
On Thursday 07 Jun 2007, tddclare wrote:
 What kind of hackery is needed?  It seems silly to not be able to use
 common resources across projects -- what's the point of all this great
 OOP practice if I can't reuse my items across projects?

The 'correct' ways to share resources are not using Eclipse's linked folders 
feature, but Modules, libraries or something like svn:externals.

-- 
Tom Chiverton
Helping to authoritatively embrace strategic CEOs
on: http://thefalken.livejournal.com



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] Data binding inside a repeater

2007-06-08 Thread borekbe
Is it possible to write something like this:

mx:Button id=b color=red textRollOverColor={b.getStyle('color')} /

inside a repeater? It doesn't work in my case, presumably because of
the ID is problematic inside a repeater.

Thanks,
Borek



[flexcoders] Supply list with XML fails when only one element

2007-06-08 Thread Carlton Dickson
I have some simple XML which when passed to a control is displayed no
problems but when the XML only has 1 element it seems to fail.

The error I get is shown below as are my files just in case some one
has a chance to test it out.

I have a few books on Flex and they don't seem to use examples where
there is a piece of XML with just one child node, any ideas why this
error might be occuring?

TypeError: Error #1034: Type Coercion failed: cannot convert
mx.utils::[EMAIL PROTECTED] to mx.collections.ArrayCollection.
at basic/::unitRPCResult()
at basic/__unitRPC_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()

=== Start MXML===
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=unitRPC.send();
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;

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

private function unitRPCResult(event:ResultEvent):void
{
units = event.result.allUnits.unit;
}
]]
/mx:Script

mx:HTTPService id=unitRPC url=../services/xml.xml
result=unitRPCResult(event) /

mx:ComboBox id=cmbo_test x=10 y=10 dataProvider={units}
labelField=unitName/mx:ComboBox

/mx:Application
=== End MXML===

===Start working XML===
?xml version=1.0 encoding=utf-8 ? 
allUnits
unit
unitNameBunch/unitName 
unitID4/unitID 
/unit
unit
unitNameDozen/unitName 
unitID2/unitID 
/unit
unit
unitNameEach/unitName 
unitID1/unitID 
/unit
unit
unitNamePound/unitName 
unitID3/unitID 
/unit
/allUnits
===End working XML===

===Start bad XML===
?xml version=1.0 encoding=utf-8 ? 
allUnits
unit
unitNameBunch/unitName 
unitID4/unitID 
/unit
/allUnits
===End bad XML===



RE: [flexcoders] Supply list with XML fails when only one element

2007-06-08 Thread Tuli, Nikhil
How about changing the data type from ArrayCollection to XMLList.

Best Regards, 

Nikhil Tuli. 
Associate Software Engineer, 
Fidelity Business Services India Pvt. Ltd., 
7th Floor, Tower D,
Uni TechWorld, Sector 39,
Gurgaon - 122 001.
Phone (India) : +91 124 283 3209
Phone (US): 8 804 4395 

il n'y a rien tel que noir ou blanc, toutes sont différentes dégradés de gris 

Any comments or statements made in this email are not necessarily those of 
Fidelity Business Services India Pvt. Ltd. or any of the Fidelity Investments 
group companies. The information transmitted is intended only for the person or 
entity to which it is addressed and may contain confidential and/or privileged 
material. If you have received this in error, please contact the sender and 
delete the material from any computer. All e-mails sent from or to Fidelity 
Business Services India Pvt. Ltd. may be subject to our monitoring procedures.

 


  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Carlton Dickson
Sent: Friday, June 08, 2007 4:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Supply list with XML fails when only one element



I have some simple XML which when passed to a control is displayed no
problems but when the XML only has 1 element it seems to fail.

The error I get is shown below as are my files just in case some one
has a chance to test it out.

I have a few books on Flex and they don't seem to use examples where
there is a piece of XML with just one child node, any ideas why this
error might be occuring?

TypeError: Error #1034: Type Coercion failed: cannot convert
mx.utils::[EMAIL PROTECTED] to mx.collections.ArrayCollection.
at basic/::unitRPCResult()
at basic/__unitRPC_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()

=== Start MXML===
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
http://www.adobe.com/2006/mxml 
layout=absolute creationComplete=unitRPC.send();
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;

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

private function unitRPCResult(event:ResultEvent):void
{
units = event.result.allUnits.unit;
}
]]
/mx:Script

mx:HTTPService id=unitRPC url=../services/xml.xml
result=unitRPCResult(event) /

mx:ComboBox id=cmbo_test x=10 y=10 dataProvider={units}
labelField=unitName/mx:ComboBox

/mx:Application
=== End MXML===

===Start working XML===
?xml version=1.0 encoding=utf-8 ? 
allUnits
unit
unitNameBunch/unitName 
unitID4/unitID 
/unit
unit
unitNameDozen/unitName 
unitID2/unitID 
/unit
unit
unitNameEach/unitName 
unitID1/unitID 
/unit
unit
unitNamePound/unitName 
unitID3/unitID 
/unit
/allUnits
===End working XML===

===Start bad XML===
?xml version=1.0 encoding=utf-8 ? 
allUnits
unit
unitNameBunch/unitName 
unitID4/unitID 
/unit
/allUnits
===End bad XML===



 



[flexcoders] Re: Supply list with XML fails when only one element

2007-06-08 Thread Carlton Dickson
Thanks the response... :)

Hmmm...I gave that a shot and it seems to work...not sure if what I
have ended up with is the long winded approach...it works for single
node XML and multiple...now to just implement this approach in my main
application :-s

Do you think this approach is ok?

== Working code below ==
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=unitRPC.send();
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
import mx.collections.XMLListCollection;
import mx.rpc.events.ResultEvent;

[Bindable]
private var units:XML = new XML();
[Bindable]
private var unitsData:XMLListCollection;

private function unitRPCResult(event:ResultEvent):void
{
units = (event.result as XML);
unitsData = new XMLListCollection(units.unit);
}
]]
/mx:Script


mx:HTTPService id=unitRPC url=../services/xml.xml
result=unitRPCResult(event) resultFormat=e4x /
mx:ComboBox id=cmbo_test x=10 y=10 dataProvider={unitsData}
labelField=unitName/mx:ComboBox

/mx:Application




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

 How about changing the data type from ArrayCollection to XMLList.
 
 Best Regards, 
 
 Nikhil Tuli. 
 Associate Software Engineer, 
 Fidelity Business Services India Pvt. Ltd., 
 7th Floor, Tower D,
 Uni TechWorld, Sector 39,
 Gurgaon - 122 001.
 Phone (India) : +91 124 283 3209
 Phone (US): 8 804 4395 
 
 il n'y a rien tel que noir ou blanc, toutes sont différentes
dégradés de gris 
 
 Any comments or statements made in this email are not necessarily
those of Fidelity Business Services India Pvt. Ltd. or any of the
Fidelity Investments group companies. The information transmitted is
intended only for the person or entity to which it is addressed and
may contain confidential and/or privileged material. If you have
received this in error, please contact the sender and delete the
material from any computer. All e-mails sent from or to Fidelity
Business Services India Pvt. Ltd. may be subject to our monitoring
procedures.
 
  
 
 
   _  
 
   From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Carlton Dickson
   Sent: Friday, June 08, 2007 4:03 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Supply list with XML fails when only one element
   
   
 
   I have some simple XML which when passed to a control is displayed no
   problems but when the XML only has 1 element it seems to fail.
   
   The error I get is shown below as are my files just in case some one
   has a chance to test it out.
   
   I have a few books on Flex and they don't seem to use examples where
   there is a piece of XML with just one child node, any ideas why this
   error might be occuring?
   
   TypeError: Error #1034: Type Coercion failed: cannot convert
   mx.utils::[EMAIL PROTECTED] to mx.collections.ArrayCollection.
   at basic/::unitRPCResult()
   at basic/__unitRPC_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()
   
   === Start MXML===
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
   layout=absolute creationComplete=unitRPC.send();
   mx:Script
   ![CDATA[
   import mx.collections.ArrayCollection;
   import mx.rpc.events.ResultEvent;
   
   [Bindable]
   private var units:ArrayCollection = new ArrayCollection();
   
   private function unitRPCResult(event:ResultEvent):void
   {
   units = event.result.allUnits.unit;
   }
   ]]
   /mx:Script
   
   mx:HTTPService id=unitRPC url=../services/xml.xml
   result=unitRPCResult(event) /
   
   mx:ComboBox id=cmbo_test x=10 y=10 dataProvider={units}

RE: [flexcoders] Re: Supply list with XML fails when only one element

2007-06-08 Thread Tuli, Nikhil
This looks fine. Actually the problem with the ArrayCollection is when the 
Flash Engine tries to convert an XML into object, it doesnt requires the class 
structure for the response before hand and it does that at run time.
And when it sees a single node within a node it has no reason to convert that 
to ArrayCollection.
 
Also this would fail for scenarios like :
 
 ?xml version=1.0 encoding=utf-8 ? 
allUnits
unitCount
4
/unitCount
unitType
xyz
/unitType
 unit
 unitNameBunch/unitName 
 unitID4/unitID 
 /unit
 unit
 unitNameDozen/unitName 
 unitID2/unitID 
 /unit
 unit
 unitNameEach/unitName 
 unitID1/unitID 
 /unit
 unit
 unitNamePound/unitName 
 unitID3/unitID 
 /unit
 /allUnits

Thought the above xml is a valid but not a good structure, and flex would fail 
to understand such response.
 
Best Regards, 

Nikhil Tuli. 
Associate Software Engineer, 
Fidelity Business Services India Pvt. Ltd., 
7th Floor, Tower D,
Uni TechWorld, Sector 39,
Gurgaon - 122 001.
Phone (India) : +91 124 283 3209
Phone (US): 8 804 4395 

il n'y a rien tel que noir ou blanc, toutes sont différentes dégradés de gris 

Any comments or statements made in this email are not necessarily those of 
Fidelity Business Services India Pvt. Ltd. or any of the Fidelity Investments 
group companies. The information transmitted is intended only for the person or 
entity to which it is addressed and may contain confidential and/or privileged 
material. If you have received this in error, please contact the sender and 
delete the material from any computer. All e-mails sent from or to Fidelity 
Business Services India Pvt. Ltd. may be subject to our monitoring procedures.

 


  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Carlton Dickson
Sent: Friday, June 08, 2007 5:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Supply list with XML fails when only one 
element



Thanks the response... :)

Hmmm...I gave that a shot and it seems to work...not sure if what I
have ended up with is the long winded approach...it works for single
node XML and multiple...now to just implement this approach in my main
application :-s

Do you think this approach is ok?

== Working code below ==
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
http://www.adobe.com/2006/mxml 
layout=absolute creationComplete=unitRPC.send();
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
import mx.collections.XMLListCollection;
import mx.rpc.events.ResultEvent;

[Bindable]
private var units:XML = new XML();
[Bindable]
private var unitsData:XMLListCollection;

private function unitRPCResult(event:ResultEvent):void
{
units = (event.result as XML);
unitsData = new XMLListCollection(units.unit);
}
]]
/mx:Script

mx:HTTPService id=unitRPC url=../services/xml.xml
result=unitRPCResult(event) resultFormat=e4x /
mx:ComboBox id=cmbo_test x=10 y=10 dataProvider={unitsData}
labelField=unitName/mx:ComboBox

/mx:Application



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

 How about changing the data type from ArrayCollection to XMLList.
 
 Best Regards, 
 
 Nikhil Tuli. 
 Associate Software Engineer, 
 Fidelity Business Services India Pvt. Ltd., 
 7th Floor, Tower D,
 Uni TechWorld, Sector 39,
 Gurgaon - 122 001.
 Phone (India) : +91 124 283 3209
 Phone (US): 8 804 4395 
 
 il n'y a rien tel que noir ou blanc, toutes sont différentes
dégradés de gris 
 
 Any comments or statements made in this email are not necessarily
those of Fidelity Business Services India Pvt. Ltd. or any of the
Fidelity Investments group companies. The information transmitted is
intended only for the person or entity to which it is addressed and
may contain confidential and/or privileged material. If you have
received this in error, please contact the sender and delete the
material from any computer. All e-mails sent from or to Fidelity
Business Services India Pvt. Ltd. may be subject to our monitoring
procedures.
 
 
 
 
 _ 
 
 From: flexcoders@yahoogroups.com 
mailto:flexcoders%40yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
mailto:flexcoders%40yahoogroups.com ] On Behalf Of 

[flexcoders] as3syndicationlib - examples?

2007-06-08 Thread Chris
Hi guys - first post. Just wondering if anyone can point me to some  
examples using the xmlsyndication library?

Thanks!
-Chris



RE: [flexcoders] Parameter passing !! I am shocked

2007-06-08 Thread Ravi Kumar Gummadi
Hi jeffry,

 

The are public functions ! :-(

 

Regards

Ravi



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeffry Houser
Sent: Thursday, June 07, 2007 5:46 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Parameter passing !! I am shocked

 


I think you missed his point.

He sent in obj as a parameter to a function. So objParam should be a 
reference to obj; and nulling one should definitely null the other.

I do notice that the functions in the example are not declared as 
functions with the public function keywords. Could that be a 
contributing factor to the problem?

Roman Protsiuk wrote:
 
 
 objParam is not the same reference to created object as obj. Whenever 
 you set objParam to null it becomes null (try checking it out in your 
 deleteObject method). But who said the obj should become null? To 
 prepare obj for garbage collection you should set obj to null.
 
 R.
 
 On 6/7/07, *Ravi Kumar Gummadi* [EMAIL PROTECTED]
mailto:ravigummadi%40ivycomptech.com  
 mailto:[EMAIL PROTECTED]
mailto:ravigummadi%40ivycomptech.com  wrote:
 
 
 Hi all
 
 How does flex handle parameter passing, as I understand, it is by Pass
 by reference. But I was having some memory leaks and playing around a
 few tweaks and the following snippet completely took me by surprise.
 
 // CODE START
 
 script
 
 public var obj:Object;
 
 createObject(){
 
 obj = {test:1234,test2:5678};
 }
 
 checkObject(objParam:Object){
 trace(objParam);
 }
 
 deleteObject(objParam:Object){
 objParam = null; // I tried objParam = undefined as well
 }
 
 /script
 
 mx:Button id=create click=createObject() /
 mx:Button id=check click=checkObject(obj) /
 mx:Button id=delete click=deleteObject(obj) /
 
 // END
 
 Now 1. I created the object by click on create
 2. Then check for the existence of it (Traces [object object].. This
 is fine)
 3. Then clicked delete.
 4. Then again click on check... (Traces [object] [object]
 ! But since its passed by reference it should be
 NULL)
 
 Somewhere I read that it setting to NULL changes the reference count,
 does that mean in each of my function I need to set all the params to
 null at the end of it so that refercne count is reduced and raady for
 garbage collection!! ( That doesn't quite a sense !!)
 
 Regards
 Ravi
 

-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711 | Phone: 1-203-379-0773
--
My Company: http://www.dot-com-it.com http://www.dot-com-it.com 
My Podcast: http://www.theflexshow.com http://www.theflexshow.com 
My Blog: http://www.jeffryhouser.com http://www.jeffryhouser.com 

 



[flexcoders] Query regarding FDS ... please help me out..

2007-06-08 Thread rajendra tammana
Dear All,
   
  I’m modifying the FDS 30-mnts test drive sample apps to suit my Java/JSP 
based project. 
  i have developped the UI side with the help of flex ..
  For my project,I want to use only HTTPService of the FDS,
   so can I remove the other components like JMS,Hibernate,Spring,AMF etc., 
from my FDS installed directory. 
  If I remove it, will there be  any side-effects.
   
   
  Regards,
  Rajendra

 
-
Need Mail bonding?
Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.

[flexcoders] how to connect a jsp with the mxml using fds

2007-06-08 Thread rajendra tammana
Hi Everybody,
   
   i have a small problem regarding flex data services 
  iam doing a project where i have used flex to create all the UI side 
  and i have used Java for the bussiness logic i.e. jsp 
   
   inorder to connect the jsp with the flex application i have used 
the http service and i have placed the name of the jsp file iside the url field 
as below 
   
  ?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute  
width=100% height=763 
  
mx:HTTPService id=srv url=flextest.jsp/
  
 mx:DataGrid dataProvider={srv.lastResult.project.portal} width=100% 
height=100%/ 
 
 mx:Button label=Get Data click=srv.send()/
  /mx:Application

  and my jsp code is ie flextest.jsp is 
   
  %@ page contentType=text/html;charset=UTF-8 language=java %
%@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean%
%@ taglib uri=http://jakarta.apache.org/struts/tags-html; prefix=html%
%@ page import=com.p3.form.ProjectPortalForm%
%@ page import=java.util.List
   import=java.util.Map
   import = java.util.ArrayList
   import=java.util.Iterator%
  ?xml version=1.0 encoding=utf-8?
project
%
 
 List list = null;
 list = (List)request.getAttribute(projectlist);
 ProjectPortalForm project;
// for (int i=0; ilist.size(); i++)
 //{
  project = (ProjectPortalForm) list.get(i);
% 
portal 
sbu%= project.getSbu()%/sbu
projecttyp%= project.getProjectType() %/projecttyp
projectname%= project.getProjectName() %/projectname
 phone%= project.getPhone()%/phone
startdate%= project.getProjectStartDate() %/startdate
endate%= project.getProjectEndDate() %/endate
ordervale%= project.getOrderValue() %/ordervale



/portal
%
 //}
%
/project
   
  i have a placed the war file inside the Root folder of the FDS tomcat 
   
  iam not able to connect to the jsp using this method 
  is there any other method to do this..
   
   
   

 
-
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.

Re: [flexcoders] Re: JavaFX

2007-06-08 Thread greg h

I would love to hear someone state a case of why JavaFX might give Flex or
Silverlight a run for their money.

For instance, has anyone here been swayed by the JavaFX announcement?  Or is
anyone here considering moving development originally contemplated for Flex
over to JavaFX now?

Following are links for initial comments and reactions to JavaFX that I have
found.  Most seem pretty ambivalent.

  - JavaFX at JavaOne: Mixed Reactions
  http://www.theserverside.com/news/thread.tss?thread_id=45331
  - Yakov Fain: JavaFX: I'm Still Not Impressed, May 10, 2007

  
http://www.oreillynet.com/onjava/blog/2007/05/javafx_im_still_not_impressed.html
   - JavaFX - Sun javax.swing's and misses once again
  http://alan.blog-city.com/javafx.htm
  - JavaFX WTF?
  http://www.screaming-penguin.com/node/7124
  - The JavaFX disaster
  http://beust.com/weblog/archives/000446.html
  - Updated: Flash, Flex, Silverlight... and now JavaFX
  http://richardleggett.co.uk/blog/index.php/2007/05/08/javafx
  - Sun's Gosling: Java Is Open Source and Doing Just Fine
  http://www.eweek.com/print_article2/0,1217,a=207477,00.asp
  - JavaFX and Rich Internet Applications
  http://jdj.sys-con.com/read/373061_p.htm


Best regards,

g


On 6/7/07, Rohan Pinto [EMAIL PROTECTED] wrote:


since you mentioned Java, have u looked at JavaFX ?
http://www.sun.com/software/javafx/index.jsp

Rohan
http://opentube.info




Re: [flexcoders] mx:VideoDisplay myVid.play();

2007-06-08 Thread Manish Jethani
On 6/6/07, Rohan Pinto [EMAIL PROTECTED] wrote:

 mx:VideoDisplay id=videoDisplay height=350 width=450
 source={video} autoPlay=true/
[snip]

 I have 2 issues.
 1. the play/pause/stop buttons dont work...

Hard to say why, but maybe it's because binding is firing on the
source property and since you have autoPlay=true it's starting to play
again? Try playing with the autoPlay property and/or removing the
binding.

 2. when the user closes the Tilewindow, the video DOES NOT unload,
 the audio still keeps playing...

When the TitleWindow is closed, handle the event, call stop() and
close() on the VideoDisplay object, and while you're at it also remove
it from the display list by calling removeChild() and release all
references to the object.


Fwd: [flexcoders] list size - auto match contents

2007-06-08 Thread Peter Anselmo
I'm not sure but I'd love to know of a cleaner
solution than what I've been using which is:

rowCount = dataProvider.length;

var _totalHeight:Number = 0;

for(var i:int=0;irowCount;i++)
{
try{
_totalHeight += 
rowInfo[indexToRow(i)].height+4;
} catch (e:Error){};
}


i just  set the height of the dataList to _totalHeight
but there HAS to be a better way... any suggestions?

Peter Anselmo

--- Ariel Jakobovits [EMAIL PROTECTED] wrote:

 To: flexcoders@yahoogroups.com
 From: Ariel Jakobovits [EMAIL PROTECTED]
 Date: Thu, 7 Jun 2007 19:46:51 -0700 (PDT)
 Subject: [flexcoders] list size - auto match
 contents
 
 is there a setting for a list that will size the
 control to fit the data but no more / no less?
 
 
 
 
 --
 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
 
 
 
 
 



 

Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL



[flexcoders] Re: Supply list with XML fails when only one element

2007-06-08 Thread Carlton Dickson
Thanks Nikhil,
So happy that is sorted as I was making some good progress on my app
until that little hiccup...

Thanks once again,

C


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

 This looks fine. Actually the problem with the ArrayCollection is
when the Flash Engine tries to convert an XML into object, it doesnt
requires the class structure for the response before hand and it does
that at run time.
 And when it sees a single node within a node it has no reason to
convert that to ArrayCollection.
  
 Also this would fail for scenarios like :
  
  ?xml version=1.0 encoding=utf-8 ? 
 allUnits
 unitCount
 4
 /unitCount
 unitType
 xyz
 /unitType
  unit
  unitNameBunch/unitName 
  unitID4/unitID 
  /unit
  unit
  unitNameDozen/unitName 
  unitID2/unitID 
  /unit
  unit
  unitNameEach/unitName 
  unitID1/unitID 
  /unit
  unit
  unitNamePound/unitName 
  unitID3/unitID 
  /unit
  /allUnits
 
 Thought the above xml is a valid but not a good structure, and flex
would fail to understand such response.
  
 Best Regards, 
 
 Nikhil Tuli. 
 Associate Software Engineer, 
 Fidelity Business Services India Pvt. Ltd., 
 7th Floor, Tower D,
 Uni TechWorld, Sector 39,
 Gurgaon - 122 001.
 Phone (India) : +91 124 283 3209
 Phone (US): 8 804 4395 
 
 il n'y a rien tel que noir ou blanc, toutes sont différentes
dégradés de gris 
 
 Any comments or statements made in this email are not necessarily
those of Fidelity Business Services India Pvt. Ltd. or any of the
Fidelity Investments group companies. The information transmitted is
intended only for the person or entity to which it is addressed and
may contain confidential and/or privileged material. If you have
received this in error, please contact the sender and delete the
material from any computer. All e-mails sent from or to Fidelity
Business Services India Pvt. Ltd. may be subject to our monitoring
procedures.
 
  
 
 
   _  
 
   From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Carlton Dickson
   Sent: Friday, June 08, 2007 5:33 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: Supply list with XML fails when only one
element
   
   
 
   Thanks the response... :)
   
   Hmmm...I gave that a shot and it seems to work...not sure if what I
   have ended up with is the long winded approach...it works for single
   node XML and multiple...now to just implement this approach in my main
   application :-s
   
   Do you think this approach is ok?
   
   == Working code below ==
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
   layout=absolute creationComplete=unitRPC.send();
   mx:Script
   ![CDATA[
   import mx.collections.ArrayCollection;
   import mx.collections.XMLListCollection;
   import mx.rpc.events.ResultEvent;
   
   [Bindable]
   private var units:XML = new XML();
   [Bindable]
   private var unitsData:XMLListCollection;
   
   private function unitRPCResult(event:ResultEvent):void
   {
   units = (event.result as XML);
   unitsData = new XMLListCollection(units.unit);
   }
   ]]
   /mx:Script
   
   mx:HTTPService id=unitRPC url=../services/xml.xml
   result=unitRPCResult(event) resultFormat=e4x /
   mx:ComboBox id=cmbo_test x=10 y=10 dataProvider={unitsData}
   labelField=unitName/mx:ComboBox
   
   /mx:Application
   
   
   
   --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Tuli, Nikhil nikhil.tuli@
wrote:
   
How about changing the data type from ArrayCollection to XMLList.

Best Regards, 

Nikhil Tuli. 
Associate Software Engineer, 
Fidelity Business Services India Pvt. Ltd., 
7th Floor, Tower D,
Uni TechWorld, Sector 39,
Gurgaon - 122 001.
Phone (India) : +91 124 283 3209
Phone (US): 8 804 4395 

il n'y a rien tel que noir ou blanc, toutes sont différentes
   dégradés de gris 

Any comments or statements made in this email are not necessarily
   those of Fidelity Business Services India Pvt. Ltd. or any of the
   Fidelity Investments group companies. The information transmitted is
   intended only for the person or entity to which it is addressed and
   may contain confidential and/or privileged material. If you have
   received this in error, please contact the sender and delete the
   material from any computer. All e-mails sent from or to Fidelity
   Business Services India Pvt. Ltd. may be subject to our monitoring
   procedures.




_ 

From: 

[flexcoders] Re: Formatting tabnavigator labels?

2007-06-08 Thread candysmate
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 I don't think we've made that easy, but you can probably drill down into
 the tabs and alter the text and textformats in there.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of candysmate
 Sent: Thursday, June 07, 2007 1:53 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Formatting tabnavigator labels?
 
  
 
 Is there a way to highlight letters within the label of a tabnavigator
 tab label? (the user wants accelerator key reminders)

Any of your clever sorts here on Flexcoders had any success with this?



[flexcoders] How to create Repeater in Actionscript only?

2007-06-08 Thread arpan srivastava
Hi All,

Is there anyway i can use Repeater in actionscript (only actionscript, no 
mxml).? can anyone send me a small code like that created in the help documents 
for creating buttons from 1 to 10 in Actionscript only?



   

Looking for a deal? Find great prices on flights and hotels with Yahoo! 
FareChase.
http://farechase.yahoo.com/

[flexcoders] Re: HotFix 2 - Flex Encoding Error - brakes my WS Simple Header

2007-06-08 Thread paulwelling
Short version:

With Hotfix 2 installed, generates a WS Encoding Error:

[FaultEvent fault=[RPC Fault faultString=Cannot resolve element
definition for name 'UsernameToken' faultCode=EncodingError
faultDetail=null]

the ws has a simple header:

ws.addSimpleHeader(UsernameToken, , username, username);
ws.addSimpleHeader(UsernameToken, , password, password);


Anyone with an idea on how to get this to work?

Thanks,
Paul


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

 Hello List,
 
 Under 2.0, 2.0.1, and 2.0.1 HF1 my simple header was being Encoded
 correctly:
 
 ws.addSimpleHeader(UsernameToken, , username, username);
 ws.addSimpleHeader(UsernameToken, , password, password);
 
 creates...
 
 SOAP-ENV:Header
UsernameToken
   username 
   paul 
   /username 
/UsernameToken 
UsernameToken 
   password 
   123450
   /password 
/UsernameToken 
 /SOAP-ENV:Header 
 
 
 There was no reference in the WSDL to UsernameToken, and all was good
 and happy and Flex encoded the WS requests...
 
 ---
 
 I needed to move to HF2 to use/test a fix to ArrayCollections.
 
 Now running the same code  WSDL on HF2 I get:
 [FaultEvent fault=[RPC Fault faultString=Cannot resolve element
 definition for name 'UsernameToken' faultCode=EncodingError
 faultDetail=null]
 
 ---
 
 Someone off list was nice enough to suggest that I add the following
 complexType to my WSDL, to aid Flex in the encoding:
 
 
 wsdl:definitions targetNamespace=http://service.abcd.com;
wsdl:types
   xsd:schema attributeFormDefault=qualified
 elementFormDefault=qualified targetNamespace=http://model.abcd.com;
 
  xsd:complexType name=UsernameToken
 xsd:sequence
xsd:element name=username maxOccurs=1
 minOccurs=0 type=xsd:string/
xsd:element name=password maxOccurs=1
 minOccurs=0 type=xsd:string/
 /xsd:sequence
  /xsd:complexType
 
  ...
 
 And adding the enclosing namespace to the method call:
 
 ws.addSimpleHeader(UsernameToken, http://model.abcd.com;,
 username, username);
 ws.addSimpleHeader(UsernameToken, http://model.abcd.com;,
 password, password);
 
 
 
 The only difference that has made was to change the fault message:
 [FaultEvent fault=[RPC Fault faultString=Cannot resolve element
 definition for name 'http://model.abcd.com::UsernameToken'
 faultCode=EncodingError faultDetail=null]
 
 
 ---
 
 I am really stuck.  I need the fix to HF2 for ArrayCollections, but
 can't run it because it breaks the WS requests, because they can't get
 Encoded and out on the wire.
 
 Does anyone know how to get Flex to encode this correctly on HF2...? 
 Has anyone else run into WS encoding issues on HF2..?
 
 Many thanks,
 Paul





Re: [flexcoders] HotFix 2 - brakes my WS Simple Header

2007-06-08 Thread Dave Carabetta

Well, in an extremely questionable decision, Adobe put a completely new Web
Services implementation in hotfix 2 -- and then decided not to mention it
anywhere in the release notes. Granted, the implementation is supposed to be
more standards compliant, but one could make a strong argument that a hotifx
with several other important fixes (including memory leaks) was not the time
to be introducing a core change like this.

Matt, Pete, Randy, or whoever else at Adobe can get this done, you guys
*really* need to update the Release Notes at
http://www.adobe.com/go/kb401825 to make people aware of this change. I know
you guys did your best to be backwards-compatible, but it's clear that there
are some holes and it's tripping people up.

Regards,
Dave.
Cynergy Systems, Inc.


On 6/7/07, paulwelling [EMAIL PROTECTED] wrote:


  Hello List,

Under 2.0, 2.0.1, and 2.0.1 HF1 my simple header was being Encoded
correctly:

ws.addSimpleHeader(UsernameToken, , username, username);
ws.addSimpleHeader(UsernameToken, , password, password);

creates...

SOAP-ENV:Header
UsernameToken
username
paul
/username
/UsernameToken
UsernameToken
password
123450
/password
/UsernameToken
/SOAP-ENV:Header

There was no reference in the WSDL to UsernameToken, and all was good
and happy and Flex encoded the WS requests...

---

I needed to move to HF2 to use/test a fix to ArrayCollections.

Now running the same code  WSDL on HF2 I get:
[FaultEvent fault=[RPC Fault faultString=Cannot resolve element
definition for name 'UsernameToken' faultCode=EncodingError
faultDetail=null]

---

Someone off list was nice enough to suggest that I add the following
complexType to my WSDL, to aid Flex in the encoding:

wsdl:definitions targetNamespace=http://service.abcd.com;
wsdl:types
xsd:schema attributeFormDefault=qualified
elementFormDefault=qualified targetNamespace=http://model.abcd.com;

xsd:complexType name=UsernameToken
xsd:sequence
xsd:element name=username maxOccurs=1
minOccurs=0 type=xsd:string/
xsd:element name=password maxOccurs=1
minOccurs=0 type=xsd:string/
/xsd:sequence
/xsd:complexType

...

And adding the enclosing namespace to the method call:

ws.addSimpleHeader(UsernameToken, http://model.abcd.com;,
username, username);
ws.addSimpleHeader(UsernameToken, http://model.abcd.com;,
password, password);

The only difference that has made was to change the fault message:
[FaultEvent fault=[RPC Fault faultString=Cannot resolve element
definition for name 'http://model.abcd.com::UsernameToken'
faultCode=EncodingError faultDetail=null]

---

I am really stuck. I need the fix to HF2 for ArrayCollections, but
can't run it because it breaks the WS requests, because they can't get
Encoded and out on the wire.

Does anyone know how to get Flex to encode this correctly on HF2...?
Has anyone else run into WS encoding issues on HF2..?

Many thanks,
Paul

 



[flexcoders] Socket Question

2007-06-08 Thread Christopher Olsen
Anyone have an issue with calling connect again following a close on the 
remote side?

I call connect after a failed connection and the socket just sits there

-Christopher



Re: [flexcoders] How to create Repeater in Actionscript only?

2007-06-08 Thread Roman Protsiuk

Why do you need repeater in as? You can do the same functionality without
it. It's mxml where it suits well.

R.

On 6/8/07, arpan srivastava [EMAIL PROTECTED] wrote:


  Hi All,

Is there anyway i can use Repeater in actionscript (only actionscript,
no mxml).? can anyone send me a small code like that created in the help
documents for creating buttons from 1 to 10 in Actionscript only?

--
You snooze, you lose. Get messages ASAP with 
AutoCheckhttp://us.rd.yahoo.com/evt=47959/*http://advision.webevents.yahoo.com/mailbeta/newmail_html.html
in the all-new Yahoo! Mail Beta.

 



[flexcoders] AS access to a component inside a viewstack

2007-06-08 Thread pdflibpilot
I have the following structure

viewstack1
  Canvas id=screen1
 ns2:DualColumn x=0 y=0 id=DualColumnComponent/
  /mx:Canvas
/viewstack1

how do I call an AS in DualColumn ??



[flexcoders] Re: Parameter passing !! I am shocked

2007-06-08 Thread Cosma
AFAIK, in object oriented languages, an object itself is never
destroyed setting to null a pointer that refers to it (and it doesn't
get overwritten when assigning that pointer to another instance).

In some OOL (C++) you have to make an explicit call to destroy in
order to free the memory allocated by an object. This can lead to
memory leaks if pointers are reused / go out of scope without calling
destroy.

Mordern languages (Java, .NET, ActionScript) are usually
garbage-collection based, so you don't need to destroy anything.. a
garbage collector is automatically executed in background by the VM,
tracing object instances that are not referenced by any pointer yet,
and destroying them.

Bye
Cosma

--- In flexcoders@yahoogroups.com, Ravi Kumar Gummadi
[EMAIL PROTECTED] wrote:

 
 Hi all
 
 How does flex handle parameter passing, as I understand, it is by Pass
 by reference. But I was having some memory leaks and playing around a
 few tweaks and the following snippet completely took me by surprise.
 
 // CODE START
 
 script
 
 public var obj:Object;
 
 createObject(){
 
   obj = {test:1234,test2:5678};
 }
 
 checkObject(objParam:Object){
   trace(objParam);
 }
 
 deleteObject(objParam:Object){
   objParam = null; // I tried objParam = undefined as well
 }
 
 /script
 
 mx:Button id=create click=createObject() /
 mx:Button id=check click=checkObject(obj) /
 mx:Button id=delete click=deleteObject(obj) /
  
 // END 
 
 Now 1. I created the object by click on create
 2. Then check for the existence of it (Traces [object object].. This
 is fine)
 3. Then clicked delete. 
 4. Then again click on check... (Traces [object] [object]
 ! But since its passed by reference it should be
 NULL)
 
 
 Somewhere I read that it setting to NULL changes the reference count,
 does that mean in each of my function I need to set all the params to
 null at the end of it so that refercne count is reduced and raady for
 garbage collection!! ( That doesn't quite a sense !!)
 
 Regards
 Ravi





RE: [flexcoders] Query regarding FDS ... please help me out..

2007-06-08 Thread Dimitrios Gianninas
Remove what exactly? Specify the files you mean. Side effects will be that 
things won't start up if you remove something u shouldn't.
 
Dimitrios Gianninas
Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
rajendra tammana
Sent: Friday, June 08, 2007 5:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Query regarding FDS ... please help me out..



Dear All,
I'm modifying the FDS 30-mnts test drive sample apps to suit my Java/JSP based 
project. 
i have developped the UI side with the help of flex ..
For my project,I want to use only HTTPService of the FDS,
 so can I remove the other components like JMS,Hibernate,Spring,AMF etc., from 
my FDS installed directory. 
If I remove it, will there be  any side-effects.
Regards,
Rajendra



Need Mail bonding?
Go to the Yahoo! Mail QA 
http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=asksid=396546091
  for great tips from Yahoo! Answers 
http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=asksid=396546091
  users. 

 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



Re: [flexcoders] How to create Repeater in Actionscript only?

2007-06-08 Thread Tom Chiverton
On Friday 08 Jun 2007, arpan srivastava wrote:
 Is there anyway i can use Repeater in actionscript

You can create all MXML components from AS.
var obj:Repeater=new Repeater();

-- 
Tom Chiverton
Helping to economically transform corporate content
on: http://thefalken.livejournal.com



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] how to connect a jsp with the mxml using fds

2007-06-08 Thread Tom Chiverton
On Friday 08 Jun 2007, rajendra tammana wrote:
i have a small problem regarding flex data services
   iam doing a project where i have used flex to create all the UI side
   and i have used Java for the bussiness logic i.e. jsp

You can't use FDS (now LCDS) to talk to a JSP over the HTTPService.
You don't need FDS/LCDS at all in this case.

-- 
Tom Chiverton
Helping to seamlessly unleash prospective functionalities
on: http://thefalken.livejournal.com



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] AS access to a component inside a viewstack

2007-06-08 Thread Tom Chiverton
On Friday 08 Jun 2007, pdflibpilot wrote:
 I have the following structure

 viewstack1
   Canvas id=screen1
ns2:DualColumn x=0 y=0 id=DualColumnComponent/
   /mx:Canvas
 /viewstack1

 how do I call an AS in DualColumn ??

DualColumnComponent.theFunctionYouDeclaredPublic()

-- 
Tom Chiverton
Helping to heterogeneously grow intuitive CEOs
on: http://thefalken.livejournal.com



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] Flex Tree (selectedItem.attribute not working)

2007-06-08 Thread gaurav1146
I am using a flex tree and I want to make a call to HTTP service  when
user selects one of the items in the tree. I have an XML something
like this.

  group label=FlexCoders
user label=abc id=123/
user label=def id=456/
  /group
  group label=FlexDev
user label=ghi id=123/
user label=jkl id=456/
  /group

I pass this XML to a tree 

mx:Tree id=myTree click=postData() labelField=@label/

Now when the user clicks on one of the items I try to fetch
myTree.selectedItem.id and send it to a HTTPService. Unlike Datagrid,
this does not work for the tree and I am not getting any values for
id. Is there any way I could get the value of id for the selected tree
element.

Any help would be grealty appreciated.

TIA,
Gaurav



[flexcoders] Re: Socket Question

2007-06-08 Thread Christopher Olsen




Thanks i hit reply by accident




Hey Chris...try posting your question on a new thread, people might
oversee your post and you won't get as many replies :)

--- In [EMAIL PROTECTED]ups.com,
Christopher Olsen [EMAIL PROTECTED] wrote:

 Anyone have an issue with calling connect again following a close
on
the 
 remote side?
 
 I call connect after a failed connection and the socket just sits
there
 
 -Christopher








inline: ma_grp_160.gifinline: nc3=3

Re: [flexcoders] Re: JavaFX

2007-06-08 Thread Tom Chiverton
On Thursday 07 Jun 2007, greg h wrote:
 For instance, has anyone here been swayed by the JavaFX announcement?  

Not heard of anyone leaving.

 is anyone here considering moving development originally contemplated for
 Flex over to JavaFX now?

Hell no - it's not out is it ?

-- 
Tom Chiverton
Helping to heterogeneously implement proactive infrastructures
on: http://thefalken.livejournal.com



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] Re: Socket Question

2007-06-08 Thread Carlton Dickson
Hey Chris...try posting your question on a new thread, people might
oversee your post and you won't get as many replies :)

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

 Anyone have an issue with calling connect again following a close on
the 
 remote side?
 
 I call connect after a failed connection and the socket just sits
there
 
 -Christopher





RE: [flexcoders]Faking an XMLRPC call

2007-06-08 Thread Peter Farland
Did the PHP page see the method as GET or POST?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dorkie dork from dorktown
Sent: Thursday, June 07, 2007 10:06 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]Faking an XMLRPC call



Hi Peter,

I'm using srv.send(). I posted to a PHP page that dumps the submitted
value and it looks like it goes through because I get the xml back (in a
single line). 

So what does this all mean? Can a HTTPService call over http talk to a
xml-rpc page like the one used on Wordpress blogs? If you have a blog
you should be able to change the url to point to your blog and get the
same results. 




On 6/7/07, Peter Farland [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 wrote: 



I'd check with an HTTP sniffer to see just what exactly is being
sent on the wire for the body of the request.
 
There are two known issues with the Flash Player XML type that
HTTPService does not work around correctly in 2.0. The scenario is that
if an XML value is provided as the body of a POST and that value has
only empty, simple content (i.e. no child elements, just the empty
string), then because toString() is called on the value when serializing
it, the first known issue is hit where by the root elements are
unwrapped and only the simple content is sent, i.e. the empty string.
The second issue is that if you try to send no content with POST, the
underlying URLLoader changes this back to GET.
 
The reason I suggest using an HTTP sniffer is perhaps while you
think you've provided a correct mx:request, perhaps it's not being
actually sent as such? How are you calling send() on the HTTP service?
 
Pete
 



From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com http://yahoogroups.com ] On Behalf
Of dorkie dork from dorktown
Sent: Thursday, June 07, 2007 4:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]Faking an XMLRPC call




Is there a way to fake an XML RPC call? It seems like it'd be
simple but I can't get it to work:

mx:HTTPService id=srv
url= http://www.judahfrangipane.com/blog/xmlrpc.php
http://www.judahfrangipane.com/blog/xmlrpc.php  
fault={faultHandler(event)} 
result={resultHandler(event)} 
resultFormat=text
method=POST 
contentType=application/xml
mx:request
methodCall
methodNamemetaWeblog.getPost/methodName
params 

paramvaluestring77/string/value/param

paramvaluestringvisitor/string/value/param 

paramvaluestringvisitor/string/value/param
/params
/methodCall
/mx:request
/mx:HTTPService 

The result I get is XML-RPC server accepts POST requests only.

FYI I'm calling a wordpress blog. 






 


Re: [flexcoders] Help - need to access all chartItems! (bug in findDataPoints()?)

2007-06-08 Thread Tom Chiverton
On Friday 08 Jun 2007, Peter Demling wrote:
 So first off, any suggestions for how to refer to all currently
 displayed chartItems - without using findDataPoints

If you are operating in a subclass of the Chart in question, you'd be able to 
pull them straight out yourself, maybe ?
I'm guessing there is a reason why looking in the chart's dataProvider doesn't 
help you ?

-- 
Tom Chiverton
Helping to heterogeneously harvest exceptional systems
on: http://thefalken.livejournal.com



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] Help - need to access all chartItems! (bug in findDataPoints()?)

2007-06-08 Thread Peter Demling
I'm trying to refer to all of my ColumnChart's chartItems at runtime,
but findDataPoints() only ever returns 1 object in its hitData array,
no matter how large I set the mouseSensitivity with
dataTipMode=multiple (I also get a compile-time error when trying to
directly refer to the items array of my ColumnSeries, even though
this array of chartItems exists at run time).

So first off, any suggestions for how to refer to all currently
displayed chartItems - without using findDataPoints - would be
immensely helpful (it's the final piece in a quick-and-easy way to
turn column highlights on and off, so I can post that when I solve this!).

The larger issue is that there might be a bug in findDataPoints(),
since - except for PlotChart - no chart I've found will display
multiple dataTips in the same series.  Below is the example from the
Developer's Guide on dataTipMode, where I've set the mouseSensitivity
to 1 and replaced one of the BarSeries with a PlotSeries: you can
see how it will only show multiple dataTips (as returned from
findDataPoints) for the PlotSeries.

Thanks for any advice!

-Peter Demling
 Lexington, MA

?xml version=1.0?
!-- charts/DataTipsMultiple.mxml --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  mx:Script![CDATA[
 import mx.collections.ArrayCollection;
 [Bindable]
 public var expenses:ArrayCollection = new ArrayCollection([
{Month:Jan, Profit:2000, Expenses:1500},
{Month:Feb, Profit:1000, Expenses:200},
{Month:Mar, Profit:1500, Expenses:500}
 ]);
  ]]/mx:Script
  mx:Panel title=Bar Chart
 mx:CartesianChart id=myChart 
dataProvider={expenses} 
showDataTips=true 
mouseSensitivity=1 
dataTipMode=multiple
 
mx:verticalAxis
   mx:CategoryAxis 
dataProvider={expenses} 
categoryField=Month
   /
/mx:verticalAxis
mx:series
   mx:BarSeries 
yField=Month 
xField=Profit
   /
   mx:PlotSeries 
yField=Month 
xField=Expenses
   /
/mx:series
 /mx:CartesianChart
 mx:Legend dataProvider={myChart}/
  /mx:Panel
/mx:Application



[flexcoders] Re: Couldn't find item renderer in the event

2007-06-08 Thread handitan
Hi Alex,

It's a MouseEvent with type mouseDown

Thx.

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

 Which event?  There's a difference between CLICK and ITEM_CLICK
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of handitan
 Sent: Thursday, June 07, 2007 6:02 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Couldn't find item renderer in the event
 
  
 
 Hi,
 
 I have a datagridColumn's itemRenderer is being set to CheckBox.
 
 I use a custom datagrid for this so that I would be able to capture 
the 
 mouseEvent.
 
 When I got the event, I couldn't find the property that tells me 
the 
 CheckBox in the row that I selected.
 
 If I remember correctly, which I doubt coz I have been working 
late, 
 the flex doc said that it is not included on the event or something.
 
 Thank you!





RE: [flexcoders] Help - need to access all chartItems! (bug in findDataPoints()?)

2007-06-08 Thread Ely Greenfield
 

 

Hi Peter.  About findDataPoints() - various series types optimize under
the assumption that their data never overlaps (i.e., a columnSeries
assumes its columns don't sit on top of each other, so you never need to
see tips for multiple columns at once).

 

As far as accessing the chart items...Tom is right, subclassing and
exposing the charItems out of the renderData is the way to go.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Demling
Sent: Friday, June 08, 2007 8:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Help - need to access all chartItems! (bug in
findDataPoints()?)

 

I'm trying to refer to all of my ColumnChart's chartItems at runtime,
but findDataPoints() only ever returns 1 object in its hitData array,
no matter how large I set the mouseSensitivity with
dataTipMode=multiple (I also get a compile-time error when trying to
directly refer to the items array of my ColumnSeries, even though
this array of chartItems exists at run time).

So first off, any suggestions for how to refer to all currently
displayed chartItems - without using findDataPoints - would be
immensely helpful (it's the final piece in a quick-and-easy way to
turn column highlights on and off, so I can post that when I solve
this!).

The larger issue is that there might be a bug in findDataPoints(),
since - except for PlotChart - no chart I've found will display
multiple dataTips in the same series. Below is the example from the
Developer's Guide on dataTipMode, where I've set the mouseSensitivity
to 1 and replaced one of the BarSeries with a PlotSeries: you can
see how it will only show multiple dataTips (as returned from
findDataPoints) for the PlotSeries.

Thanks for any advice!

-Peter Demling
Lexington, MA

?xml version=1.0?
!-- charts/DataTipsMultiple.mxml --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Script![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var expenses:ArrayCollection = new ArrayCollection([
{Month:Jan, Profit:2000, Expenses:1500},
{Month:Feb, Profit:1000, Expenses:200},
{Month:Mar, Profit:1500, Expenses:500}
]);
]]/mx:Script
mx:Panel title=Bar Chart
mx:CartesianChart id=myChart 
dataProvider={expenses} 
showDataTips=true 
mouseSensitivity=1 
dataTipMode=multiple

mx:verticalAxis
mx:CategoryAxis 
dataProvider={expenses} 
categoryField=Month
/
/mx:verticalAxis
mx:series
mx:BarSeries 
yField=Month 
xField=Profit
/
mx:PlotSeries 
yField=Month 
xField=Expenses
/
/mx:series
/mx:CartesianChart
mx:Legend dataProvider={myChart}/
/mx:Panel
/mx:Application

 

image001.jpgimage002.jpg

[flexcoders] Re: HotFix 2 - brakes my WS Simple Header

2007-06-08 Thread paulwelling
In terms of HF2 backwards compatiblity for adding WS Headers...

I took the example from the 2.0.1 Dev Guide on pg. 1448, and added
those headers to my WS request for a test, and still get the Flex
Encoding Error, so nothing gets sent out!

var q1:QName = new QName(http://soapinterop.org/xsd;, Header1);
var header1:SOAPHeader = new SOAPHeader(q1, {string:bologna,int:123});
ws.addHeader(header1);


Does anyone on this list use WS Headers with HF2 and has it working..?

Thanks,
Paul


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

 Well, in an extremely questionable decision, Adobe put a completely
new Web
 Services implementation in hotfix 2 -- and then decided not to
mention it
 anywhere in the release notes. Granted, the implementation is
supposed to be
 more standards compliant, but one could make a strong argument that
a hotifx
 with several other important fixes (including memory leaks) was not
the time
 to be introducing a core change like this.
 
 Matt, Pete, Randy, or whoever else at Adobe can get this done, you guys
 *really* need to update the Release Notes at
 http://www.adobe.com/go/kb401825 to make people aware of this
change. I know
 you guys did your best to be backwards-compatible, but it's clear
that there
 are some holes and it's tripping people up.
 
 Regards,
 Dave.
 Cynergy Systems, Inc.
 
 
 On 6/7/07, paulwelling [EMAIL PROTECTED] wrote:
 
Hello List,
 
  Under 2.0, 2.0.1, and 2.0.1 HF1 my simple header was being Encoded
  correctly:
 
  ws.addSimpleHeader(UsernameToken, , username, username);
  ws.addSimpleHeader(UsernameToken, , password, password);
 
  creates...
 
  SOAP-ENV:Header
  UsernameToken
  username
  paul
  /username
  /UsernameToken
  UsernameToken
  password
  123450
  /password
  /UsernameToken
  /SOAP-ENV:Header
 
  There was no reference in the WSDL to UsernameToken, and all was good
  and happy and Flex encoded the WS requests...
 
  ---
 
  I needed to move to HF2 to use/test a fix to ArrayCollections.
 
  Now running the same code  WSDL on HF2 I get:
  [FaultEvent fault=[RPC Fault faultString=Cannot resolve element
  definition for name 'UsernameToken' faultCode=EncodingError
  faultDetail=null]
 
  ---
 
  Someone off list was nice enough to suggest that I add the following
  complexType to my WSDL, to aid Flex in the encoding:
 
  wsdl:definitions targetNamespace=http://service.abcd.com;
  wsdl:types
  xsd:schema attributeFormDefault=qualified
  elementFormDefault=qualified
targetNamespace=http://model.abcd.com;
 
  xsd:complexType name=UsernameToken
  xsd:sequence
  xsd:element name=username maxOccurs=1
  minOccurs=0 type=xsd:string/
  xsd:element name=password maxOccurs=1
  minOccurs=0 type=xsd:string/
  /xsd:sequence
  /xsd:complexType
 
  ...
 
  And adding the enclosing namespace to the method call:
 
  ws.addSimpleHeader(UsernameToken, http://model.abcd.com;,
  username, username);
  ws.addSimpleHeader(UsernameToken, http://model.abcd.com;,
  password, password);
 
  The only difference that has made was to change the fault message:
  [FaultEvent fault=[RPC Fault faultString=Cannot resolve element
  definition for name 'http://model.abcd.com::UsernameToken'
  faultCode=EncodingError faultDetail=null]
 
  ---
 
  I am really stuck. I need the fix to HF2 for ArrayCollections, but
  can't run it because it breaks the WS requests, because they can't get
  Encoded and out on the wire.
 
  Does anyone know how to get Flex to encode this correctly on HF2...?
  Has anyone else run into WS encoding issues on HF2..?
 
  Many thanks,
  Paul
 
   
 





[flexcoders] mx:VideoDisplay [3rd try]

2007-06-08 Thread Rohan Pinto
I am using mx:VideoDisplay to display a video in my app @
http://opentube.info

the video is displayed within a tile window.

mx:TitleWindow width=800 height=500 autoLayout=true
layout=absolute title=Video Viewer showCloseButton=true 
xmlns:mx=http://www.adobe.com/2006/mxml;
backgroundColor=#ff
verticalGap=0 horizontalCenter=0 verticalCenter=0
x=10 y=55
dropShadowEnabled=true
close=closeWindow()
xmlns:ns1=*
creationComplete=feedRequest.send()
xmlns:com=com.*   


my mx:VideoDisplay code is as follows:
mx:VideoDisplay id=myVid height=350 width=450 bufferTime=5
source={rp2.currentItem.url} autoPlay=true
autoBandWidthDetection=true/
mx:HBox horizontalAlign=center width=450
mx:Button label=Play click=myVid.play()
cornerRadius=10 bottom=10 x=10/
mx:Button label=Pause click=myVid.pause()
cornerRadius=10 bottom=10 left=69/
mx:Button label=Stop click=myVid.stop()
cornerRadius=10 left=138 bottom=10/
mx:HSlider id=volume snapInterval=0.01 value=5
maximum=10
change=myVid.volume = volume.value; 
liveDragging=true height=20 left=236 
bottom=0 width=200/
/mx:HBox

the play/pasuse stop buttons throw errors

could someone advise me on how to fix it ?

Rohan
http://opentube.info



[flexcoders] Re: mx:VideoDisplay myVid.play();

2007-06-08 Thread Rohan Pinto
Thanks manish,

i tried that... still doesnt work..

i get this error when i hit play or pause or stop (autoplay=false)

TypeError: Error #1006: play is not a function.
at viewvideo/__play_click()


when (autoplay=true)

the video plays, I get errors on pause/stop and when i close the
tilewindow it just does not unload even if my onClose() function has a
video.stop(); and video.close();

Rohan
http://opentube.info

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

 On 6/6/07, Rohan Pinto [EMAIL PROTECTED] wrote:
 
  mx:VideoDisplay id=videoDisplay height=350 width=450
  source={video} autoPlay=true/
 [snip]
 
  I have 2 issues.
  1. the play/pause/stop buttons dont work...
 
 Hard to say why, but maybe it's because binding is firing on the
 source property and since you have autoPlay=true it's starting to play
 again? Try playing with the autoPlay property and/or removing the
 binding.
 
  2. when the user closes the Tilewindow, the video DOES NOT unload,
  the audio still keeps playing...
 
 When the TitleWindow is closed, handle the event, call stop() and
 close() on the VideoDisplay object, and while you're at it also remove
 it from the display list by calling removeChild() and release all
 references to the object.





Re: [flexcoders] Re: Parameter passing !! I am shocked

2007-06-08 Thread Paul deCoursey
When you set it to null it removes the reference the current scope or 
context, and when you pass it into that function it is in a different 
scope from this.  had you done this.obj = null, then it would have been 
completely de-referenced and eligible for garbage collection.
 --- In flexcoders@yahoogroups.com, Ravi Kumar Gummadi
 [EMAIL PROTECTED] wrote:
   
 Hi all

 How does flex handle parameter passing, as I understand, it is by Pass
 by reference. But I was having some memory leaks and playing around a
 few tweaks and the following snippet completely took me by surprise.

 // CODE START

 script

 public var obj:Object;

 createObject(){

  obj = {test:1234,test2:5678};
 }

 checkObject(objParam:Object){
  trace(objParam);
 }

 deleteObject(objParam:Object){
  objParam = null; // I tried objParam = undefined as well
 }

 /script

 mx:Button id=create click=createObject() /
 mx:Button id=check click=checkObject(obj) /
 mx:Button id=delete click=deleteObject(obj) /
  
 // END 

 Now 1. I created the object by click on create
 2. Then check for the existence of it (Traces [object object].. This
 is fine)
 3. Then clicked delete. 
 4. Then again click on check... (Traces [object] [object]
 ! But since its passed by reference it should be
 NULL)


 Somewhere I read that it setting to NULL changes the reference count,
 does that mean in each of my function I need to set all the params to
 null at the end of it so that refercne count is reduced and raady for
 garbage collection!! ( That doesn't quite a sense !!)

 Regards
 Ravi

 



   



[flexcoders]Is there a way to dispatch an event or call a function in a Sequence?

2007-06-08 Thread dorkie dork from dorktown

I've setup a transition to animate my menu when the user clicks on a menu
item. After the animation I want to call a function to load the next page.
Is there a way to do this? I am using a transition with a sequence going on.
Is there an Sequence Action to call a function?

Code:

   mx:Transition id=menuTopTransition4 fromState=menuTop2
toState=*

   mx:Sequence targets={[menuTabBar, linkBarNav, subMenuBar]}

   mx:SetPropertyAction target={linkBarNav} name=visible
value=true /
   mx:Blur target={subMenuBar} blurXTo=250 duration=200
/
   mx:AddChildAction target={linkBarNav}/

   mx:RemoveChildAction target={subMenuBar} /

   mx:Parallel

   mx:Move target={linkBarNav} easingFunction=
Quartic.easeOut yBy=20/
   mx:Dissolve target={linkBarNav} alphaFrom=0.8
alphaTo=1 /

   mx:Move target={menuTabBar} xFrom=250 yFrom=38
yTo=58 easingFunction=Quartic.easeOut/

   mx:Dissolve target={menuTabBar} alphaFrom=1
alphaTo=0 duration=100/
   mx:RemoveChildAction target={menuTabBar} /

   /mx:Parallel

   mx:SetPropertyAction target={linkBarNav} name=enabled
value=true /

   mx:Blur target={subMenuBar} blurXTo=0 duration=0/

   !-- RIGHT HERE I want to go to load the new page --

   /mx:Sequence

   /mx:Transition


[flexcoders] Re: Help - need to access all chartItems! (not a bug in findDataPoints())

2007-06-08 Thread Peter Demling
Ely/Tom,

Thanks for the replies!

 As far as accessing the chart items...Tom is right, subclassing and
 exposing the chartItems out of the renderData is the way to go.

Ok; this is probably a subclassing-neophyte quetion, but is the
following what you mean?:

1]extend ColumnSeries.as (not ColumnChart.as!) in a new class
2]add a new public getter method to simply return the private var
_renderData
3]Use this new CustomColumnSeries in my app, which now has a
publically accessible _renderData array

 About findDataPoints() - various series types optimize under
 the assumption that their data never overlaps

Do you know where the different chart types make this distinction?  If
I'm subclassing ColumnSeries anyway, it would be nice (for this and
other uses) to override findDataPoints() to sometimes return multiple
or all items (that whole 'show all dataTips' thing, for example).  I
see that findDataPoints() is defined in ChartBase (which all charts
inherit from), so I'm not seeing where the different chart types apply
differing logic to allow/disallow multiples.

many thanks,
-Peter

[BTW, my ultimate goal here is to highlight/unhighlight column items
by adjusting the alpha of their itemRenderers.  I was elated to find
that the following works when clicking one chartItem:
 
event.hitData.chartItem.itemRenderer.alpha = 0.3;

Wonderfully simple way to visually distinguish the selected chartItem!
 Only problem is, I need to loop through the other chartItems first,
to make sure their alpha is 1 (to reset any previously-clicked
chartItem).  So I just need a way to say reset the alpha of all items
in this series to x.]

 
  
 
 As far as accessing the chart items...Tom is right, subclassing and
 exposing the chartItems out of the renderData is the way to go.
 
  
 
 Ely.
 
  
 
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Peter Demling
 Sent: Friday, June 08, 2007 8:41 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Help - need to access all chartItems! (bug in
 findDataPoints()?)
 
  
 
 I'm trying to refer to all of my ColumnChart's chartItems at runtime,
 but findDataPoints() only ever returns 1 object in its hitData array,
 no matter how large I set the mouseSensitivity with
 dataTipMode=multiple (I also get a compile-time error when trying to
 directly refer to the items array of my ColumnSeries, even though
 this array of chartItems exists at run time).
 
 So first off, any suggestions for how to refer to all currently
 displayed chartItems - without using findDataPoints - would be
 immensely helpful (it's the final piece in a quick-and-easy way to
 turn column highlights on and off, so I can post that when I solve
 this!).
 
 The larger issue is that there might be a bug in findDataPoints(),
 since - except for PlotChart - no chart I've found will display
 multiple dataTips in the same series. Below is the example from the
 Developer's Guide on dataTipMode, where I've set the mouseSensitivity
 to 1 and replaced one of the BarSeries with a PlotSeries: you can
 see how it will only show multiple dataTips (as returned from
 findDataPoints) for the PlotSeries.
 
 Thanks for any advice!
 
 -Peter Demling
 Lexington, MA
 
 ?xml version=1.0?
 !-- charts/DataTipsMultiple.mxml --
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 mx:Script![CDATA[
 import mx.collections.ArrayCollection;
 [Bindable]
 public var expenses:ArrayCollection = new ArrayCollection([
 {Month:Jan, Profit:2000, Expenses:1500},
 {Month:Feb, Profit:1000, Expenses:200},
 {Month:Mar, Profit:1500, Expenses:500}
 ]);
 ]]/mx:Script
 mx:Panel title=Bar Chart
 mx:CartesianChart id=myChart 
 dataProvider={expenses} 
 showDataTips=true 
 mouseSensitivity=1 
 dataTipMode=multiple
 
 mx:verticalAxis
 mx:CategoryAxis 
 dataProvider={expenses} 
 categoryField=Month
 /
 /mx:verticalAxis
 mx:series
 mx:BarSeries 
 yField=Month 
 xField=Profit
 /
 mx:PlotSeries 
 yField=Month 
 xField=Expenses
 /
 /mx:series
 /mx:CartesianChart
 mx:Legend dataProvider={myChart}/
 /mx:Panel
 /mx:Application





RE: [flexcoders] Secure WebService problem with HotFix2

2007-06-08 Thread Peter Farland
I believe this is a known issue, as a work around, could you try setting
the following before you call your operation:
 
anWebService.useProxy = false;
anWebService.someOperation(someParam); //... etc...



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jay
Sent: Friday, June 08, 2007 12:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Secure WebService problem with HotFix2



Hi,

I have this webserivice running fine before HotFix2. 

mx:WebService id=anWebService 
wsdl=https://somewhereonthenet.com/AuthenticationWS?wsdl
https://somewhereonthenet.com/AuthenticationWS?wsdl  
showBusyCursor=true /

But after the hotfix2, I am getting the error when my webservice URL
is HTTPS, but it works fine on the HTTP. I tried to look for the
documentation and couldn't find any on what I should be setting up.
Any help would be really appreciated.

[RPC Fault faultString=[MessagingError message='Destination
'DefaultHTTPS' has no channels defined and the application does not
define any default channels.'] faultCode=InvokeFailed
faultDetail=Unable to load WSDL. If currently online, please verify
the URI and/or format of the WSDL
(https://somewhereonthenet.com/AuthenticationWS?WSDL
https://somewhereonthenet.com/AuthenticationWS?WSDL )]
at mx.rpc.wsdl::WSDLLoader/mx.rpc.wsdl:WSDLLoader::faultHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven
tFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::disp
atchRpcEvent
http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent ()
at Function/http://adobe.com/AS3/2006/builtin::apply
http://adobe.com/AS3/2006/builtin::apply ()
at mx.rpc::AsyncDispatcher/::timerEventHandler()
at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
at flash.utils::Timer/flash.utils:Timer::tick()



 


[flexcoders] HELP! Multi-language Application in Flex

2007-06-08 Thread Pay Hub

Hi All,

According to our requirement, we need to development a Flex applications
that provides multi-language facility.

Flex components like mx:Text/, mx:TextArea/, mx:TextInput should be
able to allow or display two different language, example English or
local-language, which is according to user selection, but at a time only one
language enabled.

Please provide me the solutions to develop multi-lingual Flex applications.

Thanks

Regards
Abdul Hadhi


RE: [flexcoders] AS3 method exist returning the # of bytes a String is?

2007-06-08 Thread Peter Farland
It would depend on the character set encoding. You'd need to know which 
encoding was used in order to determine the number of bytes of a stored 
String.
 
For example, if you wanted to get the length of a UTF-8 encoded String, you 
could do something like this:
 
var ba:ByteArray = new ByteArray();
var ba.writeUTFBytes(stringValue);
ba.position = 0; // Remember to rewind to position 0 if you plan to use the 
bytes
 
var length:uint = ba.length;
 
On the other hand, as another example, UTF-16 would be 2-bytes per character no 
matter whether it was code point was less than 128. etc. etc..
 
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of e_baggg
Sent: Friday, June 08, 2007 1:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AS3 method exist returning the # of bytes a String is?



I am implementing a spell checker and am hitting some issues because
for non-Ascii characters such as ò...this is actually two bytes
where a normal character is 1 byte...which throws off the start and
end index of the text in the textArea.

Do any Flash/AS3 methods exist that return the number of bytes a given
String is? Or do I need to create my own loop counting each character
and if the charCode is = 128...then it is 2 bytes?

Thanks in advance.



 


[flexcoders] Secure WebService problem with HotFix2

2007-06-08 Thread Jay
Hi,

I have this webserivice running fine before HotFix2.  

mx:WebService id=anWebService 
wsdl=https://somewhereonthenet.com/AuthenticationWS?wsdl; 
showBusyCursor=true /

But after the hotfix2, I am getting the error when my webservice URL
is HTTPS, but it works fine on the HTTP.  I tried to look for the
documentation and couldn't find any on what I should be setting up.
Any help would be really appreciated.

[RPC Fault faultString=[MessagingError message='Destination
'DefaultHTTPS' has no channels defined and the application does not
define any default channels.'] faultCode=InvokeFailed
faultDetail=Unable to load WSDL. If currently online, please verify
the URI and/or format of the WSDL
(https://somewhereonthenet.com/AuthenticationWS?WSDL)]
at mx.rpc.wsdl::WSDLLoader/mx.rpc.wsdl:WSDLLoader::faultHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.rpc::AsyncDispatcher/::timerEventHandler()
at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
at flash.utils::Timer/flash.utils:Timer::tick()





[flexcoders] AS3 method exist returning the # of bytes a String is?

2007-06-08 Thread e_baggg
I am implementing a spell checker and am hitting some issues because
for non-Ascii characters such as ò...this is actually two bytes
where a normal character is 1 byte...which throws off the start and
end index of the text in the textArea.

Do any Flash/AS3 methods exist that return the number of bytes a given
String is? Or do I need to create my own loop counting each character
and if the charCode is = 128...then it is 2 bytes?

Thanks in advance.



Re: [flexcoders]Is there a way to dispatch an event or call a function in a Sequence?

2007-06-08 Thread Paul deCoursey
just a guess, but could call the function form the effectEnd 
Effect.html#event:effectEnd event on that last item in the sequence?


dorkie dork from dorktown wrote:
 I've setup a transition to animate my menu when the user clicks on a menu
 item. After the animation I want to call a function to load the next 
 page.
 Is there a way to do this? I am using a transition with a sequence 
 going on.
 Is there an Sequence Action to call a function?

 Code:

mx:Transition id=menuTopTransition4 fromState=menuTop2
 toState=*

mx:Sequence targets={[menuTabBar, linkBarNav, subMenuBar]}

mx:SetPropertyAction target={linkBarNav} name=visible
 value=true /
mx:Blur target={subMenuBar} blurXTo=250 
 duration=200
 /
mx:AddChildAction target={linkBarNav}/

mx:RemoveChildAction target={subMenuBar} /

mx:Parallel

mx:Move target={linkBarNav} easingFunction=
 Quartic.easeOut yBy=20/
mx:Dissolve target={linkBarNav} alphaFrom=0.8
 alphaTo=1 /

mx:Move target={menuTabBar} xFrom=250 yFrom=38
 yTo=58 easingFunction=Quartic.easeOut/

mx:Dissolve target={menuTabBar} alphaFrom=1
 alphaTo=0 duration=100/
mx:RemoveChildAction target={menuTabBar} /

/mx:Parallel

mx:SetPropertyAction target={linkBarNav} name=enabled
 value=true /

mx:Blur target={subMenuBar} blurXTo=0 duration=0/

!-- RIGHT HERE I want to go to load the new page --

/mx:Sequence

/mx:Transition




RE: [flexcoders] Re: Help - need to access all chartItems! (not a bug in findDataPoints())

2007-06-08 Thread Ely Greenfield
 

 

If they make any assumptions, it will be in findDataPoints() itself,
which each type overrides.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Demling
Sent: Friday, June 08, 2007 9:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Help - need to access all chartItems! (not a
bug in findDataPoints())

 

Ely/Tom,

Thanks for the replies!

 As far as accessing the chart items...Tom is right, subclassing and
 exposing the chartItems out of the renderData is the way to go.

Ok; this is probably a subclassing-neophyte quetion, but is the
following what you mean?:

1]extend ColumnSeries.as (not ColumnChart.as!) in a new class
2]add a new public getter method to simply return the private var
_renderData
3]Use this new CustomColumnSeries in my app, which now has a
publically accessible _renderData array

 About findDataPoints() - various series types optimize under
 the assumption that their data never overlaps

Do you know where the different chart types make this distinction? If
I'm subclassing ColumnSeries anyway, it would be nice (for this and
other uses) to override findDataPoints() to sometimes return multiple
or all items (that whole 'show all dataTips' thing, for example). I
see that findDataPoints() is defined in ChartBase (which all charts
inherit from), so I'm not seeing where the different chart types apply
differing logic to allow/disallow multiples.

many thanks,
-Peter

[BTW, my ultimate goal here is to highlight/unhighlight column items
by adjusting the alpha of their itemRenderers. I was elated to find
that the following works when clicking one chartItem:

event.hitData.chartItem.itemRenderer.alpha = 0.3;

Wonderfully simple way to visually distinguish the selected chartItem!
Only problem is, I need to loop through the other chartItems first,
to make sure their alpha is 1 (to reset any previously-clicked
chartItem). So I just need a way to say reset the alpha of all items
in this series to x.]

 
 
 
 As far as accessing the chart items...Tom is right, subclassing and
 exposing the chartItems out of the renderData is the way to go.
 
 
 
 Ely.
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Peter Demling
 Sent: Friday, June 08, 2007 8:41 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Help - need to access all chartItems! (bug in
 findDataPoints()?)
 
 
 
 I'm trying to refer to all of my ColumnChart's chartItems at runtime,
 but findDataPoints() only ever returns 1 object in its hitData array,
 no matter how large I set the mouseSensitivity with
 dataTipMode=multiple (I also get a compile-time error when trying to
 directly refer to the items array of my ColumnSeries, even though
 this array of chartItems exists at run time).
 
 So first off, any suggestions for how to refer to all currently
 displayed chartItems - without using findDataPoints - would be
 immensely helpful (it's the final piece in a quick-and-easy way to
 turn column highlights on and off, so I can post that when I solve
 this!).
 
 The larger issue is that there might be a bug in findDataPoints(),
 since - except for PlotChart - no chart I've found will display
 multiple dataTips in the same series. Below is the example from the
 Developer's Guide on dataTipMode, where I've set the mouseSensitivity
 to 1 and replaced one of the BarSeries with a PlotSeries: you can
 see how it will only show multiple dataTips (as returned from
 findDataPoints) for the PlotSeries.
 
 Thanks for any advice!
 
 -Peter Demling
 Lexington, MA
 
 ?xml version=1.0?
 !-- charts/DataTipsMultiple.mxml --
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 mx:Script![CDATA[
 import mx.collections.ArrayCollection;
 [Bindable]
 public var expenses:ArrayCollection = new ArrayCollection([
 {Month:Jan, Profit:2000, Expenses:1500},
 {Month:Feb, Profit:1000, Expenses:200},
 {Month:Mar, Profit:1500, Expenses:500}
 ]);
 ]]/mx:Script
 mx:Panel title=Bar Chart
 mx:CartesianChart id=myChart 
 dataProvider={expenses} 
 showDataTips=true 
 mouseSensitivity=1 
 dataTipMode=multiple
 
 mx:verticalAxis
 mx:CategoryAxis 
 dataProvider={expenses} 
 categoryField=Month
 /
 /mx:verticalAxis
 mx:series
 mx:BarSeries 
 yField=Month 
 xField=Profit
 /
 mx:PlotSeries 
 yField=Month 
 xField=Expenses
 /
 /mx:series
 /mx:CartesianChart
 mx:Legend dataProvider={myChart}/
 /mx:Panel
 /mx:Application


 

image001.jpgimage002.jpg

[flexcoders] Metadata question

2007-06-08 Thread Paul deCoursey
Does anybody know if it's possible to define our own metadata and access 
that info at runtime?  For example, I'm writing a XML-Object binding 
framework and I'd like to add some metadata to some generated classes 
that I can access at runtime.  The data I'd like to add is info about 
how the object should be read or written to and from XML.

Paul



[flexcoders] Dynamically binding a dataprovider in AS

2007-06-08 Thread zzwi89
Apologies if this question has been posted; I couldn't find anything
similar in the archives.

Suppose I have the following in MXML:

mx:ButtonBar dataProvider={vs} id=bb/
mx:ViewStack id=vs/

How would I set that binding in AS?

Trying something like this:

mx.binding.utils.BindingUtils.bindProperty(bb, dataProvider, vs, null);

Doesn't work, because I don't know what to set the chain property to.
I don't to bind just a property of the ViewStack, I want to bind the
ViewStack. 

Any thoughts?



Re: [flexcoders] Metadata question

2007-06-08 Thread Michael Schmalle

Yes,

use the xml reflection and there is a meta data node for the member it was
defined on.

Peace, Mike

On 6/8/07, Paul deCoursey [EMAIL PROTECTED] wrote:


  Does anybody know if it's possible to define our own metadata and access

that info at runtime? For example, I'm writing a XML-Object binding
framework and I'd like to add some metadata to some generated classes
that I can access at runtime. The data I'd like to add is info about
how the object should be read or written to and from XML.

Paul

 





--
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] Losing state in tab manager?

2007-06-08 Thread Nate Pearson
I have a tab manager with multiple tabs.  inside each of the tabs I
have radio buttons.  If on tab 1 i choose button two, then click on
tab 2 and select button two and go back to tab 1 none of the radio
buttons are selected.

Maybe they think they belong to the same group?



[flexcoders] Flash/Flex and EXE

2007-06-08 Thread André Rodrigues Pena
Hello all,
I remember that when I programmed in Flash 8/AS2 there was a way I
could compile the movie into an EXE file.
My question is: Can I convert AS3 applications (Flex/Flash/Apollo)
into an EXE file?
thanks

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br


[flexcoders] Re: Flex Component Kit for Flash

2007-06-08 Thread Jason
I too am having difficulty accessing a Flash created .swc in Flex.

Hopefully someone will reply and enlighten us both.

:)



[flexcoders] Dynamically updating the contents of a ViewStack

2007-06-08 Thread Ian Shafer
Hello,

I'm building a Flex application that looks like this (warning, pseudo code):

Application
VBox
ApplicationControlBar
  ToggleButtonBar dataProvider=x/
   /ApplicationControlBar


ViewStack id=x
   v:Products
   v:Login
/ViewStack
/Application

After a user logs in, I'd like the v:Login to become v:Profile. How 
can I make this happen?

PS, I'm also using Cairngorm.

Thanks,

Ian


[flexcoders] CachedHTTPService (Re: Caching issue in HTTPService)

2007-06-08 Thread brent_trx
Here you go! Let me know if you have any questions / improvements / etc.

http://booleanbetrayal.com/2007/06/08/cachemoney-httpservices/

- Brent


 Hi Brent,
 
 --- brent_trx brent.dearth@ wrote:
  I've written a CachedHTTPService which extends
  mx.rpc.http.mxml.HTTPService to implement a caching mechanism, if
  you ever wanted to force custom-caching of data. It behaves exactly
  like the standard HTTPService in declaration and all that,
  transparently retrieving cached data if it's available, passing it
  along as the result, otherwise calling the service as it was
  intended upon send().
snip
  If anyone is interested, I can post the source in the next couple
  of days.
 
 Count me as interested.
 
 -David





Re: [flexcoders] Re: Flex Component Kit for Flash

2007-06-08 Thread Jurgen Beck

Hi Jason,

Are your issues related to the IFlexDisplayObject too?

So far I haven't seen any response from Matt or Alex. Not that they have 
to respond, but it would be nice to see if this is a known issue. :-)


Jurgen

Jason wrote:


I too am having difficulty accessing a Flash created .swc in Flex.

Hopefully someone will reply and enlighten us both.

:)

 


[flexcoders] Automated UI Testing for FLEX (Help!)

2007-06-08 Thread Persaud, Anthony
Other than FlexUnit, are there any other methods to perform automated UI
testing for Flash/Flex applications?

 

Thanks,

 

Anthony

 



Re: [flexcoders] Flex Component Kit for Flash

2007-06-08 Thread André Rodrigues Pena

Weber, I don't understand about exchanging SWC between Flash and Flex, but
for this code to work, the namespace myComps must be defined.
myComps

On 5/24/07, myronschabe [EMAIL PROTECTED] wrote:


  Hi,

I am just starting to play around with FCKF (scary looking acronym)
and am trying to use a simple swc that I created in Flash in Flex.
But in Flex builder I am getting:

An internal build error has occurred.
unable to load SWC colorbar4.swc

The steps I took:

In Flash I did Export SWC File on a movie clip object. In flex
builder my code is:

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

I have updated the library path with the swc - no problems occur
when doing so.

I updated Flexbuilder with the patch, though I don't see this 'so
called Make Flex Component command in Flash, so something may not
be right on that end - though I am not a Flash person so am not
quite certain where that should be showing up (library/right click?).

Any ideas?

Many Thanks!

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Metadata question

2007-06-08 Thread Paul deCoursey
You lost me.. I think either I need you to give me a concrete example or 
I need to better describe what I want to do.

I have a java application that generates AS3 classes from an XML Schema 
source.   Here is a simple example of one of those classes:

public class Angle {
   
public var activeaudioangle:String;
   
public var activevideoangle:String;
   
public var clip:com.decoursey.xmeml.Clip;
   
public function Angle() {
}
   
   
   
}

What I'd like to do is add metadata to properties(or to the class), for 
example:

public class Angle {
   
[XBElementSource(name=AAA)]
public var activeaudioangle:String;
   
[XBElementSource(name=AVA)]
public var activevideoangle:String;
   
public var clip:com.decoursey.xmeml.Clip;
   
public function Angle() {
}
   
   
   
}

And then at runtime I'd like to inspect the metadata, or even have the 
compiler generate some extra code based on the metadata.  How do I do 
that?  Can I do that?

Michael Schmalle wrote:
 Yes,

 use the xml reflection and there is a meta data node for the member it 
 was
 defined on.

 Peace, Mike

 On 6/8/07, Paul deCoursey [EMAIL PROTECTED] wrote:

   Does anybody know if it's possible to define our own metadata and 
 access

 that info at runtime? For example, I'm writing a XML-Object binding
 framework and I'd like to add some metadata to some generated classes
 that I can access at runtime. The data I'd like to add is info about
 how the object should be read or written to and from XML.

 Paul

  







Re: [flexcoders]Faking an XMLRPC call

2007-06-08 Thread dorkie dork from dorktown

it receives it as post. here is the result and a snippet from the php code:

Note that there is nothing in these requests.

Contents of $_GET:

Contents of $_POST:

Contents of $_COOKIE:

Contents of $_REQUEST:

Contents of $_SERVER:
  ...
  REQUEST_METHOD = POST
  QUERY_STRING =
  ...

  // from php file
  foreach ($_SERVER as $k = $v) {
 print$k = $v\n;
  }


I can send you the full output offlist.

On 6/8/07, Peter Farland [EMAIL PROTECTED] wrote:


   Did the PHP page see the method as GET or POST?

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *dorkie dork from dorktown
*Sent:* Thursday, June 07, 2007 10:06 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders]Faking an XMLRPC call

 Hi Peter,

I'm using srv.send(). I posted to a PHP page that dumps the submitted
value and it looks like it goes through because I get the xml back (in a
single line).

So what does this all mean? Can a HTTPService call over http talk to a
xml-rpc page like the one used on Wordpress blogs? If you have a blog you
should be able to change the url to point to your blog and get the same
results.



On 6/7/07, Peter Farland [EMAIL PROTECTED] wrote:

I'd check with an HTTP sniffer to see just what exactly is being sent
 on the wire for the body of the request.

 There are two known issues with the Flash Player XML type that
 HTTPService does not work around correctly in 2.0. The scenario is that
 if an XML value is provided as the body of a POST and that value has only
 empty, simple content (i.e. no child elements, just the empty string),
 then because toString() is called on the value when serializing it, the
 first known issue is hit where by the root elements are unwrapped and only
 the simple content is sent, i.e. the empty string. The second issue is
 that if you try to send no content with POST, the underlying URLLoader
 changes this back to GET.

 The reason I suggest using an HTTP sniffer is perhaps while you think
 you've provided a correct mx:request, perhaps it's not being actually sent
 as such? How are you calling send() on the HTTP service?

 Pete


  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *dorkie dork from dorktown
 *Sent:* Thursday, June 07, 2007 4:00 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders]Faking an XMLRPC call

   Is there a way to fake an XML RPC call? It seems like it'd be simple
 but I can't get it to work:

 mx:HTTPService id=srv
 url= http://www.judahfrangipane.com/blog/xmlrpc.php;
 fault={faultHandler(event)}
 result={resultHandler(event)}
 resultFormat=text
 method=POST
 contentType=application/xml
 mx:request
 methodCall
 methodNamemetaWeblog.getPost/methodName
 params
 paramvaluestring77/string/value/param

 paramvaluestringvisitor/string/value/param

 paramvaluestringvisitor/string/value/param
 /params
 /methodCall
 /mx:request
 /mx:HTTPService

 The result I get is XML-RPC server accepts POST requests only.

 FYI I'm calling a wordpress blog.


  



Re: [flexcoders] Metadata question

2007-06-08 Thread Michael Schmalle

Well, don't have exactly what I wanted to say but,

see

Re: Flex 2 Compiler / Metadata Question

Posts in flexcoders.

I don't have the url to the thread.

Peace, Mike

On 6/8/07, Paul deCoursey [EMAIL PROTECTED] wrote:


  You lost me.. I think either I need you to give me a concrete example or

I need to better describe what I want to do.

I have a java application that generates AS3 classes from an XML Schema
source. Here is a simple example of one of those classes:

public class Angle {

public var activeaudioangle:String;

public var activevideoangle:String;

public var clip:com.decoursey.xmeml.Clip;

public function Angle() {
}



}

What I'd like to do is add metadata to properties(or to the class), for
example:

public class Angle {

[XBElementSource(name=AAA)]
public var activeaudioangle:String;

[XBElementSource(name=AVA)]
public var activevideoangle:String;

public var clip:com.decoursey.xmeml.Clip;

public function Angle() {
}



}

And then at runtime I'd like to inspect the metadata, or even have the
compiler generate some extra code based on the metadata. How do I do
that? Can I do that?

Michael Schmalle wrote:
 Yes,

 use the xml reflection and there is a meta data node for the member it
 was
 defined on.

 Peace, Mike

 On 6/8/07, Paul deCoursey [EMAIL PROTECTED] paul%40decoursey.net
wrote:

 Does anybody know if it's possible to define our own metadata and
 access

 that info at runtime? For example, I'm writing a XML-Object binding
 framework and I'd like to add some metadata to some generated classes
 that I can access at runtime. The data I'd like to add is info about
 how the object should be read or written to and from XML.

 Paul







 





--
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] Highlight a selected chartItem: a quick and easy way

2007-06-08 Thread Peter Demling
Problem: you click on a chartItem; how do you give it a persistent
visual mark to show that it's the currently selected item?

This issue has vexed me for weeks, and while there are a several 
different solutions with powerful benefits (manually create a ToolTip
with ToolTipManager; use Ely's dataDrawingCanvas; use a conditional
itemRenderer, etc), here's one easy, simple solution:

1] Specify an inline itemRenderer for the Series, initializing
the alpha to less than 1 (I like 0.8)

2] Declare a global ChartItem variable named prevSelectedItem

3] In your event handler for clicking on a chartItem, reset the alpha
of the previously selected chartItem (if any) to the unhighlighted
value (in this case 0.8); and then set the currently selected item to
the highlighted value (in this case 1)

That's it; example code is below.  Now you could certainly define your
own custom itemRenderer, and expose more than just the alpha property
in order to alter the visual appearance; and I very well may be
missing additional visual properties of the chartItem that you can
manipulate here out of the box (suggestions, anyone?); but for sheer
simplicity, this approach is real easy to work with.

Regards,
-Peter Demling
 Lexington, MA

?xml version=1.0?
!-- charts/DataTipsMultiple.mxml --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  mx:Script![CDATA[
 import mx.collections.ArrayCollection;
 import mx.charts.events.ChartItemEvent;
 import mx.charts.ChartItem;

 [Bindable]
 public var expenses:ArrayCollection = new ArrayCollection([
{Month:Jan, Profit:2000, Expenses:1500},
{Month:Feb, Profit:1000, Expenses:200},
{Month:Mar, Profit:1500, Expenses:500},
{Month:Apr, Profit:2500, Expenses:1700},
{Month:May, Profit:2000, Expenses:800}
 ]);

private var prevSelectedColumn:ChartItem;

private function itemClicked(e:ChartItemEvent):void{
if (prevSelectedColumn)
prevSelectedColumn.itemRenderer.alpha = 0.8;
prevSelectedColumn = e.hitData.chartItem;
e.hitData.chartItem.itemRenderer.alpha = 1;
}

  ]]/mx:Script
  mx:Panel title=Column Chart
 mx:ColumnChart id=myChart 
dataProvider={expenses} 
showDataTips=true 
itemClick=itemClicked(event)
mx:horizontalAxis
   mx:CategoryAxis 
dataProvider={expenses} 
categoryField=Month/
/mx:horizontalAxis
mx:series
   mx:ColumnSeries 
yField=Profit
mx:itemRenderer
   mx:Component
  mx:BoxItemRenderer alpha=0.8 /
   /mx:Component
/mx:itemRenderer  
   /mx:ColumnSeries
/mx:series
 /mx:ColumnChart
  /mx:Panel
/mx:Application



[flexcoders]Memory footprint - rebuttal

2007-06-08 Thread dorkie dork from dorktown

What do you say to if someone has a problem with the memory footprint of the
plugin?

btw what is the official memory footprint?


[flexcoders] Making a flex app pretty

2007-06-08 Thread Christopher Olsen
What tool would one use to make a flex apps interface pretty?

-christopher



Re: [flexcoders] Metadata question

2007-06-08 Thread Michael Schmalle

yes and no. :)

Just after I posted I remembered the but...

Peace, Mike

On 6/8/07, Paul deCoursey [EMAIL PROTECTED] wrote:


  Thanks, and to summarize the other Thread, the answer to my question is
no, but yes.

http://tech.groups.yahoo.com/group/flexcoders/message/65112

Really I was hoping for something more along the lines of Annotations
like in Java 1.5. I think that I will probably try some other avenue
since this appears to be a dead end.

Paul


Michael Schmalle wrote:
 Well, don't have exactly what I wanted to say but,

 see

 Re: Flex 2 Compiler / Metadata Question

 Posts in flexcoders.

 I don't have the url to the thread.

 Peace, Mike

 On 6/8/07, Paul deCoursey [EMAIL PROTECTED] paul%40decoursey.net
wrote:

 You lost me.. I think either I need you to give me a concrete
 example or

 I need to better describe what I want to do.

 I have a java application that generates AS3 classes from an XML Schema
 source. Here is a simple example of one of those classes:

 public class Angle {

 public var activeaudioangle:String;

 public var activevideoangle:String;

 public var clip:com.decoursey.xmeml.Clip;

 public function Angle() {
 }



 }

 What I'd like to do is add metadata to properties(or to the class), for
 example:

 public class Angle {

 [XBElementSource(name=AAA)]
 public var activeaudioangle:String;

 [XBElementSource(name=AVA)]
 public var activevideoangle:String;

 public var clip:com.decoursey.xmeml.Clip;

 public function Angle() {
 }



 }

 And then at runtime I'd like to inspect the metadata, or even have the
 compiler generate some extra code based on the metadata. How do I do
 that? Can I do that?

 Michael Schmalle wrote:
  Yes,
 
  use the xml reflection and there is a meta data node for the member
it
  was
  defined on.
 
  Peace, Mike
 
  On 6/8/07, Paul deCoursey [EMAIL PROTECTED] 
paul%40decoursey.netpaul%40decoursey.net
 wrote:
 
  Does anybody know if it's possible to define our own metadata and
  access
 
  that info at runtime? For example, I'm writing a XML-Object binding
  framework and I'd like to add some metadata to some generated
classes
  that I can access at runtime. The data I'd like to add is info about
  how the object should be read or written to and from XML.
 
  Paul
 
 
 
 
 
 







 





--
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] Metadata question

2007-06-08 Thread Paul deCoursey
Thanks,  and to summarize the other Thread, the answer to my question is 
no, but yes.

http://tech.groups.yahoo.com/group/flexcoders/message/65112

Really I was hoping for something more along the lines of Annotations 
like in Java 1.5.  I think that I will probably try some other avenue 
since this appears to be a dead end.

Paul


Michael Schmalle wrote:
 Well, don't have exactly what I wanted to say but,

 see

 Re: Flex 2 Compiler / Metadata Question

 Posts in flexcoders.

 I don't have the url to the thread.

 Peace, Mike

 On 6/8/07, Paul deCoursey [EMAIL PROTECTED] wrote:

   You lost me.. I think either I need you to give me a concrete 
 example or

 I need to better describe what I want to do.

 I have a java application that generates AS3 classes from an XML Schema
 source. Here is a simple example of one of those classes:

 public class Angle {

 public var activeaudioangle:String;

 public var activevideoangle:String;

 public var clip:com.decoursey.xmeml.Clip;

 public function Angle() {
 }



 }

 What I'd like to do is add metadata to properties(or to the class), for
 example:

 public class Angle {

 [XBElementSource(name=AAA)]
 public var activeaudioangle:String;

 [XBElementSource(name=AVA)]
 public var activevideoangle:String;

 public var clip:com.decoursey.xmeml.Clip;

 public function Angle() {
 }



 }

 And then at runtime I'd like to inspect the metadata, or even have the
 compiler generate some extra code based on the metadata. How do I do
 that? Can I do that?

 Michael Schmalle wrote:
  Yes,
 
  use the xml reflection and there is a meta data node for the member it
  was
  defined on.
 
  Peace, Mike
 
  On 6/8/07, Paul deCoursey [EMAIL PROTECTED] paul%40decoursey.net
 wrote:
 
  Does anybody know if it's possible to define our own metadata and
  access
 
  that info at runtime? For example, I'm writing a XML-Object binding
  framework and I'd like to add some metadata to some generated classes
  that I can access at runtime. The data I'd like to add is info about
  how the object should be read or written to and from XML.
 
  Paul
 
 
 
 
 
 

  







Re: [flexcoders] Making a flex app pretty

2007-06-08 Thread Michael Schmalle

Imagination

Peace, Mike

On 6/8/07, Christopher Olsen [EMAIL PROTECTED] wrote:


  What tool would one use to make a flex apps interface pretty?

-christopher

 





--
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] Automated UI Testing for FLEX (Help!)

2007-06-08 Thread Karl Johnson
Mercury Quick Test Pro (works with FDS's Automation API). Or you could
write your own :-)

 

FlexUnit is not really an automated UI testing solution, it unit tests
the code.

 

Karl

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Persaud, Anthony
Sent: Friday, June 08, 2007 2:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Automated UI Testing for FLEX (Help!)

 

Other than FlexUnit, are there any other methods to perform automated UI
testing for Flash/Flex applications?

 

Thanks,

 

Anthony

 

 



Re: [flexcoders]Faking an XMLRPC call

2007-06-08 Thread Charles Galpin

On Jun 8, 2007, at 3:07 PM, dorkie dork from dorktown wrote:

 it receives it as post. here is the result and a snippet from the  
 php code:

 Note that there is nothing in these requests.

I suggest printing $HTTP_RAW_POST_DATA

I found when posting XML to php, if it's all XML, then the normal  
variables don't contain anything, but $HTTP_RAW_POST_DATA had it all.

hth
charles


[flexcoders] Re: HELP !!! PLEASE !! mx:VideoDisplay [3rd try]

2007-06-08 Thread Rohan Pinto
duplicate thread :
http://tech.groups.yahoo.com/group/flexcoders/message/76991


please advise... 

help me adobe.. help...

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

 I am using mx:VideoDisplay to display a video in my app @
 http://opentube.info
 
 the video is displayed within a tile window.
 
 mx:TitleWindow width=800 height=500 autoLayout=true
 layout=absolute title=Video Viewer showCloseButton=true 
   xmlns:mx=http://www.adobe.com/2006/mxml;
   backgroundColor=#ff
   verticalGap=0 horizontalCenter=0 verticalCenter=0
   x=10 y=55
   dropShadowEnabled=true
   close=closeWindow()
   xmlns:ns1=*
   creationComplete=feedRequest.send()
   xmlns:com=com.*   
   
 
 my mx:VideoDisplay code is as follows:
 mx:VideoDisplay id=myVid height=350 width=450 bufferTime=5
 source={rp2.currentItem.url} autoPlay=true
 autoBandWidthDetection=true/
 mx:HBox horizontalAlign=center width=450
 mx:Button label=Play click=myVid.play()
 cornerRadius=10 bottom=10 x=10/
 mx:Button label=Pause click=myVid.pause()
 cornerRadius=10 bottom=10 left=69/
 mx:Button label=Stop click=myVid.stop()
 cornerRadius=10 left=138 bottom=10/
 mx:HSlider id=volume snapInterval=0.01 value=5
 maximum=10
   change=myVid.volume = volume.value; 
   liveDragging=true height=20 left=236 
 bottom=0
width=200/
 /mx:HBox
 
 the play/pasuse stop buttons throw errors
 
 could someone advise me on how to fix it ?
 
 Rohan
 http://opentube.info





RE: [flexcoders] HELP! Multi-language Application in Flex

2007-06-08 Thread Gordon Smith
 Please provide me the solutions to develop multi-lingual Flex
applications.
 
Flex 3 (which will ship in the second half of this year) will have
built-in support for this. In Flex 2, you would have to roll your own
solution.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Pay Hub
Sent: Friday, June 08, 2007 10:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HELP! Multi-language Application in Flex



Hi All,
 
According to our requirement, we need to development a Flex applications
that provides multi-language facility.
 
Flex components like mx:Text/, mx:TextArea/, mx:TextInput should
be able to allow or display two different language, example English or
local-language, which is according to user selection, but at a time only
one language enabled. 
 
Please provide me the solutions to develop multi-lingual Flex
applications.
 
Thanks
 
Regards
Abdul Hadhi
 
 

 


RE: [flexcoders] AS3 method exist returning the # of bytes a String is?

2007-06-08 Thread Gordon Smith
Exactly what problem are you having? When you use a String, you are always 
dealing with characters, not with bytes. Are you actually using a ByteArray 
rather than a String? How are you putting a ByteArray into a TextArea?
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter 
Farland
Sent: Friday, June 08, 2007 10:15 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] AS3 method exist returning the # of bytes a String is?



It would depend on the character set encoding. You'd need to know which 
encoding was used in order to determine the number of bytes of a stored 
String.
 
For example, if you wanted to get the length of a UTF-8 encoded String, you 
could do something like this:
 
var ba:ByteArray = new ByteArray();
var ba.writeUTFBytes(stringValue);
ba.position = 0; // Remember to rewind to position 0 if you plan to use the 
bytes
 
var length:uint = ba.length;
 
On the other hand, as another example, UTF-16 would be 2-bytes per character no 
matter whether it was code point was less than 128. etc. etc..
 
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of e_baggg
Sent: Friday, June 08, 2007 1:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AS3 method exist returning the # of bytes a String is?



I am implementing a spell checker and am hitting some issues because
for non-Ascii characters such as ò...this is actually two bytes
where a normal character is 1 byte...which throws off the start and
end index of the text in the textArea.

Do any Flash/AS3 methods exist that return the number of bytes a given
String is? Or do I need to create my own loop counting each character
and if the charCode is = 128...then it is 2 bytes?

Thanks in advance.



 


[flexcoders] Re: Caching issue in HTTPService

2007-06-08 Thread Doug Lowder
On the *server*, set the Cache-Control header to max-age=0, must-
revalidate to disable caching of the resource.  Most server-side 
technologies (PHP, JSP, etc.) will allow you to specify header 
values.  The headers of the response, not the request, are what 
control client-side caching, which is why you need to set the values 
on the server instead of in the client-side HTTPService request.

Search the archives for Cache-Control and you'll find plenty of posts 
on the subject.  I remember seeing exampples for JSP, PHP, and CF.

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

 Is there a way to specify the HTTPService to no-cache mode? If I 
access the
 URL with a browser I can get the *real* destination with CTRL+F5... 
I don't
 know how to make an HTTPService use this kind of request; I don't 
even know
 if it is possible. Anyone?
 
 On 6/7/07, Christopher Olsen [EMAIL PROTECTED] wrote:
 
Yeah from my experiences with the flash player it appears that 
it uses
  the browser for network connections to fetch files... and the 
browser
  does the caching
  I have a poor workaround i modify the httpservice url and keep 
appending
  a timestamp to the url but there must be a better way?
 
  -Christopher
 
  Guido wrote:
  
   I've had the same issue and I wasn't able to bypass it. In my 
case, I
   access an XML file throug HTTPService, and I always get the 
same XML
   even if I modify (or even delete!) the file from the server
  
   On 6/7/07, *Christopher Olsen* [EMAIL PROTECTED]cwolsen%
40domainatlantic.com
   mailto:[EMAIL PROTECTED] cwolsen%40domainatlantic.com
  wrote:
  
   Anyone ever have an issue where an HTTPService result gets 
cached?
  
   I'm use an httpservice to call a script which generates html 
however
   after the time run it's always returning the same results the 
*data*
   appears to be cached
  
   -Christopher
  
  
  
 
   
 





RE: [flexcoders] Metadata question

2007-06-08 Thread Gordon Smith
Yes, you can define your own metadata and access it at runtime using the
describeType() function. However, by default the only metadata that is
compiled into the SWF is [Bindable], [Managed], [ChangeEvent],
[NonCommittingChangeEvent], and [Transient] (see the keep-as3-metadata
section in flex-config.xml) and you must change the default value of the
keep-as3-metadata option to include other metadata into the SWF.

As an example, compile the following application

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

mx:Script
![CDATA[

import flash.utils.describeType;

[Foo(bar=baz)]
public function doit():void
{
}

]]
/mx:Script

mx:Button click=trace(describeType(this))/

/mx:Application

with the option 

 
-keep-as3-metadata=Bindable,Managed,ChangeEvent,NonCommittingChangeEvent
,Transient,Foo

Click the button and inspect the trace output. You'll see
 
  method name=doit declaredBy=test1 returnType=void
metadata name=Foo
  arg key=bar value=baz/
/metadata
  /method

 
Note: describeType() will only give you info about public APIs.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul deCoursey
Sent: Friday, June 08, 2007 10:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Metadata question



Does anybody know if it's possible to define our own metadata and access

that info at runtime? For example, I'm writing a XML-Object binding 
framework and I'd like to add some metadata to some generated classes 
that I can access at runtime. The data I'd like to add is info about 
how the object should be read or written to and from XML.

Paul



 


[flexcoders] Re: Flash/Flex and EXE

2007-06-08 Thread Doug Lowder
From the standalone Flash Player, you can select File-Create 
Projector... to create a .exe.

--- In flexcoders@yahoogroups.com, André Rodrigues Pena 
[EMAIL PROTECTED] wrote:

 Hello all,
 I remember that when I programmed in Flash 8/AS2 there was a way I
 could compile the movie into an EXE file.
 My question is: Can I convert AS3 applications (Flex/Flash/Apollo)
 into an EXE file?
 thanks
 
 -- 
 André Rodrigues Pena
 
 LOCUS
 www.locus.com.br





Re: [flexcoders] Metadata question

2007-06-08 Thread Michael Schmalle

And here lies the trick

-keep-as3-metadata=Bindable,Managed,ChangeEvent,NonCommittingChangeEvent

You have to say what you want to show up..

Peace, Mike

On 6/8/07, Gordon Smith [EMAIL PROTECTED] wrote:


   Yes, you can define your own metadata and access it at runtime using
the describeType() function. However, by default the only metadata that is
compiled into the SWF is [Bindable], [Managed], [ChangeEvent],
[NonCommittingChangeEvent], and [Transient] (see the keep-as3-metadata
section in flex-config.xml) and you must change the default value of the
keep-as3-metadata option to include other metadata into the SWF.

As an example, compile the following application

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

mx:Script
![CDATA[

import flash.utils.describeType;

[Foo(bar=baz)]
public function doit():void
{
}

]]
/mx:Script

mx:Button click=trace(describeType(this))/

/mx:Application
with the option


-keep-as3-metadata=Bindable,Managed,ChangeEvent,NonCommittingChangeEvent,Transient,Foo
Click the button and inspect the trace output. You'll see
  method name=doit declaredBy=test1 returnType=void
metadata name=Foo
  arg key=bar value=baz/
/metadata
  /method

Note: describeType() will only give you info about public APIs.

- Gordon

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Paul deCoursey
*Sent:* Friday, June 08, 2007 10:36 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Metadata question

 Does anybody know if it's possible to define our own metadata and access
that info at runtime? For example, I'm writing a XML-Object binding
framework and I'd like to add some metadata to some generated classes
that I can access at runtime. The data I'd like to add is info about
how the object should be read or written to and from XML.

Paul

 





--
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] Making a flex app pretty

2007-06-08 Thread Brendan Meutzner

http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html

Doesn't hurt to have a good Flash designer who will come up with some nice
icon/skin assets for you...


Brendan

On 6/8/07, Michael Schmalle [EMAIL PROTECTED] wrote:


  Imagination

Peace, Mike

On 6/8/07, Christopher Olsen [EMAIL PROTECTED] wrote:

   What tool would one use to make a flex apps interface pretty?

 -christopher




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





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


Re: [flexcoders] Re: Flash/Flex and EXE

2007-06-08 Thread Brendan Meutzner

And then there are more powerful tools like Zinc :
http://www.multidmedia.com/software/zinc/


Brendan


On 6/8/07, Doug Lowder [EMAIL PROTECTED] wrote:


  From the standalone Flash Player, you can select File-Create
Projector... to create a .exe.

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, André
Rodrigues Pena
[EMAIL PROTECTED] wrote:

 Hello all,
 I remember that when I programmed in Flash 8/AS2 there was a way I
 could compile the movie into an EXE file.
 My question is: Can I convert AS3 applications (Flex/Flash/Apollo)
 into an EXE file?
 thanks

 --
 André Rodrigues Pena

 LOCUS
 www.locus.com.br


 





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


Re: [flexcoders]Faking an XMLRPC call

2007-06-08 Thread dorkie dork from dorktown

Thats where the xml is. Wordpress is not seeing it as a POST. I'm starting
to think the problem is on Wordpresses end.

On 6/8/07, Charles Galpin [EMAIL PROTECTED] wrote:



On Jun 8, 2007, at 3:07 PM, dorkie dork from dorktown wrote:

 it receives it as post. here is the result and a snippet from the
 php code:

 Note that there is nothing in these requests.

I suggest printing $HTTP_RAW_POST_DATA

I found when posting XML to php, if it's all XML, then the normal
variables don't contain anything, but $HTTP_RAW_POST_DATA had it all.

hth
charles
 



[flexcoders]Can't convert XML to ArrayCollection in AS3

2007-06-08 Thread dorkie dork from dorktown

I cant successfully convert xml to a array collection. I don't know what I'm
doing wrong. It works in MXML not AS3.

Here is the result from a service call:

   public function resultHandler(event:ResultEvent):void {

   trace(result : + event.result);
   var myXML:XML = XML(event.result);
   var ac:ArrayCollection = new ArrayCollection();
   ac.source = myXML.menu as Array;
   ac.refresh();
   trace(ac.length);
   linkBarNav.dataProvider = ac;

   }


TypeError: Error #1034: Type Coercion failed: cannot convert
[EMAIL PROTECTED] Class.

It works fine with this model :

   mx:Model id=menuXML
   mainmenu
   menu id=madmin label=Maintenance role=admin
roleAction=hide
   submenu id=mudacControl label=UDAC Controls
link=/das/admin/udacControlMaint.faces role=base roleAction=diable/
   submenu id=mcmrlUsers label=CMRL Users
link=/das/admin/cmrlUsersMaint.faces role=base roleAction=diable/
   submenu id=mtemplates label=Templates
link=/das/admin/templateMaint.faces role=base roleAction=diable/
   submenu id=mquestions label=Questions
link=/das/admin/questionMaint.faces role=base roleAction=diable/
   /menu
   menu id=mwork label=Queues role=base
   submenu id=mworkQueue label=Work Queue
link=/das/work/workQueue.faces role=base roleAction=diable/
   submenu id=missuesQueue label=Issues Queue
link=/das/work/issuesQueue.faces role=base roleAction=diable/
   submenu id=mjbpmNodes label=Nodes
link=/das/work/nodes.faces role=base roleAction=diable/
   /menu
   menu id=mhelp label=Help role=base
   submenu id=mhelpDoc label=Help Document
link=/somelink role=base roleAction=diable/
   /menu
   /mainmenu
   /mx:Model

   mx:ArrayCollection id=myAC source={menuXML.menu}
filterFunction=filterMenu/


Re: [flexcoders]Faking an XMLRPC call

2007-06-08 Thread Charles Galpin


On Jun 8, 2007, at 5:52 PM, dorkie dork from dorktown wrote:

Thats where the xml is. Wordpress is not seeing it as a POST. I'm  
starting to think the problem is on Wordpresses end.


I honestly have no idea what wordpress is expecting, but I did a  
quick google and someone has a flex app with source that you can look  
at that talks to wordpress over xmlrpc using an open source xmlrpc lib


http://www.arpitonline.com/blog/downloads/as3_wordpress/

http://code.google.com/p/as3-rpclib/

I'd take a good look at it and go from there.

hth
charles




On 6/8/07, Charles Galpin  [EMAIL PROTECTED] wrote:

I suggest printing $HTTP_RAW_POST_DATA






[flexcoders] Re: Secure WebService problem with HotFix2

2007-06-08 Thread Jay
I tried anWebService.useProxy = false; just before I called the
operation.  But I am still getting the error.  

Pete, btw, I am using the rpc.swc file you sent to me couple of days ago.



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

 I believe this is a known issue, as a work around, could you try setting
 the following before you call your operation:
  
 anWebService.useProxy = false;
 anWebService.someOperation(someParam); //... etc...
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jay
 Sent: Friday, June 08, 2007 12:36 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Secure WebService problem with HotFix2
 
 
 
 Hi,
 
 I have this webserivice running fine before HotFix2. 
 
 mx:WebService id=anWebService 
 wsdl=https://somewhereonthenet.com/AuthenticationWS?wsdl
 https://somewhereonthenet.com/AuthenticationWS?wsdl  
 showBusyCursor=true /
 
 But after the hotfix2, I am getting the error when my webservice URL
 is HTTPS, but it works fine on the HTTP. I tried to look for the
 documentation and couldn't find any on what I should be setting up.
 Any help would be really appreciated.
 
 [RPC Fault faultString=[MessagingError message='Destination
 'DefaultHTTPS' has no channels defined and the application does not
 define any default channels.'] faultCode=InvokeFailed
 faultDetail=Unable to load WSDL. If currently online, please verify
 the URI and/or format of the WSDL
 (https://somewhereonthenet.com/AuthenticationWS?WSDL
 https://somewhereonthenet.com/AuthenticationWS?WSDL )]
 at mx.rpc.wsdl::WSDLLoader/mx.rpc.wsdl:WSDLLoader::faultHandler()
 at
 flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven
 tFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at
 mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::disp
 atchRpcEvent
 http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent ()
 at Function/http://adobe.com/AS3/2006/builtin::apply
 http://adobe.com/AS3/2006/builtin::apply ()
 at mx.rpc::AsyncDispatcher/::timerEventHandler()
 at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
 at flash.utils::Timer/flash.utils:Timer::tick()





[flexcoders] Flex System Calls Question

2007-06-08 Thread mswallacecoder
I have a friend that would posed a question on another user group that
I am on and was wondering if any of you might have a solution.

Here is the questions that was posed. 

hey all... i have a question that i've been trying to find an answer
to, and figured that maybe there would be an off chance that there
would be someone here who would have an answer. i've been in the
process of building a client / server application that uses some
system calls for things like keyboard / mouse detection and file
system change detection... and it's built in C++ using TrollTech's Qt
cross platform application development environment... (basically a set
of cross platform gui tools). http://trolltech.com/

anyhow... the web interface for this project is using flex with
ColdFusion, and we wanted to take advantage of the cross platform
capabilities within Apollo using Flex for the client instead of the
proof of concept using Qt and C++.

the problem is, i have not come across anything within AS3 that will
allow me to make calls to the system for the things that i need, and
it does not seem that i can extend existing components written in .NET
or make API calls to the OS at all. it seems that Apollo will give me
access to the file system, but only on a read / write basis... and
this is too high a level for what i'm needing the application to do.

so... i guess that my question is... has anyone had any experience
with making OS level system calls to MAC or Windows using AS3? 

thanks,
-Matthew



[flexcoders] Flex 1.5 dispatchEvent and addEventListener question

2007-06-08 Thread Dave Turner
Hello 

I am working on a 1.5 project and i have an mxml page that creates an
Array of Components.  These Components are basically a Container that
holds a few form elements. 

if one of these components dispatches an event how would i set up the
parent page to listen for the dispatched event?

I have been able to successfully capture an event when i utilize the
id attribute of the component but because its an array of objects in
this case i cannot do that.  

for instance i cannot do this.. 
thing.addEventListener(eventThrown, Delegate.create(this, onEvent));

Ive tried referencing the Repeater that generates the Array of Objects
but that does not detect the event.. 

I know this wouldn't be a problem in 2.x but I am unable to get the
parent to detect the thrown event in 1.5.

Any help with this matter would be greatly appreciated.

thanks, 
Dave 



[flexcoders] How to address relative tile in TileList in dragDrop event processing?

2007-06-08 Thread Peter Connolly
Say you have a TileList:

mx:TileList id=tilelist1 dataProvider={anyAC} 
columnCount=9 rowCount=9 dragDrop=myDragDrop(event);/

Now say you drop an object onto the cell at row 3, column 5, you'd
like to be able to easily address the data in position 15 in the
ArrayCollection anyAC when processing the 'drop' event in
myDragDrop(). 

I've looked.  I don't see any property in the DragEvent that gives you
the relative position in a TileList.  What am I missing?




[flexcoders] using a list's item renderer

2007-06-08 Thread Ariel Jakobovits
Could someone explain to me how I could use the itemRenderer of a list (even 
the default one) to produce a single rendering of a display item given a data 
object to work with?

What I have is a HorizontalList of icons and a label representing Saved Items. 
What I want to do is put a New Item.. icon and label before the list, but I 
want it to be rendered as if it were a list item.

Thanks,

Ariel



--
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] Re: using a list's item renderer

2007-06-08 Thread arieljake
Oh yeah, and I'd like to do it in MXML.

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

 Could someone explain to me how I could use the itemRenderer of a
list (even the default one) to produce a single rendering of a display
item given a data object to work with?
 
 What I have is a HorizontalList of icons and a label representing
Saved Items. What I want to do is put a New Item.. icon and label
before the list, but I want it to be rendered as if it were a list item.
 
 Thanks,
 
 Ariel





[flexcoders] Re: Flex event addition

2007-06-08 Thread arieljake
My understanding now is that there is : collectionChange.

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

 Could it be added that an event gets fired, say for a ComboBox, when
the dataProvider changes? There is already one for 'data'.





RE: [flexcoders] Re: Secure WebService problem with HotFix2

2007-06-08 Thread Peter Farland
Did you load the SWF via HTTPS too? You can't make a secure connection
unless you loaded the SWF securely too.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jay
Sent: Friday, June 08, 2007 5:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Secure WebService problem with HotFix2



I tried anWebService.useProxy = false; just before I called the
operation. But I am still getting the error. 

Pete, btw, I am using the rpc.swc file you sent to me couple of days
ago.

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

 I believe this is a known issue, as a work around, could you try
setting
 the following before you call your operation:
 
 anWebService.useProxy = false;
 anWebService.someOperation(someParam); //... etc...
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Jay
 Sent: Friday, June 08, 2007 12:36 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Secure WebService problem with HotFix2
 
 
 
 Hi,
 
 I have this webserivice running fine before HotFix2. 
 
 mx:WebService id=anWebService 
 wsdl=https://somewhereonthenet.com/AuthenticationWS?wsdl
https://somewhereonthenet.com/AuthenticationWS?wsdl 
 https://somewhereonthenet.com/AuthenticationWS?wsdl
https://somewhereonthenet.com/AuthenticationWS?wsdl   
 showBusyCursor=true /
 
 But after the hotfix2, I am getting the error when my webservice URL
 is HTTPS, but it works fine on the HTTP. I tried to look for the
 documentation and couldn't find any on what I should be setting up.
 Any help would be really appreciated.
 
 [RPC Fault faultString=[MessagingError message='Destination
 'DefaultHTTPS' has no channels defined and the application does not
 define any default channels.'] faultCode=InvokeFailed
 faultDetail=Unable to load WSDL. If currently online, please verify
 the URI and/or format of the WSDL
 (https://somewhereonthenet.com/AuthenticationWS?WSDL
https://somewhereonthenet.com/AuthenticationWS?WSDL 
 https://somewhereonthenet.com/AuthenticationWS?WSDL
https://somewhereonthenet.com/AuthenticationWS?WSDL  )]
 at mx.rpc.wsdl::WSDLLoader/mx.rpc.wsdl:WSDLLoader::faultHandler()
 at

flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven
 tFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at

mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::disp
http://www.adobe.com/2006/flex/mx/internal::disp 
 atchRpcEvent
 http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent
http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent  ()
 at Function/http://adobe.com/AS3/2006/builtin::apply
http://adobe.com/AS3/2006/builtin::apply 
 http://adobe.com/AS3/2006/builtin::apply
http://adobe.com/AS3/2006/builtin::apply  ()
 at mx.rpc::AsyncDispatcher/::timerEventHandler()
 at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
 at flash.utils::Timer/flash.utils:Timer::tick()




 


  1   2   >