[flexcoders] Re: anyone using HTMLcomponent.swc? possible bug.

2007-05-17 Thread barry.beattie

if you find a solution to the bug, do ensure to keep everyone
informed, yes? for my application I'm finding it a bit of a show-stopper.


 Thanks for the link, let me check it to reach any decision.




RE: [flexcoders] Is it possible for Flex Builder to echo the mxmlc.exe command it uses ?

2007-05-17 Thread Ravi Kumar Gummadi
See .actionScriptProperties created in the src folder..

It wud have all the arguments its using for mxmlc

 


** The
information contained in this email, and any attachments hereto, is
strictly confidential and solely intended for use by the individual(s)
and/or entity(s) to which it is addressed. If you have received this
email in error, please notify the System Manager at
[EMAIL PROTECTED] as soon as possible. Thank you for your attention
to this matter.

**



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of helihobby
Sent: Thursday, May 17, 2007 9:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is it possible for Flex Builder to echo the
mxmlc.exe command it uses ?

 

How can I see ( if any ) the mxmlc.exe args that Flex Builder is using 
when I tell it to compile using the GUI ( Right Click - Compile ).

I wanna right a mxmlc script but need to see first what Flex Builder is 
using.

Thanks for the help,

Sean.

 



[flexcoders] Flex component kit problem

2007-05-17 Thread helix206
Ok, i have managed to create a small component in flash and load it in 
flex, work great, tho i have one problem.

As the class i created extends uimovieclip, flex sees it as movieclip, 
but i need the property's of a button. Actualy i need autoRepeat 
property of a button. Does anyone know how to get flex to see my 
component as a button?

thx.



Re: [flexcoders] Re: Flex: Modular Applications

2007-05-17 Thread leds usop
sorry for hijacking this thread but i guess this is a
related question. is it possible to store loaded
modules as shared objects? and if it is, what are the
possible issues to consider?

--- Russell Munro [EMAIL PROTECTED] wrote:

 I have worked a-lot with modules in recent months 
 there is one great
 way I have found to manage modules that is more
 predicable, easier to
 handler  far nicer on memory than any other means I
 can find. Don't
 remove the module! Once you have loaded the module
 store it in a
 variable and when you need it again get the one you
 have already
 loaded. Its simple and it works.
 
 Russell Munro
 
 
 --- In flexcoders@yahoogroups.com, cwolsen7905
 [EMAIL PROTECTED] wrote:
 
  Hello,
  
  I'm working on a modular application.
  
  However it appears to me that module.unload does
 not do any cleanup..
  
  It leaves behind eventlisteners and objects in the
 parent application.
  Is there any way to get it to do propper cleanup?
  
  -Christopher
 
 
 
 



   
Get
 the free Yahoo! toolbar and rest assured with the added security of spyware 
protection.
http://new.toolbar.yahoo.com/toolbar/features/norton/index.php


[flexcoders] RESOLVED: VerifyError: Error #1053

2007-05-17 Thread Jim Robson
The issue was resolved by uninstalling and reinstalling Flex Builder.
Before resorting to this, I tried the following (without success,
obviously): 

1. Cleaned the workspace (multiple times)
2. Closed and restarted Flex Builder (multiple times)
3. Closed and reopened the project
4. Deleted and recreated the project
5. Uninstalled and reinstalled the Flash players
6. Shut down and restarted my laptop

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

 Hey guys,
 
 I'm getting the error referenced in the subject line when I place
any series
 effect anywhere in any application. I get it with SeriesInterpolate,
 SeriesSlide, and SeriesZoom tags. I also get it if I try to apply
the effect
 in ActionScript using the setStyle method of a chart series (e.g.
PieSeries,
 ColumnSeries) object. In fact, I get the same error even if the series
 effect tag is the only thing between mx:Application and
/mx:Application!
 
 Anybody else run into this? I'm thinking that either my SDK, or my
copy of
 Flex Builder, or my copy of Charting, or perhaps my Flash player, is
 corrupt. 
 
 Please pass along any info or suggestions you may have. I'm pasting the
 complete error message plus a code sample below.
 
 Thanks
 -Jim
 
 
 Here's the complete error message:
 
 
 param 1 incompatible
virt mx.effects::IEffectInstance
 mx.effects::TweenEffect/mx.effects:TweenEffect::initInstance()
over mx.effects::EffectInstance

mx.charts.effects::SeriesEffect/mx.charts.effects:SeriesEffect::initInstance
 ()
 VerifyError: Error #1053: Illegal override of SeriesEffect in
 mx.charts.effects.SeriesEffect.
   at TestSeriesEffects/TestSeriesEffects::_SeriesInterpolate1_i()
   at

TestSeriesEffects$iinit()[C:\projects\dhs\TestSeriesEffects\TestSeriesEffect
 s.mxml:25]
   at _TestSeriesEffects_mx_managers_SystemManager/create()
   at

mx.managers::SystemManager/mx.managers:SystemManager::initializeTopLevelWind

ow()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2289]
   at

mx.managers::SystemManager/mx.managers:SystemManager::docFrameHandler()[C:\d
 ev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2214]
 [SWF]
C:\projects\dhs\TestSeriesEffects\bin\TestSeriesEffects-debug.swf -
 722,293 bytes after decompression
 
 
 ===
 
 I first ran into the error when trying to use the effect in an app
that I'm
 building for a customer. When I couldn't get around it, I tried it in
 various other apps, but kept getting the same error. I finally
copied and
 pasted an entire sample app from the docs, and got the same result.
Here's
 the sample app I used:
 
 ?xml version=1.0?
 !-- charts/SeriesInterpolateEffect.mxml --
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
   mx:Script![CDATA[
  import mx.collections.ArrayCollection;
 
  [Bindable]
  public var items:ArrayCollection = new ArrayCollection([
 {item: 2000},
 {item: 3300},
 {item: 3000},
 {item: 2100},
 {item: 3200}
  ]);
 
  public function addDataItem():void {
 // Add a randomly generated value to the data provider
 var n:Number = Math.random() * 3000;
 var o:Object = {item: n};
 items.addItem(o);
  }
   ]]/mx:Script
 
   !-- Define chart effect --  
   mx:SeriesInterpolate id=rearrangeData 
  duration=1000 
  minimumElementDuration=200 
  elementOffset=0
   /
   
   mx:Panel title=Column Chart with Series Interpolate Effect
  mx:ColumnChart id=myChart dataProvider={items}
 mx:series
mx:ColumnSeries 
 yField=item 
 displayName=Quantity 
 showDataEffect=rearrangeData
/
 /mx:series
  /mx:ColumnChart
   /mx:Panel
   mx:Button id=b1 click=addDataItem() label=Add Data Item/
 /mx:Application





RE: [flexcoders] Is it possible for Flex Builder to echo the mxmlc.exe command it uses ?

2007-05-17 Thread Gordon Smith
In the Flex Compiler pane of the project's Properties dialog, enter
 
-dump-config myconfig.xml
 
in the Additional compiler arguments field. This will output a file in
the project directory similar to flex-config.xml which shows the options
that the compiler is using.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of helihobby
Sent: Wednesday, May 16, 2007 8:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is it possible for Flex Builder to echo the
mxmlc.exe command it uses ?



How can I see ( if any ) the mxmlc.exe args that Flex Builder is using 
when I tell it to compile using the GUI ( Right Click - Compile ).

I wanna right a mxmlc script but need to see first what Flex Builder is 
using.

Thanks for the help,

Sean.



 


[flexcoders] Flexbuilder2 bug: line number setting not remembered

2007-05-17 Thread li wenzhi
I use flexbuilder2.0.1 in windowsXP, when i check the option by selecting : 
Preferences/General/Editors/Text editors/Show line numbers
then line numbers showed, but while i close the IDE, and restart again, the 
setting lost!

Anyone found this?


   
Need
 a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/

RE: [flexcoders] Flexbuilder2 bug: line number setting not remembered

2007-05-17 Thread Petro Bochan
Hi,

 

This is definitely not a bug, happens from time to time.

 

Cheers,

Petro

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of li wenzhi
Sent: Thursday, May 17, 2007 10:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flexbuilder2 bug: line number setting not
remembered

 

I use flexbuilder2.0.1 in windowsXP, when i check the option by
selecting : Preferences/General/Editors/Text editors/Show line numbers

then line numbers showed, but while i close the IDE, and restart again,
the setting lost!

 

Anyone found this?

 



Get the Yahoo! toolbar and be alerted to new email
http://us.rd.yahoo.com/evt=48225/*http:/new.toolbar.yahoo.com/toolbar/f
eatures/mail/index.php wherever you're surfing. 

 



[flexcoders] Skinning an application

2007-05-17 Thread Mark Ingram
Hi, in my application, is it possible to combine programmatic skinning,
with graphical skinning and css styling? For instance, I would like to
be able to change between a selection of skins, but I would like them to
be compromised of the 3 different types of skins.

 

e.g. At the moment I have a tiled background skin which gets applied to
a canvas for the header of my application. The header contains an image
box which will contain the image of the application. So I would like to
be able to change the tiled background and the image of the application
name on the fly (at runtime).

 

Is this possible? And if it is, how? If not, what is the best way of
grouping specific styles together?

 

This is my code so far, what I want to avoid is having to change several
lines of code when I change the skin.

 

?xml version=1.0 encoding=utf-8?

mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; height=63
width=100%

 backgroundColor=#FF

 borderSkin= skins. titlePanel.TitlePanelBackground

 

 !-- TODO: Put this into a skin!!! --

mx:Image x=10 y=10 height=43 width=322

mx:source@Embed(source='/skins/
titlePanel/title.png')/mx:source

/mx:Image

/mx:Canvas

 

 

Any ideas? Thanks!

 

Mark

 

 



[flexcoders] Embedding FLV into Flash 9 SWF

2007-05-17 Thread Lachlan Cotter

Hi,

There was a thread on flexcoders about a year ago talking about using  
the @Embed syntax to compile FLV video into the SWF. Apparently this  
wasn't possible back then but there was talk that it might be in a  
future version. Is there any news on this? Is there anyway to embed  
an FLV directly into the SWF file? I believe this is possible with  
Flash since MX or so:


http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14571

How do you do this in Flex?

Cheers,
Lach

smime.p7s
Description: S/MIME cryptographic signature


[flexcoders] How do you generate inactive icon states

2007-05-17 Thread Lincoln Mitchell
I am trying to generate an inactive icon state from an original color png
file. It needs to be 50% alpha=0.5 and grey scale.

Can this be done in code, if so how?

TIA

Linc




[flexcoders] Re: detached entity .LazyInitializationException? urgently

2007-05-17 Thread bdevis76
pls anybody... some suggestion... :-(
Devis
--- In flexcoders@yahoogroups.com, bdevis76 [EMAIL PROTECTED] wrote:

 Hi to all,
 i'm disperate with my prblem.
 I have this scenario:
 1)I'm using jms/mdb ejb3 with jboss 4.2
 2)I'm using FDS with Consumer/Producer comp.
 
 My mdb
 
   public void onMessage(Message message) {
   try {


 Clienti _msg = (Clienti)
 ((ObjectMessage)message).getObject();
 System.out.println(MessageBean onMessage
 +_msg.getNome());
 ClientiFacadeRemote

facade=(ClientiFacadeRemote)CachingServiceLocator.getInstance().getRemoteHome(ClientiFacade.class);
 Clienti _cli=facade.findByName(_msg.getNome());
 System.out.println(onMessage toString
+_cli.toString());
 Clienti _cl = new Clienti(_cli);
 //to queue 
 Send(_cl);
 
 
 
 this my ClientFacade
 @Stateless
 //@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
 public class ClientiFacade implements ClientiFacadeRemote {
 
 @PersistenceContext()
 
 private EntityManager em;
   //private EntityManagerFactory entityManagerFactory =
 Persistence.createEntityManagerFactory(NuovVdeUN);
   //EntityManager em = entityManagerFactory.createEntityManager();

 
 /** Creates a new instance of ClientiFacade */
 public ClientiFacade() {
 }
 
 public void create(Clienti clienti) {
 em.persist(clienti);
 }
 
 public void edit(Clienti clienti) {
 em.merge(clienti);
 }
 
 public void destroy(Clienti clienti) {
 em.merge(clienti);
 em.remove(clienti);
 }
 
 public Clienti find(Object pk) {
 return (Clienti) em.find(Clienti.class, pk);
 }
 
 public List findAll() {

 return em.createQuery(select object(o) from Clienti as
 o).getResultList();
 }
 
 public Clienti findByName(String nome) {
 Clienti _cli

=(Clienti)em.createNamedQuery(Clienti.findByNome).setParameter(nome,nome).getSingleResult();
 em.clear();
 return _cli;
 }
 
 }
 
 vde.com.ejb.vo.Clienti is my EJB3 Entity with some Lazy collection
 ActionScript DTO
import mx.collections.ArrayCollection;
[Managed]
[RemoteClass (alias=vde.com.ejb.vo.Clienti)]
public class Clienti
 ..
 
 
 I have made 30 test/example  with Persistence.Extended @Steful etc.
 my last test using EntityManager.clear for detached entity...
 but my ActionScript dto always try to initialize all my collection
 lazy and throws my exception Lazy  and
 flex.messaging.io.ArrayCollection.init(ArrayCollection.java:44
 
 
 Why if my backend doesn't initiliaze some Lazy Collection why my Flex
 wonts that all lazy collection are initilaze? Pls it's a week that i
 have this problem.
 I have read in www.graniteds.org (oper source alternative) ..With
 GDS, you can keep those uninitialized references with lazy... but how
 i can doing this with Fds.
 I have also download  Live Cycle data beta but i have the same problem.
 Can you help me pls? 
 Devis





RE: [flexcoders] How do you generate inactive icon states

2007-05-17 Thread Petro Bochan
?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
creationComplete=init(); layout=absolute

mx:Script

![CDATA[

   private var pLoader:Loader;

   private var pUrl:URLRequest;

   

   private function init():void {

   pLoader = new Loader();

   pUrl= new
URLRequest();

   

   pUrl.url =
http://rols.ramesys.com/images/Ramesys/Adobe/Adobe-Logo.jpg;;

 
pLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
onLoadComplete);

   pLoader.load(pUrl);

   }

   

   private function
onLoadComplete(anEvet:Event):void {

   var
vDropShadowFilter:DropShadowFilter = new DropShadowFilter();

   

   pLoader.alpha   = .5;

   pLoader.filters =
[vDropShadowFilter];

   

 
theStage.addChild(pLoader);

   }

]]

/mx:Script



mx:SWFLoader id=theStage height=100% width=100%/

/mx:Application

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lincoln Mitchell
Sent: Thursday, May 17, 2007 11:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do you generate inactive icon states

 

I am trying to generate an inactive icon state from an original color
png
file. It needs to be 50% alpha=0.5 and grey scale.

Can this be done in code, if so how?

TIA

Linc

 



RE: [flexcoders] How do you generate inactive icon states

2007-05-17 Thread Petro Bochan
Hi,

 

Yes, this can be done.

 

I'm not sure what you are after, but below is the basic script that sets
the alpha of the sprite to some different value and applies a filter. To
gain the grayscale effect you might try applying different filter
effects.

 

Cheers,

Petro

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lincoln Mitchell
Sent: Thursday, May 17, 2007 11:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do you generate inactive icon states

 

I am trying to generate an inactive icon state from an original color
png
file. It needs to be 50% alpha=0.5 and grey scale.

Can this be done in code, if so how?

TIA

Linc

 



RE: [flexcoders] Flex emoticon

2007-05-17 Thread Kenneth Sutherland
You could try

 

mx:TextArea width=200 height=200

 mx:htmlText![CDATA[font size='14' my image -
/fontimg src='myImage.jpg' height='25' width='25'/font
size='14'more text/font]]/mx:htmlText



/mx:TextArea

 

I did this just to see what would happen, and there may be some
positional issues with the text, but I'm sure that can be sorted out
with the appropriate html text. 

Worth a shot and somewhere to start for more info on htmlText see below
link.

 

http://livedocs.adobe.com/flex/2/langref/flash/text/TextField.html#htmlT
ext 

 

Kenneth.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Oleg Filipchuk
Sent: 16 May 2007 14:37
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex emoticon

 

Hello,
I'm developing Flex chat and face the problems to display emoticons in
TextArea. After some googling I've found this one
http://labs.flexcoders.nl/?p=52 http://labs.flexcoders.nl/?p=52 
Do you have any idea how did they handle to display inline images in
that TextArea? 
Thanks

-- 
Best regards,
Oleg Filipchuk 

 



[flexcoders] Flash rendering mechanism

2007-05-17 Thread Ravi Kumar Gummadi
 

Hi

 

I am very much interested in knowing how flash renders the graphics!
Does it do something like java, where we can control the part of screen
rendered (ofcourse that has to be specified by us) or does it
intelligently figure out the modified area and issues a refersh only on
that even if we call invalidateDisplayList();

 

Can you point me to some interesting docs regarding this?

 

Regards,
Ravi

 

 


** The
information contained in this email, and any attachments hereto, is
strictly confidential and solely intended for use by the individual(s)
and/or entity(s) to which it is addressed. If you have received this
email in error, please notify the System Manager at
[EMAIL PROTECTED] as soon as possible. Thank you for your attention
to this matter.

**



Re: [flexcoders] Flex emoticon

2007-05-17 Thread Oleg Filipchuk

Thanks Kenneth,
but this code will result in the positioning of the image to next line after
text. It is the thing that I'm trying to solve...

On 17/05/07, Kenneth Sutherland [EMAIL PROTECTED] wrote:


   You could try



mx:TextArea width=200 height=200

 mx:htmlText![CDATA[font size='14' my image - /fontimg
src='myImage.jpg' height='25' width='25'/font size='14'more
text/font]]/mx:htmlText



/mx:TextArea



I did this just to see what would happen, and there may be some positional
issues with the text, but I'm sure that can be sorted out with the
appropriate html text.

Worth a shot and somewhere to start for more info on htmlText see below
link.




http://livedocs.adobe.com/flex/2/langref/flash/text/TextField.html#htmlText



Kenneth.


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Oleg Filipchuk
*Sent:* 16 May 2007 14:37
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Flex emoticon



Hello,
I'm developing Flex chat and face the problems to display emoticons in
TextArea. After some googling I've found this one
http://labs.flexcoders.nl/?p=52
Do you have any idea how did they handle to display inline images in that
TextArea?
Thanks

--
Best regards,
Oleg Filipchuk

 





--
Best regards,
Oleg Filipchuk


Re: [flexcoders] Flash rendering mechanism

2007-05-17 Thread Tom Chiverton
On Thursday 17 May 2007, Ravi Kumar Gummadi wrote:
 Can you point me to some interesting docs regarding this?

Install the debug player, right click and choose 'show redraw'.
AFAIK you can't issue a redraw request for a screen area.

-- 
Tom Chiverton
Helping to challengingly scale B2B 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/
 


Re: [flexcoders] Difference between getChild and getAtomationChild

2007-05-17 Thread Johannes Nel

thanks.
this is interesting stuff for people who develop with a full test (QTP)
enabled cycle as well as for component devs.

i found these links dealing with this as a refrence:
http://www.adobe.com/livedocs/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=functest_components2_128_10.html
http://www.adobe.com/livedocs/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=functest_components2_128_23.html


On 5/15/07, Sasha Magee  [EMAIL PROTECTED] wrote:


   OK, let's try this again,

 As Johannes guessed, the automationChild is used by the automated testing
system so that automation scripts can reflect the logical component
hierarchy, rather than the display component hierarchy.

Unless you are developing custom components that will be tested with the
Flex automated testing integration, you shouldn't need to pay any
attention to the automationChild.

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Johannes Nel
*Sent:* Tuesday, May 15, 2007 5:37 AM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Difference between getChild and
getAtomationChild

 my guess its the interface for QTP

On 5/15/07, Tom Chiverton [EMAIL PROTECTED] wrote:

 On Tuesday 15 May 2007, pmotzfeldt wrote:
  Hi, I am wondering what the difference between a regular child and an
  automation child of for instance an UIComponent.

 guess
 Some children are for purely GUI purposes, such as a title bar or label.

 --
 Tom Chiverton
 Helping to administratively repurpose bricks-and-clicks clusters
 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






--
j:pn
http://www.lennel.org

 





--
j:pn
http://www.lennel.org


[flexcoders] Flex 2.0 Browser Support

2007-05-17 Thread melvinma88
I am very seriously considering using Flex 2.0 to create a general
public facing web site. Could someone please let me know what are the
some restrictions of Flex 2.0 web sites? I.e. if someone does not have
admin right to a computer, what is the chance that he/she could not
view my site and what is the fix. I know Flash Player penetration is
very high. What is the penetration of Flash Player 9?

Thank you very much for the help 



RE: [flexcoders] Parse Unknown XML Structure

2007-05-17 Thread Kevin Aebig
Thanks John. That helped.

 

!k

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of John Robinson
Sent: Wednesday, May 16, 2007 2:05 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Parse Unknown XML Structure

 

I think you want to use XML.children() and XML.attributes(). 

 

John

 

 

 

On May 16, 2007, at 2:32 PM, Kevin Aebig wrote:





Hey all,

 

First post, so be gentle.

 

Back in the ol days, Flash developers had to use recursion to parse through
an XML document. I'm finding myself again in this position, but don't know
how to proceed as my initial attempts don't recurse currently. Also, I'd
like to find out if there is a better way to do it with AS3 these days.

 

Basically I need to be able to look at every node and tell:

-  whether or not it has specific attributes

-  whether or not it has children

 

I know this seems easy, but the XML structure isn't known beforehand, so
using simple object notation seems futile.

 

Thanks for any help you can provide.

 

!k

 

 



[flexcoders] Re: Unable to flush SharedObject

2007-05-17 Thread Prayank
Which OS are you on? 

Typically the shared objects are on: 
C:\Documents and Settings\userxyz\Application Data\Macromedia\Flash
Player\#SharedObjects\some random dir name

Did you delete the some random dir name directory completely? 
Or only the directories inside it?

Prayank

--- In flexcoders@yahoogroups.com, Troy A. Binford
[EMAIL PROTECTED] wrote:

 Yesterday I cleared out all the shared objects in my Application Data
 directory. Since then, I cannot write shared objects anymore. Did I
 perhaps delete a permission setting for flash to write to my local
 drive? I initially thought it may be a problem with a change in the
 application I am writing, but then I wrote a simple app to store a
 shared object and it returned error 2130 as well. I am using Eclipse
 with the FlexBuilder plugin.
 
 Oh, and I am obviously using local shared objects not remote ones, but
 I thought I'd be clear just in case.
 
 Thanks for any assistance.





[flexcoders] Adobe Flex Charts and royalty fees.

2007-05-17 Thread IrfanAsrar
Hi All, 
  
 
I have a licence question for the Adobe Flex Charting component. to 
sell a web app based on Flex, and was wondering if anyone knew that if 
I used Adobe Flex Charts in the Web App, if there are any EULA 
violations, or are there any runtime fees associated with the usage of 
charts in my web app when someone buys a copy of my application. I am 
really hoping someone in a similar position or someone from Adobe can 
answer my question. I really need an answer urgent.


Irfan A




[flexcoders] AVM1 / AVM2 Issues

2007-05-17 Thread Narain rl

Hi,

We are building a RIA applicatio in Flex. We have this peculiar problem. We
are converting PDF files to SWF using SWF2PDF and wanted to load inside the
Flex container which we built. It throws a AVM1 not supported error. Since
we are building an application, where the externalSWFs are most likely be
Flash 6,7,8 player files, how do we solve the issue without affecting the
Flex layer. As the application is a collaboration application, we want these
external SWFs fiiles to be loaded inside our Flex collaboration container to
collaborate.

What is the best way to solve the issue ?

Narain


[flexcoders] Unable to download FlexBulider from the site Can any one help out regarding this

2007-05-17 Thread sharat_s12
Im trying to download this Flex Builder for windows from the Adobe site
http://www.adobe.com/cfusion/tdrc/index.cfm?product=flexloc=en%5Fus
But its getting strucked and failing . Can anyone help me out regarding 
this issue.please if people who are working on Flex Bulider 2 on 
windows can zip the flex file and mail it to me .Waiting for your 
Reply's friends.



[flexcoders] XML data bound to a chart- this should work!

2007-05-17 Thread barry.beattie

I just can't see why I can't get the chart data to display. Looking at
examples, the XML data can be directly and easily bound to the chart.

but it still won't display. Do I need to refresh it (somehow?) because
the data won't return until onResultReturn() runs? no errors, just no
data showing.

any suggestions?
thanx
b


mx:ColumnChart x=388 y=0 id=columnchart1 height=323
width=390 dataProvider={questionaire.question}
mx:series
mx:ColumnSeries yField=rating /
/mx:series
mx:horizontalAxis
mx:CategoryAxis categoryField=question /
/mx:horizontalAxis
/mx:ColumnChart

the format of the XML is simple

questionaire
  question id=aaa rating=2 /
  question id=bbb rating=4 /
  question id=ccc rating=6 /
  question id=ddd rating=8 /
  question id=eee rating=10 /
/questionaire

it's being retrieved with HTTPService (e4x) and can be accessed and
edited in textboxes, etc, without issue.

public function onResultReturn(event:ResultEvent):void
{
questionaire = new XML(event.result);
lastIndex = questionaire.children().length()-1;
first(); // move to the first question to start
}





Re: [flexcoders] XML data bound to a chart- this should work!

2007-05-17 Thread Tom Chiverton
On Thursday 17 May 2007, barry.beattie wrote:
 any suggestions?

Is the variable [Bindable] ?

-- 
Tom Chiverton
Helping to revolutionarily envisioneer interdependent models
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: 2nd transition not working

2007-05-17 Thread bill.fogarty17
[EMAIL PROTECTED] wrote:
 I would simply create a new component as a subclass of DividedBox 
with
 the dragging functionality disabled. You could also maybe write your
 own component fairly easily by looking at the DividedBox source to 
get
 some ideas for the sizing/layout.


As I'm not great at AS3, I decided to remove my hdivided box 
altogether! 
Instead, I used a hbox with 2 panels  a divider image between the 2 
panels.
I just created 2 states then, giving the panels different sizes and 
the transition between the states worked fine. It surely was the drag 
functionality on the hdividedbox that was causing my problem..here is 
my code if anyone is interested...thanks to all for your help



?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Script
![CDATA[
import mx.events.MenuEvent;
import mx.controls.Alert;
import mx.collections.*;

public var indexValue:int = 0;

private function changeState() : void {
if(indexValue == 0){
currentState='Register';
indexValue = 1;
}
else if(indexValue == 1){
currentState='Start';
indexValue = 0;
}
}
]]
/mx:Script
!-- Define one view state, in addition to the base state.--
mx:states
mx:State name=Start
mx:SetProperty target={canvas1} name=width 
value=50%/
mx:SetProperty target={canvas2} name=width 
value=50%/
/mx:State
mx:State name=Register
mx:SetProperty target={canvas1} name=width 
value=20%/
mx:SetProperty target={canvas2} name=width 
value=80%/
/mx:State
/mx:states

mx:transitions
!-- Define a transition for changing from any state to any state.--
mx:Transition id=TransitionA fromState=* toState=*
!-- Define a Parallel effect as the top-level effect.--
mx:Parallel id=t1 targets={[canvas1,canvas2]}
!-- Define a Move and Resize effect.--
mx:Move duration=500/
mx:Resize duration=500/
/mx:Parallel
/mx:Transition
/mx:transitions

!-- Define a Panel container that defines the login form.--
mx:HBox width=100% height=100% x=0 y=0
mx:HBox id=canvas1 label=Canvas 1 width=50% 
height=100% backgroundColor=#CC
mx:Label text=Add components here 
fontWeight=bold/
/mx:HBox
mx:Image source=assets/src/images/arrow_sample.png 
click=changeState();

/mx:Image
mx:HBox id=canvas2 label=Canvas 2 width=50% 
height=100% backgroundColor=#99CCFF
mx:Label text=Add components here 
fontWeight=bold/
/mx:HBox
/mx:HBox
/mx:Application





Re: {Disarmed} Re: [flexcoders] Flex on Mac

2007-05-17 Thread Paul J DeCoursey
What are you talking about... I have a second monitor hooked up to my 
MacBook Pro right now, and my Mac Pro has 3 monitors.  I've had no issues.

Paul


fuad_kamal wrote:
 you can't (multiple monitors).  It's an issue w/Eclipse on Mac. 
 Solution:  cinema display :P

 --- In flexcoders@yahoogroups.com, Jurgen Beck [EMAIL PROTECTED] wrote:
   
 Same here. I actually switched from Windows XP Professional running 
 stand-alone Flex Builder to a Mac Pro and MacBook Pro. Works great. In 
 fact, I seem to have less memory issues with Flex Builder on the Mac 
 than I had with running it on Windows XP.

 The only thing I wish it would do on the Mac is allowing me to use two 
 monitors. On the Windows side this is no problem. Can't seem to figure 
 out how to do that on the Mac.

 Jurgen




[flexcoders] Re: XML data bound to a chart- this should work!

2007-05-17 Thread barry.beattie
aye, it is Tom

[Bindable]
public var questionaire:XML;


that's how I can use the buttons to page thru each node of the xml and
update it's attributes with controls (which works fine)



mx:Text text=[EMAIL PROTECTED] width=20%/
mx:TextArea width=80% height=100% id=questionText

text=[EMAIL PROTECTED]/
mx:Text text=cursor index:{cursor} width=10%/
mx:HSlider value=[EMAIL PROTECTED] 




Re: [flexcoders] Adobe Flex Charts and royalty fees.

2007-05-17 Thread Matt Chotin
No more fees, you're good to go. 

Matt
Adobe Flex PM


- Original Message -
From: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Thu May 17 02:52:51 2007
Subject: [flexcoders] Adobe Flex Charts and royalty fees.

Hi All, 


I have a licence question for the Adobe Flex Charting component. to 
sell a web app based on Flex, and was wondering if anyone knew that if 
I used Adobe Flex Charts in the Web App, if there are any EULA 
violations, or are there any runtime fees associated with the usage of 
charts in my web app when someone buys a copy of my application. I am 
really hoping someone in a similar position or someone from Adobe can 
answer my question. I really need an answer urgent.

Irfan A



 


[flexcoders] Re: Blue-Green Background color / image

2007-05-17 Thread bsausser
Thank Bjorn.  

The combination of style and background was what I was missing.

Brian

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

 I think the blue-green background is set in your application scope.
 For example if you set Application.backgorundColor to #FF you  
 should get a white screen flicker.
 
 Bjorn
 
 On 17/05/2007, at 2:31 AM, bsausser wrote:
 
  Tried LiveDocs: but flickers the blue-green color and/or image.
  styleName=plain
  mx:Style ... /mx:Style
 
  How can I set 1) my own color; 2) my own image; or 3) transparency
  where it will not flicker the blue-green background?
 
  Brian
 
 
 





Re: {Disarmed} Re: {Disarmed} Re: [flexcoders] Flex on Mac

2007-05-17 Thread Jurgen Beck

Hey Paul,

Here is what I experience (again, this is with Flex Builder, not Eclipse):

When I drag one of the Flex Builder tabs for a specific window to the 
second monitor, I see the cursor change to a square box. When I release 
the mouse button on the second window, the cursor switches back to 
normal and nothing happens. The tabbed window stays on the first monitor.


Would you care to share how you get those windows to show up on the 
second monitor?


Thanks,

Jurgen

Paul J DeCoursey wrote:


What are you talking about... I have a second monitor hooked up to my
MacBook Pro right now, and my Mac Pro has 3 monitors. I've had no issues.

Paul

fuad_kamal wrote:
 you can't (multiple monitors). It's an issue w/Eclipse on Mac.
 Solution: cinema display :P

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


 Same here. I actually switched from Windows XP Professional running
 stand-alone Flex Builder to a Mac Pro and MacBook Pro. Works great. In
 fact, I seem to have less memory issues with Flex Builder on the Mac
 than I had with running it on Windows XP.

 The only thing I wish it would do on the Mac is allowing me to use two
 monitors. On the Windows side this is no problem. Can't seem to figure
 out how to do that on the Mac.

 Jurgen


 


[flexcoders] Embedding fonts in flex

2007-05-17 Thread Giles Roadnight
Hi All

We have a large number of text fields in our flex app and we have to
configure it in a number of different languages.

In some of the languages the special characters are not appearing -
like the accents over the e and so on.

How do I go about embedding these in the swf?

Many Thanks

Giles Roadnight



Re: [flexcoders] Re: XML data bound to a chart- this should work!

2007-05-17 Thread Tom Chiverton
On Thursday 17 May 2007, barry.beattie wrote:
 aye, it is Tom

mx:CategoryAxis categoryField=question /

Your XML has 'id' and 'rating'.

-- 
Tom Chiverton
Helping to efficiently optimize internet materials
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] Re: HELP! How to get a subnode in such a XML data?

2007-05-17 Thread Peter Farland
Correct, just to clarify this a little further... this isn't some quirk
of AS3 - this is implemented as specified in the ECMA 357 E4X
specification... section 10.1.1 states: Given an XML object x, the
operator ToString converts x to a string s. If a value of type XML has
simple content (i.e., contains no elements), it represents a primitive
value and ToString returns the String contents of the XML object,
omitting the start tag, attributes, namespace declarations and end tag.
Otherwise, ToString returns a string representing the entire XML object,
including the start tag, attributes, namespace declarations and the end
tag.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, May 16, 2007 10:12 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: HELP! How to get a subnode in such a XML
data?



Yes, always do this:

trace(myXML.toXMLString())

the ordinary toString(), which trace uses, does not handle single xml
nodes correctly.

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of xyjaws
Sent: Wednesday, May 16, 2007 8:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: HELP! How to get a subnode in such a XML data?

It's my fault.

It do work actually. To my strange, the trace command outuput nothing 
of a single xml node without any child.

 


RE: [flexcoders] Re: rpc fault handler not called

2007-05-17 Thread Peter Farland
If the AsyncToken is null then either an error occurred before the
invocation could even be sent to the server... or that the response was
not a well formed implementation of
mx.messaging.messages.AcknowledgeMessage and thus could not correlate
the result or fault with an outstanding request and hence could not
locate a token.
 
Can you check the Channel endpoint is actually active? If you're not
contacting an FDS capable endpoint (such as FDS or CF) are you sure that
implementation is returning strongly typed AS3 messages?
 
Pete
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Allman
Sent: Thursday, May 10, 2007 5:25 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: rpc fault handler not called



Unfortunately that runs into another problem I'm having. When I put a 
fault handler on the RemoteObject or Operation, it gets called but the 
token property of the FaultEvent is null. Hmmm??? So I can't access the 
token associated with the call. Any idea why that's happening? According

to the docs on AsyncToken, it's supposed to be attached to FaultEvents.

Thanks.

Michael

On Thu, 10 May 2007, Tracy Spratt wrote:

 I am just suggesting that you simplify the conditions by not using a
 responder function. Instead, just put a string in the AsyncToken, and
 use a hard coded fault handler.



 Tracy



 

 From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Michael Allman
 Sent: Thursday, May 10, 2007 4:47 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: rpc fault handler not called



 I did not receive my message, so I'm responding to my original post.

 This is actually in response to Tracy Spratt's message.

 What is the ACT token? And the responder's fault handler is simply not
 called. I've debugged it to no avail. I need to see the source to
 mx.rpc stuff in order to understand what's going on. Unfortunately,
that

 appears to be under wraps.

 Thanks for your help.

 Michael

 On Thu, 10 May 2007, Michael Allman wrote:

 Hi,

 Can anyone tell me how to get Flex to call a fault handler associated
 with
 an rpc call? This is the pattern I'm using:

 var token:AsyncToken = operation.send();
 token.addResponder(responder);

 However, my responder's fault method is never called. Instead I get
an
 error message from flash player with a strack trace that looks like



mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faul
http://www.adobe.com/2006/flex/mx/internal::faul 
 tHan http://www.adobe.com/2006/flex/mx/internal::faultHan
http://www.adobe.com/2006/flex/mx/internal::faultHan 
 dler()
 at mx.rpc::Responder/fault()
 at mx.rpc::AsyncRequest/fault()
 at


::NetConnectionMessageResponder/NetConnectionChannel.as$40:NetConnection
 Mess
 ageResponder::statusHandler()
 at mx.messaging::MessageResponder/status()

 whenever I receive a fault.

 Thanks a bunch!

 Michael







 


Re: {Disarmed} Re: {Disarmed} Re: [flexcoders] Flex on Mac

2007-05-17 Thread Paul J DeCoursey
I'm sorry, I misunderstood.  I thought you were refering to the ability 
to use multiple monitors on a Mac. To tell you the truth what you are 
describing is completely new to me. I've never even heard of doing that 
on windows.  When I get in the office I will try it on my workstation 
there. Is this a feature of Eclipse?

Paul

Jurgen Beck wrote:
 Hey Paul,

 Here is what I experience (again, this is with Flex Builder, not 
 Eclipse):

 When I drag one of the Flex Builder tabs for a specific window to the 
 second monitor, I see the cursor change to a square box. When I 
 release the mouse button on the second window, the cursor switches 
 back to normal and nothing happens. The tabbed window stays on the 
 first monitor.

 Would you care to share how you get those windows to show up on the 
 second monitor?

 Thanks,

 Jurgen





RE: [flexcoders] How do you generate inactive icon states

2007-05-17 Thread Lincoln Mitchell
There doesn't appear to be a grayscale filter. However, BlendMode and
ColorMatrixFilter sound promising. I am I on the right track?

 

Linc

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Petro Bochan
Sent: Thursday, 17 May 2007 5:29 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How do you generate inactive icon states

 

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
creationComplete=init(); layout=absolute

mx:Script

![CDATA[

   private var pLoader:Loader;

   private var pUrl:URLRequest;

   

   private function init():void {

   pLoader = new Loader();

   pUrl= new URLRequest();

   

   pUrl.url =
http://rols.ramesys.com/images/Ramesys/Adobe/Adobe-Logo.jpg;;

 
pLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);

   pLoader.load(pUrl);

   }

   

   private function
onLoadComplete(anEvet:Event):void {

   var
vDropShadowFilter:DropShadowFilter = new DropShadowFilter();

   

   pLoader.alpha   = .5;

   pLoader.filters =
[vDropShadowFilter];

   

   theStage.addChild(pLoader);

   }

]]

/mx:Script



mx:SWFLoader id=theStage height=100% width=100%/

/mx:Application

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lincoln Mitchell
Sent: Thursday, May 17, 2007 11:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do you generate inactive icon states

 

I am trying to generate an inactive icon state from an original color png
file. It needs to be 50% alpha=0.5 and grey scale.

Can this be done in code, if so how?

TIA

Linc

 



RE: [flexcoders] rpc fault handler not called

2007-05-17 Thread Peter Farland
Right, can you try instead to use the normal RemoteObject or Operation
level result event handler mechanism first to see if that works?
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Thursday, May 10, 2007 2:57 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] rpc fault handler not called



Is the problem with the responder?  If you just pass a string in the ACT
token, do you still get the error?

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Allman
Sent: Thursday, May 10, 2007 2:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] rpc fault handler not called

Hi,

Can anyone tell me how to get Flex to call a fault handler associated
with
an rpc call? This is the pattern I'm using:

var token:AsyncToken = operation.send();
token.addResponder(responder);

However, my responder's fault method is never called. Instead I get an
error message from flash player with a strack trace that looks like

mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faul
tHan http://www.adobe.com/2006/flex/mx/internal::faultHan 
dler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at
::NetConnectionMessageResponder/NetConnectionChannel.as$40:NetConnection
Mess
ageResponder::statusHandler()
at mx.messaging::MessageResponder/status()

whenever I receive a fault.

Thanks a bunch!

Michael

 


RE: [flexcoders] Number data type rounding/flooring with FDS and Java

2007-05-17 Thread Peter Farland
Sorry I missed this post originally, is there any chance that you could
email me a small test case directly... [EMAIL PROTECTED]
 
Thanks,
 
   Pete



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of alteraa
Sent: Friday, May 11, 2007 1:46 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Number data type rounding/flooring with FDS and
Java



Hi, simple problem. I have a strongly-typed VO with a property
value as a Number on the Flex side, and a Double on the Java side. 
In the database the value is, let's say 5.20, but when I view the data
in a DataGrid it floors the value to 5.

I'm using a dataService to fill the ArrayCollection that holds the VOs
and the VO class in ActionScript does have the [Managed]
[RemoteClass(alias=] syntax. This works fine for all the data types
I've used so far until I got to Number.

I figure it's something simple I'm doing wrong, like maybe not
specifying the number of decimal points that should be displayed?

Also, in a related question, what's the best way to have the user
input a Number value into a text input field, since TextInput.text is
String data?

Thanks!



 


[flexcoders] Resize Effect for Auto

2007-05-17 Thread Matt
I'm trying to create a container that has a label and an arrow that
you can click on to show the contents of the container (by default the
contents are hidden).  However, I would like to add the pretty Resize
effect to make it appear but if there is no height defined the
container should expand as necessary to display the contents.  Is
there any way to go from 0 height to whatever the auto-height is?

I could probably figure out a way to determine the height in pixels it
wants to end up at, but even if I figure that out if I add content
into it after I have done that it will no longer expand to fit will it?



Re: [flexcoders] Flex emoticon

2007-05-17 Thread Oleg Filipchuk

Ok, I've solved it getCharBoundaries method and overlaying container with
images.


--
Best regards,
Oleg Filipchuk


[flexcoders] Re: XML data bound to a chart- this should work!

2007-05-17 Thread barry.beattie
closer (sort of).

yes I did misunderstand what was used for the category axis.

but correcting that hasn't helped, to be honest. setting CategoryAxis
to id didn't improve it

however, if I leave out the horizontalAxis and CategoryAxis
completely, it'll fall back to the default of displaying an index - it
provides the correct amount of them so it *is* reading the XML.

here's a node of the proper XML: rating=5 should be the height of
the column

?xml version=1.0 encoding=utf-8?
questionaire

question id=1 title=title here category=category here 
text=1. How would you rate your teamwork project as a theoretical or
real world application? 
min_label=Theoretical  max_label=Real World
 center_label= protocol_num=1summary_num=1.1  
min_value=-5   max_value=5   weighting=0   
rating=5  /







[flexcoders] expandAll for Tree component help needed

2007-05-17 Thread khair
/**
I need a faster expandAll() or collaspeAll() function for the Flex
Tree component.
I want to expand the Tree completely open or completely closed.

This is what I have so far, but its too slow for a Tree with many nodes
in it.
Plus it requires an item of the Tree to be selected first.

I think the reason it get slower is because the Tree.openedItems
property is an
Object containing all the opened items but not the one's I expanded at
one time.

Does anyone have cleaner,faster way?
***/

private function expandAll(tree:Tree,open:Boolean):void
{
var opened:Object;  
function expand(obj:Object):void
{   
tree.expandChildrenOf(obj,open);
opened=tree.openItems;  
for each(var o:Object in opened){   
if(tree.isItemOpen(o) != open){ 
tree.expandItem(o,open);
}
}   
}
expand(tree.selectedItem);
}

--Keith H--

begin:vcard
n:HAIR;KEITH
fn:KEITH HAIR
version:2.1
email;internet:[EMAIL PROTECTED]
end:vcard



RE: [flexcoders] Flash rendering mechanism

2007-05-17 Thread Alex Harui
Stage.invalidate() requests a redraw, but does not redraw until all
other actionscript has run.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Thursday, May 17, 2007 5:14 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flash rendering mechanism

On Thursday 17 May 2007, Ravi Kumar Gummadi wrote:
 Can you point me to some interesting docs regarding this?

Install the debug player, right click and choose 'show redraw'.
AFAIK you can't issue a redraw request for a screen area.

-- 
Tom Chiverton
Helping to challengingly scale B2B 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





RE: [flexcoders] AVM1 / AVM2 Issues

2007-05-17 Thread Alex Harui
How are you loading the swfs?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Narain rl
Sent: Thursday, May 17, 2007 4:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AVM1 / AVM2 Issues

 

Hi,

We are building a RIA applicatio in Flex. We have this peculiar problem.
We are converting PDF files to SWF using SWF2PDF and wanted to load
inside the Flex container which we built. It throws a AVM1 not supported
error. Since we are building an application, where the externalSWFs are
most likely be Flash 6,7,8 player files, how do we solve the issue
without affecting the Flex layer. As the application is a collaboration
application, we want these external SWFs fiiles to be loaded inside our
Flex collaboration container to collaborate. 

What is the best way to solve the issue ?

Narain

 



Re: [flexcoders] Re: anyone using HTMLcomponent.swc? possible bug.

2007-05-17 Thread Michael Wills
Hi, just saw this thread. In case the bug can't be worked out have you 
tried this one?

http://www.deitte.com/archives/2006/08/finally_updated.htm

I saw it on Flexbox ( http://flexbox.mrinalwadhwa.com/ )

Michael

barry.beattie wrote:


 if you find a solution to the bug, do ensure to keep everyone
 informed, yes? for my application I'm finding it a bit of a show-stopper.

  Thanks for the link, let me check it to reach any decision.

  


[flexcoders] tree event using cairngorm

2007-05-17 Thread achegedus
Hi Everyone!

I'm trying to write a dynamic tree using cairngorm, and I ran into a problem.  
I want to be 
able to expand a node, have it go to my webservice, return the xml and open the 
node.  In 
the command that is handling the response to the webservice, i need to call the 
expandItem 
method of the tree.  And there's the trouble...

How do I call a method for a flex tree from a cairngorm command?

Any suggestions??

Thanks,
Adam



[flexcoders] Re: Date - Timezone with WS

2007-05-17 Thread paulwelling
Thank you Peter and Kelly for your responses...

Unfotunately, I don't control our client's DB servers or their other
apps that use these WSs, so I'm forced to use this dateTime format:
2007-05-15T00:00:00-04:00

Flash/Flex dropping off the TZ infomation that is sent seems to paint
me (and everyone else that has dateTime WSs that they don't control)
in to a pretty small corner.

If I knew the TZ of the dateTime that was sent in the WS then I could
ajust accordingly based on my app needs...

I still have a feeling that I'm overlooking something since this seems
so fundamental..?  Any other ideas..?

Thanks,

Paul



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

 ActionScript 3 Dates are actually DateTime instances and always have a
 timezone. Dates are always shown in the local timezone in Flash, this
 isn't Flex specific. You have to use the UTC specific accessors in
 ActionScript to get the time in UTC / Zulu / GMT time. There is no
 record of the original timezone that was used to construct the Date.
  
 Serialization formats often send dateTime information in UTC to keep
 things simple - either endpoint can adjust the time on display as
 necessary.
  
 Note that there are a few bugs in how timezone-less date, time and
 dateTime XML Schema types are handled in Flex WebService that should be
 fixed in the new implementation of Flex SDK 2.0.1 Hotfix 2 which is due
 out soon. However, this isn't necessarily related to your dateTime as it
 has a timezone specified.
  
 Pete
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of paulwelling
 Sent: Wednesday, May 16, 2007 6:42 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Date - Timezone with WS
 
 
 
 Hello,
 
 I have a WS that returns a date. Our server is in EDT.
 Using Charles to sniff the date: 2007-05-15T00:00:00-04:00
 
 When debugging the resultset in Flex, it appears that Flex has ignored
 TZ info passed and has applied the client's TZ to the date..! 
 
 (I changed my PC's TZ to GMT and the TZ offset in the resultset gets
 changed accordingly, even though the server is still passing -04:00!!!)
 
 Has anyone come up with a good work-around / fix for this... (I'm
 still in shock on this one...)
 
 Thanks for the help!
 Paul





Re: [flexcoders] AVM1 / AVM2 Issues

2007-05-17 Thread Michael Wills
Hi Narain,

How are you loading the SWF? From this site:

http://www.deitte.com/archives/2006/08/finally_updated.htm

there is a reference to loading FlashPaper:

**I would suggest loading the FlashPaper via flash.display.Loader if 
you can. Unless there's a bug with this, loading SWFs through Loader 
will work better.

Hope that helps,

Michael

Narain rl wrote:

 Hi,

 We are building a RIA applicatio in Flex. We have this peculiar 
 problem. We are converting PDF files to SWF using SWF2PDF and wanted 
 to load inside the Flex container which we built. It throws a AVM1 not 
 supported error. Since we are building an application, where the 
 externalSWFs are most likely be Flash 6,7,8 player files, how do we 
 solve the issue without affecting the Flex layer. As the application 
 is a collaboration application, we want these external SWFs fiiles to 
 be loaded inside our Flex collaboration container to collaborate.

 What is the best way to solve the issue ?

 Narain

  


[flexcoders] Re: Disabling Selectable Text for a ComboBox

2007-05-17 Thread lieut_data
And yet another workaround, IMHO cleaner, is to set the editable =
false immediately after setting enabled = false in actionscript.

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

 Another workaround is to nest the ComboBox in a Canvas container and
then
 enable/disable the Canvas... you can see a tiny bit of disabled coloring
 bleeding over the radius of the ComboBox corners, but you've really
gotta be
 looking.
 
 Brendan




[flexcoders] Re: Resize Effect for Auto

2007-05-17 Thread Matt
If this is not possible someone please tell me so I can start looking
another direction. :)



[flexcoders] How to display the Image

2007-05-17 Thread Praveen Saxena

 Hi,
   Is it possible to put the image in the datagrid after getting the 
 the image url from the XML file.
 My sample Xml look like this.
 WeatherData
 DaySaturday, May 19, 2007/Day
   
WeatherImagehttp://www.nws.noaa.gov/weather/images/fcicons/few.jpg/We
atherImage
MaxTemperatureF76/MaxTemperatureF
MinTemperatureF43/MinTemperatureF
MaxTemperatureC24/MaxTemperatureC
MinTemperatureC6/MinTemperatureC
 /WeatherData
 My requirement is display the image after from the URL specified in the
 WeatherImage tag.
 Thanks  Regards,
 Praveen



Re: [flexcoders] Resize Effect for Auto

2007-05-17 Thread Tom Chiverton
On Thursday 17 May 2007, Matt wrote:
 container should expand as necessary to display the contents.  Is
 there any way to go from 0 height to whatever the auto-height is?

heightTo={ parent.height } or something similar.

-- 
Tom Chiverton
Helping to quickly enable fifth-generation mindshares
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] Re: Date - Timezone with WS

2007-05-17 Thread Peter Farland
Can you be sure that all of the dates that come from that server will be
sent in the timezone of that server?
 
If they're -4 hours behind GMT / UTC, then you know that 
 
2007-05-15T00:00:00-04:00
 
is the same as:
 
2007-05-15T04:00:00Z
 
However, if you're -7 hours behind GMT / UTC, for example, then this
time is seen as:
 
2007-05-14T21:00:00-07:00
 
All of these three times are equivalent but just in different timezones.
 
A problem arises if your code, or perhaps some UI component that you're
using to display dates, only considers the date portion of this
dateTime... then you're not really getting an accurate picture of the
point in time in which this dateTime refers. If you're only interested
in the date and not the time, then you can always send individual values
for , MM and DD (or use xsd:date and not xsd:dateTime). If you can't
change the webservice... then you'll need a way to query the remote
timezone and make adjustments accordingly (i.e. for the above scenario
where you only want the date as it was in that remote date time... you'd
have to hack the date by adding the difference from the remote timezone
as compared to the local timezone).
 
Pete
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of paulwelling
Sent: Thursday, May 17, 2007 11:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Date - Timezone with WS



Thank you Peter and Kelly for your responses...

Unfotunately, I don't control our client's DB servers or their other
apps that use these WSs, so I'm forced to use this dateTime format:
2007-05-15T00:00:00-04:00

Flash/Flex dropping off the TZ infomation that is sent seems to paint
me (and everyone else that has dateTime WSs that they don't control)
in to a pretty small corner.

If I knew the TZ of the dateTime that was sent in the WS then I could
ajust accordingly based on my app needs...

I still have a feeling that I'm overlooking something since this seems
so fundamental..? Any other ideas..?

Thanks,

Paul

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

 ActionScript 3 Dates are actually DateTime instances and always have
a
 timezone. Dates are always shown in the local timezone in Flash, this
 isn't Flex specific. You have to use the UTC specific accessors in
 ActionScript to get the time in UTC / Zulu / GMT time. There is no
 record of the original timezone that was used to construct the Date.
 
 Serialization formats often send dateTime information in UTC to keep
 things simple - either endpoint can adjust the time on display as
 necessary.
 
 Note that there are a few bugs in how timezone-less date, time and
 dateTime XML Schema types are handled in Flex WebService that should
be
 fixed in the new implementation of Flex SDK 2.0.1 Hotfix 2 which is
due
 out soon. However, this isn't necessarily related to your dateTime as
it
 has a timezone specified.
 
 Pete
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of paulwelling
 Sent: Wednesday, May 16, 2007 6:42 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Date - Timezone with WS
 
 
 
 Hello,
 
 I have a WS that returns a date. Our server is in EDT.
 Using Charles to sniff the date: 2007-05-15T00:00:00-04:00
 
 When debugging the resultset in Flex, it appears that Flex has ignored
 TZ info passed and has applied the client's TZ to the date..! 
 
 (I changed my PC's TZ to GMT and the TZ offset in the resultset gets
 changed accordingly, even though the server is still passing
-04:00!!!)
 
 Has anyone come up with a good work-around / fix for this... (I'm
 still in shock on this one...)
 
 Thanks for the help!
 Paul




 


[flexcoders] Re: Flex 2.0 Browser Support

2007-05-17 Thread Jamie
All a person needs is javascript and flash 9

http://www.adobe.com/products/player_census/flashplayer/version_penetration.html

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

 I am very seriously considering using Flex 2.0 to create a general
 public facing web site. Could someone please let me know what are the
 some restrictions of Flex 2.0 web sites? I.e. if someone does not have
 admin right to a computer, what is the chance that he/she could not
 view my site and what is the fix. I know Flash Player penetration is
 very high. What is the penetration of Flash Player 9?
 
 Thank you very much for the help





[flexcoders] e4x problem

2007-05-17 Thread quinrou
Hi,

I am having problem to retreive data from nodes that contains colon
with the e4x format.

If you consider the following node:
config
  item
media:thumbnail url=http://someurl/something.png; /
  /item
/config

how would you then access the data contain by the url attribute?

Many Thanks

Seb



[flexcoders] Re: Resize Effect for Auto

2007-05-17 Thread Matt
Thanks for the response. That has many potential problems though.
First of, that would expand to the maximum available space, whereas I
only want it to take up the area it needs. Second, if there are
additional components in the parent container it will cause them all
to be pushed outside of the viewable area, right?

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

 On Thursday 17 May 2007, Matt wrote:
  container should expand as necessary to display the contents.  Is
  there any way to go from 0 height to whatever the auto-height is?
 
 heightTo={ parent.height } or something similar.
 
 -- 
 Tom Chiverton
 Helping to quickly enable fifth-generation mindshares
 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.





Re: [flexcoders] Embedding fonts in flex

2007-05-17 Thread Daniel Freiman

There is a default character range that gets embeded when you embed a font.
To override this range see the livedocs:

http://livedocs.adobe.com/flex/201/html/fonts_070_09.html

Dan Freiman
nondocs http://nondocs.blogspot.com


On 5/17/07, Giles Roadnight [EMAIL PROTECTED] wrote:


  Hi All

We have a large number of text fields in our flex app and we have to
configure it in a number of different languages.

In some of the languages the special characters are not appearing -
like the accents over the e and so on.

How do I go about embedding these in the swf?

Many Thanks

Giles Roadnight

 



[flexcoders] Re: anyone using HTMLcomponent.swc? possible bug.

2007-05-17 Thread barry.beattie
many thanks Michael, I'll check it out to see if it fits

such a shame about HTMLcomponent.swc. It was just what I needed after
being spoilt with Apollo I've tried to contact the author but I'm
running out of time...





Re: [flexcoders] Embedding fonts in flex

2007-05-17 Thread Giles Roadnight

Thanks, that looks useful.

At the moment we have russian working (a language I am having trouble making
work in Flash) but some portugese is not working (cidillas and accents ect)
which seems a bit strange!

On 5/17/07, Daniel Freiman [EMAIL PROTECTED] wrote:


  There is a default character range that gets embeded when you embed a
font.  To override this range see the livedocs:

http://livedocs.adobe.com/flex/201/html/fonts_070_09.html

Dan Freiman
nondocs http://nondocs.blogspot.com


On 5/17/07, Giles Roadnight  [EMAIL PROTECTED] wrote:

   Hi All

 We have a large number of text fields in our flex app and we have to
 configure it in a number of different languages.

 In some of the languages the special characters are not appearing -
 like the accents over the e and so on.

 How do I go about embedding these in the swf?

 Many Thanks

 Giles Roadnight


 



Re: [flexcoders] Flash rendering mechanism

2007-05-17 Thread Adam Pasztory

You might want to read about CacheAsBitmap as well.

-Adam

On 5/17/07, Alex Harui [EMAIL PROTECTED] wrote:


  Stage.invalidate() requests a redraw, but does not redraw until all
other actionscript has run.


-Original Message-
From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
Behalf Of Tom Chiverton
Sent: Thursday, May 17, 2007 5:14 AM
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
Subject: Re: [flexcoders] Flash rendering mechanism

On Thursday 17 May 2007, Ravi Kumar Gummadi wrote:
 Can you point me to some interesting docs regarding this?

Install the debug player, right click and choose 'show redraw'.
AFAIK you can't issue a redraw request for a screen area.

--
Tom Chiverton
Helping to challengingly scale B2B 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

 



Re: [flexcoders] still having trouble with breakpoints

2007-05-17 Thread Troy Gilbert

I've run into that recently. I found it went away with an aggressive
combination of cleaning the project, exiting FB, and rebuilding
everything... basically, it seems like its some kind of weird caching issue
with the debugger...

I've run into the frustrating situation where I'll add a series of
trace(hello!) statements to my code and they never show up even after the
code pointer runs past them... clearly a stale build file somewhere.

It usually occurs when I'm working on code that other folks check-in or when
I have to do some SVN gymnastics (like getting a previous revision, etc.).

Troy.


On 5/9/07, Pan Troglodytes [EMAIL PROTECTED] wrote:


  So I have version 2.0.155577 now and it solved a lot of my problems with
breakpoints jumping further down the file than they should.

However, I still run into problems where certain breakpoints getting
disabled because FB claims there is no executable code on the line.  Well,
there definitely IS.  In this one file, it happens on any breakpoints past
the 309th line of the file.  Whitespace doesn't change it, but if I compress
something like:

if (...)
{
  do something;
}
else
{
  do something else;
}

into

  if () { do something } else { do something else }

then it moves from the 309th line to a later line.  It also doesn't matter
which code is first.  I can rearrange it so that the same code that started
losing breakpoints is earlier than 309, and it will regain breakpoints.

Unfortunately, i don't have a small, reproducible example or I would send
it in.  I guess I'm just hoping some adobe folks will go Yep, I know what
that is.  It should be fixed in the next patch.

--
Jason
 



RE: [flexcoders] finding and removing nodes from xml

2007-05-17 Thread Peter Farland
Oops, minor correction, that should be length - 1 in the initial state
of the loop (although the AVM doesn't complain about the deletion of an
undefined entity).
 
var xmlList:XMLList = xml..*.(attribute(id) == 6 || attribute(id)
== 24);
for (var i:int = xmlList.length() - 1; i = 0; i--)
{
delete xmlList[i];
}



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Farland
Sent: Wednesday, May 16, 2007 5:26 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] finding and removing nodes from xml



Does something like this work (based on your original email)? The trick
is to loop over the XMLList backwards so that you don't have to correct
the index each time the list gets smaller from the delete operation.

var xmlList:XMLList = xml..*.(attribute(id) == 6 || attribute(id)
== 24);
for (var i:int = xmlList.length(); i = 0; i--)
{
delete xmlList[i];
}




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Grant Davies
Sent: Wednesday, May 16, 2007 4:38 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] finding and removing nodes from xml



thanks peter, that using a literal delete... 
 
waht if you do delete via reference...  
 
e.g. node:XMLNode = xml.tagName[@id=3];
 
if you delete node you've you tried to delete the new reference... how
do you delete the tag with an id attribute of 3?
 
Grant
 
 
 http://www.bluetube.com/bti/images/small.jpg 
...
 b l u e t u b e i n t e r a c t i v e
.: The connection between creative and engineering
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
 [EMAIL PROTECTED]
 http://www.bluetube.com/bti http://www.bluetube.com/bti 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Farland
Sent: Wednesday, May 16, 2007 3:18 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] finding and removing nodes from xml



http://livedocs.adobe.com/flex/2/langref/operators.html#delete_(XML
http://livedocs.adobe.com/flex/2/langref/operators.html#delete_(XML )



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Grant Davies
Sent: Wednesday, May 16, 2007 3:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] finding and removing nodes from xml



I'm trying to find the most correct and efficient syntax to find nodes
with a particular attribute value and remove them from an xml document..


suppose my xml is :

code
response
status-code0/status-code
status-message![CDATA[ The call was successful ]]/status-message
recipients
recipient id=5 firstName=John
lastName=Smith[EMAIL PROTECTED] mailto:john%40blah.com /recipient
recipient id=6 firstName=firstName
lastName=lastName[EMAIL PROTECTED] mailto:chuck%40blah.com
/recipient
recipient id=23 firstName=grant
lastName=davies[EMAIL PROTECTED] mailto:grant%40blue.com /recipient
recipient id=24 firstName=fool
lastName=me[EMAIL PROTECTED] mailto:grant%40fool.com /recipient
recipient id=25 firstName=frick
lastName=frack[EMAIL PROTECTED] mailto:frick%40fool.com /recipient
recipient id=26 firstName=grant
lastName=davees[EMAIL PROTECTED] mailto:firday%40nowhere.com
/recipient
/recipients
/response
/code

And I want to find recipients with an id of 6 and 23 and remove them
from the xml... What is the syntax for this?

I can find those nodes into an XMLList fine... Its removing them I'm
having fun with..

Cheers,
Grant




 


{Disarmed} Re: [flexcoders] Flex on Mac

2007-05-17 Thread fuad_kamal
In the Windows version of eclipse, you can break out panels from the
main eclipse window and float them in your other monitors, just as you
can in Photoshop, Flash, and many other applications.  As far as I
know there is no way to break windows out of the main eclipse
interface on Mac platform - you can only drag them around within the
main window.  Sure, you could size the main eclipse window across all
three of your monitors, but that's not what we're talking about, here.  

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

 What are you talking about... I have a second monitor hooked up to my 
 MacBook Pro right now, and my Mac Pro has 3 monitors.  I've had no
issues.
 
 Paul
 
 
 fuad_kamal wrote:
  you can't (multiple monitors).  It's an issue w/Eclipse on Mac. 
  Solution:  cinema display :P
 
  --- In flexcoders@yahoogroups.com, Jurgen Beck jurgen@ wrote:

  Same here. I actually switched from Windows XP Professional running 
  stand-alone Flex Builder to a Mac Pro and MacBook Pro. Works
great. In 
  fact, I seem to have less memory issues with Flex Builder on the Mac 
  than I had with running it on Windows XP.
 
  The only thing I wish it would do on the Mac is allowing me to
use two 
  monitors. On the Windows side this is no problem. Can't seem to
figure 
  out how to do that on the Mac.
 
  Jurgen
 





RE: [flexcoders] Re: XML data bound to a chart- this should work!

2007-05-17 Thread Ely Greenfield
 

 

If you're referring to an attribute in XML, you need to use @id, not
id.

 

Ely.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of barry.beattie
Sent: Thursday, May 17, 2007 8:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: XML data bound to a chart- this should work!

 

closer (sort of).

yes I did misunderstand what was used for the category axis.

but correcting that hasn't helped, to be honest. setting CategoryAxis
to id didn't improve it

however, if I leave out the horizontalAxis and CategoryAxis
completely, it'll fall back to the default of displaying an index - it
provides the correct amount of them so it *is* reading the XML.

here's a node of the proper XML: rating=5 should be the height of
the column

?xml version=1.0 encoding=utf-8?
questionaire

question id=1 title=title here category=category here 
text=1. How would you rate your teamwork project as a theoretical or
real world application? 
min_label=Theoretical max_label=Real World
center_label= protocol_num=1 summary_num=1.1 
min_value=-5 max_value=5 weighting=0 rating=5 /

 

image001.jpgimage002.jpg

RE: [flexcoders] Cairngorm 2.2 incompatible with AS-based ServiceLocator?

2007-05-17 Thread Alistair McLeod
Hi Ben,

I'm not exactly sure whats going on here. Can you give more info, with
code and the exception your seeing?

Thanks,

Alistair 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: 03 May 2007 13:36
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm 2.2 incompatible with AS-based
ServiceLocator?

I think there may be a problem related to using the accessors collection
returned by describeType() in AbstractServices.as. It doesn't seem to
include items declared in AS.

I am getting an error saying the web service can't be found or something
similar when calling getWebService() on my AS-based ServiceLocator. When
my app starts up it loads a config file that contains the WSDL urls for
the services in my app. Once the file has loaded, I call an
initServices() function on my SL where I define the WebService
properties. When I subsequently try to call getWebService(), it bombs
saying it doesn't exist.

Looking at the callstack shows that all of my services are properly
created, they just don't seem to get registered with SL.

Ideas? Bug?

Thanks,
Ben

PS - I posted to the cairngorm-devel list almost 24 hours ago and it
still hasn't shown up, so sorry if it eventually does.



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





[flexcoders] Re: e4x problem

2007-05-17 Thread Chris Luebcke
Is that the entirety of the XML? What you're referring to as nodes
that contain colons are actually elements in a namespace. In the
media:thumbnail element, media is the namespace and thumbnail is
the node. What's going to cause you a real problem is if your XML
doesn't contain a namespace declaration xmlns:media=some stuff...
somewhere within or enclosing the element that uses it.

If you're generating this XML yourself and weren't trying to use
namespaces, then know that the colon : is not a valid character in
an element or attribute name--it denotes a namespace instead--and use
something else (like hyphens or camel case).

If somebody else is generating this for you and didn't put an xmlns
declaration in, first slap 'em upside the head, then take yourself to
namespaces-with-e4x school. Some introductory links:

http://www.darronschall.com/weblog/archives/000223.cfm
http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=1918.html

HTH,
Chris

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

 Hi,
 
 I am having problem to retreive data from nodes that contains colon
 with the e4x format.
 
 If you consider the following node:
 config
   item
 media:thumbnail url=http://someurl/something.png; /
   /item
 /config
 
 how would you then access the data contain by the url attribute?
 
 Many Thanks
 
 Seb





[flexcoders] Re: Date - Timezone with WS

2007-05-17 Thread headjoog
I had a similar issue with a WS I was using, and realized it was 
sending back both UTC and local time - you might check for that.  I 
ended up having to use a function to get the time right and displayed 
correctly in a data grid.

Check the AS 3 reference too, I think there's an example in there.

joe


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

 Can you be sure that all of the dates that come from that server 
will be
 sent in the timezone of that server?
  
 If they're -4 hours behind GMT / UTC, then you know that 
  
 2007-05-15T00:00:00-04:00
  
 is the same as:
  
 2007-05-15T04:00:00Z
  
 However, if you're -7 hours behind GMT / UTC, for example, then this
 time is seen as:
  
 2007-05-14T21:00:00-07:00
  
 All of these three times are equivalent but just in different 
timezones.
  
 A problem arises if your code, or perhaps some UI component that 
you're
 using to display dates, only considers the date portion of this
 dateTime... then you're not really getting an accurate picture of 
the
 point in time in which this dateTime refers. If you're only 
interested
 in the date and not the time, then you can always send individual 
values
 for , MM and DD (or use xsd:date and not xsd:dateTime). If you 
can't
 change the webservice... then you'll need a way to query the remote
 timezone and make adjustments accordingly (i.e. for the above 
scenario
 where you only want the date as it was in that remote date time... 
you'd
 have to hack the date by adding the difference from the remote 
timezone
 as compared to the local timezone).
  
 Pete
  
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of paulwelling
 Sent: Thursday, May 17, 2007 11:26 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Date - Timezone with WS
 
 
 
 Thank you Peter and Kelly for your responses...
 
 Unfotunately, I don't control our client's DB servers or their other
 apps that use these WSs, so I'm forced to use this dateTime format:
 2007-05-15T00:00:00-04:00
 
 Flash/Flex dropping off the TZ infomation that is sent seems to 
paint
 me (and everyone else that has dateTime WSs that they don't control)
 in to a pretty small corner.
 
 If I knew the TZ of the dateTime that was sent in the WS then I 
could
 ajust accordingly based on my app needs...
 
 I still have a feeling that I'm overlooking something since this 
seems
 so fundamental..? Any other ideas..?
 
 Thanks,
 
 Paul
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 , Peter Farland pfarland@ wrote:
 
  ActionScript 3 Dates are actually DateTime instances and always 
have
 a
  timezone. Dates are always shown in the local timezone in Flash, 
this
  isn't Flex specific. You have to use the UTC specific accessors in
  ActionScript to get the time in UTC / Zulu / GMT time. There is no
  record of the original timezone that was used to construct the 
Date.
  
  Serialization formats often send dateTime information in UTC to 
keep
  things simple - either endpoint can adjust the time on display as
  necessary.
  
  Note that there are a few bugs in how timezone-less date, time and
  dateTime XML Schema types are handled in Flex WebService that 
should
 be
  fixed in the new implementation of Flex SDK 2.0.1 Hotfix 2 which 
is
 due
  out soon. However, this isn't necessarily related to your 
dateTime as
 it
  has a timezone specified.
  
  Pete
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 ] On
  Behalf Of paulwelling
  Sent: Wednesday, May 16, 2007 6:42 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com 
  Subject: [flexcoders] Date - Timezone with WS
  
  
  
  Hello,
  
  I have a WS that returns a date. Our server is in EDT.
  Using Charles to sniff the date: 2007-05-15T00:00:00-04:00
  
  When debugging the resultset in Flex, it appears that Flex has 
ignored
  TZ info passed and has applied the client's TZ to the date..! 
  
  (I changed my PC's TZ to GMT and the TZ offset in the resultset 
gets
  changed accordingly, even though the server is still passing
 -04:00!!!)
  
  Has anyone come up with a good work-around / fix for this... (I'm
  still in shock on this one...)
  
  Thanks for the help!
  Paul
 





[flexcoders] Flex: Remote Objects

2007-05-17 Thread Scott Hoff
Do I have to have FDS2 do call remote objects? (Java etc.)



Re: [flexcoders] e4x problem

2007-05-17 Thread khair

Does your XML document have a  xmlns:thumbnail attribute in it?
Your XML document might not be formed well.

--Keith H--



 Hi,
 
 I am having problem to retreive data from nodes that contains colon
 with the e4x format.
 
 If you consider the following node:
 config
  item
media:thumbnail url=http://someurl/something.png; /
  /item
 /config
 
 how would you then access the data contain by the url attribute?
 
 Many Thanks
 
 Seb
 
 


[flexcoders] Re: Unable to flush SharedObject

2007-05-17 Thread Troy A. Binford
I cleared out the entire Flash Player directory. So that would be
...\Flash Player\*.* gone.

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

 Which OS are you on? 
 
 Typically the shared objects are on: 
 C:\Documents and Settings\userxyz\Application Data\Macromedia\Flash
 Player\#SharedObjects\some random dir name
 
 Did you delete the some random dir name directory completely? 
 Or only the directories inside it?
 
 Prayank
 
 --- In flexcoders@yahoogroups.com, Troy A. Binford
 troy.binford@ wrote:
 
  Yesterday I cleared out all the shared objects in my Application Data
  directory. Since then, I cannot write shared objects anymore. Did I
  perhaps delete a permission setting for flash to write to my local
  drive? I initially thought it may be a problem with a change in the
  application I am writing, but then I wrote a simple app to store a
  shared object and it returned error 2130 as well. I am using Eclipse
  with the FlexBuilder plugin.
  
  Oh, and I am obviously using local shared objects not remote ones, but
  I thought I'd be clear just in case.
  
  Thanks for any assistance.
 





RE: [flexcoders] How to display the Image

2007-05-17 Thread Alex Harui
If you set the itemRenderer to mx:Image, and dataField set to
WeatherImage you should see the image.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Praveen Saxena
Sent: Thursday, May 17, 2007 8:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to display the Image

 


Hi,
Is it possible to put the image in the datagrid after getting the 
the image url from the XML file.
My sample Xml look like this.
WeatherData
DaySaturday, May 19, 2007/Day

WeatherImagehttp://www.nws.noaa.gov/weather/images/fcicons/few.jpg
http://www.nws.noaa.gov/weather/images/fcicons/few.jpg /We
atherImage
MaxTemperatureF76/MaxTemperatureF
MinTemperatureF43/MinTemperatureF
MaxTemperatureC24/MaxTemperatureC
MinTemperatureC6/MinTemperatureC
/WeatherData
My requirement is display the image after from the URL specified in the
WeatherImage tag.
Thanks  Regards,
Praveen

 



[flexcoders] FYI - SYS-CON.TV To Present RIA Shootout Live From Times Square

2007-05-17 Thread Anthony DeBonis
This should be interesting:

Panel will discuss Adobe's Flex, Microsoft's Silverlight, and Sun'
JavaFX technologies as compared to AJAX


Monday, June 4, 2007 - 1 PM EST



[flexcoders] Hide scrollbar on Horizontal List in Flex2

2007-05-17 Thread Mondain

I have a horizontal list and I want to hide the scrollbar, since I use
buttons/images to scroll left or right. How do I go about doing this?

Paul

--
It is difficult to free fools from the chains they revere. - Voltaire


[flexcoders] Deployment of JSP with Flex tag library

2007-05-17 Thread saxenapallav
Hi,

Can anyone please help me in providing the way the to deploy JSP 
application with Flex Tag with runtime compilation on SAP EP server 
(WAS 6.4). I am fairly new to the Flex world, so any information on how 
this whole process works, will be of great help.

Thanks in advance.

Pallav



[flexcoders] Is it possible to load a an intro.swf ( CS3 ) into ( without using swc ) ?

2007-05-17 Thread helihobby
Hello all,

I have a a Intro.swf ( made in Flash CS3 ) which is compiled and 
ready to go ( has a preloader and everything ).

Converting it into a swc is a pain in b... since I have to use the 
new Flash/Flex integration tool which requires me to convert my flash 
into a single MovieClip so I will be forced to move all the layers 
around. Not to mention that if I the Intro.swf ( Flash CS3 file ) has 
an embeded MP3 it crashes Flex.


So 

Is there a way just to load @ runtime when user click on preview 
intro the pre compiled Intro.swf ( Flash CS3 Intro.swf ) inside of 
the Flex App. I don't need any interactions between Flex and Flash so 
swc will be an overkill for me. Just need to be able to load it when 
user clicks it ( and stop it from with the Intro.swf ).


As always, Thank you for all the help and support.

Regards,

Sean - http://www.HeliHobby.com

P.S.

You can read my solution for Flex Component communication here:

http://www.helihobby.com/html/alon_desingpattern.html




[flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents

2007-05-17 Thread Austin Kottke
Hi,

There is an intriguing article in the flex cookbook on the adobe site about
reading in MXML at runtime and using the XML object to create components 
at runtime. While
I don't totally get how this works as there are no code samples, but 
very vague actually, but it states:

Let’s consider, for a moment, how Adobe might have chosen to leverage 
reuse within the Flex2 programming model.

Assuming the Adobe engineers did not want to have to recreate the wheel 
in terms of how to make Flex2 able to load normal non-GUI XML I would 
surmise they chose to simply reuse whatever code they wrote that was 
able to read MXML into a way to read XML.

As we know, MXML resembles XML rather closely. Heck, MXML is XML ! 
Yipee, now I can easily read MXML because it is essentially a form of XML.

We also know Flex2 knows how to read MXML at runtime because the 
compiler knows how to convert MXML into GUI Objects.

But what if we could trick Flex2 into dynamically loading MXML at 
runtime ?


So my question, has anyone ever done this and how did they do it? I'm 
not talking about using the
modules package to load in precompiled swfs. But loading in mxml and 
having it run after being loaded.

Best, Austin



--
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: How do you generate inactive icon states

2007-05-17 Thread Doug Lowder

ColorMatrixFilter is the right track.  Have a look at this:

http://www.ifbin.com/news/2005/09/flash-8-flashfilterscolormatrixfilter.\
html
http://www.ifbin.com/news/2005/09/flash-8-flashfilterscolormatrixfilter\
.html

Setting the RGB lists to [0.2, 0.2, 0.2, 0.2, 0] for each gives a nice
greyed-out appearance, and then you can adjust the alpha to suit.


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

 There doesn't appear to be a grayscale filter. However, BlendMode and
 ColorMatrixFilter sound promising. I am I on the right track?



 Linc



 _

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
 Behalf Of Petro Bochan
 Sent: Thursday, 17 May 2007 5:29 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] How do you generate inactive icon states



 ?xml version=1.0 encoding=utf-8?

 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 creationComplete=init(); layout=absolute

 mx:Script

 ![CDATA[

 private var pLoader:Loader;

 private var pUrl:URLRequest;



 private function init():void {

 pLoader = new Loader();

 pUrl = new URLRequest();



 pUrl.url =
 http://rols.ramesys.com/images/Ramesys/Adobe/Adobe-Logo.jpg;;


 pLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
onLoadComplete);

 pLoader.load(pUrl);

 }



 private function
 onLoadComplete(anEvet:Event):void {

 var
 vDropShadowFilter:DropShadowFilter = new DropShadowFilter();



 pLoader.alpha = .5;

 pLoader.filters =
 [vDropShadowFilter];



 theStage.addChild(pLoader);

 }

 ]]

 /mx:Script



 mx:SWFLoader id=theStage height=100% width=100%/

 /mx:Application



 _

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
 Behalf Of Lincoln Mitchell
 Sent: Thursday, May 17, 2007 11:43 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How do you generate inactive icon states



 I am trying to generate an inactive icon state from an original color
png
 file. It needs to be 50% alpha=0.5 and grey scale.

 Can this be done in code, if so how?

 TIA

 Linc





RE: [flexcoders] How do you generate inactive icon states

2007-05-17 Thread Petro Bochan
Hi,

 

Sure, the ColorMatrixFilter is sure to go. Try this:

 

pLoader.filters = [new ColorMatrixFilter([0.3086, 0.6094, 0.0820, 0, 0,
0.3086, 0.6094, 0.0820, 0, 0, 0.3086, 0.6094, 0.0820, 0, 0, 0, 0, 0, 1,
0])];

 

Cheers,

Petro

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lincoln Mitchell
Sent: Thursday, May 17, 2007 5:27 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How do you generate inactive icon states

 

There doesn't appear to be a grayscale filter. However, BlendMode and
ColorMatrixFilter sound promising. I am I on the right track?

 

Linc

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Petro Bochan
Sent: Thursday, 17 May 2007 5:29 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How do you generate inactive icon states

 

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
creationComplete=init(); layout=absolute

mx:Script

![CDATA[

   private var pLoader:Loader;

   private var pUrl:URLRequest;

   

   private function init():void {

   pLoader = new Loader();

   pUrl= new
URLRequest();

   

   pUrl.url =
http://rols.ramesys.com/images/Ramesys/Adobe/Adobe-Logo.jpg;;

 
pLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
onLoadComplete);

   pLoader.load(pUrl);

   }

   

   private function
onLoadComplete(anEvet:Event):void {

   var
vDropShadowFilter:DropShadowFilter = new DropShadowFilter();

   

   pLoader.alpha   = .5;

   pLoader.filters =
[vDropShadowFilter];

   

 
theStage.addChild(pLoader);

   }

]]

/mx:Script



mx:SWFLoader id=theStage height=100% width=100%/

/mx:Application

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lincoln Mitchell
Sent: Thursday, May 17, 2007 11:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do you generate inactive icon states

 

I am trying to generate an inactive icon state from an original color
png
file. It needs to be 50% alpha=0.5 and grey scale.

Can this be done in code, if so how?

TIA

Linc

 



Re: [flexcoders] Re: Unable to flush SharedObject

2007-05-17 Thread jake247
You might try re-installing Flash ... that should re-create the Shared Objects 
folder for you ...

-- Jake

 Troy A. Binford [EMAIL PROTECTED] wrote: 
 I cleared out the entire Flash Player directory. So that would be
 ...\Flash Player\*.* gone.
 
 --- In flexcoders@yahoogroups.com, Prayank [EMAIL PROTECTED] wrote:
 
  Which OS are you on? 
  
  Typically the shared objects are on: 
  C:\Documents and Settings\userxyz\Application Data\Macromedia\Flash
  Player\#SharedObjects\some random dir name
  
  Did you delete the some random dir name directory completely? 
  Or only the directories inside it?
  
  Prayank
  
  --- In flexcoders@yahoogroups.com, Troy A. Binford
  troy.binford@ wrote:
  
   Yesterday I cleared out all the shared objects in my Application Data
   directory. Since then, I cannot write shared objects anymore. Did I
   perhaps delete a permission setting for flash to write to my local
   drive? I initially thought it may be a problem with a change in the
   application I am writing, but then I wrote a simple app to store a
   shared object and it returned error 2130 as well. I am using Eclipse
   with the FlexBuilder plugin.
   
   Oh, and I am obviously using local shared objects not remote ones, but
   I thought I'd be clear just in case.
   
   Thanks for any assistance.
  
 
 
 



[flexcoders] Re: Cairngorm 2.2 incompatible with AS-based ServiceLocator?

2007-05-17 Thread ben.clinkinbeard
I declared my ServiceLocator subclass in AS rather than MXML, and when
my app loads I load an XML file. That XML file contains the WSDL URLs
for all the WebServices that I use in my app, so once it is loaded I
call an initServices() method that I defined on the ServiceLocator
subclass. The initServices() method declares my WebService objects,
sets up event listeners and calls loadWSDL() for each, using the URLs
defined in the loaded XML. Once all my loadWSDL() calls have returned
the app continues on to other startup tasks.

This all worked perfectly in Cairngorm 2.1. With 2.2 however, as soon
as I call ServiceLocator.getInstance().getWebService(), I get the
error and callstack pasted below. Debugging shows that all of my
WebService variables are defined and in memory, but for some reason
they are not registered with the ServiceLocator. In some quick tests,
I noticed that the describeType() call in AbstractServices.as does not
seem to include references to variables defined in AS. Since the
accessors list from describeType() seems to be the source of what gets
registered with ServiceLocator, my guess is that that is the source of
the problem.

You can see a slightly obfuscated version of the class at
http://returnundefined.com/files/MyAppServices.as

Thanks,
Ben

Error: C0009E: WebService not found for documentMetadataWebService
at
com.adobe.cairngorm.business::WebServices/getService()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\business\WebServices.as:83]
at
com.adobe.cairngorm.business::ServiceLocator/getWebService()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\business\ServiceLocator.as:171]
at
com.fmr.projects.PsaBatchTool.business::BatchDelegate$iinit()[D:\ClearCase_Storage\a391949_PsaBatchToolRefactor_view\BackOffice\Components\Source\PSA.BatchTool\com\fmr\projects\PsaBatchTool\business\BatchDelegate.as:27]
at
com.fmr.projects.PsaBatchTool.commands::GetRecentBatchesCommand/execute()[D:\ClearCase_Storage\a391949_PsaBatchToolRefactor_view\BackOffice\Components\Source\PSA.BatchTool\com\fmr\projects\PsaBatchTool\commands\GetRecentBatchesCommand.as:27]
at
com.adobe.cairngorm.control::FrontController/com.adobe.cairngorm.control:FrontController::executeCommand()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\FrontController.as:212]
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
com.adobe.cairngorm.control::CairngormEventDispatcher/dispatchEvent()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\CairngormEventDispatcher.as:113]
at
com.adobe.cairngorm.control::CairngormEvent/dispatch()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\CairngormEvent.as:77]
at
com.fmr.projects.PsaBatchTool.commands::ApplicationIsReadyCommand/execute()[D:\ClearCase_Storage\a391949_PsaBatchToolRefactor_view\BackOffice\Components\Source\PSA.BatchTool\com\fmr\projects\PsaBatchTool\commands\ApplicationIsReadyCommand.as:16]
at
com.adobe.cairngorm.control::FrontController/com.adobe.cairngorm.control:FrontController::executeCommand()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\FrontController.as:212]
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
com.adobe.cairngorm.control::CairngormEventDispatcher/dispatchEvent()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\CairngormEventDispatcher.as:113]
at
com.adobe.cairngorm.control::CairngormEvent/dispatch()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\CairngormEvent.as:77]
at
com.fmr.projects.PsaBatchTool.commands::LoadAppConfigCommand/com.fmr.projects.PsaBatchTool.commands:LoadAppConfigCommand::configFileLoaded()[D:\ClearCase_Storage\a391949_PsaBatchToolRefactor_view\BackOffice\Components\Source\PSA.BatchTool\com\fmr\projects\PsaBatchTool\commands\LoadAppConfigCommand.as:56]
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()





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

 Hi Ben,
 
 I'm not exactly sure whats going on here. Can you give more info, with
 code and the exception your seeing?
 
 Thanks,
 
 Alistair 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: 03 May 2007 13:36
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Cairngorm 2.2 incompatible with AS-based
 ServiceLocator?
 
 I think there may be a problem related to using the accessors collection
 returned by describeType() in AbstractServices.as. It doesn't seem to
 include items declared in 

Re: [flexcoders] Re: RTMP Server

2007-05-17 Thread Christopher Olsen
Syed:

are you using it for the audio/video streaming, pushing data or?
Syed Mazhar Hasan Qadri wrote:

 I will also like to test this, because i am willing to have such an
 application for my next product that will display realtime stocks
 information in the form of charts so this type of application will be
 handy for me.

 --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com, bhaq1972 [EMAIL PROTECTED] wrote:
 
  Hi Christopher
 
  I would be interested to know more see if it can be applied
  to us.
 
  -Bod
 
  --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com, Christopher Olsen cwolsen@
  wrote:
  
   For anyone interested I've been working on an RTMP server written
  in C
   to handle messaging  streaming..
  
   If anyone is interested in testing it out please let me know and
  I'll
   let you know where you can obtain a copy of the source.
  
  
   -Christopher
  
 

  




Re: [flexcoders] Re: RTMP Server

2007-05-17 Thread Christopher Olsen
Sure it's in the early stages right now I plan to by the end of the 
weekend having a good beta version of it...


I know it current works with flex messaging I haven't tested it as far 
as streaming audio and video



bhaq1972 wrote:


Hi Christopher

I would be interested to know more see if it can be applied
to us.

-Bod

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

wrote:

 For anyone interested I've been working on an RTMP server written
in C
 to handle messaging  streaming..

 If anyone is interested in testing it out please let me know and
I'll
 let you know where you can obtain a copy of the source.


 -Christopher


 




[flexcoders] Re: Flex: Remote Objects

2007-05-17 Thread pgp.coppens
You don't need FDS to use RemoteObject I was having that impression
until I asked. See
http://tech.groups.yahoo.com/group/flexcoders/message/73053

Documentations is confusing though (imo).

Hth,

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

 Do I have to have FDS2 do call remote objects? (Java etc.)





[flexcoders] Re: RemoteObject handling exceptions onFault

2007-05-17 Thread truongdav
Anyone know the answer for this?


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

 Hi,
 
 I am having problems I want to throw some exception on a remote 
call 
 and then display the Exception on the client side.  But this always 
 returns an onResult instead of an onFault.  Anything I am doing 
wrong?
 
 Thanks.
 
 
 --- POJO ---
 public void test() throws Exception
 {
   throw new exception(blah);
 }
 
 --- services.mxml --
 
   mx:RemoteObject id=someServiceId 
destination=someService 
showBusyCursor=true 
result=event.token.resultHandler( event )
fault=event.token.faultHandler( event )
   /mx:RemoteObject
 
 -
 
 public function execute( event : CairngormEvent ):void
   {
   var delegate : SomeDelegate = new SomeDelegate( this );
   var someEvent : SomeEvent = SomeEvent( event );
   delegate.test();
   }
   
   public function onResult( event : * = null ) : void
   {   
   Alert.show(success);
   }
   
   public function onFault( event : * = null) : void
   {
 Alert.show(event.fault.message, Error);
   }
 
 
   public class SomeDelegate
   {
 public function SomeDelegate( responder : Responder )
 {
   this.service = ServiceLocator.getInstance().getService 
 ( someServiceId );
   this.responder = responder;
 }
 
   public function test(): void
   { 
   var call : Object = service.test(); 
  
   call.resultHandler = responder.onResult;
   call.faultHandler = responder.onFault;
   }
   
   //
 -
 
   private var responder:Responder;
   private var service:Object;





[flexcoders] Re: Unable to flush SharedObject

2007-05-17 Thread Troy A. Binford
After reinstalling flash, again. I still have the same problem. What
is weird is that any sites that store shared objects work just fine.
Apollo works fine too (because it's shared objects are stored in a
different place). It's just weird. It is like it lost permissions to
write to local even though any app ran locally has permission to by
default.

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

 You might try re-installing Flash ... that should re-create the
Shared Objects folder for you ...
 
 -- Jake
 
  Troy A. Binford [EMAIL PROTECTED] wrote: 
  I cleared out the entire Flash Player directory. So that would be
  ...\Flash Player\*.* gone.
  
  --- In flexcoders@yahoogroups.com, Prayank prayank.swaroop@ wrote:
  
   Which OS are you on? 
   
   Typically the shared objects are on: 
   C:\Documents and Settings\userxyz\Application Data\Macromedia\Flash
   Player\#SharedObjects\some random dir name
   
   Did you delete the some random dir name directory completely? 
   Or only the directories inside it?
   
   Prayank
   
   --- In flexcoders@yahoogroups.com, Troy A. Binford
   troy.binford@ wrote:
   
Yesterday I cleared out all the shared objects in my
Application Data
directory. Since then, I cannot write shared objects anymore.
Did I
perhaps delete a permission setting for flash to write to my local
drive? I initially thought it may be a problem with a change
in the
application I am writing, but then I wrote a simple app to store a
shared object and it returned error 2130 as well. I am using
Eclipse
with the FlexBuilder plugin.

Oh, and I am obviously using local shared objects not remote
ones, but
I thought I'd be clear just in case.

Thanks for any assistance.
   
  
  
 





Re: [flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents

2007-05-17 Thread Daniel Freiman

I think they're just stating that the mx.modules package exists.  The
sentence We also know Flex2 knows how to read MXML at runtime because the
compiler knows how to convert MXML into GUI Objects doesn't inspire
confidence that they know what they're talking about.  Since it's possible
that they don't know what a compiler does, it's also possible they're just
writing and compiling Modules and don't understand that they're doing it.
Then again, that wouldn't explain what they're fighting with another company
about earlier in the article.

They claim what they're talking about is in the docs so I'd either search
them or not worry about it.  My guess is you'd be searching a long time for
something that isn't there.  It would be nice if someone could prove my
guess wrong though.

Dan Freiman
nondocs http://nondocs.blogspot.com

On 5/17/07, Austin Kottke [EMAIL PROTECTED] wrote:


Hi,

There is an intriguing article in the flex cookbook on the adobe site
about
reading in MXML at runtime and using the XML object to create components
at runtime. While
I don't totally get how this works as there are no code samples, but
very vague actually, but it states:

Let's consider, for a moment, how Adobe might have chosen to leverage
reuse within the Flex2 programming model.

Assuming the Adobe engineers did not want to have to recreate the wheel
in terms of how to make Flex2 able to load normal non-GUI XML I would
surmise they chose to simply reuse whatever code they wrote that was
able to read MXML into a way to read XML.

As we know, MXML resembles XML rather closely. Heck, MXML is XML !
Yipee, now I can easily read MXML because it is essentially a form of XML.

We also know Flex2 knows how to read MXML at runtime because the
compiler knows how to convert MXML into GUI Objects.

But what if we could trick Flex2 into dynamically loading MXML at
runtime ?


So my question, has anyone ever done this and how did they do it? I'm
not talking about using the
modules package to load in precompiled swfs. But loading in mxml and
having it run after being loaded.

Best, Austin



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






Re: [flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents

2007-05-17 Thread Doug McCune

Yeah, ummm, my advice would be ignore that article. That's one of the
effects of having an article submission process that allows anyone to submit
anything. I know the cookbook is supposed to be user generated and reviewed,
but anyone from Adobe want to exercise a little editorial control? I
wouldn't mind the hand of god going in there and selectively removing a
little content... sometimes democracy needs a helping hand.


On 5/17/07, Daniel Freiman [EMAIL PROTECTED] wrote:


  I think they're just stating that the mx.modules package exists.  The
sentence We also know Flex2 knows how to read MXML at runtime because the
compiler knows how to convert MXML into GUI Objects doesn't inspire
confidence that they know what they're talking about.  Since it's possible
that they don't know what a compiler does, it's also possible they're just
writing and compiling Modules and don't understand that they're doing it.
Then again, that wouldn't explain what they're fighting with another company
about earlier in the article.

They claim what they're talking about is in the docs so I'd either search
them or not worry about it.  My guess is you'd be searching a long time for
something that isn't there.  It would be nice if someone could prove my
guess wrong though.

Dan Freiman
nondocs http://nondocs.blogspot.com


On 5/17/07, Austin Kottke [EMAIL PROTECTED]  wrote:

 Hi,

 There is an intriguing article in the flex cookbook on the adobe site
 about
 reading in MXML at runtime and using the XML object to create components
 at runtime. While
 I don't totally get how this works as there are no code samples, but
 very vague actually, but it states:

 Let's consider, for a moment, how Adobe might have chosen to leverage
 reuse within the Flex2 programming model.

 Assuming the Adobe engineers did not want to have to recreate the wheel
 in terms of how to make Flex2 able to load normal non-GUI XML I would
 surmise they chose to simply reuse whatever code they wrote that was
 able to read MXML into a way to read XML.

 As we know, MXML resembles XML rather closely. Heck, MXML is XML !
 Yipee, now I can easily read MXML because it is essentially a form of
 XML.

 We also know Flex2 knows how to read MXML at runtime because the
 compiler knows how to convert MXML into GUI Objects.

 But what if we could trick Flex2 into dynamically loading MXML at
 runtime ?


 So my question, has anyone ever done this and how did they do it? I'm
 not talking about using the
 modules package to load in precompiled swfs. But loading in mxml and
 having it run after being loaded.

 Best, Austin



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




 



RE: [flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents

2007-05-17 Thread Ely Greenfield
 

 

Austin et. al. -

 

There are a number of features of MXML that simply can't be replicated
at runtime. Things like script blocks. Other features would be
prohibitively difficult (arbitrary binding expressions, @Embed,
mx:Component, among others).  You could reduce MXML to a
runtime-parsable subset, and I know various people have taken various
approaches to this.  The more you reduce it, the easier it would be to
replicate...removing repeaters, implicit arrays, default properties,
etc. would get you down to something that could be implemented in a
reasonable amount of time.

 

I'm curious...how many people would find runtime MXML to be important to
them?

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Doug McCune
Sent: Thursday, May 17, 2007 12:47 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex cookbook article: Flex2 XML Reader Can
Create UIComponents

 

Yeah, ummm, my advice would be ignore that article. That's one of the
effects of having an article submission process that allows anyone to
submit anything. I know the cookbook is supposed to be user generated
and reviewed, but anyone from Adobe want to exercise a little editorial
control? I wouldn't mind the hand of god going in there and selectively
removing a little content... sometimes democracy needs a helping hand. 



On 5/17/07, Daniel Freiman [EMAIL PROTECTED] wrote:

I think they're just stating that the mx.modules package exists.  The
sentence We also know Flex2 knows how to read MXML at runtime because
the compiler knows how to convert MXML into GUI Objects doesn't inspire
confidence that they know what they're talking about.  Since it's
possible that they don't know what a compiler does, it's also possible
they're just writing and compiling Modules and don't understand that
they're doing it.  Then again, that wouldn't explain what they're
fighting with another company about earlier in the article. 

They claim what they're talking about is in the docs so I'd either
search them or not worry about it.  My guess is you'd be searching a
long time for something that isn't there.  It would be nice if someone
could prove my guess wrong though. 

Dan Freiman
nondocs http://nondocs.blogspot.com 

 

On 5/17/07, Austin Kottke [EMAIL PROTECTED]  wrote:

Hi,

There is an intriguing article in the flex cookbook on the adobe site
about 
reading in MXML at runtime and using the XML object to create components
at runtime. While
I don't totally get how this works as there are no code samples, but
very vague actually, but it states:

Let's consider, for a moment, how Adobe might have chosen to leverage 
reuse within the Flex2 programming model.

Assuming the Adobe engineers did not want to have to recreate the wheel
in terms of how to make Flex2 able to load normal non-GUI XML I would
surmise they chose to simply reuse whatever code they wrote that was 
able to read MXML into a way to read XML.

As we know, MXML resembles XML rather closely. Heck, MXML is XML !
Yipee, now I can easily read MXML because it is essentially a form of
XML.

We also know Flex2 knows how to read MXML at runtime because the 
compiler knows how to convert MXML into GUI Objects.

But what if we could trick Flex2 into dynamically loading MXML at
runtime ?


So my question, has anyone ever done this and how did they do it? I'm 
not talking about using the
modules package to load in precompiled swfs. But loading in mxml and
having it run after being loaded.

Best, Austin



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


mailto:[EMAIL PROTECTED] 





 

 

image001.jpgimage002.jpg

[flexcoders] Textformatter Object pushing boundaries of sprite, but should it?

2007-05-17 Thread Patrick Lemiuex
Adding a text format object to my sprite changed it's height to 100  
pixels?  It should only be 20 or at least was right before i added it  
- is  this normal?   I was getting mouse events outside my sprite and
threw me for a loop.  Please chime in if you know why?

Thanks,
Patrick


[flexcoders] Re: Flex cookbook article: Flex2 XML Reader Can Create UIComponents

2007-05-17 Thread nathanpdaniel
http://labs.adobe.com/wiki/index.php/Flex_Module_for_Apache_and_IIS

Not implying I know anything by any means - but from reading what you 
wrote - it sounds the same... but I really don't know :D

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

 Hi,
 
 There is an intriguing article in the flex cookbook on the adobe 
site about
 reading in MXML at runtime and using the XML object to create 
components 
 at runtime. While
 I don't totally get how this works as there are no code samples, 
but 
 very vague actually, but it states:
 
 Let's consider, for a moment, how Adobe might have chosen to 
leverage 
 reuse within the Flex2 programming model.
 
 Assuming the Adobe engineers did not want to have to recreate the 
wheel 
 in terms of how to make Flex2 able to load normal non-GUI XML I 
would 
 surmise they chose to simply reuse whatever code they wrote that 
was 
 able to read MXML into a way to read XML.
 
 As we know, MXML resembles XML rather closely. Heck, MXML is XML ! 
 Yipee, now I can easily read MXML because it is essentially a form 
of XML.
 
 We also know Flex2 knows how to read MXML at runtime because the 
 compiler knows how to convert MXML into GUI Objects.
 
 But what if we could trick Flex2 into dynamically loading MXML at 
 runtime ?
 
 
 So my question, has anyone ever done this and how did they do it? 
I'm 
 not talking about using the
 modules package to load in precompiled swfs. But loading in mxml 
and 
 having it run after being loaded.
 
 Best, Austin





[flexcoders] Flex 2 Component to Flash CS3

2007-05-17 Thread nathanpdaniel
Anyone know how to use a Flex 2 AS3 component in Flash CS3?  Or would I 
be better off recreating a Flash version of it? :D



Re: [flexcoders] Flex on Mac

2007-05-17 Thread Arleston Lueders

Thanks guys, it helps a lot.

Arleston


2007/5/16, Nick Sophinos [EMAIL PROTECTED]:


  Yeah and totally don't buy Apple's FUD that only Apple Brand RAM
is a valid choice. After all, even they don't use their branded RAM in
their new laptops all the time. My 15 Powerbook came straight from
factory with Hynix RAM.

- Nick

On 5/16/07, Brett [EMAIL PROTECTED] suppaibeg%40gmail.com wrote:






 Depending on when you were checking the Mac you may be able to get
 that Mac even cheaper since they bumped up the specs that morning.
 I'm not sure about the games, I haven't played a PC game for years,
 but if they would work OK with the integrated 950 chipset then it
 should be fine. Although you'd have to boot directly into Windows to
 make use of the acceleration, for now. Also I would highly recommend
 you DONT buy the extra ram from apple. You can pick it up from
 crucial.com or newegg.com for a lot cheaper. It's cake to install a
 new HD or RAM on the MacBook also which is nice, both are accessible
 once you unlatch the battery.

 Personally I'd go with a Mac instead of a PC :)

 



Re: [flexcoders] Re: Flex cookbook article: Flex2 XML Reader Can Create UIComponents

2007-05-17 Thread Paul J DeCoursey
The Apache/IIS module is a Flex compiler that compiles the MXML just 
before serving.  Similar to JSP, ASP, PHP. and so on.  It is not 
MXML at runtime.


nathanpdaniel wrote:
 http://labs.adobe.com/wiki/index.php/Flex_Module_for_Apache_and_IIS

 Not implying I know anything by any means - but from reading what you 
 wrote - it sounds the same... but I really don't know :D

 --- In flexcoders@yahoogroups.com, Austin Kottke [EMAIL PROTECTED] wrote:
   
 Hi,

 There is an intriguing article in the flex cookbook on the adobe 
 
 site about
   
 reading in MXML at runtime and using the XML object to create 
 
 components 
   
 at runtime. While
 I don't totally get how this works as there are no code samples, 
 
 but 
   
 very vague actually, but it states:

 Let's consider, for a moment, how Adobe might have chosen to 
 
 leverage 
   
 reuse within the Flex2 programming model.

 Assuming the Adobe engineers did not want to have to recreate the 
 
 wheel 
   
 in terms of how to make Flex2 able to load normal non-GUI XML I 
 
 would 
   
 surmise they chose to simply reuse whatever code they wrote that 
 
 was 
   
 able to read MXML into a way to read XML.

 As we know, MXML resembles XML rather closely. Heck, MXML is XML ! 
 Yipee, now I can easily read MXML because it is essentially a form 
 
 of XML.
   
 We also know Flex2 knows how to read MXML at runtime because the 
 compiler knows how to convert MXML into GUI Objects.

 But what if we could trick Flex2 into dynamically loading MXML at 
 runtime ?


 So my question, has anyone ever done this and how did they do it? 
 
 I'm 
   
 not talking about using the
 modules package to load in precompiled swfs. But loading in mxml 
 
 and 
   
 having it run after being loaded.

 Best, Austin

 



   



[flexcoders] Trees and ActionScript

2007-05-17 Thread Matt
I am trying to programmatically build and manipulate a Tree entirely
in ActionScript and I'm having serious issues doing so.

I've tried various ways of doing it but currently my failed code looks
like:

var t:Tree = new Tree();
var dp:XMLListCollection = new XMLListCollection();
var o1:XML = node label='Testing'/;
dp.addItem(o1);
t.dataProvider = dp;

Ideally I'd like to use only Objects.  I've been able to make it work
thus far by just having a dataProvider as ArrayCollection and adding
Objects to it, but then I have no way of adding branches and I end up
with a 1-deep tree.

Any advice or references are appreciated. I've gone through the
flexdocs and they offer a few examples that seem to almost be talking
about what I'm trying to do, but they don't work.



[flexcoders] Re: Number data type rounding/flooring with FDS and Java

2007-05-17 Thread alteraa
Thanks for the feedback Pete -- actually it turned out to be a line in
the DAO object that was doing the rounding.  I figured when I couldn't
find anything on the web that it must be my typical dumb error and not
something common.

However the part I mention in my first response is still valid, where
Number(textInput.text) is different from txtInput.text as Number.
 The as Number cast does round off the value to the nearest integer.

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

 Sorry I missed this post originally, is there any chance that you could
 email me a small test case directly... [EMAIL PROTECTED]
  
 Thanks,
  
Pete
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of alteraa
 Sent: Friday, May 11, 2007 1:46 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Number data type rounding/flooring with FDS and
 Java
 
 
 
 Hi, simple problem. I have a strongly-typed VO with a property
 value as a Number on the Flex side, and a Double on the Java side. 
 In the database the value is, let's say 5.20, but when I view the data
 in a DataGrid it floors the value to 5.
 
 I'm using a dataService to fill the ArrayCollection that holds the VOs
 and the VO class in ActionScript does have the [Managed]
 [RemoteClass(alias=] syntax. This works fine for all the data types
 I've used so far until I got to Number.
 
 I figure it's something simple I'm doing wrong, like maybe not
 specifying the number of decimal points that should be displayed?
 
 Also, in a related question, what's the best way to have the user
 input a Number value into a text input field, since TextInput.text is
 String data?
 
 Thanks!





[flexcoders] doPrint and ViewStack

2007-05-17 Thread tkacyndra
hi :)
(i'm very new to all this)


i'm trying to print a selected viewstack text(which is being 
selected via a List), but it keeps getting cut off my text.

the layout of my viewStack is:

ViewStack
--Canvas
TextArea
--htmlText
--Canvas
TextArea
--htmlText
etc.

in my printjob, if i already tried referencing the ViewStack text by 
the ViewStack.selectedItem, TextArea ID, Canvas ID, etc.
by half of my text is getting cut off (anything beyong the scroll 
bar)

can someone please help?

Thanks! 




[flexcoders] Question regarding showDataEffect and secondSeries of a ColumnChart

2007-05-17 Thread kho7002
Hi,
I have a column chart which has 2 dataseries. I'm setting the chart's
dataProvider and secondDataProvider when the server returns with it's
information. I define the showDataEffect for both series, and my
columns work properly. But, my second series is a lineSeries, and what
happens is that the line will appear first before everything else,
then disappear, then use the effect i defined to reappear along with
the first series. 

I set the lineSeries' showDataEffect to a SeriesInterpolate, whereas
my columns use a seriesZoom. 

If I comment out my mx:series section, the second series seems to
draw properly. 

Is there anyway to find out why it is drawing the second series twice
when I use showDataEffect?

Thanks very much- 
-kit



  1   2   >