RE: [flexcoders] AC Observe Tag

2007-01-11 Thread Alex Uhlmann
Hi Bjorn,
 
are you using the extended version of Observe?
http://weblogs.macromedia.com/auhlmann/archives/2006/09/using_binding_s.
cfm#more
 
Best,
Alex
 

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

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Bjorn Schultheiss
Sent: 12 January 2007 05:09
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AC Observe Tag



More or less this post is a question. 

With regards to the use of Adobe Consulting's Observe utility i'm not
getting the expected result.

I've got some simple code where i wish to execute a function when a
value gets set via binding.
When i create my Observe instance the value has not yet been set.

The unexpected result is that,
1. The callbackHandler gets fired immediately after i set
observe.handler, even though the value i have set to observe.source is
== null
2. The callbackHandler is not getting called when the value does get
set.

Here's my code anyway.

private function init():void
{
var ac:Observe = new Observe();
ac.source = distribMap_model.templateSwfAsset;
ac.handler = playTemplatePreview;
}

private function playTemplatePreview(e:*):void
{
trace('playTemplatePreview');
}

private var model:AMModelLocator = AMModelLocator.getInstance();
[Bindable]
private var distribMap_model:DistribMappingModel =
model.tc_model.distribMap_model;

 


adobe_logo.gif
Description: adobe_logo.gif


[flexcoders] PIVOT CHART (&table) .

2007-01-11 Thread leds usop
HI All, (Especially hi to Chartman Ely ahem. :))

We have a current project which requires a datagrid to
have filter and pivot table capabilities on top of the
sort capability. Using that custom datagrid's pivot
table functionality will be based on using MS Excel's
pivot table. OUr problem however is not on the table
but on the chart that is supposedly generated from the
pivot table. A pivot chart can have multi-level
horizontal labels and tick marks (for those not
familiar with pivot table chart, if you have say, a
chain of 3 row categories with 3 non-numeric values
for each, the x-axis will be divided primarily by the
3 values from the first category - then each of those
values will be subvidivided by the number of values
the second category have and so on - sort of a
fractal/recursive/pyramiding behavior). So with all
that said and knowing that we are to use stacked bar
chart mean time (although we will probably be required
to support the other chart types as well) what is the
best way to go about this? Should we play around with
the horizontal axis renderer alone? OR should we
sublass the whole chart? Or is the data drawing canvas
(with custom components inside) the best way to do
this? Any suggestion will be greatly appreciated. Thnx !


 

Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367


[flexcoders] Replacement of "headerRenderer" of Datagrid??

2007-01-11 Thread sanjaypmg
Hi All,

Does anyone now What is the replacement of "headerRenderer" of Flex 
1.5 in Flex 2.0?

headerRenderer was a property of DataGrid in flex 1.5.

If anyone knows, please let me know.

Thanks,
Sanjay Sharma



Re: [flexcoders] cairngorm flash lite/AS2 version

2007-01-11 Thread greg h

Robin,

I am not in the mobile space.  However at MAX Steven Webster had "Cairngorm
2 Mobile Edition" on the roadmap.

Steven's slides (PDF downloadable at the link following) said "Will be
available for download on Adobe Labs shortly…".  I just checked labs and I
still to not see it there.
http://weblogs.macromedia.com/swebster/archives/DevelopingNextGenRIAWithCairngorm2.pdf
(Note:  In the PDF see pages 33-41)

Can anyone else give an update on the status of "Cairngorm 2 Mobile
Edition"?

g


On 11/28/06, Robin Burrer <[EMAIL PROTECTED]> wrote:


 Hi there,

I read that cairngorm has been back-ported for flash lite. Does anyone
know if there is a downloadable version available yet?

I guess that version could be used for any flash 8 – AS2 projects.

Cheers

Robin



[flexcoders] Re: Filters with DataGrid - Excel

2007-01-11 Thread sanjaypmg
Thanks Phil,
 :) That's what I was looking for...Now I'll try to convert it 
into Flex2.0.

Wish me luck ;)

Thanks,
Sanjay

--- In flexcoders@yahoogroups.com, "phipzkillah" <[EMAIL PROTECTED]> wrote:
>
> I am also looking for this functionality.  About a month ago I came
> across this page
>  elID=1> .  It is a sample of a datagrid whose headers have a drop 
down
> list to filter each field/column on.  Unfortuneately it was 
developed in
> Flex 1.5.  Has anyone converted it to Flex 2.0?  If so, this is the
> answer we all are looking for.
> 
> If someone can copy that source code and eliminate the compiler 
errors
> you will be doing several of us a huge favor!
> 
> Thanks
> 
> Phil
> 
> --- In flexcoders@yahoogroups.com, "sanjaypmg"  wrote:
> >
> > Hi There,
> >
> > Is there any way to put filters feature on Datagrid as available 
in
> > Excel?
> >
> > Or
> >
> > Anything Similar to that feature?
> >
> > Please let me know if there is something or any possible 
solution for
> > the same.
> >
> > Thanks
> > Sanjay sharma
> >
>




[flexcoders] loading blazepdf as external swf in Flex 2

2007-01-11 Thread Kevin
When building previous RIA's using flash, I fell in love with the  
blazepdf component (http://www.blazepdf.com) as a way to quickly  
build PDF files using actionscript. Lacking a similar component in  
Flex, I am wondering if it is possible to turn Flash AS2  SWF in to a  
self contained "module", load it into Flex, pass it some variables  
and let it do it's thing.  I figure I could easily create this little  
Flash module to act as my print engine when the user want to print or  
build PDF's.  Does this seem possible? I don't have any experience  
loading SWF's in Flex so any insight or link you can provide are much  
appreciated.

OR maybe there are other solutions that people are using to create  
PDF's from their Flex creations?

Thanks, Kevin


[flexcoders] Yes it does! Thanks + Sorry

2007-01-11 Thread Alex
My mistake:

>> for each (var d:Object in data.a.b..c){

I assumed that .. had scope



Re: [flexcoders] flashlog.txt Intel Mac?

2007-01-11 Thread Kevin
thanks.  I got it working.  I hadn't downloaded the most recent Flash  
Player Plugin for Intel macs:


http://www.adobe.com/support/flashplayer/downloads.html

then in order to get the Firefox Flash Tracer (https:// 
addons.mozilla.org/firefox/3469/) working I had to enter the exact  
file path in the options window in Flash Tracer:


Macintosh HD:Users: 
{yourusername}:Library:Preferences:Macromedia:Flash  
Player:Logs:flashlog.txt


After entering this I had to close and reopen the side bar before I  
got any traces to appear in the tracer window.


All is good now.  I hope this help any other having this issue.

- kevin




On Jan 11, 2007, at 5:05 PM, Alisdair Mills wrote:



i put 2 and 2 together and made 5 ;)

On 11 Jan 2007, at 21:11, Muzak wrote:


Where did you hear/read that mm.cfg is no longer required?

According to the (updated) docs it still is:
http://livedocs.macromedia.com/flex/201/html/logging_125_04.html

regards,
Muzak

- Original Message -
From: "Alisdair Mills" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, January 11, 2007 9:11 PM
Subject: Re: [flexcoders] flashlog.txt Intel Mac?

> works fine for me... although i think things have changed for  
player

> 9 no mm.cfg is required and the log file is written to -
>
> /Users/{username}/Library/Preferences/Macromedia/Flash Player/Logs/
> flashlog.txt
>
>
> On 11 Jan 2007, at 19:33, Kevin wrote:
>
>> Has anyone gotten the flash logging working on an intel mac. I  
have
>> tried to numerous times and I can't seem to get it to write  
anything
>> to the log file. Wondering if this is something that others  
have had

>> problems with or if this is just "user error".
>>
>> thanks, Kevin
>>
>>
>>
>>
>
>










[flexcoders] AC Observe Tag

2007-01-11 Thread Bjorn Schultheiss

More or less this post is a question.

With regards to the use of Adobe Consulting's Observe utility i'm not  
getting the expected result.


I've got some simple code where i wish to execute a function when a  
value gets set via binding.

When i create my Observe instance the value has not yet been set.

The unexpected result is that,
1. The callbackHandler gets fired immediately after i set  
observe.handler, even though the value i have set to observe.source  
is == null
2. The callbackHandler is not getting called when the value does get  
set.


Here's my code anyway.

private function init():void
{
var ac:Observe = new Observe();
ac.source = distribMap_model.templateSwfAsset;
ac.handler = playTemplatePreview;
}

private function playTemplatePreview(e:*):void
{
trace('playTemplatePreview');
}

private var model:AMModelLocator = AMModelLocator.getInstance();
[Bindable]
private var distribMap_model:DistribMappingModel =  
model.tc_model.distribMap_model;

[flexcoders] Re: Help sifting through XML (from HTTPService) with a foreach loop [new to Fle

2007-01-11 Thread Alex
>>There's no point in using .. instead of . between b and c. If you
want to use .. you'd just say data..c.


If there were multiple child elements that contained c sections in
this case, how would .. know what to reference?


  
   
  
  
   
  




RE: [flexcoders] Re: Help sifting through XML (from HTTPService) with a foreach loop [new to Fle

2007-01-11 Thread Peter Farland
http://www.faqts.com/knowledge_base/view.phtml/aid/35136/fid/1762



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex
Sent: Thursday, January 11, 2007 10:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Help sifting through XML (from HTTPService)
with a foreach loop [new to Fle



Thanks for the messages. In the spirit of learning however, were I to
use the object method, what syntax would be used? 

If I use a breakpoint, I see the structure like:

data
+--+ Auracle
|
+-+ messages
|
+-+ message
|
+[0]
| |
| +id
| +text
|
+--[1]
+--[2]
+--[3]

What's the significance of the .. operator on collections?



 


[flexcoders] Doesn't work :/

2007-01-11 Thread Alex
I've tried:

import mx.rpc.events.ResultEvent;

private function ticketDataRequestHandler( oEvent:ResultEvent ):void {   
  var xmlResult:XML = XML(oEvent.result);   
  var xlData:XMLList= xmlResult..data;

  for (var i:int ; i

ticketData
{ticketID}




without luck..

Here's a sample of the actual XML being pulled in



ticketData
FLEX: Ticket data
1

13671








64886

5901
heychadley



64683
3
Admin

  




Should be fairly straightforward?  I mean I'm pulling XML from all
over the place successfully otherwise - this is an annoying problem! :)



[flexcoders] Re: Help sifting through XML (from HTTPService) with a foreach loop [new to Fle

2007-01-11 Thread Alex
Thanks for the messages.  In the spirit of learning however, were I to
use the object method, what syntax would be used?  

If I use a breakpoint, I see the structure like:

data
+--+ Auracle
   |
   +-+ messages
 |
 +-+ message
   |
   +[0]
   | |
   | +id
   | +text
   |
   +--[1]
   +--[2]
   +--[3]


What's the significance of the .. operator on collections?





[flexcoders] Re: Security SandBox issue SOLVED

2007-01-11 Thread patricklemiuex
Sorry, this stuff catches me, i forget about all the FUN SUPER FUN
security...


wrote:
>
> Hi, I am going crazy again.
> 
> I am having an issue with not being able to navigateTo A URL from our
> site... works fine if no www. is there, but with it I get a security
> sandbox violations issue.  I'm loading a crossdomain policy and trying
> to allow the domain and everything - what to do?
> 
> SecurityError: Error #2137: Security sandbox violation:
> http://me.com/_p/viewer/pollandquiz.swf?docId=-4935715412555856092
> cannot navigate window _self within http://www.me.com/patrickdj/
> (allowScriptAccess is ). Attempted URL was
/_poll/takeit.php?pollid=1663.
>   at global/flash.net::navigateToURL()
>   at components::PutPoll/handlePutPoll()
>   at components::PutPoll/__put_button_click()
>




Re: [flexcoders] Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-11 Thread Douglas Knudsen

no way!  I thought that was for webservices or REST calls only.
Interesting, So I can have a SWF served from server A that connects to
server B via remoteobject if server B has a crossdomain file?   So, do I
need to compile against a services-config.xml that has the URI hardcoded to
server B to do this?

DK

On 1/11/07, Peter Farland <[EMAIL PROTECTED]> wrote:


You can avoid that restriction if you use a /crossdomain.xml file that
is hosted on the server you are remoting to and allows the domain from
which your swf is hosted to contact it.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Douglas Knudsen
Sent: Thursday, January 11, 2007 1:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Anyone Using a Remote CF Server with Flex 2,
Remoting?



AFAIK, the swf has to be served from the same box you remote to.

DK


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







--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


[flexcoders] Security SandBox issue

2007-01-11 Thread patricklemiuex
Hi, I am going crazy again.

I am having an issue with not being able to navigateTo A URL from our
site... works fine if no www. is there, but with it I get a security
sandbox violations issue.  I'm loading a crossdomain policy and trying
to allow the domain and everything - what to do?

SecurityError: Error #2137: Security sandbox violation:
http://me.com/_p/viewer/pollandquiz.swf?docId=-4935715412555856092
cannot navigate window _self within http://www.me.com/patrickdj/
(allowScriptAccess is ). Attempted URL was /_poll/takeit.php?pollid=1663.
at global/flash.net::navigateToURL()
at components::PutPoll/handlePutPoll()
at components::PutPoll/__put_button_click()



RE: [flexcoders] Help sifting through XML (from HTTPService) with a foreach loop [new to Flex]

2007-01-11 Thread Tracy Spratt
I mean:

var xlData:XMLList = xmlResult..data;  //two dots, to get all the
descendants

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Thursday, January 11, 2007 9:38 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Help sifting through XML (from HTTPService)
with a foreach loop [new to Flex]

 

Are you determined to stick with resultFormat="object"?  If you use e4x,
you can do:

private function ticketDataRequestHandler(oEvent:ResultEvent):void {
var xmlResult:XML = XML(oEvent.result);

var xlData:XMLList = xmlResult.data;

for (var i:int;imailto:[EMAIL PROTECTED] On
Behalf Of Alex
Sent: Thursday, January 11, 2007 8:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Help sifting through XML (from HTTPService) with a
foreach loop [new to Flex]

 

I have an XML file that looks like this:




1


2




I'm fetching it with..



ticketData
{ticketID}



In my ticketDataRequestHandler, as exercise, I just want to 'alert'
what's in the data blocks... I've tried:

private function ticketDataRequestHandler(data:Object):void {
for each (var d:Object in data.a.b..c){
Alert.show( d.data); 
}
}

and every permutation thereof - and it just won't work for me..

Help appreciated!
Alex

 



RE: [flexcoders] Help sifting through XML (from HTTPService) with a foreach loop [new to Flex]

2007-01-11 Thread Gordon Smith
I think you need to ask for resultFormat="e4x".
 
Then try tracing out data.toXMLString() to see what XML you're getting.
I can't remember whether you'd do data.a.b.c or data.b.c. (I think the
top-level element  may BE the data.)
 
There's no point in using .. instead of . between b and c. If you want
to use .. you'd just say data..c.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex
Sent: Thursday, January 11, 2007 5:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Help sifting through XML (from HTTPService) with a
foreach loop [new to Flex]



I have an XML file that looks like this:




1


2




I'm fetching it with..



ticketData
{ticketID}



In my ticketDataRequestHandler, as exercise, I just want to 'alert'
what's in the data blocks... I've tried:

private function ticketDataRequestHandler(data:Object):void {
for each (var d:Object in data.a.b..c){
Alert.show( d.data); 
}
}

and every permutation thereof - and it just won't work for me..

Help appreciated!
Alex



 


Re: [flexcoders] Re: Problem Using Modules - Flex 2.0.1

2007-01-11 Thread Bjorn Schultheiss

yo, maybe this might help.

http://tech.groups.yahoo.com/group/flexcomponents/message/1143



Regards,

Bjorn


On 11/01/2007, at 11:40 AM, fliabrussa wrote:


--- In flexcoders@yahoogroups.com, "fliabrussa" <[EMAIL PROTECTED]> wrote:
>
> I'm having the following problem:
>
> I've built a module (called Modulo1.swf) that contains a DataGrid
> and a couple of controls.
> Then I made another module (called Modulo2.swf) that also contains
a
> DataGrid and an Accordion.
> Then I made a project called VisorModulos (ModuleViewer), it only
> load and unload this modules.
> The error occurs after loading and unloading twice a module. It
> fails with the first module and also with the second, here is the
> link:
>
> http://www.managernet.com.ar/modulos/VisorModulos.html
>
> To reproduce the error you must load and unload at least twice any
> module. In case of the first module, after loading for the second
> time, try using the DataGrid.
>
> Right click to view source.
>
> Any idea?
>
>
>
> Trace error is:
>
> TypeError: Error #1009: No se puede acceder a una propiedad o a un
> método de una referencia a un objeto nulo.
> at mx.managers::HistoryManager$/register()
> at mx.containers::Accordion/::addedHandler()
> at flash.display::DisplayObjectContainer/addChildAt()
> at
>
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$add
> ChildAt()
> at mx.core::Container/addChildAt()
> at mx.core::Container/addChild()
> at mx.core::Container/createComponentFromDescriptor()
> at mx.core::Container/createComponentsFromDescriptors()
> at mx.core::Container/mx.core:Container::createChildren()
> at mx.core::UIComponent/initialize()
> at mx.core::Container/initialize()
> at Modulo2/initialize()
> at
>
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::chil
> dAdded()
> at
>
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childA
> dded()
> at mx.core::Container/addChildAt()
> at mx.core::Container/addChild()
> at mx.modules::ModuleLoader/::moduleReadyHandler()
> at
>
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
> ventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at ::ModuleInfoProxy/::moduleEventHandler()
> at
>
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
> ventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at ::ModuleInfo/readyHandler()
> at
>
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
> ventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at mx.core::FlexModuleFactory/::update()
>

Nobody uses modules ?? or to anybody it gives east error him?

because it happens me to my !! :(







RE: [flexcoders] Help sifting through XML (from HTTPService) with a foreach loop [new to Flex]

2007-01-11 Thread Tracy Spratt
Are you determined to stick with resultFormat="object"?  If you use e4x,
you can do:

private function ticketDataRequestHandler(oEvent:ResultEvent):void {
var xmlResult:XML = XML(oEvent.result);

var xlData:XMLList = xmlResult.data;

for (var i:int;imailto:[EMAIL PROTECTED] On
Behalf Of Alex
Sent: Thursday, January 11, 2007 8:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Help sifting through XML (from HTTPService) with a
foreach loop [new to Flex]

 

I have an XML file that looks like this:




1


2




I'm fetching it with..



ticketData
{ticketID}



In my ticketDataRequestHandler, as exercise, I just want to 'alert'
what's in the data blocks... I've tried:

private function ticketDataRequestHandler(data:Object):void {
for each (var d:Object in data.a.b..c){
Alert.show( d.data); 
}
}

and every permutation thereof - and it just won't work for me..

Help appreciated!
Alex

 



[flexcoders] Flex 1.5 + Weblogic 9.2 + Spring 2.0 issue

2007-01-11 Thread Ramos Cardona Jesus Salvador

I know this issue does not quite belong here, but since it is a flex-related 
issue, I thought I'd post to see if anyone has experience this.
We developed a webapp that used Flex 1.5 for the presentation tier, and Spring 
1.2.8 for the business tier. Such app was to be deployed on Weblogic 9.2. 
Everything worked fine until we started migrating our Spring config to version 
2.0.1. The effort was pretty much straight-forward, and all Spring xml config 
files were left untouched, save for the schema declaration on all files, and 
some AOP namespaces.

Note first that, due to its nature, webapps built on Flex 1.5 and deployed in 
any version of Weblogic have to be deployed in expanded wars.

Once the migration was complete, we tried to deploy the webapp to the very same 
environment we previously had it up and running, and this exception was thrown:
Code:
org.springframework.beans.factory.BeanDefinitionStoreException: Line 7 in XML do
cument from URL [zip:C:/bea/weblogic92/samples/domains/wl_server/./servers/examp
lesServer/tmp/_WL_user/seguridad-webapp-1/fpleo0/war/WEB-INF/lib/seguridad-core-
1.3-SNAPSHOT.jar!/dataSourceApplicationContext.xml] is invalid; nested exception
 is org.xml.sax.SAXParseException: Document root element "beans", must match DOC
TYPE root "null".
org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE
 root "null".
at org.apache.xerces.parsers.DOMParser.parse(Lorg.xml.sax.InputSource;)V
(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Lorg.xml.sax.InputSo
urce;)Lorg.w3c.dom.Document;(Unknown Source)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
eanDefinitions(XmlBeanDefinitionReader.java:222)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:173)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:148)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:128)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:144)
at org.springframework.web.context.support.XmlWebApplicationContext.load
BeanDefinitions(XmlWebApplicationContext.java:126)
at org.springframework.web.context.support.XmlWebApplicationContext.load
BeanDefinitions(XmlWebApplicationContext.java:94)
at org.springframework.context.support.AbstractRefreshableApplicationCon
text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:262)
at org.springframework.web.context.support.AbstractRefreshableWebApplica
tionContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:184)
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:49)
at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run
(EventsManager.java:375)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
121)
at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(Eve
ntsManager.java:83)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
pServletContext.java:1591)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletCon
text.java:2734)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.jav
a:892)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:336)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleSta
teDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
river.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStat
eDriver.java:60)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedMod
uleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(Module
ListenerInvoker.java:117)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleSta
teDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
river.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStat
eDriver.java:60)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartMod
ulesFlow.java:26)
We tried to deploy the very same app but

[flexcoders] Help sifting through XML (from HTTPService) with a foreach loop [new to Flex]

2007-01-11 Thread Alex
I have an XML file that looks like this:



 
   
 1
   
   
 2
   
 



I'm fetching it with..




ticketData
{ticketID}




In my ticketDataRequestHandler, as exercise, I just want to 'alert'
what's in the data blocks... I've tried:

private function ticketDataRequestHandler(data:Object):void {
for each (var d:Object in data.a.b..c){
Alert.show( d.data);
}
}

and every permutation thereof - and it just won't work for me..

Help appreciated!
Alex



RE: [flexcoders] Re: CSS type selectors are not supported in components

2007-01-11 Thread Gordon Smith
But if you do
 
MyApp.mxml:
 

   
   ...
   

 
do you get a compilation error because the compiler thinks that
BetterApplication is a component and components can't have ?
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Thursday, January 11, 2007 9:34 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: CSS type selectors are not supported in
components



I know for sure that you can still extend/subclass Application and use
that subclass as the root tag for an application.

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sbyrne_dorado
Sent: Thursday, January 11, 2007 4:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: CSS type selectors are not supported in
components

Well, I am sure if I comment out the  in the
top level application, that the warnings go away. 

Is it possible that the compiler is being overly picky, and only
allows literally  as the root element, and not some
class dervived from mx:Application? I know in the past that Flex made
mx:Application "more equal" than other classes, such that the debugger
wouldnt' recognize subclasses of it as being legitimate top level
application classes.

--- In flexcoders@yahoogroups.com 
, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> >Is there some salient difference between inline inclusion vs.
external
> definitions?
> 
> No. Writing  should be the same as putting the
> contents of the CSS file between  and .
> 
> Are you sure you have  only in  and not in
any
> of the components that your application is using?
> 
> - Gordon
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of sbyrne_dorado
> Sent: Wednesday, January 10, 2007 8:43 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: CSS type selectors are not supported in
> components
> 
> 
> 
> I'm getting this error message from within an mx:Application (well a
> subclass thereof) that includes things via . 
> Is there some salient difference between inline inclusion vs. external
> definitions? The docs don't seem to indicate so...
> 
> --- In flexcoders@yahoogroups.com


> , "Gordon Smith"  wrote:
> >
> > Flex 2 doesn't support per-component selectors. Put all CSS
selectors
> in
> > the , not in MXML components.
> > 
> > 
> > 
> > - Gordon
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com


> [mailto:flexcoders@yahoogroups.com


> ] On
> > Behalf Of Tansht
> > Sent: Thursday, July 20, 2006 1:06 AM
> > To: flexcoders@yahoogroups.com 
 
> > Subject: [flexcoders] CSS type selectors are not supported in
> components
> > 
> > 
> > 
> > Hi, there
> > I'm experiencing a problem. I've checked FLEX 2 livedoc and found
out 
> > all styles I defined in an external css files are supported style. 
> > However, the warning message "CSS type selectors are not supported
in 
> > components" appeared when I run my application. Does any one know
how
> I 
> > can resolve it?
> > Thanks in advance
> > David
> >
>

 


RE: [flexcoders] "arguments" class?

2007-01-11 Thread Gordon Smith
I'm not sure, but 'arguments' is considered old-fashioned. In AS3 you
should use
 
function f(param1:int, param2:String, ... rest)
 
rest has type Array. You don't have to use the name 'rest'.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sbyrne_dorado
Sent: Thursday, January 11, 2007 5:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] "arguments" class?



The Flex 2/AS3 docs make it appear that "arguments" is both a
variable, as well as a class. Can anyone clarify this for me? If I
want to store "arguments" away for later usage, what type should I
specify (apart from Array, which I *think* will work, tho given that
there's not a type inheritance relationship there, it may not)?

Steve



 


RE: [flexcoders] Re: Lexical scoping of variable declarations not working?

2007-01-11 Thread Gordon Smith
This is just a warning, not an error. In flex-config.xml you can turn off any 
warning that you don't like.
 
I believe the ECMA committee is considering adding "let" for defining 
block-scoped vars:
 
if (flag)
{
let x:Number = 3;
}
else
{
let x:Number = 4;
}
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
sbyrne_dorado
Sent: Thursday, January 11, 2007 5:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Lexical scoping of variable declarations not working?



Ugh. I was hoping you were kidding, but it sounds like a dreadful
oversight (and, knowing one of the main authors of the ECMA standard,
a truly wizardly experienced guy, SHOCKING -- bad Quux, bad!). 

Down the road. Bah! [skipping snarky comments about language design
here]. I guess we'll have to contort our 2400+ class application to
deal with this silliness. Sigh.

Thanks Michael for your response!!!

--- In flexcoders@yahoogroups.com  , 
"Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> This has been brought up and it's going to be fixed down the road
with ECMA.
> 
> Search the archives for Gordon's response. You won't be able to use var,
> it's some other weird keyword, I can't remember.
> 
> Peace, Mike
> 
> On 1/11/07, Jason Hawryluk <[EMAIL PROTECTED]> wrote:
> >
> > kind of like you can't do this
> >
> >
> >
> > public function clearTargetData(x:string):void{}
> >
> > public function clearTargetData():void{}
> >
> >
> > which most support also, but I give Adobe the benefit of the doubt
this is
> > a completely new flex, built from the ground up, and they have
done a bang
> > up job.
> >
> > I can do with out these things, perhaps they'll implement this type of
> > stuff in a later version.
> >
> > jason
> >
> >
> >
> >
> > -Message d'origine-
> > *De :* flexcoders@yahoogroups.com  
[mailto:flexcoders@yahoogroups.com  ]*De
> > la part de* sbyrne_dorado
> > *Envoyé :* jeudi 11 janvier 2007 10:09
> > *À :* flexcoders@yahoogroups.com  
> > *Objet :* [flexcoders] Lexical scoping of variable declarations not
> > working?
> >
> > I'm seeing some odd behavior with the AS3 compiler. I say it's "odd"
> > because it's at variance with the vast majority of C language
> > derivatives (in fact, I'll go out on a limb and say ALL of them). The
> > behavior I'm seeing is this:
> >
> > If I have
> >
> > package {
> > public class badscope {
> >
> > public function dummy() : void {
> > if (new Date() != null) {
> > var foo : Number = 3;
> > } else {
> > var foo : Number = 4;
> > }
> > }
> >
> > }
> > }
> >
> > the cmopiler is telling me that "foo" is a duplicate declaration. Um.
> > Every other block structured language I'm familiar with scopes local
> > variable declaration to the enclosing block, so the foo's do not exist
> > in the same lexical scope and there is no conflict. To me, if this
> > behavior of placing all variable declarations in the top level
> > function's scope is in fact the desired behavior, it's a HUGE step
> > backwards.
> >
> > Please help me to understand why I'm seeing the behavior I am, and why
> > it's not breaking lexical scoping rules common to C derivatives.
> >
> > 
> >
> 
> 
> 
> -- 
> Teoti Graphix
> http://www.teotigraphix.com  
> 
> Blog - Flex2Components
> http://www.flex2components.com  
> 
> You can find more by solving the problem then by 'asking the question'.
>



 


Re: [flexcoders] Casting a variable - Best Practice?

2007-01-11 Thread Michael Schmalle

Tip to adobe docs... :)

That last paragraph would be perfect in page about casting types. :)

Peace, Mike

On 1/11/07, Peter Farland <[EMAIL PROTECTED]> wrote:


   Most of the intrinsic types have global functions defined that create
new instances, as does Array().

http://livedocs.macromedia.com/flex/2/langref/package.html#Array()

These sorts of things are either (a) because ECMA Script defines these
functions or (b) because legacy versions of ActionScript have always done
this (I apologize for not researching this for you right now).

The as operator returns null if the cast fails, where as Type(uncastVar)
will throw a coercion exception if it fails to cast or "coerce" the
uncastVar to Type. Besides the aforementioned restriction due to intrinsic
type global functions, it's a matter of style as to whether you need to know
about a failed cast or not.





 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *dougmccune
*Sent:* Thursday, January 11, 2007 6:11 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Casting a variable - Best Practice?

 Quick question (I know both work, just wondering what people do in
practice):

Option A: var castVar:Type = uncastVar as Type;

OR

Option B: var castVar:Type = Type(uncastVar);

I've been going with using option A (with "as") mainly because calling
Array(uncastVar) or ArrayCollection(uncastVar) does not cast to Array
or ArrayCollection, but instead instantiates new Arrays, which is
confusing. So instead of trying to remember to do most of my casting
using Type(variable) unless I'm trying to cast to Array, I figured it
was easier to just always use "as".

Also, is there a specific reason for the choice to not allow
Array(var) to simply cast to an array? It seems a little odd that
casting that works for every other datatype doesn't for one or two.

 





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

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

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


Re: [flexcoders] Adding a row at bottom in datagrid with total of all other rows

2007-01-11 Thread Alan Rother

How are you populating the datagrid?

If it's from some sort of array, then you should be able to add those values
to the array and it will show up at the bottom.

On 1/11/07, smustafa77 <[EMAIL PROTECTED]> wrote:


  Is it possible to insert a last row at the bottom of datagrid which
will have total of the numeric field above it


 





--
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer


RE: [flexcoders] Casting a variable - Best Practice?

2007-01-11 Thread Peter Farland
Most of the intrinsic types have global functions defined that create
new instances, as does Array().
 
http://livedocs.macromedia.com/flex/2/langref/package.html#Array()
 
These sorts of things are either (a) because ECMA Script defines these
functions or (b) because legacy versions of ActionScript have always
done this (I apologize for not researching this for you right now).
 
The as operator returns null if the cast fails, where as Type(uncastVar)
will throw a coercion exception if it fails to cast or "coerce" the
uncastVar to Type. Besides the aforementioned restriction due to
intrinsic type global functions, it's a matter of style as to whether
you need to know about a failed cast or not.
 
 
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dougmccune
Sent: Thursday, January 11, 2007 6:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Casting a variable - Best Practice?



Quick question (I know both work, just wondering what people do in
practice):

Option A: var castVar:Type = uncastVar as Type;

OR

Option B: var castVar:Type = Type(uncastVar);

I've been going with using option A (with "as") mainly because calling
Array(uncastVar) or ArrayCollection(uncastVar) does not cast to Array
or ArrayCollection, but instead instantiates new Arrays, which is
confusing. So instead of trying to remember to do most of my casting
using Type(variable) unless I'm trying to cast to Array, I figured it
was easier to just always use "as". 

Also, is there a specific reason for the choice to not allow
Array(var) to simply cast to an array? It seems a little odd that
casting that works for every other datatype doesn't for one or two.



 


[flexcoders] Adding a row at bottom in datagrid with total of all other rows

2007-01-11 Thread smustafa77
Is it possible to insert a last row at the bottom of datagrid which 
will have total of the numeric field above it
 



Re: [flexcoders] "arguments" class?

2007-01-11 Thread Clint Modien

Not sure what you're trying to do...  but you might want to have a look at
this?

http://livedocs.macromedia.com/flex/2/langref/statements.html#..._(rest)_parameter



On 1/11/07, sbyrne_dorado <[EMAIL PROTECTED]> wrote:


  The Flex 2/AS3 docs make it appear that "arguments" is both a
variable, as well as a class. Can anyone clarify this for me? If I
want to store "arguments" away for later usage, what type should I
specify (apart from Array, which I *think* will work, tho given that
there's not a type inheritance relationship there, it may not)?

Steve

 



[flexcoders] Casting a variable - Best Practice?

2007-01-11 Thread dougmccune
Quick question (I know both work, just wondering what people do in
practice):

Option A: var castVar:Type = uncastVar as Type;

OR

Option B: var castVar:Type = Type(uncastVar);

I've been going with using option A (with "as") mainly because calling
Array(uncastVar) or ArrayCollection(uncastVar) does not cast to Array
or ArrayCollection, but instead instantiates new Arrays, which is
confusing. So instead of trying to remember to do most of my casting
using Type(variable) unless I'm trying to cast to Array, I figured it
was easier to just always use "as". 

Also, is there a specific reason for the choice to not allow
Array(var) to simply cast to an array? It seems a little odd that
casting that works for every other datatype doesn't for one or two.



[flexcoders] PopUpMenuButton in Actionscript.

2007-01-11 Thread phipzkillah
What am I doing wrong here?  I'm trying to create a popupmenubutton in
pure actionscript.

var network:PopUpMenuButton;
 var networkDP:Object = new Object();
 networkDP[0] = '';
 networkDP[1] ='';
 networkDP[2] ='';
 networkDP[3] ='';

 network = new PopUpMenuButton();
 network.label = "Phipz";
 network.dataProvider = networkDP;
 
 network.visible = true;
 network.setActualSize(75,20);
 network.move(10,10);



[flexcoders] Re: Datagrid Scrolling -- Is it really this complicated?

2007-01-11 Thread phipzkillah
OK.

This works -> 
This doesn't -> 

I get an error:
Error #1010: A term is undefined and has no properties.
at mx.controls::DataGrid/::calculateColumnSizes()
at mx.controls::DataGrid/mx.controls:DataGrid::updateDisplayList()
at mx.core::UIComponent/validateDisplayList()
at mx.managers::LayoutManager/::validateDisplayList()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()

Any ideas??

this.width - 20 is equal to the vbox width.  Just not sure why it
doesn't work.

--- In flexcoders@yahoogroups.com, "michael_ramirez44"
<[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "phipzkillah"  wrote:
> >
> > Setting the horizontal scroll policy to auto produces 2 scroll bars.
> > My datagrid is in a vbox (width=100% to fill the panel).  My
> > datagrid's width is 100% to fill the vbox.
> > 
> > When you set horizontal scroll policy to auto it creates a huge
> > datagrid that will no longer fit into the vbox.  So now I get a 
> scroll
> > bar on the vbox.  To use the vertical scroll bar on the datagrid I
> > need to scroll the vbox horizontal scroll bar all the way to the 
> right.
> > 
> > Still no fix for this problem.  Any thoughts.
> > 
> > 
> > This is an image with the VBOX width = 100%, with the datagrid 
> inside
> > with a width=100%; the horizontal scroll policy is set to auto on 
> the
> > datagrid.
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "michael_ramirez44"
> >  wrote:
> > >
> > > --- In flexcoders@yahoogroups.com, "phipzkillah" pkrasko@ wrote:
> > > >
> > > >
> > > > I have a Datagrid in a panel whose size is 80% width of the 
> screen
> > > > (panel width that is).  My datagrid has 68 columns and its 
> width is
> > > set
> > > > to 100% (to fill the panel).  When the datagrid loads you can't
> > > read a
> > > > damn thing.  If i set the minwidth I can read the data, but I 
> have
> > > to
> > > > horizontally scroll all the way to the right to see the vertical
> > > scroll
> > > > bar!!  SO I can't scroll down unless I scroll all the way to the
> > > > right...how is that user friendly?  Seems like a poor design 
> that
> > > the
> > > > datagrid scroll bar doesn't float ontop of the grid itself.  You
> > > can see
> > > > the problem here in a snapshot I took - vertical scroll bar not 
> seen
> > > > unless you scroll all the way to the right.
> > > >
> > > > Does anyone have a solution to this problem?  I don't want any
> > > scroll
> > > > bars on my panel.  I simply just want to be able to scroll
> > > horizontally
> > > > and vertically on my datagrid with ease.
> > > >
> > >
> > > Set the DataGrid's horizontalScrollPolicy to "auto".
> > >
> > >  dgResults.horizontalScrollPolicy = "auto";
> > >
> >
> Try binding your VBOX width to your dataGrid.
> 
> 
> 
> Its worth a shot :)
>




RE: [flexcoders] Re: Compiling modules

2007-01-11 Thread Roger Gonzalez
ModuleLoader is a kind of strange API that is really just intended to
look like SwfLoader for modules that contain a single visual component,
and hides most of the module loading infrastructure, which is all about
class factories.
 
What I mean by "only loaded once" is that if you have several places in
the code that call the ModuleManager.getModule("url").load() call, it
will only ever get loaded over the wire and interpreted once, subsequent
"loads" will just re-dispatch pseudo-load events to the new client.  In
other words, the class factory is a singleton for a given url.
 
Unloading is a totally different story.  As you note, not everything is
truly unloadable, because there may be lots of references to stuff in
the module that will keep it alive and un-GC'ed.
 
I suggest playing with the low-level API so that you understand the
backing implementation, and this should help you understand the limits
of ModuleLoader.
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Fabio Terracini
Sent: Thursday, January 11, 2007 1:43 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Compiling modules



Hello Roger, you told below that they only ever get loaded once.
This "loaded" mean loaded in memory or loaded by transferring over the
wire?

I've made tests between Modules and SWFLoader, specifically
about memory consumption. In one of them, I called loadModule() and
unloadModule() several times (loading the same module, of course), and
the memory only increases! I think this is the expected (although not
the willed) behavior (as is in the SWFLoader) since Flash Player can't
really kill (and free the memory) a DisplayObject. It would be a hard
work to remove all the references of the loaded application's objects
(without talking about the Flex framework per se) to elect they to GC. 

Thanks
Fabio Terracini



On 1/9/07, Roger Gonzalez <[EMAIL PROTECTED]
 > wrote: 

The main difference between modules and applications is
that modules have lower overhead, and they only ever get loaded once, no
matter how many times you load them.
 
If you're using the ModuleLoader API, keep in mind that
you're losing about half the functionality of the module system.  I will
assume that you are, because otherwise it would be obvious where to
expose methods.  You might want to play around with the lower level
ModuleManager API just to get a hang of what's going on - ModuleLoader
is a pretty thin veneer over the lower API.
 
Basically, what you want to do is to have your module
implement an interface, say IModuleWhatever.
 
Have your application implement another interface, say
IShellWhatever.
 
Now, add an event handler in the shell application such
that when the module is loaded, you get called back.
 
The ModuleLoader's "child" property will be an instance
of your module class.  You can cast it to the interface inside the shell
application, and then do something like:
 

IModuleWhatever(moduleLoader.child).setupStuff(IShellWhatever(app))
 
-rg




From: flexcoders@yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
 ] On Behalf Of Brian Holmes
Sent: Tuesday, January 09, 2007 8:05 AM 

To: flexcoders@yahoogroups.com
 
Subject: RE: [flexcoders] Re: Compiling modules






Roger,
 Would it be possible to get an example of how a
shell app could communicate or pass data to a module and vice versa. I'm
having difficulty understanding of how to expose methods on both sides
that allow for interoperability. What I'd like to do is to load  user
data in the shell application and then add modules at runtime as needed.
If they require user information then have them look to the shell for
that information so it's always in the same place.
 
And Also, I can't really see any real difference
between a module and another application except for it's extremely
tedious to debug the modules?!  Couldn't the module automatically look
for a debug version of the swf if the shell is a debug version? 
 
Thanks,
Brian
 



From: flexcoders@

[flexcoders] Re: Accessing variable inside of component from application scope (New to Flex)

2007-01-11 Thread Alex
Thanks, that did it - I had tried a Java-style cast

var ticketViewer:TicketViewer= (TicketViewer)PopUpManager.createPopUp(
this,TicketViewer, true);

which didn't work, so I gave up on that avenue :)

Cheers.
Alex

--- In flexcoders@yahoogroups.com, "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> You need to cast
> 
> var ticketViewer:TicketViewer=
TicketViewer(PopUpManager.createPopUp( this,
> TicketViewer, true));
> ticketViewer.ticketID = 2;
> 
> Peace, Mike
> 
> On 1/11/07, Alex <[EMAIL PROTECTED]> wrote:
> >
> >   Hi there,
> >
> > I have a TitleWindow component called "TicketViewer" that starts
> > with this:
> >
> > -
> > http://www.adobe.com/2006/mxml"; width="684"
> > height="556" cornerRadius="15" title="Ticket Contents"
> > borderColor="#f4f4ff" showCloseButton="true" alpha="1.0"
> > backgroundColor="#ff" close="closeTicketViewer()">
> > 
> > 

[flexcoders] Re: Caret on DataGrid, any help out there: SOLVED

2007-01-11 Thread patricklemiuex
I had an item alpha=0 on top with a textfield... Wow, the stupidest
thing in the world...



--- In flexcoders@yahoogroups.com, "patricklemiuex" <[EMAIL PROTECTED]>
wrote:
>
> I can't seem to figure out how to make the caret not show up on a
> datagrid... this one is driving me a little nuts, because it's the
> last issue with my project, why doesn't this work... any help out
> there on this one.  
> 
> Why does making the textbox selectable="false" not handle this one.
> 
> Thanks,
> Patrick
> 
>  dataProvider="{newestAC}" itemClick="itemClickEvent(event);" 
> width="200" height="145" top="8" left="7"  verticalScrollPolicy="off">
>   
>editable="false"
> headerRenderer="{newestHeaderRenderer}">
>   
>   
>   
>selectable="false" truncateToFit="true" width="190" text="{data.poll}"/>
>   
>   
>   
> 
>   
>   
>




RE: [flexcoders] TextArea Scrollbar doesn't update onMouseWheel

2007-01-11 Thread Tom Lee
Just wanted to give this a bump - anybody else encountered this?

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Lee
Sent: Monday, January 08, 2007 6:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TextArea Scrollbar doesn't update onMouseWheel

 

Hi guys,

 

Just wondering if any of you have found a workaround to update the thumb
position of a TextArea's Scrollbar when the onMouseWheel event is fired.  It
doesn't seem to update on its own (I happen to think it should) and when you
click the thumb after using your mouse wheel, the TextArea's position resets
to match the thumb position.  Thoughts?

 

-tom

 



Re: [flexcoders] Re: Bah! History manage THIS mother f.....!

2007-01-11 Thread Shannon Hicks
I've had this problem long before 2.0.1, with both the original FP9 and 
the updated FP9, standard and debug versions.


Shan

Chris Luebcke wrote:


Me too--in my case I get it right when my application loads (and the
opening screen is very simple, just a control bar and a viewstack with
a panel in it). It's intermittent, too; seems to go away for a while
after restarts, but inevitably comes back again. This definitely
started showing up with 2.0.1.

- Chris

--- In flexcoders@yahoogroups.com 
, Shannon Hicks <[EMAIL PROTECTED]> wrote:

>
> I have this problem, but only on one computer out of 4. It happens
when,
> on that computer, I have more than one Flex app open at a time. It
> doesn't matter if I run the debugging plugin or the production
plugin, I
> have the same problem. The production plugin, of course, doesn't throw
> an error, but it stalls at the same point, so I have to assume it's the
> same error.
>
> Shan
>
> Mikey wrote:
> >
> > Howdy all,
> >
> > Sorry to start my first/second post off on a bad note but it's
warrented.
> >
> > Let's start with the error:
> > *ArgumentError: Error #2082: Connect failed because the object is
> > already connected.
> > at flash.net::LocalConnection/connect()
> > at mx.managers::HistoryManagerImpl$iinit()
> > at mx.managers::HistoryManagerImpl$/getInstance()
> > at mx.core::Singleton$/getInstance()
> > at mx.managers::HistoryManager$/get ::impl()
> > at mx.managers::HistoryManager$/register()
> > at mx.containers::Accordion/::addedHandler()
> > at flash.display::DisplayObjectContainer/addChildAt()
> > at
> >
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$addChildAt 
()

> > at mx.core::Container/addChildAt()
> > at mx.core::Container/addChild()
> > at mx.core::Container/createComponentFromDescriptor()
> > at mx.core::Container/createComponentsFromDescriptors()
> > at mx.core::Container/mx.core:Container::createChildren()
> > at mx.core::UIComponent/initialize()
> > at mx.core::Container/initialize()
> > at mvc.view::LeftMenuView/initialize()
> > at
> >
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded 
()

> > at
> >
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded 
()

> > at mx.core::Container/addChildAt()
> > at mx.core::Container/addChild()
> > at mx.core::Container/createComponentFromDescriptor()
> > at mx.core::Container/createComponentsFromDescriptors()
> > at mx.core::Container/mx.core:Container::createChildren()
> > at mx.core::UIComponent/initialize()
> > at mx.core::Container/initialize()
> > at
> >
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded 
()

> > at
> >
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded 
()

> > at mx.core::Container/addChildAt()
> > at mx.core::Container/addChild()
> > at mx.core::Container/createComponentFromDescriptor()
> > at mx.core::Container/createComponentsFromDescriptors()
> > at mx.containers::ViewStack/::instantiateSelectedChild()
> > at
mx.containers::ViewStack/mx.containers:ViewStack::commitProperties()
> > at mx.core::UIComponent/validateProperties()
> > at mx.managers::LayoutManager/::validateProperties()
> > at mx.managers::LayoutManager/::doPhasedInstantiation()
> > at Function/http://adobe.com/AS3/2006/builtin::apply 
()

> > at mx.core::UIComponent/::callLaterDispatcher2()
> > at mx.core::UIComponent/::callLaterDispatcher()*
> > 
> >
> > I've looked this error up at Adobe with no further info. It happens
> > when an accordian/tab manager gets ctrated. It's happened a few times
> > on a few different projects. It's obviously something I'm doing
(which
> > is hard to grasp as I like all of you write perfect code) as it
> > happens when I've added a fair amount of code. I figuerd it was a bug
> > but now I'm using 2.0.1 so no go.
> >
> > Any ideas? Maybe even some pointless mildly amusing rambling to make
> > me feel better would be good.
> >
> >
>

 




Re: [flexcoders] Re: Compiling modules

2007-01-11 Thread Fabio Terracini

Hello Roger, you told below that they only ever get loaded once. This
"loaded" mean loaded in memory or loaded by transferring over the wire?

I've made tests between Modules and SWFLoader, specifically about memory
consumption. In one of them, I called loadModule() and unloadModule()
several times (loading the same module, of course), and the memory only
increases! I think this is the expected (although not the willed) behavior
(as is in the SWFLoader) since Flash Player can't really kill (and free the
memory) a DisplayObject. It would be a hard work to remove all the
references of the loaded application's objects (without talking about the
Flex framework per se) to elect they to GC.

Thanks
Fabio Terracini


On 1/9/07, Roger Gonzalez <[EMAIL PROTECTED]> wrote:


 The main difference between modules and applications is that modules have
lower overhead, and they only ever get loaded once, no matter how many times
you load them.

If you're using the ModuleLoader API, keep in mind that you're losing
about half the functionality of the module system.  I will assume that you
are, because otherwise it would be obvious where to expose methods.  You
might want to play around with the lower level ModuleManager API just to get
a hang of what's going on - ModuleLoader is a pretty thin veneer over the
lower API.

Basically, what you want to do is to have your module implement an
interface, say IModuleWhatever.

Have your application implement another interface, say IShellWhatever.

Now, add an event handler in the shell application such that when the
module is loaded, you get called back.

The ModuleLoader's "child" property will be an instance of your module
class.  You can cast it to the interface inside the shell application, and
then do something like:

IModuleWhatever(moduleLoader.child).setupStuff(IShellWhatever(app))

-rg

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Brian Holmes
*Sent:* Tuesday, January 09, 2007 8:05 AM
*To:* flexcoders@yahoogroups.com
*Subject:* RE: [flexcoders] Re: Compiling modules

  Roger,
 Would it be possible to get an example of how a shell app could
communicate or pass data to a module and vice versa. I'm  having difficulty
understanding of how to expose methods on both sides that allow for
interoperability. What I'd like to do is to load  user data in the shell
application and then add modules at runtime as needed. If they require user
information then have them look to the shell for that information so it's
always in the same place.

And Also, I can't really see any real difference between a module and
another application except for it's extremely tedious to debug the
modules?!  Couldn't the module automatically look for a debug version of the
swf if the shell is a debug version?

Thanks,
Brian


 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Roger Gonzalez
*Sent:* Monday, January 08, 2007 2:35 PM
*To:* flexcoders@yahoogroups.com
*Subject:* RE: [flexcoders] Re: Compiling modules

 I can't think of any reason why you would want to do this.

Modules are class factories, not instances.

You will create an instance of the class baked into the module, and then
the application can pass those parameters to the instance.

-rg

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *John Kirby
*Sent:* Monday, January 08, 2007 12:32 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Re: Compiling modules

 Thanks for the examples.

Question... if you are passing parameters to a module I assume your url
syntax is the same as a SWFLoader (myswf.swf?foo=bar) ... but module has
no parameter property?  How do access passed parameters to a module?

phillips1021 said the following:

 See:

http://www.brucephillips.name/blog/index.cfm/2007/1/8/Example-Of-Using-Modules-In-Flex-201

for a simple example.


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

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

 



Re: [flexcoders] Flex Builder no longer compiles

2007-01-11 Thread Clint Modien

What's the error?

On 1/11/07, dustyjewett <[EMAIL PROTECTED]> wrote:


  I made a variable of a class private instead of public, then attempted
to sort an ArrayCollection based on this variable. Now, no matter what
changes I make to the code, I get the same output in the console, and
the same error!

First I changed the variable to public, got the same error, I started
adding trace statements to figure out what was wrong, but they stopped
tracing. I then commented out the sort/refresh lines and anything
referring to the cursor... The debugger still points at a commented line.

Finally, I deleted the lines from the file completely, the debugger
points at the same line number with the same error, which is now a
completely different line.

I've delete the bin directory, I've "Clean..."ed up. I've even
attempted to run the code on my laptop (which unfortunately already
had the buggy code on it, thanks to Version Control)...

I've uninstalled FB, installed Eclipse with the FB Plugin, uninstalled
the SDK... I've done everything I can think of, but I can't get the
files to compile.

Has anyone had this problem? What can I do other than try to build the
app from the ground up?

 



Re: [flexcoders] Accessing variable inside of component from application scope (New to Flex)

2007-01-11 Thread Michael Schmalle

Hi,

You need to cast

var ticketViewer:TicketViewer= TicketViewer(PopUpManager.createPopUp( this,
TicketViewer, true));
ticketViewer.ticketID = 2;

Peace, Mike

On 1/11/07, Alex <[EMAIL PROTECTED]> wrote:


  Hi there,

I have a TitleWindow component called "TicketViewer" that starts
with this:

-
http://www.adobe.com/2006/mxml"; width="684"
height="556" cornerRadius="15" title="Ticket Contents"
borderColor="#f4f4ff" showCloseButton="true" alpha="1.0"
backgroundColor="#ff" close="closeTicketViewer()">


[flexcoders] Accessing variable inside of component from application scope (New to Flex)

2007-01-11 Thread Alex
Hi there,

  I have a TitleWindow component called "TicketViewer" that starts
with this:

-
http://www.adobe.com/2006/mxml"; width="684"
height="556" cornerRadius="15" title="Ticket Contents"
borderColor="#f4f4ff" showCloseButton="true" alpha="1.0"
backgroundColor="#ff" close="closeTicketViewer()">


Re: [flexcoders] Re: Flex2 - Where to start

2007-01-11 Thread Tom Ortega

Like it was mentioned earlier, we at the Silicon Valley Flex User Group give
free training and cast it on the net.  Our third session is tonight (PST
time zone)  Details can be found at http://silvafug.org .

I hope this can help you.

Thanks,
Tom
User Group Manager
Silicon Valley Flex User Group
http://www.silvafug.org

On 1/8/07, Muzak <[EMAIL PROTECTED]> wrote:


  http://www.adobe.com/training/

Should have a list with training centers somewhere, worldwide.

regards,
Muzak

- Original Message -
From: "oneproofdk" <[EMAIL PROTECTED] >
To: >
Sent: Tuesday, January 09, 2007 7:25 AM
Subject: [flexcoders] Re: Flex2 - Where to start

Hi Dan

Right on the money there [:-s] - Who want's to go from guru to noob -
not me.

Well this time the decision is made, I WILL learn OOP with AS3 - am
looking for some Flex2 training courses in Europe, pref. GB so the
training will be in English. Not sure my employer are willing to pay for
a trip to the states right now. Other than that, it's just a matter of
putting the right effort into it, (I hope), lot's of material out there.

Thanks for your help on this topic.

Cheers,
Mark

 



[flexcoders] making an entire hbox item linkable?

2007-01-11 Thread kasey.mccurdy
im creating a component in actionscript with an HBox inside it, and i
was wondering if anyone has any advice as to the best way to make the
entire Hbox (and all its children) linkable...(i want it to go to the
url specified when the user clicks the entire item)

any help is much appreciated



[flexcoders] Datagrid Tabbing breaks when itemrenderer is added to one cell

2007-01-11 Thread jfournet
When I add a custom itemrenderer to a cell of my datagrid, the tabbing 
order of my screen is broken, i.e., the cell with the itemrenderer is 
skipped over in the tab order.  Any ideas on how to fix this?



RE: [flexcoders] Accessing the main class

2007-01-11 Thread Peter Farland
Use static functions.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ACasualObserver
Sent: Thursday, January 11, 2007 5:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Accessing the main class



I am creating an AS3 application. The mail file has some thing like
this:

package {
import ...;
public class myClass extends Sprite
{
public function svg()
{
}
}
}

I also have other classes that will be created by myClass or other
classes. Is there anyway that I can calls methods in myClass? In other
word, is myClass instance globally available?

Thanks



 


[flexcoders] Caret on DataGrid, any help out tehre

2007-01-11 Thread patricklemiuex
I can't seem to figure out how to make the caret not show up on a
datagrid... this one is driving me a little nuts, because it's the
last issue with my project, why doesn't this work... any help out
there on this one.  

Why does making the textbox selectable="false" not handle this one.

Thanks,
Patrick

















[flexcoders] Accessing the main class

2007-01-11 Thread ACasualObserver
I am creating an AS3 application. The mail file has some thing like this:

package {
import ...;
public class myClass extends Sprite
{
public function svg()
{
}
}
}

I also have other classes that will be created by myClass or other
classes. Is there anyway that I can calls methods in myClass? In other
word, is myClass instance globally available?

Thanks





Re: [flexcoders] Slow building after 2.0.1 update

2007-01-11 Thread Daniel Wabyick

I have also experienced a slow-down, as well as new instability when the 
same source code is opened in multiple projects. It seems to help if you 
close one of the projects you are working on. 

In general, I have found the 2.0.1 IDE to be less stable than 2.0, and I 
am consdering switching back to 2.0, and just using the 2.0.1 framework 
code.


Allen Riddle wrote:
>
> Has anybody experienced a massive slowdown in building in the IDE? I 
> have a data services project that compiles on the server, but when it 
> builds in FlexBuilder, it has slowed down a ton. Anybody know why? Thanks.
>
>  
>
> **Allen Riddle**
>
> Sofware Development
>
> x3217
>
>  
>
>  



Re: [flexcoders] flashlog.txt Intel Mac?

2007-01-11 Thread Alisdair Mills

i put 2 and 2 together and made 5 ;)

On 11 Jan 2007, at 21:11, Muzak wrote:


Where did you hear/read that mm.cfg is no longer required?

According to the (updated) docs it still is:
http://livedocs.macromedia.com/flex/201/html/logging_125_04.html

regards,
Muzak

- Original Message -
From: "Alisdair Mills" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, January 11, 2007 9:11 PM
Subject: Re: [flexcoders] flashlog.txt Intel Mac?

> works fine for me... although i think things have changed for player
> 9 no mm.cfg is required and the log file is written to -
>
> /Users/{username}/Library/Preferences/Macromedia/Flash Player/Logs/
> flashlog.txt
>
>
> On 11 Jan 2007, at 19:33, Kevin wrote:
>
>> Has anyone gotten the flash logging working on an intel mac. I have
>> tried to numerous times and I can't seem to get it to write  
anything
>> to the log file. Wondering if this is something that others have  
had

>> problems with or if this is just "user error".
>>
>> thanks, Kevin
>>
>>
>>
>>
>
>







[flexcoders] Flex Builder no longer compiles

2007-01-11 Thread dustyjewett
I made a variable of a class private instead of public, then attempted
to sort an ArrayCollection based on this variable. Now, no matter what
changes I make to the code, I get the same output in the console, and
the same error!


First I changed the variable to public, got the same error, I started
adding trace statements to figure out what was wrong, but they stopped
tracing.  I then commented out the sort/refresh lines and anything
referring to the cursor... The debugger still points at a commented line.

Finally, I deleted the lines from the file completely, the debugger
points at the same line number with the same error, which is now a
completely different line.


I've delete the bin directory, I've "Clean..."ed up. I've even
attempted to run the code on my laptop (which unfortunately already
had the buggy code on it, thanks to Version Control)... 

I've uninstalled FB, installed Eclipse with the FB Plugin, uninstalled
the SDK... I've done everything I can think of, but I can't get the
files to compile.


Has anyone had this problem? What can I do other than try to build the
app from the ground up?



Re: [flexcoders] Re: IFlexModule

2007-01-11 Thread Angus Johnson

Hi Greg,

Hmmm... I registered alltogo.com last weekend. It was de-registered in
December. did check its previous content which was the usual directory
advertising you see on parked domains.. It must be on someone's 'beware'
list. Another lesson a more thorough background check.

What tells you its content categorization?

In the meantime you could try accessing it through a proxy such as
anonymouse.org.

Thanks for letting me know I'll investigate further.

Angus


On 12/01/07, Tom Sobut <[EMAIL PROTECTED]> wrote:


  > So drag the foo folder from the old to the new and then import using
> the Existing Project option?

Yes, that's it.

--- In flexcoders@yahoogroups.com , "Greg
Morphis" <[EMAIL PROTECTED]> wrote:
>
> What do you mean by dragging your existing project?
> You mean the folder from the old workspace?
> for example, the app I'm working on is called foo, in a folder called
> foo, in my old workspace "C:\documents and
> settings\goo\workspace\flexdev\"
> My new workspace is
> "C:\eclipseworkspace\flexdev\"
>
> So drag the foo folder from the old to the new and then import using
> the Existing Project option?
>
> Thanks!.. mean while I'll check out the framework option
>
> Um, is there a mirror or some other way to hit that site?
> I'm getting denied...
> Your request for
> http://allthego.com/index.cfm/2007/1/11/Flex-Framework-Location was
> denied because of its content categorization: "Sex;Adult Material"
>
>
>
>
> On 1/10/07, Tom Sobut <[EMAIL PROTECTED]> wrote:
> > Solved my problem.
> >
> > Searching through this list, I found others having the same problem.
For the original
> > solution, read message #60420 from Paul Evans. Thanks Paul.
> >
> > The problem is caused by re-using the workspace from the Beta version.
> >
> > Here's how I fixed mine:
> >
> > Create a new folder for your Flex projects.
> >
> > Go into Flex 2.0.1, under the File menu, choose Switch Workspace.
> >
> > Aim it at the new folder.
> >
> > Drag the project folders from the beta projects folder into your new
projects folder.
> >
> > Under the File menu, choose Import for each of your projects.
> >
> > You should be good to go.
> >
> > Tom
> >
> >
> > --- In flexcoders@yahoogroups.com , "Tom
Sobut"  wrote:
> > >
> > > Hi Jason,
> > >
> > > I checked all three .as files you specified. All are there and are
dated at the time of
my
> > > 2.0.1 install.
> > >
> > > I had installed the full Flex version, so I've not used Eclipse
directly, although I do
have
> > 3.2
> > > installed from last June.
> > >
> > > Tom
> > >
> > > --- In flexcoders@yahoogroups.com ,
"Jason Hawryluk"  wrote:
> > > >
> > > > Could you if verify that the files exist in your application
directory (not
> > > > sure with mac)
> > > >
> > > > Yourpath\Flex Builder 2\Flex SDK 2\frameworks\source\mx\core"
> > > >
> > > > FlexModuleFactory.as
> > > > IFlexModuleFactory.as
> > > > IFlexModule.as
> > > >
> > > > And are you both trying this with eclipse 3.2? I'm thinking that
if you both
> > > > upgraded to the 3.2 even if you uninstall there may be the java
files that
> > > > are not compatible with flex on mac just a guess of course.
> > > >
> > > > I really have no idea here just throwing out thoughts as they come
to me to
> > > > try and pin point a direction, please bear with me.
> > > >
> > > > Jason
> > > >
> > > > -Message d'origine-
> > > > De : flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com ]De la
> > > > part de Tom Sobut
> > > > Envoyé : mercredi 10 janvier 2007 20:31
> > > > À : flexcoders@yahoogroups.com 
> > > > Objet : [flexcoders] Re: IFlexModule
> > > >
> > > >
> > > > My compile errors looked a bit different. I created a new project
folder
> > > > named Test201.
> > > > Added an HBox and a Button. Compiled. Here are my compile errors:
> > > >
> > > > Severity and Description Path Resource Location Creation Time
> > > > Id
> > > > 1144: Interface method create in namespace
mx.core:IFlexModuleFactory is
> > > > implemented
> > > > with an incompatible signature in class
_Test201_mx_managers_SystemManager.
> > > > Test201 line 7 1168442502096 13267
> > > > 1144: Interface method create in namespace
mx.core:IFlexModuleFactory is
> > > > implemented
> > > > with an incompatible signature in class
_Test201_mx_managers_SystemManager.
> > > > Test201 line 7 1168442502093 13266
> > > > 1023: Incompatible override. Test201 line 11 1168442502088
> > > > 13265
> > > > --- In flexcoders@yahoogroups.com ,
"Greg Morphis"  wrote:
> > > > >
> > > > > Severity and Description Path Resource Location Creation Time
> > > > Id
> > > > > 1023: Incompatible override. aopscheduler line 11 1168453153048
> > > > 2221
> > > > > 1120: Access of undefined property IFlexModule. aopscheduler
> > > > line
> > > > > 22 1168453153048 
> > > > > 1144: Interface method create in namespace
mx.core:IFlexModuleFactory
> > > > > is implemented with an incompatible signature in class
> > > > > _index_mx_managers_SystemManager. aopscheduler line
> 

[flexcoders] Re: Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-11 Thread Jim Pickering
I have resolved this issue. I got Flex 2 working with a remote CF
server.

I learned two things:

1) services-config.xml must be configured with the domain name that you
are using, without {context-root} in the path. Here is an example:

The default is this:
http://{server.name}:{server.port}{context.root}/flex2gateway/";
class="flex.messaging.endpoints.AMFEndpoint"/> - this works when CF
Server is local.

http://www.[yourdomainhere].com/flex2gateway/";
class="flex.messaging.endpoints.AMFEndpoint"/> - this works with a
remote CF Server.

http://www.[yourdomainhere].com{context.root}/flex2gateway/";
class="flex.messaging.endpoints.AMFEndpoint"/> - this doesn't work with
IIS and a remote CF server.

2) When you Run your app again, and it loads into a new tab in Firefox,
it's bizarre, but it was still loading a cached version of the app. I
had to push the refresh button to get the updated file to run. I started
playing with the text I used on the button in my HelloWorld app. My
changes did not show until I refreshed it. Close the tab, Run the app
again in FB2, tab in Firefox opens automatically - it's the cached
version again, refresh it - ah there's the changes. I had so many tabs
open in my browser, the window never got closed once. Some of my config
changes never had a chance to work, because I didn't refresh after a new
tab would open. It's frustrating, but now that I know, I can deal with
it.

Thanks to everyone for offering suggestions. I appreciate the responses.

Happy coding,

Jim


--- In flexcoders@yahoogroups.com, "Stefan Richter" <[EMAIL PROTECTED]> wrote:
>
> I had similar trouble:
> http://www.flashcomguru.com/index.cfm/2006/11/11/flex2remoting
>
> Read all the comments before you try anything.
>
> If I remember correctly I managed to use a remote CF box *without*
having to
> use any services-config file whatsoever (which is what I wanted to
do).
> I almost lost my mind back then... :-) Endpoint, config files,
> destinations... hh how complicated does this look when you glance
at the
> docs?
>
> Stefan
>
>
>
>
>   _
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Peter Farland
> Sent: 11 January 2007 19:01
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Anyone Using a Remote CF Server with Flex 2,
> Remoting?
>
>
>
> You can avoid that restriction if you use a /crossdomain.xml file that
> is hosted on the server you are remoting to and allows the domain from
> which your swf is hosted to contact it.
>
> 
>
> From: [EMAIL PROTECTED] 
ups.com
> [mailto:[EMAIL PROTECTED] 
ups.com]
> On
> Behalf Of Douglas Knudsen
> Sent: Thursday, January 11, 2007 1:32 PM
> To: [EMAIL PROTECTED]  ups.com
> Subject: Re: [flexcoders] Anyone Using a Remote CF Server with Flex 2,
> Remoting?
>
> AFAIK, the swf has to be served from the same box you remote to.
>
> DK
>



[flexcoders] Re: Bah! History manage THIS mother f.....!

2007-01-11 Thread Chris Luebcke
Me too--in my case I get it right when my application loads (and the
opening screen is very simple, just a control bar and a viewstack with
a panel in it). It's intermittent, too; seems to go away for a while
after restarts, but inevitably comes back again. This definitely
started showing up with 2.0.1.

- Chris

--- In flexcoders@yahoogroups.com, Shannon Hicks <[EMAIL PROTECTED]> wrote:
>
> I have this problem, but only on one computer out of 4. It happens
when, 
> on that computer, I have more than one Flex app open at a time. It 
> doesn't matter if I run the debugging plugin or the production
plugin, I 
> have the same problem. The production plugin, of course, doesn't throw 
> an error, but it stalls at the same point, so I have to assume it's the 
> same error.
> 
> Shan
> 
> Mikey wrote:
> >
> > Howdy all,
> >
> > Sorry to start my first/second post off on a bad note but it's
warrented.
> >
> > Let's start with the error:
> > *ArgumentError: Error #2082: Connect failed because the object is 
> > already connected.
> > at flash.net::LocalConnection/connect()
> > at mx.managers::HistoryManagerImpl$iinit()
> > at mx.managers::HistoryManagerImpl$/getInstance()
> > at mx.core::Singleton$/getInstance()
> > at mx.managers::HistoryManager$/get ::impl()
> > at mx.managers::HistoryManager$/register()
> > at mx.containers::Accordion/::addedHandler()
> > at flash.display::DisplayObjectContainer/addChildAt()
> > at 
> >
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$addChildAt()
> > at mx.core::Container/addChildAt()
> > at mx.core::Container/addChild()
> > at mx.core::Container/createComponentFromDescriptor()
> > at mx.core::Container/createComponentsFromDescriptors()
> > at mx.core::Container/mx.core:Container::createChildren()
> > at mx.core::UIComponent/initialize()
> > at mx.core::Container/initialize()
> > at mvc.view::LeftMenuView/initialize()
> > at 
> >
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()
> > at 
> >
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()
> > at mx.core::Container/addChildAt()
> > at mx.core::Container/addChild()
> > at mx.core::Container/createComponentFromDescriptor()
> > at mx.core::Container/createComponentsFromDescriptors()
> > at mx.core::Container/mx.core:Container::createChildren()
> > at mx.core::UIComponent/initialize()
> > at mx.core::Container/initialize()
> > at 
> >
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()
> > at 
> >
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()
> > at mx.core::Container/addChildAt()
> > at mx.core::Container/addChild()
> > at mx.core::Container/createComponentFromDescriptor()
> > at mx.core::Container/createComponentsFromDescriptors()
> > at mx.containers::ViewStack/::instantiateSelectedChild()
> > at
mx.containers::ViewStack/mx.containers:ViewStack::commitProperties()
> > at mx.core::UIComponent/validateProperties()
> > at mx.managers::LayoutManager/::validateProperties()
> > at mx.managers::LayoutManager/::doPhasedInstantiation()
> > at Function/http://adobe.com/AS3/2006/builtin::apply()
> > at mx.core::UIComponent/::callLaterDispatcher2()
> > at mx.core::UIComponent/::callLaterDispatcher()*
> > 
> >
> > I've looked this error up at Adobe with no further info. It happens 
> > when an accordian/tab manager gets ctrated. It's happened a few times 
> > on a few different projects. It's obviously something I'm doing
(which 
> > is hard to grasp as I like all of you write perfect code) as it 
> > happens when I've added a fair amount of code. I figuerd it was a bug 
> > but now I'm using 2.0.1 so no go.
> >
> > Any ideas? Maybe even some pointless mildly amusing rambling to make 
> > me feel better would be good.
> >
> >
>




[flexcoders] TextInput change evevnt and databinding: Is this a bug?

2007-01-11 Thread David Harris
Hi,

Has any else found this?

The TextInput has a "change" event, which according to the docs
"Dispatched when text in the TextInput control changes through user
input or data binding. This event does not occur if you use
ActionScript code to change the text."

The bit that seems broken is that it is NOT dispatched when databinding is used.

Try running the below app and see what you get:

The second TextInput has a change event that traces "I Changed", and
from my understanding of the docs it should fire when TextInput "one"
is updated, as a biniding is used between the 2 TextInputs.

With my testing it is only tracing out then up enter text in to the
"two" and on the "one"
---


http://www.adobe.com/2006/mxml"; layout="absolute">







---

I am on Flex 2.0.1...

Regards,

David


PS: why is the datatype "int" lower case, as most (all) others start
with a capital?
EG: public var someInt:int = new int(); public var someString:Sting =
new String();


Re: [flexcoders] flashlog.txt Intel Mac?

2007-01-11 Thread Muzak
Where did you hear/read that mm.cfg is no longer required?

According to the (updated) docs it still is:
http://livedocs.macromedia.com/flex/201/html/logging_125_04.html

regards,
Muzak

- Original Message - 
From: "Alisdair Mills" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, January 11, 2007 9:11 PM
Subject: Re: [flexcoders] flashlog.txt Intel Mac?


> works fine for me... although i think things have changed for player
> 9 no mm.cfg is required and the log file is written to -
>
> /Users/{username}/Library/Preferences/Macromedia/Flash Player/Logs/
> flashlog.txt
>
>
> On 11 Jan 2007, at 19:33, Kevin wrote:
>
>> Has anyone gotten the flash logging working on an intel mac. I have
>> tried to numerous times and I can't seem to get it to write anything
>> to the log file. Wondering if this is something that others have had
>> problems with or if this is just "user error".
>>
>> thanks, Kevin
>>
>>
>>
>>
>
> 




Re: [flexcoders] Re: datagrid error w/2.01

2007-01-11 Thread Paul Hastings
> > I ended up going back to 2.0 since I didn't get those errors at all.
> > After going back to 2.0 I haven't had the issue once. I think for now
> > you are better off going back to 2.0.

seem to have found a workaround for our case, the first column in the
DataGrid was hidden, moving the visible column into first place in the
columns definition seems to have fixed it. but still looks like a bug.


[flexcoders] Slow building after 2.0.1 update

2007-01-11 Thread Allen Riddle
Has anybody experienced a massive slowdown in building in the IDE? I
have a data services project that compiles on the server, but when it
builds in FlexBuilder, it has slowed down a ton. Anybody know why?
Thanks.

 

Allen Riddle

Sofware Development

x3217

 



RE: [flexcoders] Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-11 Thread Stefan Richter
I had similar trouble:
http://www.flashcomguru.com/index.cfm/2006/11/11/flex2remoting
 
Read all the comments before you try anything.
 
If I remember correctly I managed to use a remote CF box *without* having to
use any services-config file whatsoever (which is what I wanted to do).
I almost lost my mind back then... :-) Endpoint, config files,
destinations... hh how complicated does this look when you glance at the
docs?
 
Stefan
 
 


  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Farland
Sent: 11 January 2007 19:01
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Anyone Using a Remote CF Server with Flex 2,
Remoting?



You can avoid that restriction if you use a /crossdomain.xml file that
is hosted on the server you are remoting to and allows the domain from
which your swf is hosted to contact it.



From: [EMAIL PROTECTED]  ups.com
[mailto:[EMAIL PROTECTED]  ups.com]
On
Behalf Of Douglas Knudsen
Sent: Thursday, January 11, 2007 1:32 PM
To: [EMAIL PROTECTED]  ups.com
Subject: Re: [flexcoders] Anyone Using a Remote CF Server with Flex 2,
Remoting?

AFAIK, the swf has to be served from the same box you remote to.

DK


 



[flexcoders] LinkBar - Programmatically selection

2007-01-11 Thread Satish
Hi All,
Is there any way to select LinkBar index programmatically like it is 
there in TabNavigator.selectedIndex ??

Regards,
Satish



[flexcoders] Re: Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-11 Thread Jim Pickering
Peter - thanks for the questions -

Yes I have a crossdomain.xml in the webroot. Here's what is in it:

http://www.adobe.com/dtds/cross-domain-policy.dtd";>




I'm a bit perplexed by the context-root requirements. Can you explain
to me what context-root is all about? I read the technote about it,
but I'm not getting that error - so I didn't think it applied to any
misconfiguration I might have.

One thing I can tell you that has me confused me a bit, it when using
the Multiserver option in Coldfusion, my webroot contains a CFIDE
directory and is completely separate from everything in the JRUN4
folder. Yet the valid root folder when configuring the Flex Project
leads me to: "J:\servers\cfusion\cfusion-ear\cfusion-war" So when you
speak of "context-root" are we talking about what's in the cfusion-war
folder or in my webroot?

My HelloFromColdfusion.html file is in my webroot along with the .swf
and everything else FlexBuilder2 put into the bin directory. The
Output folder for the Flex Project was pointed at my
wwwroot/flex2btb/flex directory. Maybe you can tell me if I need the
context root setting or not?

Thanks,
Jim

--- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]> wrote:
>
> 1. Do you have a crossdomain.xml file in the webroot of the server
> hosting the flex2gateway endpoint allowing access for SWFs loaded in
> other domains?
>  
> 2. I think you are relying on the default context root for your cold
> fusion deployment, if so, try removing the {context-root} token out of
> your channel-definition in services-config.xml (or alternatively provide
> a value for the command line args -context-root "" )
>  
>  
>  
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Jim Pickering
> Sent: Thursday, January 11, 2007 12:12 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Anyone Using a Remote CF Server with Flex 2,
> Remoting?
> 
> 
> 
> [RPC Fault faultString="[MessagingError message='Unknown
> destination'Coldfusion'.']" faultCode="InvokeFailed"
> faultDetail="Couldn'testablish a connection to 'Coldfusion'"]
> 
> Everything is default. CFMX 7.0.2 Multiserver on IIS DevNet Edition for
> Development on one machine. FlexBuilder2 on my workstation machine. A
> drive mapping to the webroot and to the JRun4 folder. My Flex Project is
> configured and successfully validated to the root folder at 
> J:\servers\cfusion\cfusion-ear\cfusion-war.
> 
> Compiler in FlexBuilder 2 is comfigured with this: -services
> "J:\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\flex\services-config
> \
> .xml" -locale en_US
> 
> This is as basic as it gets - I am trying to get a HelloWorld app (from
> lynda.com actually) working with Flex 2 and CF via Remoting on a
> remoteCF Development Server. Can this work or is there a bug with Flex
> 2which requires that CF be loaded locally for development?
> 
> If anyone is successfully developing Flex 2 apps with a remote
> Coldfusion server, I would appreciate it if you could walk me through
> the setup steps. Below are more details of what I've done so far.
> 
> -
> 
> I have taken the time to read past entries on this topic, but the issues
> were slightly different than mine and didn't offer enough of a solution
> to help resolve my issue.
> 
> In my HelloFromColdfusion.mxml file is the following code:
> 
> 
> http://www.adobe.com/2006/mxml
>  "
> layout="vertical">
> 
>  destination="Coldfusion"
> source="flex2btb.cfc.MyService"/>
> 
> 
> 
> 
> 
> 
> In a subdirectory in the webroot called flex2btb, in the flex directory
> is MyService.cfc. I have the crossdomain.xml file in my webroot also.
> The code is very basic:
> 
> 
> 
> 
> 
> 
> 
> 
> BTW, I get the blank white screen when I browse to
> http://www.[mydomainhere].com/flex2gateway.
> 
> I get this error when I run the app at 
> http://www.[mydomainhere].com/flex2btb/flex/HelloFromColdFusion.html:
> 
> [RPC Fault faultString="[MessagingError message='Unknown destination
> 'Coldfusion'.']" faultCode="InvokeFailed" faultDetail="Couldn't
> establish a connection to 'Coldfusion'"]
> at
> mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invo
> \
> ke  ()
> at
> mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/intern
> \
> al::invoke  ()
> at mx.rpc.remoting::Operation/send()
> at Function/http://adobe.com/AS3/2006/builtin::apply
>  ()
> at mx.rpc.remoting.mxml::Operation/send()
> at Function/http://adobe.com/AS3/2006/builtin::apply
>  ()
> at
> mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/pro
> \
> xy::callProperty
>  ()
> at HelloFromColdFusion/___Button1_click(

Re: [flexcoders] Re: Network Monitor in Flex Builder

2007-01-11 Thread greg h

Hi Heidi,

Since it came up on the list ...

I do hope that in future releases the tooling can again include a network
monitor.  When doing RIA in Flash, I found the Flash Netconnection Debugger
invaluable.

Mrinal,

There is a thread here regarding what other people are currently using:
http://www.jessewarden.com/archives/2007/01/debugging_tools.html

hth,

g

On 1/10/07, hbwvt <[EMAIL PROTECTED]> wrote:


Hi Mrinal,

The article you found is for Flex Builder 1.0 and 1.5 which was
built on top of Dreamweaver. Flex Builder 2.0 and 2.0.1 are brand
new and are built on top of Eclipse. The Network Monitor is not a
feature of Flex Builder 2.0 or 2.0.1.

Some people have mentioned that they use ServiceCapture
(http://kevinlangdon.com/serviceCapture/) for this kind of thing.

Hope that helps,
-Heidi
Flex Builder Dev Manager


--- In flexcoders@yahoogroups.com, "mrinal.wadhwa"
<[EMAIL PROTECTED]> wrote:
>
> Hmm .. no replies ... I tried my best to find it. I think I am
looking
> at some old documentation . guys at Adobe .. what is this page
all
> about
>
> http://www.adobe.com/devnet/flex/articles/flexbuilder_ws_06.html
>
> If it is updated, could someone please help me out with this, if
it is
> not ... what other methods could I employ to look at the soap
message
> going out and coming in.
>
> Someone please help !!!
>
> Thank you
> Mrinal



Re: [flexcoders] How do you load library symbols without embedding via SWFLoader?

2007-01-11 Thread Rick Schmitty

Just to follow up for anyone else trying this, I was able to reference
things via SWFLoader dynamically.  I had to drag the movie clip to the stage
and give it an instance name "ball_instance"  then in Flex I did
swfLoader.content.root["ball_instance"]["label_txt"].text="hello dynamic
world!";

I didnt have any success with getDefinitionByName with AS3Preview published
swfs.

Tried "ball_mc" "ball_instance" "ball_document_classname" and some
combinations of pathing to those "swfLoader.content.root.ball_mc" etc


On 1/4/07, Rick Schmitty <[EMAIL PROTECTED]> wrote:


Thanks Roger,

I was exporting as an AS3 SWF, I used these options on the symbol, is this
correct? (see attached)  Is auto generated ok or should I write my own
generic class definition for each object in the library?


Thanks again

On 1/2/07, Roger Gonzalez <[EMAIL PROTECTED]> wrote:
>
>Symbols don't exist in AS3, there are only classes.
> If you exported the SWF from Flash as an AS3 SWF, you should be able to
> use getDefinitionByName to find the class instance in the dynamically loaded
> SWF.
>
> The compiler knows how to reference old-style Flash symbols at compile
> time (via Embed).  However, this is only for older SWFs.  You can't
> reference an AS3 class this way.
>
> -rg
>
>  --
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Rick Schmitty
> *Sent:* Friday, December 29, 2006 11:50 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] How do you load library symbols without
> embedding via SWFLoader?
>
>  Hi all, trying to load some assets from a Flash AS3Preview project but
> I can't figure out how to specify the symbol when loading dynamically
>
> Here's the flex example
>
> 
> http://www.adobe.com/2006/mxml";>
> 
> 
> 
>
> 
> 
>
> 
>
>
> 
>
> Ball.swf is a simple ball contained in ball_mc in the library, and it
> has a text field in that object of the name label_txt
>
> How do I work in the symbol=xxx aspect of the embed into the SWFLoader
> that is loading dynamically? This library could potentially be very
> large and I'd rather not embed the whole thing up front
>
>  
>






Re: [flexcoders] flashlog.txt Intel Mac?

2007-01-11 Thread Alisdair Mills
works fine for me... although i think things have changed for player  
9 no mm.cfg is required and the log file is written to -


/Users/{username}/Library/Preferences/Macromedia/Flash Player/Logs/ 
flashlog.txt



On 11 Jan 2007, at 19:33, Kevin wrote:


Has anyone gotten the flash logging working on an intel mac. I have
tried to numerous times and I can't seem to get it to write anything
to the log file. Wondering if this is something that others have had
problems with or if this is just "user error".

thanks, Kevin








[flexcoders] Re: Datagrid Scrolling -- Is it really this complicated?

2007-01-11 Thread phipzkillah
I tried that before my last post...doesn't help.

--- In flexcoders@yahoogroups.com, "Jason Hawryluk" <[EMAIL PROTECTED]> wrote:
>
> There is typically a padding around every container.. Either change
this to
> see if it helps, or set the vbox scroll policies to off.
> 
> Jason
> 
>   -Message d'origine-
>   De : flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] la
> part de phipzkillah
>   Envoyé : jeudi 11 janvier 2007 18:18
>   À : flexcoders@yahoogroups.com
>   Objet : [flexcoders] Re: Datagrid Scrolling -- Is it really this
> complicated?
> 
> 
>   Setting the horizontal scroll policy to auto produces 2 scroll bars.
>   My datagrid is in a vbox (width=100% to fill the panel).  My
>   datagrid's width is 100% to fill the vbox.
> 
>   When you set horizontal scroll policy to auto it creates a huge
>   datagrid that will no longer fit into the vbox.  So now I get a scroll
>   bar on the vbox.  To use the vertical scroll bar on the datagrid I
>   need to scroll the vbox horizontal scroll bar all the way to the
right.
> 
>   Still no fix for this problem.  Any thoughts.
> 
> 
>   This is an image with the VBOX width = 100%, with the datagrid inside
>   with a width=100%; the horizontal scroll policy is set to auto on the
>   datagrid.
> 
> 
> 
>   --- In flexcoders@yahoogroups.com, "michael_ramirez44"
>  wrote:
>   >
>   > --- In flexcoders@yahoogroups.com, "phipzkillah" pkrasko@ wrote:
>   > >
>   > >
>   > > I have a Datagrid in a panel whose size is 80% width of the screen
>   > > (panel width that is). My datagrid has 68 columns and its width is
>   > set
>   > > to 100% (to fill the panel). When the datagrid loads you can't
>   > read a
>   > > damn thing. If i set the minwidth I can read the data, but I have
>   > to
>   > > horizontally scroll all the way to the right to see the vertical
>   > scroll
>   > > bar!! SO I can't scroll down unless I scroll all the way to the
>   > > right...how is that user friendly? Seems like a poor design that
>   > the
>   > > datagrid scroll bar doesn't float ontop of the grid itself. You
>   > can see
>   > > the problem here in a snapshot ! I took - vertical scroll bar
not seen
>   > > unless you scroll all the way to the right.
>   > >
>   > > Does anyone have a solution to this problem? I don't want any
>   > scroll
>   > > bars on my panel. I simply just want to be able to scroll
>   > horizontally
>   > > and vertically on my datagrid with ease.
>   > >
>   >
>   > Set the DataGrid's horizontalScrollPolicy to "auto".
>   >
>   > dgResults.horizontalScrollPolicy = "auto";
>   >
>




[flexcoders] Re: Datagrid Scrolling -- Is it really this complicated?

2007-01-11 Thread michael_ramirez44
--- In flexcoders@yahoogroups.com, "phipzkillah" <[EMAIL PROTECTED]> wrote:
>
> Setting the horizontal scroll policy to auto produces 2 scroll bars.
> My datagrid is in a vbox (width=100% to fill the panel).  My
> datagrid's width is 100% to fill the vbox.
> 
> When you set horizontal scroll policy to auto it creates a huge
> datagrid that will no longer fit into the vbox.  So now I get a 
scroll
> bar on the vbox.  To use the vertical scroll bar on the datagrid I
> need to scroll the vbox horizontal scroll bar all the way to the 
right.
> 
> Still no fix for this problem.  Any thoughts.
> 
> 
> This is an image with the VBOX width = 100%, with the datagrid 
inside
> with a width=100%; the horizontal scroll policy is set to auto on 
the
> datagrid.
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "michael_ramirez44"
>  wrote:
> >
> > --- In flexcoders@yahoogroups.com, "phipzkillah" pkrasko@ wrote:
> > >
> > >
> > > I have a Datagrid in a panel whose size is 80% width of the 
screen
> > > (panel width that is).  My datagrid has 68 columns and its 
width is
> > set
> > > to 100% (to fill the panel).  When the datagrid loads you can't
> > read a
> > > damn thing.  If i set the minwidth I can read the data, but I 
have
> > to
> > > horizontally scroll all the way to the right to see the vertical
> > scroll
> > > bar!!  SO I can't scroll down unless I scroll all the way to the
> > > right...how is that user friendly?  Seems like a poor design 
that
> > the
> > > datagrid scroll bar doesn't float ontop of the grid itself.  You
> > can see
> > > the problem here in a snapshot I took - vertical scroll bar not 
seen
> > > unless you scroll all the way to the right.
> > >
> > > Does anyone have a solution to this problem?  I don't want any
> > scroll
> > > bars on my panel.  I simply just want to be able to scroll
> > horizontally
> > > and vertically on my datagrid with ease.
> > >
> >
> > Set the DataGrid's horizontalScrollPolicy to "auto".
> >
> >  dgResults.horizontalScrollPolicy = "auto";
> >
>
Try binding your VBOX width to your dataGrid.



Its worth a shot :)




[flexcoders] Re: DataGrid - numeric sort?

2007-01-11 Thread michael_ramirez44
--- In flexcoders@yahoogroups.com, "parkerwhirlow" 
<[EMAIL PROTECTED]> wrote:
>
> DUDE! what the heck ?
> 
> You must have copied out the labelFunction... thats not
> sortCompareFunction... it definitely requires two objects to 
compare!
> 
> Your example implementation even does a simple number format =)
> 
> Nice try though.
> PW
> 
> In the Language Reference, the only documentation for 
sortCompareFunction
> 
> --- In flexcoders@yahoogroups.com, "michael_ramirez44"
>  wrote:
> >
> > --- In flexcoders@yahoogroups.com, "parkerwhirlow" 
> >  wrote:
> > >
> > > 
> > > Its amazing how complicated something so seemingly easy can 
be...
> > > 
> > > All I want to do is provide a numeric sort for columns that 
contain
> > > numeric data. (by default the sorting is all text based)
> > > 
> > > I found the DataGridColumn.sortCompareFunction and tried this.
> > > 
> > > The problem I have is that the objects passed to the function 
are 
> > the
> > > entire row, and I have no context of which column the sort is 
for.
> > > 
> > > It seems like they left out some key information in the 
signatures 
> > of
> > > some of the DataGrid functions... for instance labelFunction 
> > signature
> > > has the column being rendered but dataTipFunction does not. 
> > Therefore
> > > I have the same issue with dataTipFunction as I do with
> > > sortCompareFunction... how do you know what column you're 
working 
> > with?
> > > 
> > > Anyone know any tricks? How have others implemented custom 
sorting 
> > of
> > > datagrids?
> > > 
> > > thanks,
> > > PW
> > >
> > 
> > The signature on the SortCompareFunction:
> > 
> > private function sortNumber
(item:Object,column:DataGridColumn):String
> > {
> > return numFormatter.format(item[column.dataField]);
> > }
> >
>

Sorry! Your right I gave you the labelFunction. For the 
SortCompateFunction I had to capture the headerRelease event and 
store the column that was sorted.



private function sortHeader(event:DataGridEvent):void
{
columnToSort = event.dataField;
}

private function sortColumnNumber( x:Object, y:Object):int
{
x[columnToSort] > y[columnToSort]
return ...
}



RE: [flexcoders] Re: Datagrid Scrolling -- Is it really this complicated?

2007-01-11 Thread Jason Hawryluk
There is typically a padding around every container.. Either change this to
see if it helps, or set the vbox scroll policies to off.

Jason

  -Message d'origine-
  De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] la
part de phipzkillah
  Envoyé : jeudi 11 janvier 2007 18:18
  À : flexcoders@yahoogroups.com
  Objet : [flexcoders] Re: Datagrid Scrolling -- Is it really this
complicated?


  Setting the horizontal scroll policy to auto produces 2 scroll bars.
  My datagrid is in a vbox (width=100% to fill the panel).  My
  datagrid's width is 100% to fill the vbox.

  When you set horizontal scroll policy to auto it creates a huge
  datagrid that will no longer fit into the vbox.  So now I get a scroll
  bar on the vbox.  To use the vertical scroll bar on the datagrid I
  need to scroll the vbox horizontal scroll bar all the way to the right.

  Still no fix for this problem.  Any thoughts.


  This is an image with the VBOX width = 100%, with the datagrid inside
  with a width=100%; the horizontal scroll policy is set to auto on the
  datagrid.



  --- In flexcoders@yahoogroups.com, "michael_ramirez44"
<[EMAIL PROTECTED]> wrote:
  >
  > --- In flexcoders@yahoogroups.com, "phipzkillah" pkrasko@ wrote:
  > >
  > >
  > > I have a Datagrid in a panel whose size is 80% width of the screen
  > > (panel width that is). My datagrid has 68 columns and its width is
  > set
  > > to 100% (to fill the panel). When the datagrid loads you can't
  > read a
  > > damn thing. If i set the minwidth I can read the data, but I have
  > to
  > > horizontally scroll all the way to the right to see the vertical
  > scroll
  > > bar!! SO I can't scroll down unless I scroll all the way to the
  > > right...how is that user friendly? Seems like a poor design that
  > the
  > > datagrid scroll bar doesn't float ontop of the grid itself. You
  > can see
  > > the problem here in a snapshot ! I took - vertical scroll bar not seen
  > > unless you scroll all the way to the right.
  > >
  > > Does anyone have a solution to this problem? I don't want any
  > scroll
  > > bars on my panel. I simply just want to be able to scroll
  > horizontally
  > > and vertically on my datagrid with ease.
  > >
  >
  > Set the DataGrid's horizontalScrollPolicy to "auto".
  >
  > dgResults.horizontalScrollPolicy = "auto";
  >


  


Re: [flexcoders] Capturing an event everytime an item becomes visibile in a viewstate

2007-01-11 Thread Sam Shrefler

Enterstate is actually called before the creationComplete on the child.  I
have the state display to a transition.  I'd actually like to call the
function after the transition finishes.  Any thoughts on how to do that?

On 1/11/07, Roman Protsiuk <[EMAIL PROTECTED]> wrote:


  enterState?

R.

On 1/11/07, Sam Shrefler <[EMAIL PROTECTED]> wrote:
>
>   I have a canvas that is part of a view state.  I'd like to know how to
> call a method on that canvas everytime that canvas is made visible because
> the view state it's contained in is made visible.  Also, I'd only like this
> to happen after the creationComplete event->init method has completed.  I'd
> like this to totally be taken care of Any thoughts on how this could be
> done?  Thanks!
>
> Sam
>
>
 



[flexcoders] Re: Problem with setFocus()

2007-01-11 Thread Santo
Hello to you all,

I am having the same problem here, With FF 2 and with IE 6.

Using object.setFocus() or focusManager.setFocus(object)

Not work. Just got the halo on the object, but the cursor goes to the
next object.

Regards.

Rogério



--- In flexcoders@yahoogroups.com, Mark McCray <[EMAIL PROTECTED]> wrote:
>
> i'm actually having this issue in safari using the latest debug player.
> I focus on the text input, but i just get the halo, and no cursor blink.
> :(
> 
> On Oct 30, 2006, at 1:54 PM, Deepa Subramaniam wrote:
> 
> >
> > Hi Rick –
> >
> >
> >
> > setFocus() is the correct method to use to put focus on the  
> > TextInput, including the cursor blinking within the TI.
> >
> >
> >
> > But are you using Firefox? Your issue is a fact of life in the  
> > Firefox world. You'll notice that in Firefox, calling setFocus()  
> > off any of the initialization events will not cause the cursor to  
> > blink within the TI. Doing the same off a button click or some sort  
> > of other user initiated event will work. This is because Mozilla  
> > has some specific issues around giving plug-in content focus upon  
> > initialization.
> >
> >
> >
> > Hope this helps -
> >
> > deepa
> >
> >
> >
> > From: flexcoders@yahoogroups.com  
> > [mailto:[EMAIL PROTECTED] On Behalf Of Rick Root
> > Sent: Monday, October 30, 2006 7:43 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Problem with setFocus()
> >
> >
> >
> > I'm trying to use setFocus() to put the focus on a text input when my
> > application starts.
> >
> > However, most of the time, I get the blue halo around the text input,
> > but no cursor. I can't type until I click in the text input to put the
> > cursor there.
> >
> > I'm using Flex Builder's generated HTML/javascript page for embedding
> > the flex app, so I don't have the "click to activate" problem...
> >
> > rick
> >
> >
> >
> >
>




[flexcoders] Re: Dynamic bar colors within same series for 100% BarChart?

2007-01-11 Thread phipzkillah
Hey,

Have you checked out quietly schemings chart explorer?  Check it out. 
Under customization there is a per column colors which allows you to
manually set bar colors.  Within there, you can write a function to
choose whatever colors you like.
Charting Explorer


--- In flexcoders@yahoogroups.com, "j_sevlie" <[EMAIL PROTECTED]> wrote:
>
> I have a 100% BarChart that will have two bars, each with two peices:
>
> Bar #1: Target sales goal for the year.
> Chunk 1: Based on today's date, where SHOULD the store be for
> sales.
> Chunk 2: Based on today's date, how much SHOULD they have left
> to sell.
>
>
> Bar #2: Actual sales for the year.
> Chunk 1: Sales the store has actually accumulated.
> Chunk 2: Sales remaining to meet their goal.
>
>
>
> So, let's say the following facts:
>
> 1. The store has a $100,000 sales goal for the year.
> 2. The fiscal year runs from Jan-Dec.
> 3. It is currently July (for the sake of example).
> 4. So far, the store has had $40,000 in sales.
>
> My bars should have the following data:
>
> Target:
> 1st chunk: $50,000 ($100,000/12months * 6)  (bar color: blue)
> 2nd chunk: $50,000 ($100,000 - 1st peice)   (bar color: gray)
>
> Actual:
> 1st chunk: $40,000  (bar color: SEE BELOW)
> 2nd chunk: $60,000  (bar color: always gray)
>
>
> Now, what I want to change dynamically on this chart is the bar color
> of the 1st peice from "Actual".  For example, if the store is 20%
> below where they should be for sales, I want the bar to be red.  If
> they are within 5%, make it yellow.  Anything else and it's green.
>
> However, the kicker here is that I want to leave the Target bar colors
> alone.  The only thing that I want to change is the Actual bar, 1st
chunk.
>
> So, the question is:  Within the same 100% bar chart, can you change
> the color of a single chunk within a bar while leaving the rest alone?
>
> Sorry for the long winded setup, but I hope that makes sense what I'm
> trying to accomplish.
>
> Thanks,
> Jake
>



[flexcoders] Re: New to Flex - dynamic text in mx:Label?

2007-01-11 Thread Alex
Fantastic, that did the trick.



[flexcoders] flashlog.txt Intel Mac?

2007-01-11 Thread Kevin
Has anyone gotten the flash logging working on an intel mac.  I have  
tried to numerous times and I can't seem to get it to write anything  
to the log file.  Wondering if this is something that others have had  
problems with or if this is just "user error".

thanks, Kevin




RE: [flexcoders] Dynamic bar colors within same series for 100% BarChart?

2007-01-11 Thread Ely Greenfield
 
 
Hi Jake. I think you want something like this:
 
 

   
  
 
 

   
   
   
   
   

 
The actualToDate series has a custom renderer that examines the actual
and target and chooses its rendering color based on the heuristic you
outlined below.  See numerous posts to flexcoders and examples on my
blog (quietlyscheming.com) for how to do this.
 
Ely.
 




[esg]   From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of j_sevlie
Sent: Thursday, January 11, 2007 11:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamic bar colors within same series for 100%
BarChart?



I have a 100% BarChart that will have two bars, each with two peices:

Bar #1: Target sales goal for the year. 
Chunk 1: Based on today's date, where SHOULD the store be for
sales.
Chunk 2: Based on today's date, how much SHOULD they have left
to sell.

Bar #2: Actual sales for the year.
Chunk 1: Sales the store has actually accumulated.
Chunk 2: Sales remaining to meet their goal.

So, let's say the following facts:

1. The store has a $100,000 sales goal for the year. 
2. The fiscal year runs from Jan-Dec.
3. It is currently July (for the sake of example).
4. So far, the store has had $40,000 in sales.

My bars should have the following data:

Target: 
1st chunk: $50,000 ($100,000/12months * 6) (bar color: blue)
2nd chunk: $50,000 ($100,000 - 1st peice) (bar color: gray)

Actual:
1st chunk: $40,000 (bar color: SEE BELOW)
2nd chunk: $60,000 (bar color: always gray)

Now, what I want to change dynamically on this chart is the bar color
of the 1st peice from "Actual". For example, if the store is 20%
below where they should be for sales, I want the bar to be red. If
they are within 5%, make it yellow. Anything else and it's green.

However, the kicker here is that I want to leave the Target bar colors
alone. The only thing that I want to change is the Actual bar, 1st
chunk.

So, the question is: Within the same 100% bar chart, can you change
the color of a single chunk within a bar while leaving the rest alone?

Sorry for the long winded setup, but I hope that makes sense what I'm
trying to accomplish.

Thanks,
Jake



 


[flexcoders] Re: flashlog.txt is not being updated

2007-01-11 Thread David_Stafford
Thanks!  I was somehow under the wrong impression that mm.cfg had 
gone away.  mm.cfg is still required for settings other than 
TraceOutputFileName.  I restored mm.cfg and it works.

-David


--- In flexcoders@yahoogroups.com, "Muzak" <[EMAIL PROTECTED]> wrote:
>
> http://livedocs.macromedia.com/flex/201/html/logging_125_04.html
> 
> - Original Message - 
> From: "David_Stafford" <[EMAIL PROTECTED]>
> To: 
> Sent: Thursday, January 11, 2007 12:29 AM
> Subject: [flexcoders] flashlog.txt is not being updated
> 
> 
> I updated to the new 2.01 SDK and 9,0,28,0 debug player.  My
> Actionscript project required a couple of minor changes to build
> with the updated compiler and it seems to work ok.  At one point
> I manually deleted my flashlog.txt file and now there are no
> more updates to it.
> 
> - I am running the debug player.
> 
> - I'm pretty sure I have the right place for the log file.  In
>   my case: C:\Documents and Settings\David Stafford\Application
>   Data\Macromedia\Flash Player\Logs
> 
> - mm.cfg has gone away and I've made sure to delete it.
> 
> - I tried manually creating flashlog.txt but it does not get 
updated.
> 
> - FDB works and does show tracing information.
> 
> Has anyone out there seen this behavior before?
> 
> Thanks,
> David
>




[flexcoders] Dynamic bar colors within same series for 100% BarChart?

2007-01-11 Thread j_sevlie
I have a 100% BarChart that will have two bars, each with two peices:

Bar #1: Target sales goal for the year.  
Chunk 1: Based on today's date, where SHOULD the store be for
sales.
Chunk 2: Based on today's date, how much SHOULD they have left
to sell.


Bar #2: Actual sales for the year.
Chunk 1: Sales the store has actually accumulated.
Chunk 2: Sales remaining to meet their goal.



So, let's say the following facts:

1. The store has a $100,000 sales goal for the year.  
2. The fiscal year runs from Jan-Dec.
3. It is currently July (for the sake of example).
4. So far, the store has had $40,000 in sales.

My bars should have the following data:

Target: 
1st chunk: $50,000 ($100,000/12months * 6)  (bar color: blue)
2nd chunk: $50,000 ($100,000 - 1st peice)   (bar color: gray)

Actual:
1st chunk: $40,000  (bar color: SEE BELOW)
2nd chunk: $60,000  (bar color: always gray)


Now, what I want to change dynamically on this chart is the bar color
of the 1st peice from "Actual".  For example, if the store is 20%
below where they should be for sales, I want the bar to be red.  If
they are within 5%, make it yellow.  Anything else and it's green.

However, the kicker here is that I want to leave the Target bar colors
alone.  The only thing that I want to change is the Actual bar, 1st chunk.

So, the question is:  Within the same 100% bar chart, can you change
the color of a single chunk within a bar while leaving the rest alone?

Sorry for the long winded setup, but I hope that makes sense what I'm
trying to accomplish.

Thanks,
Jake













[flexcoders] Re: gradient itemrenderer and resize (charts)

2007-01-11 Thread phipzkillah
Thanks Vigen!

Were you able to fix the tooltip so it's border matches the column
gradient color?

-phil

--- In flexcoders@yahoogroups.com, "vigen2000" <[EMAIL PROTECTED]> wrote:
>
> try this out:
> 
> var g:Graphics = graphics; 
> g.clear(); 
> var fill:LinearGradient = _linearGrad; //some gradient
> fill.angle = angle;   //put it in the right angle   
> g.moveTo(0,0);
> fill.begin(g,new Rectangle(0,0,width,height));
> g.lineTo(width,0);
> g.lineTo(width,height);
> g.lineTo(0,height);
> g.lineTo(0,0);  
> fill.end(g);
> 
> --- In flexcoders@yahoogroups.com, "phipzkillah"  wrote:
> >
> > Vigen,
> > 
> > Do you mind posting your source for the gradient item renderer?  I
> > have tried to implement this, but was unsuccessful.
> > 
> > Or if you can see where I went wrong here...
> > 
> > private static const fills:Array = getColors();
> > 
> > 
> > private static function getColors():Array{
> > var gradients:Array = new Array();
> > //Green - Registered
> > 
> > var gradient:LinearGradient = new LinearGradient();
> > var g1:GradientEntry = new GradientEntry(0x048f32,0);
> > var g2:GradientEntry = new GradientEntry(0x8ed1a5,.2);
> > var g3:GradientEntry = new GradientEntry(0x048f32,.4);  
> > var g4:GradientEntry = new GradientEntry(0x59bd7d,.8);
> > var g5:GradientEntry = new GradientEntry(0x04852e,1);
> > 
> > gradient.entries = [g1,g2,g3,g4,g5];
> > 
> > gradients.splice(-1,0,gradient);
> > 
> > 
> > //Orange - Unregistered 
> > gradient = new LinearGradient();
> > 
> > g1 = new GradientEntry(0xff8500,0);
> > g2 = new GradientEntry(0xfaaa5f,.2);
> > g3 = new GradientEntry(0xff8500,.4);
> > g4 = new GradientEntry(0xfeddbe,.8);
> > g5 = new GradientEntry(0xff7b00,1);
> > 
> > gradient.entries = [g1,g2,g3,g4,g5];
> > 
> > gradients.splice(-1,0,gradient);
> > 
> > //Red - Rejected
> > gradient = new LinearGradient();
> > 
> > g1 = new GradientEntry(0xa72323,0);
> > g2 = new GradientEntry(0xb35f5f,.2);
> > g3 = new GradientEntry(0xa72323,.4);
> > g4 = new GradientEntry(0xd86456,.8);
> > g5 = new GradientEntry(0xa92a2a,1);
> > 
> > gradient.entries = [g1,g2,g3,g4,g5];
> > 
> > gradients.splice(-1,0,gradient);
> > 
> > //Blue - Unknown
> > gradient = new LinearGradient();
> > 
> > g1 = new GradientEntry(0x1414a1,0);
> > g2 = new GradientEntry(0x503a88,.2);
> > g3 = new GradientEntry(0x1414a1,.4);
> > g4 = new GradientEntry(0x928ec,.8);
> > g5 = new GradientEntry(0x99,1);
> > 
> > gradient.entries = [g1,g2,g3,g4,g5];
> > 
> > gradients.splice(-1,0,gradient);
> > 
> > return gradients;
> > }
> > 
> > override protected function updateDisplayList(unscaledWidth:Number,
> > 
> >   unscaledHeight:Number):void
> > {
> > super.updateDisplayList(unscaledWidth, unscaledHeight);
> > 
> > var fill:Number = (_chartItem == null)? 
> > 0:fills[_chartItem.index %
> > fills.length];
> > 
> > 
> > var rc:Rectangle = new Rectangle(0, 0, width , height );
> > 
> > var g:Graphics = graphics;
> > g.clear();  
> > g.moveTo(rc.left,rc.top);
> > g.beginFill(fill);
> > g.lineTo(rc.right,rc.top);
> > g.lineTo(rc.right,rc.bottom);
> > g.lineTo(rc.left,rc.bottom);
> > g.lineTo(rc.left,rc.top);
> > g.endFill();
> > }
> > 
> > --- In flexcoders@yahoogroups.com, "vigen2000"  wrote:
> > >
> > > Hi,
> > > 
> > > i have a weired thing going on. i implemented a gradient
itemrenderer
> > > for the series to color the bars according to the data. all
works well
> > > until i resize the chart with AS. the bars are covering each
other in
> > > an ugly way. only recreating the object solve the problem (scrolling
> > > out of the chart and scrolling back)
> > > 
> > > a

RE: [flexcoders] Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-11 Thread Peter Farland
You can avoid that restriction if you use a /crossdomain.xml file that
is hosted on the server you are remoting to and allows the domain from
which your swf is hosted to contact it.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Douglas Knudsen
Sent: Thursday, January 11, 2007 1:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Anyone Using a Remote CF Server with Flex 2,
Remoting?



AFAIK, the swf has to be served from the same box you remote to.

DK


[flexcoders] Re: Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-11 Thread Jim Pickering
Thanks Doug. FlexBuilder2 is putting all of the files in the
flex2btb/flex folder within my webroot. I configured the Flex
Project's Output Folder and Output folder URL, when I setup the
project. Still it's throwing that error. Any ideas? Are you using a
remote CF 7.0.2 Development server?

Jim

--- In flexcoders@yahoogroups.com, "Douglas Knudsen"
<[EMAIL PROTECTED]> wrote:
>
> AFAIK, the swf has to be served from the same box you remote to.
> 
> DK
> 
> On 1/11/07, Jim Pickering <[EMAIL PROTECTED]> wrote:
> >
> > [RPC Fault faultString="[MessagingError message='Unknown
> > destination'Coldfusion'.']" faultCode="InvokeFailed"
> > faultDetail="Couldn'testablish a connection to 'Coldfusion'"]
> >
> > Everything is default. CFMX 7.0.2 Multiserver on IIS DevNet
Edition for
> > Development on one machine. FlexBuilder2 on my workstation machine. A
> > drive mapping to the webroot and to the JRun4 folder. My Flex
Project is
> > configured and successfully validated to the root folder at
> > J:\servers\cfusion\cfusion-ear\cfusion-war.
> >
> > Compiler in FlexBuilder 2 is comfigured with this: -services
> >
"J:\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\flex\services-config\
> > .xml" -locale en_US
> >
> > This is as basic as it gets - I am trying to get a HelloWorld app
(from
> > lynda.com actually) working with Flex 2 and CF via Remoting on a
> > remoteCF Development Server. Can this work or is there a bug with Flex
> > 2which requires that CF be loaded locally for development?
> >
> > If anyone is successfully developing Flex 2 apps with a remote
> > Coldfusion server, I would appreciate it if you could walk me through
> > the setup steps.  Below are more details of what I've done so far.
> >
> > -
> >
> > I have taken the time to read past entries on this topic, but the
issues
> > were slightly different than mine and didn't offer enough of a
solution
> > to help resolve my issue.
> >
> > In my HelloFromColdfusion.mxml file is the following code:
> >
> > 
> > http://www.adobe.com/2006/mxml";
> > layout="vertical">
> >
> >   >  destination="Coldfusion"
> >  source="flex2btb.cfc.MyService"/>
> >
> >  
> >
> >  
> > 
> >
> > In a subdirectory in the webroot called flex2btb, in the flex
directory
> > is MyService.cfc. I have the crossdomain.xml file in my webroot also.
> > The code is very basic:
> >
> > 
> >
> >  
> >  
> >  
> > 
> >
> > BTW, I get the blank white screen when I browse to
> > http://www.[mydomainhere].com/flex2gateway.
> >
> > I get this error when I run the app at
> > http://www.[mydomainhere].com/flex2btb/flex/HelloFromColdFusion.html:
> >
> > [RPC Fault faultString="[MessagingError message='Unknown destination
> > 'Coldfusion'.']" faultCode="InvokeFailed" faultDetail="Couldn't
> > establish a connection to 'Coldfusion'"]
> >  at
> >
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invo\
> > ke()
> >  at
> >
mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/intern\
> > al::invoke()
> >  at mx.rpc.remoting::Operation/send()
> >  at Function/http://adobe.com/AS3/2006/builtin::apply()
> >  at mx.rpc.remoting.mxml::Operation/send()
> >  at Function/http://adobe.com/AS3/2006/builtin::apply()
> >  at
> >
mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/pro\
> > xy::callProperty()
> >  at HelloFromColdFusion/___Button1_click()
> >
> > My services-config.xml file is default, but I have tried some
different
> > settings, restarting my CF server with every change; none worked
> > successfully.  I've tried the default endpoint line and I tried
putting
> > in http://www.[mydomainname].com/flex2gateway. Both throw the same
> > error.
> >
> > 
> >   > class="mx.messaging.channels.AMFChannel">
> >   > uri="http://{server.name}:{server.port}{context.root}/flex2gateway/";
> > class="flex.messaging.endpoints.AMFEndpoint"/>
> >
> >  
> >  false
> >  
> >  false
> >  
> >  
> >  
> >  
> >
> > Is anybody using a remote Coldfusion development server with Flex
2  and
> > Remoting? I'd appreciate ideas to try or solutions to this
mystery. I'm
> > not the type that likes to get super deep into the why and how it
works.
> > I just want it to work so I can start developing my Flex 2/CF app.
> >
> > Thanks,
> >
> > Jim Pickering
> >
> >
> >
> >
> >
> > --
> > 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
> >
> >
> >
> >
> 
> 
> -- 
> Douglas Knudsen
> http://www.cubicleman.com
> this is my signature, like it?
>




RE: [flexcoders] Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-11 Thread Peter Farland
1. Do you have a crossdomain.xml file in the webroot of the server
hosting the flex2gateway endpoint allowing access for SWFs loaded in
other domains?
 
2. I think you are relying on the default context root for your cold
fusion deployment, if so, try removing the {context-root} token out of
your channel-definition in services-config.xml (or alternatively provide
a value for the command line args -context-root "" )
 
 
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jim Pickering
Sent: Thursday, January 11, 2007 12:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Anyone Using a Remote CF Server with Flex 2,
Remoting?



[RPC Fault faultString="[MessagingError message='Unknown
destination'Coldfusion'.']" faultCode="InvokeFailed"
faultDetail="Couldn'testablish a connection to 'Coldfusion'"]

Everything is default. CFMX 7.0.2 Multiserver on IIS DevNet Edition for
Development on one machine. FlexBuilder2 on my workstation machine. A
drive mapping to the webroot and to the JRun4 folder. My Flex Project is
configured and successfully validated to the root folder at 
J:\servers\cfusion\cfusion-ear\cfusion-war.

Compiler in FlexBuilder 2 is comfigured with this: -services
"J:\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\flex\services-config
\
.xml" -locale en_US

This is as basic as it gets - I am trying to get a HelloWorld app (from
lynda.com actually) working with Flex 2 and CF via Remoting on a
remoteCF Development Server. Can this work or is there a bug with Flex
2which requires that CF be loaded locally for development?

If anyone is successfully developing Flex 2 apps with a remote
Coldfusion server, I would appreciate it if you could walk me through
the setup steps. Below are more details of what I've done so far.

-

I have taken the time to read past entries on this topic, but the issues
were slightly different than mine and didn't offer enough of a solution
to help resolve my issue.

In my HelloFromColdfusion.mxml file is the following code:


http://www.adobe.com/2006/mxml
 "
layout="vertical">








In a subdirectory in the webroot called flex2btb, in the flex directory
is MyService.cfc. I have the crossdomain.xml file in my webroot also.
The code is very basic:








BTW, I get the blank white screen when I browse to
http://www.[mydomainhere].com/flex2gateway.

I get this error when I run the app at 
http://www.[mydomainhere].com/flex2btb/flex/HelloFromColdFusion.html:

[RPC Fault faultString="[MessagingError message='Unknown destination
'Coldfusion'.']" faultCode="InvokeFailed" faultDetail="Couldn't
establish a connection to 'Coldfusion'"]
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invo
\
ke  ()
at
mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/intern
\
al::invoke  ()
at mx.rpc.remoting::Operation/send()
at Function/http://adobe.com/AS3/2006/builtin::apply
 ()
at mx.rpc.remoting.mxml::Operation/send()
at Function/http://adobe.com/AS3/2006/builtin::apply
 ()
at
mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/pro
\
xy::callProperty
 ()
at HelloFromColdFusion/___Button1_click()

My services-config.xml file is default, but I have tried some different
settings, restarting my CF server with every change; none worked
successfully. I've tried the default endpoint line and I tried putting
in http://www.[mydomainname].com/flex2gateway. Both throw the same
error.



http://{server.name}:{server.port}{context.root}/flex2gateway/";
class="flex.messaging.endpoints.AMFEndpoint"/>


false

false





Is anybody using a remote Coldfusion development server with Flex 2 and
Remoting? I'd appreciate ideas to try or solutions to this mystery. I'm
not the type that likes to get super deep into the why and how it works.
I just want it to work so I can start developing my Flex 2/CF app.

Thanks,

Jim Pickering



 


Re: [flexcoders] Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-11 Thread Patrick Mineault
It's your services-config.xml that is off. Try using this:










*







http://localhost/amfphp/gateway.php"; 
class="flex.messaging.endpoints.AMFEndpoint"/>




Set destination to 'amfphp' and 'endpoint' to your ColdFusion endpoint 
in the RemoteObject tag. Then you can change the 'amfphp' names to 
'coldFusion' if it bothers you ;)

Patrick

Jim Pickering a écrit :
>
> [RPC Fault faultString= "[MessagingError message='Unknown
> destination' Coldfusion' .']" faultCode="InvokeFa iled"
> faultDetail= "Couldn'testabli sh a connection to 'Coldfusion' "]
>
> Everything is default. CFMX 7.0.2 Multiserver on IIS DevNet Edition for
> Development on one machine. FlexBuilder2 on my workstation machine. A
> drive mapping to the webroot and to the JRun4 folder. My Flex Project is
> configured and successfully validated to the root folder at
> J:\servers\cfusion\ cfusion-ear\ cfusion-war.
>
> Compiler in FlexBuilder 2 is comfigured with this: -services
> "J:\servers\ cfusion\cfusion- ear\cfusion- war\WEB-INF\ flex\services- 
> config\
> .xml" -locale en_US
>
> This is as basic as it gets - I am trying to get a HelloWorld app (from
> lynda.com actually) working with Flex 2 and CF via Remoting on a
> remoteCF Development Server. Can this work or is there a bug with Flex
> 2which requires that CF be loaded locally for development?
>
> If anyone is successfully developing Flex 2 apps with a remote
> Coldfusion server, I would appreciate it if you could walk me through
> the setup steps. Below are more details of what I've done so far.
>
>  - - ---
>
> I have taken the time to read past entries on this topic, but the issues
> were slightly different than mine and didn't offer enough of a solution
> to help resolve my issue.
>
> In my HelloFromColdfusion .mxml file is the following code:
>
> 
> http://www.adobe. com/2006/ mxml 
> "
> layout="vertical" >
>
>  destination= "Coldfusion"
> source="flex2btb. cfc.MyService" />
>
> 
>
> 
> 
>
> In a subdirectory in the webroot called flex2btb, in the flex directory
> is MyService.cfc. I have the crossdomain. xml file in my webroot also.
> The code is very basic:
>
> 
>
> 
> 
> 
> 
>
> BTW, I get the blank white screen when I browse to
> http://www.[mydomainhere] .com/flex2gatewa y.
>
> I get this error when I run the app at
> http://www.[mydomainhere] .com/flex2btb/ flex/HelloFromCo ldFusion. html:
>
> [RPC Fault faultString= "[MessagingError message='Unknown destination
> 'Coldfusion' .']" faultCode="InvokeFa iled" faultDetail= "Couldn't
> establish a connection to 'Coldfusion' "]
> at
> mx.rpc::AbstractInv oker/http://www.adobe. com/2006/ flex/mx/internal 
> ::invo\
> ke ()
> at
> mx.rpc.remoting. mxml::Operation/http://www.adobe. com/2006/ 
> flex/mx/intern\
> al::invoke ()
> at mx.rpc.remoting: :Operation/ send()
> at Function/http://adobe. com/AS3/2006/ builtin:: apply 
> ()
> at mx.rpc.remoting. mxml::Operation/ send()
> at Function/http://adobe. com/AS3/2006/ builtin:: apply 
> ()
> at
> mx.rpc::AbstractSer vice/http://www.adobe. com/2006/ actionscript/ 
> flash/pro\
> xy::callProperty 
> ()
> at HelloFromColdFusion /___Button1_ click()
>
> My services-config. xml file is default, but I have tried some different
> settings, restarting my CF server with every change; none worked
> successfully. I've tried the default endpoint line and I tried putting
> in http://www.[mydomainname] .com/flex2gatewa y. Both throw the same
> error.
>
> 
>  class="mx.messaging .channels. AMFChannel" >
>  uri="http:// {server.name} :{server. port}{context. root}/flex2gatew ay/"
> class="flex. messaging. endpoints. AMFEndpoint" />
>
> 
>  false
> 
> false< /instantiate- types>
> 
> 
> 
> 
>
> Is anybody using a remote Coldfusion development server with Flex 2 and
> Remoting? I'd appreciate ideas to try or solutions to this mystery. I'm
> not the type that likes to get super deep into the why and how it works.
> I just want it to work so I can start developing my Flex 2/CF app.
>
> Thanks,
>
> Jim Pickering
>
>  



Re: [flexcoders] Re: datagrid error w/2.01

2007-01-11 Thread Paul Hastings
> i do have a bunch of columns hidden in that grid. i'm not actually
> using them anyway, i'll try returning just the one column the app
> actually uses.

no joy. seems to be the editable property. rats.

bug.


Re: [flexcoders] Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-11 Thread Douglas Knudsen

AFAIK, the swf has to be served from the same box you remote to.

DK

On 1/11/07, Jim Pickering <[EMAIL PROTECTED]> wrote:


[RPC Fault faultString="[MessagingError message='Unknown
destination'Coldfusion'.']" faultCode="InvokeFailed"
faultDetail="Couldn'testablish a connection to 'Coldfusion'"]

Everything is default. CFMX 7.0.2 Multiserver on IIS DevNet Edition for
Development on one machine. FlexBuilder2 on my workstation machine. A
drive mapping to the webroot and to the JRun4 folder. My Flex Project is
configured and successfully validated to the root folder at
J:\servers\cfusion\cfusion-ear\cfusion-war.

Compiler in FlexBuilder 2 is comfigured with this: -services
"J:\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\flex\services-config\
.xml" -locale en_US

This is as basic as it gets - I am trying to get a HelloWorld app (from
lynda.com actually) working with Flex 2 and CF via Remoting on a
remoteCF Development Server. Can this work or is there a bug with Flex
2which requires that CF be loaded locally for development?

If anyone is successfully developing Flex 2 apps with a remote
Coldfusion server, I would appreciate it if you could walk me through
the setup steps.  Below are more details of what I've done so far.

-

I have taken the time to read past entries on this topic, but the issues
were slightly different than mine and didn't offer enough of a solution
to help resolve my issue.

In my HelloFromColdfusion.mxml file is the following code:


http://www.adobe.com/2006/mxml";
layout="vertical">

 

 

 


In a subdirectory in the webroot called flex2btb, in the flex directory
is MyService.cfc. I have the crossdomain.xml file in my webroot also.
The code is very basic:



 
 
 


BTW, I get the blank white screen when I browse to
http://www.[mydomainhere].com/flex2gateway.

I get this error when I run the app at
http://www.[mydomainhere].com/flex2btb/flex/HelloFromColdFusion.html:

[RPC Fault faultString="[MessagingError message='Unknown destination
'Coldfusion'.']" faultCode="InvokeFailed" faultDetail="Couldn't
establish a connection to 'Coldfusion'"]
 at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invo\
ke()
 at
mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/intern\
al::invoke()
 at mx.rpc.remoting::Operation/send()
 at Function/http://adobe.com/AS3/2006/builtin::apply()
 at mx.rpc.remoting.mxml::Operation/send()
 at Function/http://adobe.com/AS3/2006/builtin::apply()
 at
mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/pro\
xy::callProperty()
 at HelloFromColdFusion/___Button1_click()

My services-config.xml file is default, but I have tried some different
settings, restarting my CF server with every change; none worked
successfully.  I've tried the default endpoint line and I tried putting
in http://www.[mydomainname].com/flex2gateway. Both throw the same
error.


 
 http://{server.name}:{server.port}{context.root}/flex2gateway/";
class="flex.messaging.endpoints.AMFEndpoint"/>

 
 false
 
 false
 
 
 
 

Is anybody using a remote Coldfusion development server with Flex 2  and
Remoting? I'd appreciate ideas to try or solutions to this mystery. I'm
not the type that likes to get super deep into the why and how it works.
I just want it to work so I can start developing my Flex 2/CF app.

Thanks,

Jim Pickering





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







--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


Re: [flexcoders] Compile sizes of swf file getting bigger and bigger

2007-01-11 Thread Daniel Wabyick

Make sure your swf files / extensions are marked as binary in CVS. It 
could be that its checking it in as ascii, which might explain the file 
size increase.

patricklemiuex wrote:
>
> Any body notice the size of their swf files increasing after
> committing to a cvs server. I am having an issue where my swf file
> went from 490 to 1.7 meg.
>
> To fix this I have to check out my project into a new workspace. This
> happens every time I commit.
>
> Thanks,
> Patrick
>
>  



[flexcoders] Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-11 Thread Jim Pickering
[RPC Fault faultString="[MessagingError message='Unknown
destination'Coldfusion'.']" faultCode="InvokeFailed"
faultDetail="Couldn'testablish a connection to 'Coldfusion'"]

Everything is default. CFMX 7.0.2 Multiserver on IIS DevNet Edition for
Development on one machine. FlexBuilder2 on my workstation machine. A
drive mapping to the webroot and to the JRun4 folder. My Flex Project is
configured and successfully validated to the root folder at 
J:\servers\cfusion\cfusion-ear\cfusion-war.

Compiler in FlexBuilder 2 is comfigured with this: -services
"J:\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\flex\services-config\
.xml" -locale en_US

This is as basic as it gets - I am trying to get a HelloWorld app (from
lynda.com actually) working with Flex 2 and CF via Remoting on a
remoteCF Development Server. Can this work or is there a bug with Flex
2which requires that CF be loaded locally for development?

If anyone is successfully developing Flex 2 apps with a remote
Coldfusion server, I would appreciate it if you could walk me through
the setup steps.  Below are more details of what I've done so far.

-

I have taken the time to read past entries on this topic, but the issues
were slightly different than mine and didn't offer enough of a solution
to help resolve my issue.

In my HelloFromColdfusion.mxml file is the following code:


http://www.adobe.com/2006/mxml";
layout="vertical">

 

 

 


In a subdirectory in the webroot called flex2btb, in the flex directory
is MyService.cfc. I have the crossdomain.xml file in my webroot also.
The code is very basic:



 
 
 


BTW, I get the blank white screen when I browse to
http://www.[mydomainhere].com/flex2gateway.

I get this error when I run the app at 
http://www.[mydomainhere].com/flex2btb/flex/HelloFromColdFusion.html:

[RPC Fault faultString="[MessagingError message='Unknown destination
'Coldfusion'.']" faultCode="InvokeFailed" faultDetail="Couldn't
establish a connection to 'Coldfusion'"]
 at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invo\
ke()
 at
mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/intern\
al::invoke()
 at mx.rpc.remoting::Operation/send()
 at Function/http://adobe.com/AS3/2006/builtin::apply()
 at mx.rpc.remoting.mxml::Operation/send()
 at Function/http://adobe.com/AS3/2006/builtin::apply()
 at
mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/pro\
xy::callProperty()
 at HelloFromColdFusion/___Button1_click()

My services-config.xml file is default, but I have tried some different
settings, restarting my CF server with every change; none worked
successfully.  I've tried the default endpoint line and I tried putting
in http://www.[mydomainname].com/flex2gateway. Both throw the same
error.


 
 http://{server.name}:{server.port}{context.root}/flex2gateway/";
class="flex.messaging.endpoints.AMFEndpoint"/>

 
 false
 
 false
 
 
 
 

Is anybody using a remote Coldfusion development server with Flex 2  and
Remoting? I'd appreciate ideas to try or solutions to this mystery. I'm
not the type that likes to get super deep into the why and how it works.
I just want it to work so I can start developing my Flex 2/CF app.

Thanks,

Jim Pickering





[flexcoders] Re: WebService bug?

2007-01-11 Thread ben.clinkinbeard
Are you using 2.0.1? There were a handful of WebService
serialization/deserialization issues resolved, some of which were
specific to .NET services.

You might also want to check out Darron Schall's ObjectTranslator
class: http://www.darronschall.com/weblog/archives/000247.cfm.

HTH,
Ben


--- In flexcoders@yahoogroups.com, "herrodius" <[EMAIL PROTECTED]> wrote:
>
> Hi all,
> 
> we are currently creating a series of webservices to talk to our .Net
> backend system. We are sending over nested value objects which
> sometimes contain nested arrays of objects. When we receive an array
> in Flex, it is mapped to an ArrayCollection. We then have to do the
> actual object mapping manually, which is the way to go I suppose.
> 
> But when we send over nested arrays, the first array is converted to
> an ArrayCollection successfully but every other (deeper) array is
> converted to an ObjectProxy in which there is an ArrayCollection that
> contains the actual data of the Array. There seems to be an extra
> object/level that gets created.
> 
> An example (debugger output):
> 
> result (ObjectProxy)
> - Components (ArrayCollection)
> -- [0] (ObjectProxy)
> -- [1] (ObjectProxy)
> --- Answers (ObjectProxy, should be ArrayCollection)
>  GapAnswer (ArrayCollection, does not exist in the original object
> and should not be here)
> - [0]
> - [1]
> 
> As you can see there is an "Answers" property in the second item of
> the "Components" ArrayCollection. This should be an ArrayCollection
> instead of an ObjectProxy and the "GapAnswer" property in it should
> not even exist. (GapAnswer is the type of the .Net Answers array ->
> GapAnswer[] Answers)
> 
> Has anyone run into this before? Could this be a bug in the
> deserialization of the objects?
> 
> regards,
> Christophe
>




Re: [flexcoders] Re: datagrid error w/2.01

2007-01-11 Thread Paul Hastings
On 1/11/07, bsdensmore <[EMAIL PROTECTED]> wrote:
> I was having the same issue as well. I think it had to do with some of
> my columns showing up when they were set to be hidden. The error

i do have a bunch of columns hidden in that grid. i'm not actually
using them anyway, i'll try returning just the one column the app
actually uses.

> I ended up going back to 2.0 since I didn't get those errors at all.
> After going back to 2.0 I haven't had the issue once. I think for now
> you are better off going back to 2.0.

rather not, 2.01 fixes a nasty drag & drop w/an image bug that we really need.

> I didn't submit it as a bug but maybe it should be?

well that makes two of us, so i guess yeah submit a bug.


RE: [flexcoders] Paging with DataGrid??

2007-01-11 Thread Dimitrios Gianninas
You can look at the documentation of Flex Data Services, it supports paging if 
you are using it.
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
sanjaypmg
Sent: Thursday, January 11, 2007 4:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Paging with DataGrid??



Hi,

Is there any way to put paging on datagrid?

Please let me know, if there is something like dis in flex or the way 
to do it in flex.

Regards,
Sanjay sharma



 

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

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



[flexcoders] Re: Customizing the index.template.html wrapper

2007-01-11 Thread ben.clinkinbeard
http://www.morearty.com/blog/2006/12/11/changing-the-filenames-in-flex-builder-html-templates/

HTH,
Ben



--- In flexcoders@yahoogroups.com, "dario.drome" <[EMAIL PROTECTED]> wrote:
>
> Hello Flexcoders,
> I'm trying to figure out if there is a way to change the usual 
> behaviour of the flex builder's generated html wrapper:
> 
> I want that the final html hosting my swf is an html generated by an 
> aspx page on the server. Thus, I would like to configure FlexBuilder in 
> such a way that it uses my own, let's say, "index.template.aspx" to 
> have "myFlexApp.aspx" and "myFlexApp-Debug.aspx" generated at output.
> 
> If I replace the standard "index.template.html" with 
> an "index.template.aspx", I get only one "index.aspx" at output which 
> is the debug version (I think that FlexBuilder generates the release 
> version first and then, it overwrites it with the debug version)
> 
> Is there any way possibility to do this?
> 
> Thank you in advance.
>




[flexcoders] Re: DataGrid - numeric sort?

2007-01-11 Thread parkerwhirlow
DUDE! what the heck ?

You must have copied out the labelFunction... thats not
sortCompareFunction... it definitely requires two objects to compare!

Your example implementation even does a simple number format =)

Nice try though.
PW

In the Language Reference, the only documentation for sortCompareFunction

--- In flexcoders@yahoogroups.com, "michael_ramirez44"
<[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "parkerwhirlow" 
>  wrote:
> >
> > 
> > Its amazing how complicated something so seemingly easy can be...
> > 
> > All I want to do is provide a numeric sort for columns that contain
> > numeric data. (by default the sorting is all text based)
> > 
> > I found the DataGridColumn.sortCompareFunction and tried this.
> > 
> > The problem I have is that the objects passed to the function are 
> the
> > entire row, and I have no context of which column the sort is for.
> > 
> > It seems like they left out some key information in the signatures 
> of
> > some of the DataGrid functions... for instance labelFunction 
> signature
> > has the column being rendered but dataTipFunction does not. 
> Therefore
> > I have the same issue with dataTipFunction as I do with
> > sortCompareFunction... how do you know what column you're working 
> with?
> > 
> > Anyone know any tricks? How have others implemented custom sorting 
> of
> > datagrids?
> > 
> > thanks,
> > PW
> >
> 
> The signature on the SortCompareFunction:
> 
> private function sortNumber(item:Object,column:DataGridColumn):String
> {
>   return numFormatter.format(item[column.dataField]);
> }
>




[flexcoders] How to get height of a Panel's controlBar?

2007-01-11 Thread zzwi89
I am creating a RectangularBorder class which I plan on using with a
Panel object. I am drawing the controlbar so it does not take up the
full width of the panel (it looks sort of like a tab) and so I need to
know the specific height of the controlbar. Unforunately, it does not
seem that I can even read this property outside of the Panel class.
Anyone have some tips as to how I'd go about this?



RE: [flexcoders] New to Flex - dynamic text in mx:Label?

2007-01-11 Thread Tracy Spratt
Yes.  An inline renderer creates a sub-component, with its own scope, and it 
does not have direct access to its parent scope.  Use

outerDocument.statusToImage()

 

See this for details:

http://livedocs.macromedia.com/flex/2/docs/0843.html

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Alexandre Lemaire
Sent: Thursday, January 11, 2007 10:32 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] New to Flex - dynamic text in mx:Label?

 

  

Would the problem be the manner in which I am invoking it?

 







 











 

 

- Original Message - 

From: Roman Protsiuk   

To: flexcoders@yahoogroups.com   

Sent: Thursday, January 11, 2007 9:11 AM

Subject: Re: [flexcoders] New to Flex - dynamic text in mx:Label?

 

Hi, Alex.

Tried your example. It works. %)

However, maybe what you need is something like this:

[Bindable]
protected function get someText() : String {
return _someText;
}

protected function set someText(value : String) : void {
_someText = statusToImage(value);
}

private var _someText : String;

and:

 

This seems pretty flexible to me.

R.

On 1/11/07, Alex <[EMAIL PROTECTED]  > wrote: 

Hi there,

Given this function:

 



How precisely can I set it as text-generator for a label? I've tried:



And Flex Builder writes: "1180: Call to a possibly undefined method
statusToImage.".

Seems it's right above in the same mxml file though!

Thanks in advance.
Alex

 

 



RE: [flexcoders] Re: CSS type selectors are not supported in components

2007-01-11 Thread Tracy Spratt
I know for sure that you can still extend/subclass Application and use
that subclass as the root tag for an application.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sbyrne_dorado
Sent: Thursday, January 11, 2007 4:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: CSS type selectors are not supported in
components

 

Well, I am sure if I comment out the  in the
top level application, that the warnings go away. 

Is it possible that the compiler is being overly picky, and only
allows literally  as the root element, and not some
class dervived from mx:Application? I know in the past that Flex made
mx:Application "more equal" than other classes, such that the debugger
wouldnt' recognize subclasses of it as being legitimate top level
application classes.

--- In flexcoders@yahoogroups.com 
, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> >Is there some salient difference between inline inclusion vs.
external
> definitions?
> 
> No. Writing  should be the same as putting the
> contents of the CSS file between  and .
> 
> Are you sure you have  only in  and not in
any
> of the components that your application is using?
> 
> - Gordon
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of sbyrne_dorado
> Sent: Wednesday, January 10, 2007 8:43 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: CSS type selectors are not supported in
> components
> 
> 
> 
> I'm getting this error message from within an mx:Application (well a
> subclass thereof) that includes things via . 
> Is there some salient difference between inline inclusion vs. external
> definitions? The docs don't seem to indicate so...
> 
> --- In flexcoders@yahoogroups.com


> , "Gordon Smith"  wrote:
> >
> > Flex 2 doesn't support per-component selectors. Put all CSS
selectors
> in
> > the , not in MXML components.
> > 
> > 
> > 
> > - Gordon
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com


> [mailto:flexcoders@yahoogroups.com


> ] On
> > Behalf Of Tansht
> > Sent: Thursday, July 20, 2006 1:06 AM
> > To: flexcoders@yahoogroups.com 
 
> > Subject: [flexcoders] CSS type selectors are not supported in
> components
> > 
> > 
> > 
> > Hi, there
> > I'm experiencing a problem. I've checked FLEX 2 livedoc and found
out 
> > all styles I defined in an external css files are supported style. 
> > However, the warning message "CSS type selectors are not supported
in 
> > components" appeared when I run my application. Does any one know
how
> I 
> > can resolve it?
> > Thanks in advance
> > David
> >
>

 



[flexcoders] Filters with DataGrid - Excel

2007-01-11 Thread phipzkillah
I am also looking for this functionality.  About a month ago I came
across this page
 .  It is a sample of a datagrid whose headers have a drop down
list to filter each field/column on.  Unfortuneately it was developed in
Flex 1.5.  Has anyone converted it to Flex 2.0?  If so, this is the
answer we all are looking for.

If someone can copy that source code and eliminate the compiler errors
you will be doing several of us a huge favor!

Thanks

Phil

--- In flexcoders@yahoogroups.com, "sanjaypmg" <[EMAIL PROTECTED]> wrote:
>
> Hi There,
>
> Is there any way to put filters feature on Datagrid as available in
> Excel?
>
> Or
>
> Anything Similar to that feature?
>
> Please let me know if there is something or any possible solution for
> the same.
>
> Thanks
> Sanjay sharma
>



[flexcoders] Re: I want to use Flexbuilder on my MAC to access Cfusion

2007-01-11 Thread boy_trike
--- In flexcoders@yahoogroups.com, "Douglas Knudsen" <[EMAIL PROTECTED]> wrote:
>
> you don't :)
> this is looking for a local install of CF.  You can actually install CF on
> your MAC, I'm no MACie, but there are blog posts about on how.
> 

Actually, I can't.  The MAC version is only for the POWERPC chip and I am using 
an INTEL Mac.

Bruce



[flexcoders] Re: Datagrid Scrolling -- Is it really this complicated?

2007-01-11 Thread phipzkillah
Setting the horizontal scroll policy to auto produces 2 scroll bars.
My datagrid is in a vbox (width=100% to fill the panel).  My
datagrid's width is 100% to fill the vbox.

When you set horizontal scroll policy to auto it creates a huge
datagrid that will no longer fit into the vbox.  So now I get a scroll
bar on the vbox.  To use the vertical scroll bar on the datagrid I
need to scroll the vbox horizontal scroll bar all the way to the right.

Still no fix for this problem.  Any thoughts.


This is an image with the VBOX width = 100%, with the datagrid inside
with a width=100%; the horizontal scroll policy is set to auto on the
datagrid.



--- In flexcoders@yahoogroups.com, "michael_ramirez44"
<[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "phipzkillah" pkrasko@ wrote:
> >
> >
> > I have a Datagrid in a panel whose size is 80% width of the screen
> > (panel width that is).  My datagrid has 68 columns and its width is
> set
> > to 100% (to fill the panel).  When the datagrid loads you can't
> read a
> > damn thing.  If i set the minwidth I can read the data, but I have
> to
> > horizontally scroll all the way to the right to see the vertical
> scroll
> > bar!!  SO I can't scroll down unless I scroll all the way to the
> > right...how is that user friendly?  Seems like a poor design that
> the
> > datagrid scroll bar doesn't float ontop of the grid itself.  You
> can see
> > the problem here in a snapshot I took - vertical scroll bar not seen
> > unless you scroll all the way to the right.
> >
> > Does anyone have a solution to this problem?  I don't want any
> scroll
> > bars on my panel.  I simply just want to be able to scroll
> horizontally
> > and vertically on my datagrid with ease.
> >
>
> Set the DataGrid's horizontalScrollPolicy to "auto".
>
>  dgResults.horizontalScrollPolicy = "auto";
>



RE: [flexcoders] Datagrid - sorting/losing current row, also why descending first?

2007-01-11 Thread Robert Chyko
Regarding #2, I believe this was changed with the 2.0.1 update, you
would have to check the release notes to confirm.
 
 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of jack_freud
Sent: Thursday, January 11, 2007 12:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid - sorting/losing current row,
also why descending first?



I have 2 questions about the datagrid:

1) When I sort by clicking on the header, it re-sorts the grid
but
keeps the current row selected and at the top of the grid, in
the case
of all columns except 1. Any idea why it would work for most but
not
all columns? I see no special code pertaining to that column in
the
grid or the data model.

2) It sorts columns you click on first Descending, then
Ascending if
you click again. Is there any way to reverse this behavior,
which
seems intuitively backwards?

Thanks!



 



[flexcoders] Datagrid - sorting/losing current row, also why descending first?

2007-01-11 Thread jack_freud
I have 2 questions about the datagrid:

1) When I sort by clicking on the header, it re-sorts the grid but
keeps the current row selected and at the top of the grid, in the case
of all columns except 1. Any idea why it would work for most but not
all columns? I see no special code pertaining to that column in the
grid or the data model.

2) It sorts columns you click on first Descending, then Ascending if
you click again. Is there any way to reverse this behavior, which
seems intuitively backwards?

Thanks!



Re: [flexcoders] Capturing an event everytime an item becomes visibile in a viewstate

2007-01-11 Thread Roman Protsiuk

enterState?

R.

On 1/11/07, Sam Shrefler <[EMAIL PROTECTED]> wrote:


  I have a canvas that is part of a view state.  I'd like to know how to
call a method on that canvas everytime that canvas is made visible because
the view state it's contained in is made visible.  Also, I'd only like this
to happen after the creationComplete event->init method has completed.  I'd
like this to totally be taken care of Any thoughts on how this could be
done?  Thanks!

Sam

 



Re: [flexcoders] Re: Loading a jpg with Actionscript only project - why doesn't this work?

2007-01-11 Thread Collin Peters

Ok... that does load the jpeg.  So my next question is why?  All the
examples that I can find do not have this.  e.g.
http://livedocs.macromedia.com/labs/as3preview/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=0067.html

In this post (
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=587&threadid=1226015&enterthread=y)
the guy says that if he tries to load the jpeg in a call to enter_frame or
something similar then it does work.  Does it just come down to that you
shouldn't be trying to do things like that in the constructor of a AS only
project?  Everything else does seem to work (shapes, text, etc...) so that
doesn't seem like the correct answer to me.

On 1/11/07, grand_master_flash_x <[EMAIL PROTECTED]> wrote:


  try this:
public function load(url:String):void
{
var l:Loader = new Loader();
var context:LoaderContext = new LoaderContext();
context.applicationDomain = new ApplicationDomain(
ApplicationDomain.currentDomain );
l.contentLoaderInfo.addEventListener( Event.COMPLETE,
onPicLoaded );
l.load( new URLRequest( url ), context );
}
-nick


--- In flexcoders@yahoogroups.com , "Collin
Peters" <[EMAIL PROTECTED]> wrote:
>
> The following code does not work... though according to all the
> examples I have seen it should
>
> package {
> import flash.display.Sprite;
> import flash.display.Loader;
> import flash.display.StageScaleMode;
> import flash.net.URLRequest;
> import flash.events.Event;
>
> public class AS_Project extends Sprite
> {
> private var picLoader:Loader;
>
> public function AS_Project()
> {
> stage.scaleMode = StageScaleMode.NO_SCALE;
>
> picLoader = new Loader();
> picLoader.addEventListener(Event.COMPLETE, onPicLoaded);
> picLoader.load(new URLRequest("assets/background.jpg"));
> trace("Start");
> }
>
> private function onPicLoaded(event:Event):void
> {
> trace("Loaded");
> this.addChild(picLoader.content);
> }
> }
> }
>
> The "Start" trace works, but the "Loaded" doesn't. Am I missing
> something simple?
>
> --
> Collin Peters
> Lead Software Developer
> InTouch Technology
>

 





--
Collin Peters
Lead Software Developer
InTouch Technology


  1   2   >