RE: [flexcoders] Re: mx:States and databinding issue

2006-04-26 Thread Matt Chotin



Glad you could get the workaround going. I'll forward this into the
team and see if they have any thoughts.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sof4real03
Sent: Tuesday, April 25, 2006 7:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: mx:States and databinding issue

Matt,

After a ton of debugging I finally was able to change the value of the
button in the State via actionscript and not through binding with the
SetProperty tag.

public function formsValid(...args:Array):Boolean
{
 for(var i:int = 0; i  args.length; i++)
 {
 if( args[i] == false )
 return false;
 }
 parentDocument.addClientBtn.enabled = true;
 return true;
}   

mx:states
mx:State name=default id=defaultCCView
mx:SetProperty target={parentDocument.addClientBtn} name=enabled
value={formsValid(personalDetails.formValid,contactDetails.formValid)
}/
mx:SetEventHandler target={parentDocument.addClientBtn}
name=click handler=submitClientForm()/
/mx:State
/mx:states


Now I'm not sure if this is a databinding issue with States and
SetProperty tag, but this workaround isn't something I'd like to do in
the future. I hope someone can point something wrong in my code that
would make the state handle the databind correctly, but I just don't
see anything wrong.

Thanks,
Sof

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

 I'm at a loss here, Anybody having any issues with binding in States?
 
 --- In flexcoders@yahoogroups.com, sof4real03 soubraham2@ wrote:
 
  After tracing my code, I'm sure that the event is being propagated,
  but the button still doesn't become enabled even when the forms are
  valid. Could it be the issue of creating this state on the
component's
  parent?
  
  --- In flexcoders@yahoogroups.com, sof4real03 soubraham2@ wrote:
  
   You are correct, the formsValidationChange event is bound for the
   formvalid property of the component.
   
   [ChangeEvent(formValidChanged)]
   public function get formValid():Boolean
   {
return _formValid;
   }
 
   public function set formValid( formValid:Boolean ):void
   {
setFormValid( formValid );
   }
   
   private function setFormValid( formValid:Boolean ):void
   {
if ( formValid != _formValid )
{
 _formValid = formValid;
 dispatchEvent(new Event(formValidChanged));
}
   }
   
   
   I've put Alerts in the formsValid function and it's getting to the
   function, but it doesn't seem to be recieving the
   formValidationChange event everytime it's set to a new value.
I'm at
   a loss...
   
   If I don't use a state and put in this button on the page
initially
   all is good.
   --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
   
What is formValidationChanged the event on? The formValid
 property I
hope? Are you sure you're not going into the formsValid method?
 Try
naming the arguments array to something different like args,
 arguments
is a reserved word and may be acting funky here (though it
 should work
correctly in this case I think).

Matt

-Original Message-
From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On
Behalf Of sof4real03
Sent: Monday, April 24, 2006 9:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] mx:States and databinding issue

I have a custom form component that broadcasts an event every
 time the
form changes validation states:

ContactDetails.mxml:

[ChangeEvent(formValidationChanged)]

Now the parent component of ContactDetails is
CreateClientProfile.mxml and it uses an accordian to
instantiate the
ContactDetails form. 

Finally CreateClientProfile is a state of another component. 

Ok, so in ContactDetails, I have the following code:

mx:states
mx:State name=default id=defaultCCView
mx:AddChild target={parentDocument.clientPanelControl}
mx:Button id=addClientBtn label=Add My Client/
/mx:AddChild
mx:SetProperty target={addClientBtn} name=enabled value={
formsValid(personalDetails.formValid,contactDetails.formValid)
}/ 
mx:SetEventHandler target={addClientBtn} name=click
handler=submitClientForm()/
/mx:State
/mx:states

mx:Script
![CDATA[
  
public function formsValid(...arguments:Array):Boolean
{
for(var i:int = 0; i  arguments.length; ++i)
{
if( arguments[i] == false )
{
return false;
}
}
return true;
}

So, in the CreateClientProfile.mxml, I create a button on it's
 parent
container, ClientPanel.mxml.

ClientPanel - CreateClientProfile - ContactDetails

Eventhough I'm broadcasting the FormValidationChange event
 from the
ContactDetails component it doesn't get picked up from the state
 that
creates the button though it's using databinding on the
formsvalid
function. Any insight?

Thanks,
Sof
 
   

RE: [flexcoders] Re: sandbox issue

2006-04-26 Thread Matt Chotin



We may be looking into bugs on this front, I'm not entirely sure. Only
thing I can think of is that something in the SWF is trying to access
_root or _level0 or something like that which wouldn't be allowed.
Otherwise if it's really just a graphic I think it should work. Can you
try embedding it for now as a workaround?

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexlearner
Sent: Monday, April 24, 2006 9:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: sandbox issue

No ! 
the swf contains just a graphic
and i have not used any effects in flash 8 like shadow or blur..etc.


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

 Does your Flash 8 SWF have AS code that is trying to execute? That
 unfortunately is not allowed (we don't allow cross-VM AS).
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of flexlearner
 Sent: Monday, April 24, 2006 3:50 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] sandbox issue
 
 hello,
 
 
 I have simple mxml file in which I am importing a swf publish in 
 flash8
 I can see the output in flex builder in design mode also get 
 successful compilation result when I compile it by mxmlc command 
line 
 complier 
 but when I open a sand alone swf i get a dialogue box with these 
 error :
 
 
 SecurityError: Error #2047: Security sandbox 
 violation: 'content': 'file:///D|/flexPractice/flextry.swf' may not 
 access 'file:///D|/flexPractice/verticalbar.swf'.
  at mx.controls::Loader/get Loader$404
 $private::contentHolderWidth()
  at mx.controls::Loader/Loader$404$private::contentLoaded()
  at mx.controls::Loader/completeEventHandler()
  at mx.controls::Image/completeEventHandler()
 
 Please help 
 Thanks in advance 
 
 Regards,
 Flex Learner 
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links







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



 








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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Binding with Child Object In Flex 2.0

2006-04-26 Thread Matt Chotin



Well, I think it should, can we have more of an example?

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of vestcomprogrammer
Sent: Tuesday, April 25, 2006 7:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Binding with Child Object In Flex 2.0

Before in flex 1.5 I have this

mx:Binding destination=this.DesignView[0].incomingDescription 
source=AssetTitle.text /

In Flex 2.0 Beta 2 this does not seem to work.



Thanks
Bill





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



 








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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Reference Errors, Flex Beta 2

2006-04-26 Thread Matt Chotin



You sure the beta2 player is correctly installed?

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Harris Reynolds
Sent: Tuesday, April 25, 2006 7:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Reference Errors, Flex Beta 2

Has anyone seen the Flash Player spew out some Reference Errors 
when trying to load a Flex 2 compiled movie? I saw it once last week 
and a co-worker saw it yesterday on an application that I could load 
fine. Below is an example of the errors. This error only comes up 
sporadically, and does not affect all users.

~harris


ReferenceError: Error #1065: Variable _demo_mx_managers_SystemManager 
is not defined

ReferenceError: Error #1065: Variable
_HDividedBoxStyle__embed_css_Assets_swf_mx_skins_cursor_VBoxDivider_15
58936548 is not defined

ReferenceError: Error #1065: Variable
RichTextEditor__embed_mxml_assets_icon_style_italic_png_1789808142 is 
not defined

ReferenceError: Error #1065: Variable
_TreeStyle__embed_css_Assets_swf_TreeNodeIcon_1734862534 is not 
defined

ReferenceError: Error #1065: Variable
_AlertStyle__embed_css_Assets_swf_CloseButtonDown_1884413801 is not 
defined








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



 








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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












RE: [flexcoders] Re: Flex 2.0 Remote Objects over SecureAMFChannel (HTTPS) in Apache or IIS

2006-04-26 Thread Matt Chotin



I'm not sure either since I don't have Apache set up for debugging. We
really don't think there should be a difference between JRun standalone
and JRun with a connector, but clearly something is getting messed up.
Does insecure work with the connector? 

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steven Toth
Sent: Tuesday, April 25, 2006 7:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex 2.0 Remote Objects over SecureAMFChannel
(HTTPS) in Apache or IIS

No, nothing really changed in the flex config. files other than the 
port when I was going directly through Tomcat and JRun. When going 
through Apache and IIS they stayed the same . 

I'd say with near certainty the port is configured correctly since 
I'm seeing the Command and Acknowledge messages in the console and 
the log. Also when going through Apache and IIS I see in the web 
server log that it is calling the messagebroker/amfsecure servlet and 
getting a 200 back. 

For some reason, I can't tell why since there's no source code and 
very little information available in the log other than the messages, 
it does not get (or process) the Remoting messages. That's why I 
feel like something else may need to be configured. However, the 
same configuration works when running directly through JRun over 
SecureAMF (HTTPS). Of course, that's the only time it works.

I appreciate all the help, but I'm not sure where to go from here. 
It doesn't seem like anyone else has tried to get Flex 2 working in a 
secure environment (other than JRun). Like I said, I'd be elated if 
I was doing something wrong that was easily corrected as opposed to 
waiting for a new release. However, I've gone over this more times 
than I'd like to count and I cannot see anything wrong and other (non-
Flex) J2EE applications are running correctly over HTTPS. 


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

 I've forwarded on to QA to see if we know of any issues. Did 
anything
 change between configurations when you use the connector like what
 server name you use? Is the port configured right?
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Steven Toth
 Sent: Monday, April 24, 2006 11:01 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex 2.0 Remote Objects over 
SecureAMFChannel
 (HTTPS) in Apache or IIS
 
 I've also setup the flex application to run on Tomcat. Again, it 
works 
 fine over an AMFChannel (HTTP), but not over a SecureAMF channel 
 (HTTPS). It seems that there's a bug here. The only platform I 
could 
 get it to work strictly over the SecureAMFChannel is standalone 
JRun. 
 I was not able to get it to work strictly over HTTPS on standalone 
 Tomcat, Apache-Tomcat, Apache-JRun, or IIS-JRun. All of these 
 configurations support working applications that are executing 
strictly 
 over HTTPS. 
 
 Has anyone had other results? Can anyone at Macromedia/Adobe 
comment? 
 Flex 2.0 is a great technology, but it's not going to penetrate the 
 mainstream if it won't run on the lion's share of web 
environments. 
 We've made a concerted effort to use Flex 2.0 and it would be 
counter 
 productive to move back to the Flex 1.5 platform. Strictly using 
JRun 
 is not an option where existing environments are already situated. 
 
 I would be elated if I were simply missing something or configured 
 something incorrectly, but other applications are working fine on 
these 
 configurations. Also, as I mentioned previously, I see some of the 
 flex messages in the log. Are there additional settings to run 
over 
 SecureAMF? 
 
 I'm truly at an impass. Any help would be appreciated. Thanks.
 
 --- In flexcoders@yahoogroups.com, Steven Toth steventoth@ 
wrote:
 
  Has anyone been able to get Flex 2.0 remote objects to work over 
a 
  SecureAMFChannel (HTTPS) in Apache or IIS via the JRUN 
connectors? I 
  have had success over a AMFChannel (HTTP) in Apache and IIS, but 
have 
  only been able to get it to work over a SecureAMFChannel (HTTPS) 
when 
  using JRun by itself. 
  
  When executing over a AMFChannel (HTTP) in Apache and IIS, or 
over a 
  SecureAMFChannel (HTTPS) in standalone JRun I see traces for 
  CommandMessage, AcknowledgeMessage, and RemotingMessage. 
However, 
  when running over a SecureAMFChannel (HTTPS) in Apache or IIS I 
only 
  see the CommandMessage and AcknowledgeMessage.
  
  Any help would be greatly appreciated, I've put a lot of effort 
into 
  getting this to work and I'm at a loss. Thanks.
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links







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

RE: [flexcoders] Re: Flex 2 not maintaining order of web service parameters.

2006-04-26 Thread Matt Chotin



We've also fixed this bug in b3.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ilia_papas
Sent: Tuesday, April 25, 2006 11:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex 2 not maintaining order of web service
parameters.

Thanks for the quick response, though the problem still exists for me
if I put them into an object. It seems in its current state, Flex
cannot enforce the order in which arguments are provided.

I have found a way to have JBoss disregard the order of arguments by
editing the wsdl and referencing it in the annotation like so:

 @WebService(name = WSInterface ,
 serviceName = WebService,
 wsdlLocation = META-INF/wsdl/test.wsdl)

To get it to work, I changed the type of parameter input in the wsdl
from sequence to all, ie:

 complexType name=getData
 all
 element name=param1 type=int/
 element name=param2 type=int/
 element name=param3 type=int/
 /all
 /complexType

Though I'd rather use the generated wsdl for simplicity's sake. This
workaround should be sufficient for now.

Thanks,
Ilia 

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

 Try reading the comments on this page:
 http://jeff.mxdj.com/as3_datamanager.htm
 
 I always pass the arguments in an object, and so far no problems..
 
 var args:Object = new Object();
 args.yourParam = first param;
 
 etc.
 
 Good luck
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
 Behalf Of ilia_papas
 Sent: dinsdag 25 april 2006 17:06
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex 2 not maintaining order of web service
 parameters.
 
 Hello, I've been unable to get Flex to submit parameters to a web
 service method in a consistent order. I'm using Flex 2 beta 2 and a
 web service running on JBoss 4.0.4CR2 using annotations.
 
 This problem has been described in the following locations:
 
 -Macromedia Forum: Webservice always returns a Error #2032: Stream
 Error (http://tinyurl.com/ebyg8)
 -flexcoders archive: Flex 2: WebServervice call sometimes swaps
 parameters (http://tinyurl.com/ghwmr)
 -Macromedia Forum: WebService fields out of order
 (http://tinyurl.com/jsdg6)
 
 The order of the parameters appears to be somewhat random, as each
 time you refresh the page, the order changes. Though that order will
 last until you refesh again.
 
 One suggestion was wrapping the parameters in a single complex object.
 However, the problem still persists, as order is not maintained when
 flex serializies the object.
 
 Another suggested setting the parameters like so:
 
 if svc is your webservice id...
 svc.function.arguments = {value1:val1, value2:val2, ...};
 svc.function();
 
 Unfortunately, order is still not mainatained.
 
 Has anyone found a workaround for this?
 
 Thanks,
 Ilia
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links







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



 








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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












RE: [flexcoders] Objects and arrays as treeview datasource

2006-04-26 Thread Matt Chotin










Since the children are named node
and not children the default data descriptor isnt going to
work. You probably need to write a quick ITreeDataDescriptor implementation
that will return the right children property/collection.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonas Windey
Sent: Tuesday, April 25, 2006 1:30
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Objects and
arrays as treeview datasource





Hi,



Im trying to fill my treeview with data retrieved
from a webservice. I have my resultformat set to default (Object), as e4x or
xml doesnt give the correct result.



Filling a datagrid with the data I retrieve works perfectly,
but the problem is when there are nested objects in it, the tree doesnt
draw childNodes.



This is the value of my webservice result object:



event = events.DataManagerResultEvent (@2b67be6)

 bubbles = false :
Boolean

 cancelable = false :
Boolean

 currentTarget =
managers.DataManager (@2b0b0b6)

 eventPhase = 2 [0x2]
: Number

 result =
mx.utils.ObjectProxy (@29d6e46)


getCategoriesResult = Object (@2bab0a6)


node = Object (@2bab8c6)


node = Array (@2b672b6)


[0] = Object (@2baba66)


catID = 15 [0xf] : Number


label = Pixco Labs : String


[1] = Object (@2babc26)


catID = 1 [0x1] : Number


label = Technology : String


node = Array (@2b671c6)


[0] = Object (@2babe06)


catID = 6 [0x6] : Number


label = ASP.NET : String


[1] = Object (@2b9c046)


catID = 7 [0x7] : Number


label = HTML/CSS : String


[2] = Object (@2b9c246)


catID = 8 [0x8] : Number


label = _javascript_ : String


[3] = Object (@2b9c426)


catID = 9 [0x9] : Number


label = SQL : String


[4] = Object (@2b9c606)


catID = 10 [0xa] : Number


label = Tech Experiments : String


[5] = Object (@2b9c7e6)


catID = 16 [0x10] : Number


label = Flash/Flex/Flash Lite : String



length = 6 [0x6] : Number


[2] = Object (@2b6fa06)


catID = 2 [0x2] : Number


label = Utilities : String


node = Array (@2b67376)


[0] = Object (@2babf66)


catID = 11 [0xb] : Number


label = Client tools : String


[1] = Object (@2babd66)


catID = 12 [0xc] : Number


label = Server tools : String


length = 2 [0x2] : Number


[3] = Object (@2babb86)


catID = 3 [0x3] : Number


label = Design : String


node = Array (@2b676d6)


[0] = Object (@2bab966)


catID = 13 [0xd] : Number


label = Cool layouts : String


[1] = Object (@2bab386)


catID = 14 [0xe] : Number


label = Design experiments : String


length = 2 [0x2] : Number


[4] = Object (@2c62e26)


catID = 4 [0x4] : Number


label = Usability : String


[5] = Object (@2c62286)


catID = 5 [0x5] : Number


label = Off-topic : String


length = 6 [0x6] : Number



xmlns = 0 [0x0] : Number


object = Object (@2bab1a6)


uid = F97D8CAC-0C05-4ED5-3B1F090A : String


xmlns = http://tempuri.org/ : String

 target =
managers.DataManager (@2b0b0b6)

 type =
getCategoriesResponse : String





The tree only renders the nodes in the root, it
doesnt create the subNodes.

Do I need to loop through this data in code? It would be a
lot easier if I could just put this result as the dataSource for my tree.



Thanks for any suggestions,
Jonas









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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] SVG as Image source at runtime in Flex 2.0?

2006-04-26 Thread Matt Chotin



No, SVG support unfortunately is only when you embed.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of willchapm
Sent: Tuesday, April 25, 2006 3:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] SVG as Image source at runtime in Flex 2.0?

In Beta2, I can only use an SVG as an embedded source for an Image.

I'd like to be able to set an Image source to an SVG
URL at runtime.

Will this be possible in a later beta, or in the
shipping version of Flex?

Thanks,
---Will Chapman






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



 








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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Component Framework RSL cached by the player - is that reasonable?

2006-04-26 Thread Matt Chotin



Believe me we've thought about it. In the end we decided that adding
the support into the Player to download and cache some libraries that
were only from Adobe (because there ended up being huge security holes
if we allowed 3rd party caching) wasn't going to provide enough value to
first-time users to warrant us undertaking it at this time. Doesn't
mean the idea is dead, it continues to be something we think about.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brian Lesser
Sent: Tuesday, April 25, 2006 7:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Component Framework RSL cached by the player - is
that reasonable?

Hi,
After Sho's talk at FITC, I've been thinking a little more about runtime

shared libraries. They are a great idea but the first time someone loads

something from a site they have to download each RSL. If they visit 
different sites that use Flex they will be forced to download much of 
the same component framework each time. In other words users will be 
downloading a lot of duplicate code over and over and over again. Each 
time they do that they will watch the progress bar. Not a good
experience.

In a post after MIX 06 Branden Hall mentions that the WPF/E plugin will 
have a limited set of components baked into the plugin:

http://www.waxpraxis.org/article/2/we-finally-see-the-flash-killer-from-
microsoft

It makes me wonder how MS plans to update those components/containers?

But the idea has some merit. Now, let's say that the Flash 9 (or Flash 
10) player could download from Adobe and cache each release of the 
component framework as an RSL. If there was a compiler setting you could

use to tell the compiler: get version 1.2.2 of the framework from 
adobe.com you would be set. When your SWF loaded the player would check

its cache to see if it already had the framework 1.2.2 RSL. If not it 
would get it from Adobe. The next time someone needed that version of 
the framework. The user wouldn't have to wait for it to load.

Does that make sense? It's obviously too close to Flex 2's release to 
seriously request it version 2.0, but maybe it is reasonable to propose 
it for a later release?

I'm curious if people think a scheme like that is workable and 
beneficial. My apologies if this has already been discussed or is 
obviously stupid.

Yours truly,
-Brian

-- 
__
Brian Lesser
Assistant Director, Teaching and Technology Support
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario Phone: (416) 979-5000 ext. 6835
M5B 2K3 Fax: (416) 979-5220
Office: AB48D E-mail: [EMAIL PROTECTED]
(Enter through LB66) Web: http://www.ryerson.ca/~blesser
__



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



 








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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












RE: [flexcoders] Flex hangs when server times out session

2006-04-26 Thread Matt Chotin










Ah, 1.5, different story maybe. Is the RemoteObject
stateless or stateful? Of course once I have this info Im not sure Ill
have any ideas Do you know if the RemoteObject is being reached at all
when it hangs? Can you turn on the logging on flex-config and the
gateway-config files so that you can see what is sent across after the timeout
(youd probably want to set the timeout to something low to test this).



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, April 25, 2006 8:15
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex
hangs when server times out session







I am calling a remote object on the jboss server with tomcat 5.5.
We are using custom authentication, we use setusernamepassword on the remote
object to set the authorized user. We are using flex 1.5.























Thanks,





Brent

Matt Chotin
[EMAIL PROTECTED] wrote:





Hi Brent,

I checked with QA here but no one had seen hangs like you describe. So
we need more info as to what your setup entails. What channel are you
using? What kind of destination are you hitting (RemoteObject I
assume)? How was authentication enforced, constraints on a destination
and using setCredentials? Or was this through HTTP authentication?

The more details you can provide the easier I can ask someone to try
reproducing.

If you want to send code that's fine, just please make sure that you
don't send something with a .zip extension because the Adobe spam filter
will eliminate it (you can take the .zip and add a different extension
like .zipper)

Thanks!
Matt

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of jfournet
Sent: Wednesday, April 19, 2006 8:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex hangs when server times out session

My flex interface hangs when the jboss server automatically times out 
the session after 30min of being idle. How do I detect this and 
create a new session so that I can automatically send the user to the 
login screen again.

Thanks,
Brent






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

















How low will we go? Check
out Yahoo! Messengers low PC-to-Phone
call rates. 






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] (Flex20b2) RemoteObject access problem

2006-04-26 Thread Matt Chotin










Are you running the SWF from http://localhost:8080/flex/ in your
browser? Everything seems OK to me otherwise. Try changing the my-am channel
entry to http://localhost:8080/flex/messagebroker/amf,
but you shouldnt have needed to do it.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of aejaz_98
Sent: Tuesday, April 25, 2006
10:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] (Flex20b2)
RemoteObject access problem





Hi,

I have posted a couple of messages on calling a method on a Java object using
mx:RemoteObject tag but so far I haven't been successful. With help
from Peter  Suresh I did proceed a little bit further but I am still
unable to successfully call the method on the server side object. Since I
described the problem in bits  pieces before, I think that I may have
missed some step(s) which I don't know about. Here is what I have done step by
step. Please let me know if I am doing anything wrong or not doing something.

Basically what I wanted to do was to verify the connectivity from the browser
side to a simple Java class on the back end using RemoteObject tag before doing
anything major. To do this I take a (String) name from a TextInput field which
is sent to the getString() method of the class called Echo which appends Welcome
 to the incoming String  returns it back. This is displayed by the
state 'TargetState'.

1. Here is the mxml file named
SimpleRemoteObject.mxml. Please take a look at my ActionScript methods as I am
new to ActionScript as well.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
xmlns=* layout=absolute
mx:TraceTarget level=0 /
mx:Script
 ![CDATA[
  import mx.rpc.events.*; 
  import mx.collections.*;
  import mx.controls.*
  
  private function
getNameHandler(event:ResultEvent):void
  {
   Result.text =
event.result.toString();
  
currentState='TargetState';
  }
  
  private function
faultHandler(event:FaultEvent):void
 {
 
Alert.show(event.fault.faultstring, Error);
 
Alert.show(event.fault.faultDetail, Error); 
 }
 ]]
/mx:Script
 mx:states 
  mx:State
name=TargetState
   mx:RemoveChild
child={button1}/
   mx:RemoveChild
child={formInput}/
   mx:RemoveChild
child={label1}/
   mx:AddChild
position=lastChild
   
mx:Label x=99 y=130 width=265
height=28 id=Result/
   /mx:AddChild
  /mx:State
 /mx:states

 mx:RemoteObject id=sendStringBack
destination=EchoString showBusyCursor=true
fault=faultHandler(event)
  mx:method name=getString
result=getNameHandler(event)
   mx:arguments
   
str
   
{formInput.text}
   
/str
   /mx:arguments
  /mx:method
 /mx:RemoteObject
 mx:TextInput x=119 y=129
id=formInput/
 mx:Button x=119 y=170
label=Submit fontSize=13 id=button1
click=sendStringBack.getString.send()/
 mx:Label x=119 y=86
text=What is your name ? width=160
fontSize=15 id=label1/ 
/mx:Application

For this project I defined the Flex root folder at
C:\tomcat-5.5.9\webapps\flex  flex server URL to
http://localhost:8080/flex/.

2. Defined the destination EchoString in
C:\tomcat-5.5.9\webapps\flex\WEB-INF\flex\flex-remoting-service.xml as follows,

 adapters
 adapter-definition
id=java-object class=flex.messaging.services.remoting.adapters.JavaAdapter
default=true/
 /adapters

 default-channels
 channel
ref=my-amf/
 /default-channels

 destination id=EchoString
 properties

sourcesamples.SimpleRemoteObject.Echo/source
 /properties
 /destination

3. Saved the mxml file in Flex Builder
which created C:\tomcat-5.5.9\webapps\flex\SimpleRemoteObject directory 
put the HTML, SWFs  _javascript_ files in it.

4. Compiled the Java class called
Echo.java  put Echo.class in
C:\tomcat-5.5.9\webapps\flex\WEB-INF\classes\samples\SimpleRemoteObject.

package samples.SimpleRemoteObject;
public class Echo {
 public Echo(){
 }
 public String getString(String str){
 System.out.println(In
Echo::getString(), got  + str);
 return Welcome  + str ;
 }
}

5. Started tomcat  went to,
http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html

6. First page got painted fine, input a name  clicked on 'Submit'

7. I get Channel.Connect.Failed error. NetConnection.Call.Failed
error:HTTP:Failed in the Alert box.

C:\tomcat-5.5.9\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml
has,

 channel-definition
id=my-amf class=mx.messaging.channels.AMFChannel
 endpoint
uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amf
class=flex.messaging.endpoints.AMFEndpoint/

properties

polling-enabledfalse/polling-enabled

/properties
 /channel-definition


Thanks,
Aejaz








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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and 

RE: [flexcoders] Objects and arrays as treeview datasource

2006-04-26 Thread Jonas Windey










Any examples on how to do that? The help
only mentions some addChildAt methods, but I dont think I have to loop
through all the data?



Jonas











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: woensdag 26 april 2006 8:42
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Objects
and arrays as treeview datasource





Since the children are named node
and not children the default data descriptor isnt going to
work. You probably need to write a quick ITreeDataDescriptor
implementation that will return the right children property/collection.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonas Windey
Sent: Tuesday, April 25, 2006 1:30
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Objects and
arrays as treeview datasource





Hi,



Im trying to fill my treeview with data retrieved from
a webservice. I have my resultformat set to default (Object), as e4x or xml
doesnt give the correct result.



Filling a datagrid with the data I retrieve works perfectly,
but the problem is when there are nested objects in it, the tree doesnt
draw childNodes.



This is the value of my webservice result object:



event = events.DataManagerResultEvent (@2b67be6)

 bubbles = false :
Boolean

 cancelable = false :
Boolean

 currentTarget =
managers.DataManager (@2b0b0b6)

 eventPhase = 2 [0x2]
: Number

 result =
mx.utils.ObjectProxy (@29d6e46)


getCategoriesResult = Object (@2bab0a6)


node = Object (@2bab8c6)


node = Array (@2b672b6)


[0] = Object (@2baba66)


catID = 15 [0xf] : Number


label = Pixco Labs : String


[1] = Object (@2babc26)


catID = 1 [0x1] : Number


label = Technology : String


node = Array (@2b671c6)


[0] = Object (@2babe06)


catID = 6 [0x6] : Number


label = ASP.NET : String


[1] = Object (@2b9c046)


catID = 7 [0x7] : Number


label = HTML/CSS : String


[2] = Object (@2b9c246)


catID = 8 [0x8] : Number


label = _javascript_ : String


[3] = Object (@2b9c426)


catID = 9 [0x9] : Number


label = SQL : String


[4] = Object (@2b9c606)


catID = 10 [0xa] : Number


label = Tech Experiments : String


[5] = Object (@2b9c7e6)


catID = 16 [0x10] : Number


label = Flash/Flex/Flash Lite : String



length = 6 [0x6] : Number


[2] = Object (@2b6fa06)


catID = 2 [0x2] : Number


label = Utilities : String


node = Array (@2b67376)


[0] = Object (@2babf66)


catID = 11 [0xb] : Number


label = Client tools : String


[1] = Object (@2babd66)


catID = 12 [0xc] : Number


label = Server tools : String


length = 2 [0x2] : Number


[3] = Object (@2babb86)


catID = 3 [0x3] : Number


label = Design : String


node = Array (@2b676d6)


[0] = Object (@2bab966)


catID = 13 [0xd] : Number


label = Cool layouts : String


[1] = Object (@2bab386)


catID = 14 [0xe] : Number


label = Design experiments : String


length = 2 [0x2] : Number


[4] = Object (@2c62e26)


catID = 4 [0x4] : Number


label = Usability : String


[5] = Object (@2c62286)


catID = 5 [0x5] : Number


label = Off-topic : String


length = 6 [0x6] : Number



xmlns = 0 [0x0] : Number


object = Object (@2bab1a6)


uid = F97D8CAC-0C05-4ED5-3B1F090A : String


xmlns = http://tempuri.org/ : String

 target =
managers.DataManager (@2b0b0b6)

 type =
getCategoriesResponse : String





The tree only renders the nodes in the root, it
doesnt create the subNodes.

Do I need to loop through this data in code? It would be a
lot easier if I could just put this result as the dataSource for my tree.



Thanks for any suggestions,
Jonas










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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Binding with arrays in Flex 2 beta 2

2006-04-26 Thread Larry Liang




According to documentation, in Flex 1.5, you shouldn't bind your 
dataprovider to a raw array object, because array elements do not 
broadcast [ChangeEvent]. And therefore the flex controls won't update 
itself and refelct the changes.

I just tried to bind an array object to a comboBox dataprovider in 
Flex 2. And it seemed that the changes made to the array object did 
get updated in the combo box control.

I was wondering if this has been fixed in flex 2 purposly, or due to 
some other reasons.

Thanks,

Larry

 











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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] PLEASE: Could someone at Adobe/Macromedia do a Carnigorm Video Intro.

2006-04-26 Thread Robert Thompson



It would be very cool, and beneficial to developers and Adobe, for them to come out with a simple introduction to developing your first Carnigorm application (and possibly comapring them to the other models mentioned).  The Videos are such a great starter -- like a ship setting out to a broad sea, a Video can steer you in the right general direction of understanding and the details fall into place far betters.  So, *** please *** do one of these.  ooops, I didn't mean to beg, but it works for my dog :-)  -r 
		New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Flex2B2 - flexbuilder warning - application doesnt exist

2006-04-26 Thread bhaq1972



some feedback.

i renamed application1.mxml to application2.mxml using the right mouse 
click option 'Rename' available in the Navigator view.

however i keep getting a warning - application1.mxml does not exist.

i usually then go into properties, for the project and 
1) remove it from the application list
2) remove it from the 'Create, manage, and run configurations' window 
3) do a 'clean' project
4) restart flexbuilder

this usually removes the warning message.

i hope in future releases a rename is a cleaner process.

regrds
bod









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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: sandbox issue

2006-04-26 Thread flexlearner



thanks Matt , 
i did that ..and worked ! and also i exported the swf as png and 
imported it dynamically and it worked too..

there is one more problem i wanted to bring to notice and tring to 
find the soultion for the same...

is it the problem of flash player??

i downloaded and installed the flash player 8.5 and can see its 
entry in the window/system32/macromed/flash/  folder as 
flash85b.ocx and flash85.ocx
still when i try to run the mxml file from flexbuilder too its giving 
me the error prompt of lower version found and required version 8.5

can u please suggest me something ! 

thanks in advance 
Flex Learner 

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

 We may be looking into bugs on this front, I'm not entirely sure. 
Only
 thing I can think of is that something in the SWF is trying to 
access
 _root or _level0 or something like that which wouldn't be allowed.
 Otherwise if it's really just a graphic I think it should work. 
Can you
 try embedding it for now as a workaround?
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of flexlearner
 Sent: Monday, April 24, 2006 9:38 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: sandbox issue
 
 No ! 
 the swf contains just a graphic
 and i have not used any effects in flash 8 like shadow or blur..etc.
 
 
 --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
 
  Does your Flash 8 SWF have AS code that is trying to execute? 
That
  unfortunately is not allowed (we don't allow cross-VM AS).
  
  Matt
  
  -Original Message-
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of flexlearner
  Sent: Monday, April 24, 2006 3:50 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] sandbox issue
  
  hello,
  
  
  I have simple mxml file in which I am importing a swf publish in 
  flash8
  I can see the output in flex builder in design mode also get 
  successful compilation result when I compile it by mxmlc command 
 line 
  complier 
  but when I open a sand alone swf i get a dialogue box with these 
  error :
  
  
  SecurityError: Error #2047: Security sandbox 
  violation: 'content': 'file:///D|/flexPractice/flextry.swf' may 
not 
  access 'file:///D|/flexPractice/verticalbar.swf'.
   at mx.controls::Loader/get Loader$404
  $private::contentHolderWidth()
   at mx.controls::Loader/Loader$404$private::contentLoaded()
   at mx.controls::Loader/completeEventHandler()
   at mx.controls::Image/completeEventHandler()
  
  Please help 
  Thanks in advance 
  
  Regards,
  Flex Learner 
  
  
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups Links
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links












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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] F1.5: How to set dataprovider for Repeater-generated grids?

2006-04-26 Thread Tom Sammons



Hi all,

Long time viewer, first time caller... [never mind, it's a pittsburgh thing]

What I'm trying to accomplish is to populate a regular datagrid with 
records representing unassigned requests, and then use a repeater to 
display grids of current workload requests for a short list of 
personnel. An administrator would drag and drop unassigned requests 
into the workload grids, and be able to drag/drop between workload grids 
as well for the purpose of balancing/spreading personnel work around. 
(Eventually, I want to be able to use shared objects to automatically 
update at the client level as well to improve the collaboration, but 
that's a different effort.)

I've been unable to find a suitable example or solution that would 
demonstrate how one would set the dataProvider for datagrids generated 
by a Repeater. Obviously, if I bind the provider during Repeater 
execution it will populate all the grids with the last remote object 
call. (I'm not at all interested in using XML, although even that would 
give me a lead.) From a performance aspect, I'm not positive that the 
repeater may not be the best way to go -- although Tracy posted 
something that says otherwise in 18378 -- but the workload grids will 
generally only be between 3 and 6 in count, and the repeater seems to 
handle that quite well from what I've seen so far, plus takes care of 
all the nice formatting. Just so you know, F2 isn't an option right now.

I'd really appreciate it if someone could provide an example of how I 
can populate the repeater grids with different remote object calls, and 
how I would use the event.target.getRepeaterItem during the drag 
function (since I'm not sure how to use that to reference a specific 
datagrid id in the repeater array --- did I say that right?). I think 
once I have the former, I could figure out how to get all the other 
information I need. I already know how to pass entire datagrid 
structures to ROs for updates, so I just need a friendly jumpstart to 
get my head around this Repeater stuff.

Any help or pointers would be greatly appreciated, and I'll post the 
working code for others who might be interested as well.

Tom







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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Amazon Web Services

2006-04-26 Thread Josh Buhler


Ok, I'm a bit of a newbie when it comes to Flex, but I just can't get this to work. I'm trying to do an item search on Amazon, using the chunk of code below. However, I keep getting the error that I'm missing required parameters like the "SearchIndex". Am I doing something wrong here? I can't find the answer anywhere else, so I'm at your mercy.Thanks,Joshmx:WebService id="amazon" wsdl="http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl"		useProxy="false"		mx:operation name="ItemSearch" showBusyCursor="true"			mx:request xmlns="http://webservices.amazon.com/AWSECommerceService/2006-03-08"ItemSearch	AWSAccessKeyId1SEH1ZG68CMWH9E84VR2/AWSAccessKeyId	ServiceAWSECommerceService/Service	Keywords{searchString.text}/Keywords	SearchIndexBlended/SearchIndex	OperationItemSearch/Operation/ItemSearch			/mx:request		/mx:operation	/mx:WebService	mx:Panel height="114" layout="absolute" title="Search for products" id="panel1" left="10" right="10" top="10"		mx:Label x="10" y="10" text="Search String" id="searchLabel"/		mx:TextInput x="96" y="8" width="228" id="searchString" text="elvis"/		mx:Button x="332" y="8" label="Search" id="startSearch"			click="amazon.ItemSearch.send()"/	/mx:Panel





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  








Re: [flexcoders] page change not work when loaded(FB2 beta2 + ColdFusion) [Roger Needed?]

2006-04-26 Thread ZhaoXingdong



Thanks Matt.

Because maybe swf's loaded function is an important issue when
constructing a relatively larger application. It would be greatly
appreciated if it could be fixed as a bug.

I would confirm it when Beta 3 is public released.

cheers,

-xd

On Mon, 24 Apr 2006 20:59:50 -0700
Matt Chotin [EMAIL PROTECTED] wrote:

 I believe this might be a bug in Beta 2 which we're hoping is fixed in
 Beta 3. The problem is that some classes get loaded in the main swf and
 some classes get loaded into the child swf and sometimes the VM gets
 screwed up in reconciling everything.
 
 Let's see if I put the word Roger in here (and in the subject) if he
 happens to see and can confirm.
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ZhaoXingdong
 Sent: Monday, April 24, 2006 7:26 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] page change not work when loaded(FB2 beta2 +
 ColdFusion)
 
 hi flexcoders;
 
 The idea is I have a container swf, a list swf and an add swf.
 When container swf is running, it first loads the list swf and
 displays some buttons like add. The list swf displays data in
 several pages and you can change the page with a horizontal slide. When
 add button is clicked, the add swf is loaded and displayed with some
 buttons like cancel, submit and clear. And in add swf, when
 cancel button is clicked, the container swf should display the
 list
 swf with its current state.
 
 It's really disturbing me because when list swf runs as a single swf,
 page changing works ok, but when it's running as a loaded swf by
 container swf, page changing gave me the following two errors:
 
 TypeError: Error #1034: Type Coercion failed: cannot convert
 mx.messaging.messages::[EMAIL PROTECTED] to
 mx.messaging.messages.Message
 
 TypeError: Error #1034: Type Coercion failed: cannot convert
 mx.messaging.messages::[EMAIL PROTECTED] to
 mx.messaging.messages.Message
 
 I guess I must have missed something but I tried with no luck. And I
 just couldn't figure out why the errors only occured when loaded.
 
 Any help would be appreciated.
 
 -xd
 
 List.mxml
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
 layout=absolute creationComplete=InitApp()
 mx:Script source=List.as/
 mx:Panel title=List width=95%
 mx:DataGrid id=dg dataProvider={svc.getList.result}
 width=100% rowCount=2
 mx:columns
 mx:DataGridColumn headerText=Name
 dataField=apm_name/
 mx:DataGridColumn
 headerText=Description dataField=apm_desc/
 /mx:columns
 /mx:DataGrid
 mx:HBox width=100%
 mx:Spacer width=25%/
 mx:HSlider id=hsldPageNo width=50%
 minimum=1 maximum={svc.getPageCounts.result} tickInterval=1
 snapInterval=1 dataTipPlacement=bottom
 dataTipFormatFunction=pageToolTipFunc change=pageChange(event);/
 mx:Spacer width=25%/
 /mx:HBox
 /mx:Panel
 mx:RemoteObject id=svc destination=ColdFusion
 source=cf.ap/
 /mx:Application
 
 List.as
 import mx.events.SliderEvent;
 public function InitApp():void {
 getInfo(0);
 }
 public function getInfo(nPageNo:int):void {
 svc.getList(nPageNo);
 svc.getPageCounts();
 }
 private function pageChange(event:SliderEvent):void {
 getInfo(event.currentTarget.value - 1);
 }
 private function pageToolTipFunc(val:String):String {
 return page  + int(val);
 }
 
 
 Add.mxml
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
 layout=absolute
 mx:Script source=Add.as/
 mx:Panel title=AddForm width=95%
 mx:Form width=100%
 mx:FormItem label=Name required=true
 mx:TextInput id=txtiName/
 /mx:FormItem
 mx:FormItem label=Description
 mx:TextInput id=txtiDesc/
 /mx:FormItem
 mx:HBox width=100%
 mx:Button label=Cancel
 click=cancelAction();/
 mx:Spacer width=100%/
 mx:Button label=Reset
 click=clearAction();/
 mx:Button label=Submit
 click=addAction();/
 /mx:HBox
 /mx:Form
 /mx:Panel
 /mx:Application
 
 Add.as
 public function addAction():void {
 clearForm();
 if(this.automationParent) {
 var obj:Object =
 Object(this).automationParent.parentApplication;
 obj.afterAdd(addok);
 }
 }
 public function cancelAction():void {
 clearForm();
 if(this.automationParent) {
 var obj:Object =
 Object(this).automationParent.parentApplication;
 obj.afterAdd(cancel);
 }
 }
 public function clearAction():void {
 clearForm();
 }
 public function clearForm():void {
 txtiName.text = ;
 txtiDesc.text = ;
 }
 
 
 Container.mxml
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
 layout=absolute backgroundColor=#FF
 mx:Script source=Container.as/
 mx:VBox width=95% height=95% horizontalAlign=center
 mx:ViewStack id=vstk width=100% height=100%
 change=changeDisplay(event);
 mx:Panel id=cnvList label=List width=100%
 height=100%
 mx:Button label=Add
 click=toAddForm();/
 mx:Loader id=ldrList width=100%
 height=100% source=List.swf/
 /mx:Panel
 mx:Panel id=cnvAdd label=Add width=100%
 height=100%
 mx:Loader id=ldrAdd width=100%
 height=100% 

[flexcoders] Flex2 dataservice composite primary key

2006-04-26 Thread deepu_verma



Is this a correct way to define the composite primary key
 destination id=product
   adapter ref=coldfusion-dao /
   properties
 metadata
 identity property=id/
 identity property=productId/
 
 /metadata













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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] [Flex2B2] DataGrid refresh problem

2006-04-26 Thread Andrea Varga



Hi!

Here I have another problem with DataGrid:
http://virtualro.co.uk/~andi/flex/datagrid/2/Test2.html
(View Source enabled)

The Change button adds some characters to the first element of the 
DataProvider. But the DataGrid does not refresh its content accordingly.
The Add button adds a new element to the DataProvider. This time the 
DataGrid refreshes, the new element is there, and even the changes made 
before are visible.
What an I missing? Why doesn't my changes show up in the DataGrid?

Thanks,
Andi






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] player 8.5 difficulty

2006-04-26 Thread flexlearner



I downloaded and installed flash 8.5 player active X from macromedia 
labs site after this when right click on any flash content from any 
website.
Its not showing me flash player 8.5 in settings 

I needed 8.5 to run my flex application 
When I run application from flexbulider 2 I get the error as the flash 
player found is of lower version and player 8.5 and above is needed 

Please please help .. I am not able to move forward because of this 
problem 
 









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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Re: How to set the Color of a Slider Thumb?

2006-04-26 Thread flexabledev



Thanks Deepa!

I'm using Flex 2 B2, so that helps. Also, can you give me an example
of how to set the style for a slider that's in a Repeater? 



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

 Well in Flex 2 you'd set the fillColors style to color the slider thumb.
 You would pass in the same color for both values for the thumb to have a
 flat color, or you can achieve a color gradient by varying the colors
 for both the values. 
 
 I think the same might be true in Flex 1.5, but I haven't tried it out. 
 
 deepa
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of flexabledev
 Sent: Tuesday, April 25, 2006 5:02 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How to set the Color of a Slider Thumb?
 
 Can someone tell me how to do this? Thanks!
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links











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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Amazon Web Services

2006-04-26 Thread Karl Johnson





If you are sure that you are properly providing all of the 
parameters required and are still not having success...it probably means that a 
dynamic value of one of your parameters is returned "undefined" as its value. 
This will cause flex to say that it does not have all of the required params and 
will not make the ws call. Does the service call work when you use a hardcoded 
value instead of {searchString.text}? If so, then I would change the button to 
call amazon.ItemSearch(accessKey, service, keywords, searchString.text, 
operation); instead of just calling send with all of the predefind parameters. 
Just a thought, it may not be the problem at all but is the first thing that 
came to mind. Hope it helps.

Something I should have accessed first, is the error you 
are getting coming from the amazon service or is a flex error that is thrown 
prior to the service being called? 

|

Karl Johnson
Cynergy Systems, Inc.


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Josh 
BuhlerSent: Wednesday, April 26, 2006 12:33 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Amazon Web 
Services

Ok, I'm a bit of a newbie when it 
comes to Flex, but I just can't get this to work. I'm trying to do an item 
search on Amazon, using the chunk of code below. However, I keep getting the 
error that I'm missing required parameters like the "SearchIndex". Am I doing 
something wrong here? I can't find the answer anywhere else, so I'm at your 
mercy.

Thanks,

Josh


mx:WebService 
id="amazon" 
wsdl="http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl"
useProxy="false"
mx:operation 
name="ItemSearch" 
showBusyCursor="true"
mx:request 
xmlns="http://webservices.amazon.com/AWSECommerceService/2006-03-08"
ItemSearch
AWSAccessKeyId1SEH1ZG68CMWH9E84VR2/AWSAccessKeyId
ServiceAWSECommerceService/Service
Keywords{searchString.text}/Keywords
SearchIndexBlended/SearchIndex
OperationItemSearch/Operation
/ItemSearch
/mx:request
/mx:operation
/mx:WebService
mx:Panel 
height="114" 
layout="absolute" 
title="Search for 
products" id="panel1" left="10" 
right="10" 
top="10"
mx:Label 
x="10" 
y="10" 
text="Search 
String" id="searchLabel"/
mx:TextInput 
x="96" 
y="8" 
width="228" 
id="searchString" 
text="elvis"/
mx:Button 
x="332" 
y="8" 
label="Search" 
id="startSearch"
click="amazon.ItemSearch.send()"/
/mx:Panel






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Amazon Web Services

2006-04-26 Thread Benoit Hediard





I've also encountered this error:
http://www.cflex.net/flexcoders.cfm?Message=msg25454.html

Now,I'm using the AmazonREST 
services...

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Josh 
BuhlerEnvoyé: mercredi 26 avril 2006 13:33À: 
flexcoders@yahoogroups.comObjet: [flexcoders] Amazon Web 
Services

Ok, I'm a bit of a newbie when it 
comes to Flex, but I just can't get this to work. I'm trying to do an item 
search on Amazon, using the chunk of code below. However, I keep getting the 
error that I'm missing required parameters like the "SearchIndex". Am I doing 
something wrong here? I can't find the answer anywhere else, so I'm at your 
mercy.

Thanks,

Josh


mx:WebService 
id="amazon" 
wsdl="http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl"
useProxy="false"
mx:operation 
name="ItemSearch" 
showBusyCursor="true"
mx:request 
xmlns="http://webservices.amazon.com/AWSECommerceService/2006-03-08"
ItemSearch
AWSAccessKeyId1SEH1ZG68CMWH9E84VR2/AWSAccessKeyId
ServiceAWSECommerceService/Service
Keywords{searchString..text}/Keywords
SearchIndexBlended/SearchIndex
OperationItemSearch/Operation
/ItemSearch
/mx:request
/mx:operation
/mx:WebService
mx:Panel 
height="114" 
layout="absolute" 
title="Search for 
products" id="panel1" left="10" 
right="10" 
top="10"
mx:Label 
x="10" 
y="10" 
text="Search 
String" id="searchLabel"/
mx:TextInput 
x="96" 
y="8" 
width="228" 
id="searchString" 
text="elvis"/
mx:Button 
x="332" 
y="8" 
label="Search" 
id="startSearch"
click="amazon.ItemSearch.send()"/
/mx:Panel






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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: (Flex20b2) RemoteObject access problem

2006-04-26 Thread aejaz_98



Hi Matt,

Thanks for your reply. Yes, I am running the SWF using the URL
http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html

I also changed the channel endpoint URI from
http://{server.name}:{server.port}/{context.root}/messagebroker/amf
to
http://localhost:8080/flex/messagebroker/amf
but I still get the same result i.e. Channel.Connect.Failed error.
NetConnection.Call.Failed error:HTTP:Failed .

Please let me know what else could be missin/misconfigured.

Thanks,
Aejaz

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

 Are you running the SWF from http://localhost:8080/flex/ in your
 browser? Everything seems OK to me otherwise. Try changing the my-am
 channel entry to http://localhost:8080/flex/messagebroker/amf, but you
 shouldn't have needed to do it.
 
 
 
 Matt
 
 
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of aejaz_98
 Sent: Tuesday, April 25, 2006 10:47 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] (Flex20b2) RemoteObject access problem
 
 
 
 Hi,
 
 I have posted a couple of messages on calling a method on a Java object
 using mx:RemoteObject tag but so far I haven't been successful. With
 help from Peter  Suresh I did proceed a little bit further but I am
 still unable to successfully call the method on the server side object.
 Since I described the problem in bits  pieces before, I think that I
 may have missed some step(s) which I don't know about. Here is what I
 have done step by step. Please let me know if I am doing anything wrong
 or not doing something.
 
 Basically what I wanted to do was to verify the connectivity from the
 browser side to a simple Java class on the back end using RemoteObject
 tag before doing anything major. To do this I take a (String) name from
 a TextInput field which is sent to the getString() method of the class
 called Echo which appends Welcome  to the incoming String  returns it
 back. This is displayed by the state 'TargetState'.
 
 1. Here is the mxml file named SimpleRemoteObject.mxml. Please take a
 look at my ActionScript methods as I am new to ActionScript as well.
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
 layout=absolute
 mx:TraceTarget level=0 /
 mx:Script
 ![CDATA[
 import mx.rpc.events.*; 
 import mx.collections.*;
 import mx.controls.*
 
 private function getNameHandler(event:ResultEvent):void
 {
 Result.text = event.result.toString();
 currentState='TargetState';
 }
 
 private function faultHandler(event:FaultEvent):void
 {
 Alert.show(event.fault.faultstring, Error);
 Alert.show(event.fault.faultDetail, Error); 
 }
 ]]
 /mx:Script
 mx:states 
 mx:State name=TargetState
 mx:RemoveChild child={button1}/
 mx:RemoveChild child={formInput}/
 mx:RemoveChild child={label1}/
 mx:AddChild position=lastChild
 mx:Label x=99 y=130 width=265 height=28
 id=Result/
 /mx:AddChild
 /mx:State
 /mx:states
 
 mx:RemoteObject id=sendStringBack destination=EchoString
 showBusyCursor=true fault=faultHandler(event)
 mx:method name=getString result=getNameHandler(event)
 mx:arguments
 str
 {formInput.text}
 /str
 /mx:arguments
 /mx:method
 /mx:RemoteObject
 mx:TextInput x=119 y=129 id=formInput/
 mx:Button x=119 y=170 label=Submit fontSize=13 id=button1
 click=sendStringBack.getString.send()/
 mx:Label x=119 y=86 text=What is your name ? width=160
 fontSize=15 id=label1/ 
 /mx:Application
 
 For this project I defined the Flex root folder at
 C:\tomcat-5.5.9\webapps\flex  flex server URL to
 http://localhost:8080/flex/.
 
 2. Defined the destination EchoString in
 C:\tomcat-5.5.9\webapps\flex\WEB-INF\flex\flex-remoting-service.xml as
 follows,
 
 adapters
 adapter-definition id=java-object
 class=flex.messaging.services.remoting.adapters.JavaAdapter
 default=true/
 /adapters
 
 default-channels
 channel ref=my-amf/
 /default-channels
 
 destination id=EchoString
 properties
 sourcesamples.SimpleRemoteObject.Echo/source
 /properties
 /destination
 
 3. Saved the mxml file in Flex Builder which created
 C:\tomcat-5.5.9\webapps\flex\SimpleRemoteObject directory  put the
 HTML, SWFs  _javascript_ files in it.
 
 4. Compiled the Java class called Echo.java  put Echo.class in
 C:\tomcat-5.5.9\webapps\flex\WEB-INF\classes\samples\SimpleRemoteObject.
 
 package samples.SimpleRemoteObject;
 public class Echo {
 public Echo(){
 }
 public String getString(String str){
 System.out.println(In Echo::getString(), got  + str);
 return Welcome  + str ;
 }
 }
 
 5. Started tomcat  went to,
 http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html
 
 6. First page got painted fine, input a name  clicked on 'Submit'
 
 7. I get Channel.Connect.Failed error. NetConnection.Call.Failed
 error:HTTP:Failed in the Alert box.
 
 C:\tomcat-5.5.9\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml
 has,
 
 channel-definition id=my-amf
 class=mx.messaging.channels.AMFChannel
 endpoint
 

Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a Carnigorm Video Intro.

2006-04-26 Thread michael . corbridge



 I have a very (very) simple sample app that I use to illustrate how to get
the ball rolling with Cairngorm2 that I can send to you. It includes
documentation on how to add your own dispatchEvent in step-by-step
instructions. I'm not knocking the Cairngorm2 'Login' example, but I think
that a 'hold-your-hand' example is helpful for those getting familiar with
patterns.



---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---








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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] how to make a vertical dragable guide?

2006-04-26 Thread shemeshkale



hi,
i have to do a vertical guide (like in photoshop)
i thought of a VRule that can be dragged only left or right.
i didnt have any luck with my attempts with dragging.

PLEASE help me.










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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Framerate of Flex (Movies)

2006-04-26 Thread Adam Sebastian










Hi @ll,



does anyone know the default framerate of flex apps
and where to configure it (if possible)?



Thx 



Sebastian Adam









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: (Flex20b2) RemoteObject access problem

2006-04-26 Thread aejaz_98



Hi Muzak,

Thanks for your reply. The JVM version used by tomcat is 1.5.0_04.

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

 What JVM version is Tomcat using?
 I had that same error with JRun because of an older JVM version.
 You'll need at least 1.4.2_06 (if i'm not mistaken)
 
 kind regards,
 Muzak
 
 - Original Message - 
 From: aejaz_98 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, April 26, 2006 3:58 PM
 Subject: [flexcoders] Re: (Flex20b2) RemoteObject access problem
 
 
  Hi Matt,
 
  Thanks for your reply. Yes, I am running the SWF using the URL
  http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html
 
  I also changed the channel endpoint URI from
  http://{server.name}:{server.port}/{context.root}/messagebroker/amf
  to
  http://localhost:8080/flex/messagebroker/amf
  but I still get the same result i.e. Channel.Connect.Failed error.
  NetConnection.Call.Failed error:HTTP:Failed .
 
  Please let me know what else could be missin/misconfigured.
 
  Thanks,
  Aejaz
 











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












Re: [flexcoders] Re: (Flex20b2) RemoteObject access problem

2006-04-26 Thread Muzak



What JVM version is Tomcat using?
I had that same error with JRun because of an older JVM version.
You'll need at least 1.4.2_06 (if i'm not mistaken)

kind regards,
Muzak

- Original Message - 
From: aejaz_98 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, April 26, 2006 3:58 PM
Subject: [flexcoders] Re: (Flex20b2) RemoteObject access problem


 Hi Matt,

 Thanks for your reply. Yes, I am running the SWF using the URL
 http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html

 I also changed the channel endpoint URI from
 http://{server.name}:{server.port}/{context.root}/messagebroker/amf
 to
 http://localhost:8080/flex/messagebroker/amf
 but I still get the same result i.e. Channel.Connect.Failed error.
 NetConnection.Call.Failed error:HTTP:Failed .

 Please let me know what else could be missin/misconfigured.

 Thanks,
 Aejaz









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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a Carnigorm Video Intro.

2006-04-26 Thread Claudia Barnal



Hi Michael,

I would love to have a look at your sample app! And I guess many
others might be, and surely many others will be in the future when
Flex 2 comes out. So be prepared to receive many requests. ;)

Thanks,
Claudia


On 4/26/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I have a very (very) simple sample app that I use to illustrate how to get
 the ball rolling with Cairngorm2 that I can send to you. It includes
 documentation on how to add your own dispatchEvent in step-by-step
 instructions. I'm not knocking the Cairngorm2 'Login' example, but I think
 that a 'hold-your-hand' example is helpful for those getting familiar with
 patterns.






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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Adding a child to a vbox

2006-04-26 Thread Jeremy Rottman



I am still working on this. I need to dynamically create a grid with a
single row, and two items. Then I need to create labels, and text input
inside the grid. However, I cant get to that point yet, I am still
unable to the complete grid w/ a test label in side the grid. I am
working with in F2B2.

Here is my code.

 for ( var i:Number=0;iresult.length;i++){
 // CREATE GRID //
 var newGrid:Grid = new Grid();
 newGrid.id = 'grid' + i;
 newGrid.percentWidth = 90;
 
parentApplication.closing.mainBox.addChild(newGrid);
 // CREATE GRID ROW //
 var newGridRow:GridRow = new GridRow();
 newGridRow.id = 'gridRow' + i;
 
parentApplication.closing.mainBox.newGrid.addChild(newGridRow);

 if (result[i].TRANSSIDE is 'buyer'){
 // CREATE GRID ITEM //
 var newGridItem:GridItem = new GridItem();
 newGridItem.id = 'listGridItem' + i;
 newGridItem.width = 445;
 
parentApplication.closing.mainBox.newGrid.newGridRow.addChild(newGridIte\
m);
 // CREATE CANVAS //
 var newCanvas:Canvas = new Canvas();
 newCanvas.id = 'canvas' + i;
 
parentApplication.closing.mainBox.newGrid.newGridRow.newGridItem.addChil\
d(newCanvas);
 // CREATE LABEL //
 var newLabel:Label = new Label();
 newLabel.text = TEST;
 
parentApplication.closing.mainBox.newGrid.newGridRow.newGridItem.newCanv\
as.addChild(newLabel);

 }
 else if (result[i].TRANSSIDE is 'seller'){
 // CREATE GRID ITEM //
 var newGridItem:GridItem = new GridItem();
 newGridItem.id = 'saleGridItem' + i;
 newGridItem.width = 529;
 
parentApplication.closing.mainBox.newGrid.newGridRow.addChild(newGridIte\
m);
 // CREATE CANVAS //
 var newCanvas:Canvas = new Canvas();
 newCanvas.id = 'canvas' + i;
 
parentApplication.closing.mainBox.newGrid.newGridRow.newGridItem.addChil\
d(newCanvas);
 // CREATE LABEL //
 var newLabel:Label = new Label();
 newLabel.text = TEST;
 
parentApplication.closing.mainBox.newGrid.newGridRow.newGridItem.newCanv\
as.addChild(newLabel);

 }











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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a Carnigorm Video Intro.

2006-04-26 Thread Dima Ulich



Hello,

 Could you send me one too? 

Dima

--- [EMAIL PROTECTED] wrote:

 I have a very (very) simple sample app that I use
 to illustrate how to get
 the ball rolling with Cairngorm2 that I can send to
 you. It includes
 documentation on how to add your own dispatchEvent
 in step-by-step
 instructions. I'm not knocking the Cairngorm2
 'Login' example, but I think
 that a 'hold-your-hand' example is helpful for those
 getting familiar with
 patterns.
 
 
 

---
 This e-mail message (including attachments, if any)
 is intended for the use
 of the individual or entity to which it is addressed
 and may contain
 information that is privileged, proprietary ,
 confidential and exempt from
 disclosure. If you are not the intended recipient,
 you are notified that
 any dissemination, distribution or copying of this
 communication is
 strictly prohibited. If you have received this
 communication in error,
 please notify the sender and erase this e-mail
 message immediately.

---
 
 
 


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a Carnigorm Video Intro.

2006-04-26 Thread michael . corbridge



I will be sure to send it to you.

The http://www.macromedia.com/devnet/flex/articles/cairngorm_pt1.html
article is great, however I don't think that it has been updated to Flex2
(Steve W?)

---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---








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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Flash plugin

2006-04-26 Thread mepaninaresh



I can only view my html with my swf with flash plugin 8.5.0.212. If I 
upgrade to 8.5.0.246 I just get a blank page.

Any Ideas.

Thought I'll show the board of directors, not impressed with a blank 
screen. 

Running Flex builder 2 beta 1.

PS only 5 days left before it expires, what happens next ?









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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Flash plugin

2006-04-26 Thread Matt Chotin



If your code is Beta 1 you need to use the Beta 1 Player. The two
players are incompatible (and the B3 Player will be incompatible with B2
content).

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mepaninaresh
Sent: Wednesday, April 26, 2006 9:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flash plugin

I can only view my html with my swf with flash plugin 8.5.0.212. If I 
upgrade to 8.5.0.246 I just get a blank page.

Any Ideas.

Thought I'll show the board of directors, not impressed with a blank 
screen. 

Running Flex builder 2 beta 1.

PS only 5 days left before it expires, what happens next ?





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



 








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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Flex 1.5 app hangs when loading

2006-04-26 Thread Simon Fifield





I have a flex app 
that has been loading perfectly well on my localhost dev machine 
(WinXP/Apache2/Tomcat5 - http://localhost/flexapp/index.mxml). 
But when I upload it to the staging server(RHEL3/Apache2/Tomcat5 - http://my.domain.com/index.mxml) it 
will not load, its just hang at 3% to 7%.

I've found people on 
flexcoders having the same problem but no-one has posted their 
solution!

It can't be a 
compilation problem because its obviously built the swf and is attempting to 
load it.
It can't be anything 
to do with Services because it hasn't even got to that stage 
yet.
It can't be the browser because I'm using the same 
browser/flash playerto request both the dev and staged 
apps.

The only difference 
I can see is the domain name and tomcat host/context setup - but I think that 
this must be okay otherwise it would respond with an error (I 
think).

I can't find any 
solutions to this problem - not on Flexcoders, Google 
nowhere!

Anyone who knows why 
this is happening - please, please, please help me!

Also, but this is 
not important, my staging server takes ages to compile the app even though it is 
a monster compared to my local dev server - any ideas?

Regards,
(desperately) 
Simon





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Flex 1.5 app hangs when loading

2006-04-26 Thread JesterXL





A few things to try that have worked for 
me:
- delete the contents of your generated folder 
 recompile
- delay initialization code in your main 
application mxml file by 1 frame (use doLater, or a 2 second interval / 
timeout)
- make a change to a file (such as adding a line 
break), save the file, delete generated, and recompile


- Original Message - 
From: Simon Fifield 
To: flexcoders@yahoogroups.com 
Sent: Wednesday, April 26, 2006 1:12 PM
Subject: [flexcoders] Flex 1.5 app hangs when loading

I have a flex app 
that has been loading perfectly well on my localhost dev machine 
(WinXP/Apache2/Tomcat5 - http://localhost/flexapp/index.mxml). 
But when I upload it to the staging server(RHEL3/Apache2/Tomcat5 - http://my.domain.com/index.mxml) it 
will not load, its just hang at 3% to 7%.

I've found people on 
flexcoders having the same problem but no-one has posted their 
solution!

It can't be a 
compilation problem because its obviously built the swf and is attempting to 
load it.
It can't be anything 
to do with Services because it hasn't even got to that stage 
yet.
It can't be the browser because I'm using the same 
browser/flash playerto request both the dev and staged 
apps.

The only difference 
I can see is the domain name and tomcat host/context setup - but I think that 
this must be okay otherwise it would respond with an error (I 
think).

I can't find any 
solutions to this problem - not on Flexcoders, Google 
nowhere!

Anyone who knows why 
this is happening - please, please, please help me!

Also, but this is 
not important, my staging server takes ages to compile the app even though it is 
a monster compared to my local dev server - any ideas?

Regards,
(desperately) 
Simon





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: F1.5: How to set dataprovider for Repeater-generated grids?

2006-04-26 Thread Doug Lowder



Hi Tom,
Hopefully the sample code below will be enough to get you started. Once the repeated grids have had their dataproviders bound to an array, all you need to do is reassign another array to update the grid just as the "Update grids" button in the sample does. The sample accomplishes this reassignment with the Array.slice() method. You could also use the various grid and dataprovider methods (addItem(), replaceItem(), editField(), etc) to make changes on a row-by-row basis. You should be able to use a remote object result handler in place of the button's click handler to update the dataprovider arrays.
I'll leave the drag-and-drop portion to you, but essentially I believe everything you require should be in the event parameter: event.target, event.dragSource, etc.
?xml version="1.0"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" width="100%"
 mx:Script ![CDATA[  var repeaterData: Array = [ {}, {}, {} ];
 function updateData() : Void { var n: Number = 0; for (var i = 0; i  repeaterData.length; i++) { var dp: Array = repeaterData[i].dp; if (dp == undefined) { repeaterData[i].dp = [{Number: n++}, {Number: n++}, {Number: n++}]; } else { for (var j = 0; j  dp.length; j++) { dp[j].Number++; } repeaterData[i].dp = dp.slice(); } } }
 ]] /mx:Script
 mx:Panel title="Repeated Data Grids" width="80%"
 mx:HBox width="100%"  mx:Repeater id="rp" dataProvider="{repeaterData}" mx:DataGrid dataProvider="{rp.currentItem.dp}" width="100%"/ /mx:Repeater
 /mx:HBox
 mx:ControlBar mx:Button label="Update grids" click="updateData()"/ /mx:ControlBar
 /mx:Panel /mx:Application
--- In flexcoders@yahoogroups.com, Tom Sammons [EMAIL PROTECTED] wrote: Hi all,  Long time viewer, first time caller... [never mind, it's a pittsburgh thing]  What I'm trying to accomplish is to populate a regular datagrid with  records representing unassigned requests, and then use a repeater to  display grids of current workload requests for a short list of  personnel. An administrator would drag and drop unassigned requests  into the workload grids, and be able to drag/drop between workload grids  as well for the purpose of balancing/spreading personnel work around.  (Eventually, I want to be able to use shared objects to automatically  update at the client level as well to improve the collaboration, but  that's a different effort.)  I've been unable to find a suitable example or solution that would  demonstrate how one would set the dataProvider for datagrids generated  by a Repeater. Obviously, if I bind the provider during Repeater  execution it will populate all the grids with the last remote object  call. (I'm not at all interested in using XML, although even that would  give me a lead.) From a performance aspect, I'm not positive that the  repeater may not be the best way to go -- although Tracy posted  something that says otherwise in 18378 -- but the workload grids will  generally only be between 3 and 6 in count, and the repeater seems to  handle that quite well from what I've seen so far, plus takes care of  all the nice formatting. Just so you know, F2 isn't an option right now.  I'd really appreciate it if someone could provide an example of how I  can populate the repeater grids with different remote object calls, and  how I would use the event.target.getRepeaterItem during the drag  function (since I'm not sure how to use that to reference a specific  datagrid id in the repeater array --- did I say that right?). I think  once I have the former, I could figure out how to get all the other  information I need. I already know how to pass entire datagrid  structures to ROs for updates, so I just need a friendly jumpstart to  get my head around this Repeater stuff.  Any help or pointers would be greatly appreciated, and I'll post the  working code for others who might be interested as well.  Tom






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: [Flex2B2] DataGrid refresh problem

2006-04-26 Thread Tim Hoff



Hi Andi,

That's pretty wierd behavior. I'm not exactly sure what to tell 
you. Except, that it looks like the data that is bound to the 
dataGrid is being updated by the button click, but isn't getting 
rendered by the screen. Although I'm sure there is a better way, 
you could give the dataGrid an id (id=dataGrid1) and place 
dataGrid1.updateControl(); after you change the name in the 
doChangeData1(); function. This might just be a glitch that will be 
fixed by final release.

Best,
Tim Hoff

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

 Hi!
 
 Here I have another problem with DataGrid:
 http://virtualro.co.uk/~andi/flex/datagrid/2/Test2.html
 (View Source enabled)
 
 The Change button adds some characters to the first element of the 
 DataProvider. But the DataGrid does not refresh its content 
accordingly.
 The Add button adds a new element to the DataProvider. This time 
the 
 DataGrid refreshes, the new element is there, and even the changes 
made 
 before are visible.
 What an I missing? Why doesn't my changes show up in the DataGrid?
 
 Thanks,
 Andi












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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Re: Flex 2.0 Remote Objects over SecureAMFChannel (HTTPS) in Apache or IIS

2006-04-26 Thread Steven Toth



Yes. Insecure works beautifully, via Apache-JRun, Apache-Tomcat, 
and standalone Tomcat. Haven't tried insecure over IIS-JRun, but 
I'll test it out sometime today. It's just when I'm trying to run in 
a secure mode over anything but standalone JRun. 

Thanks.

-Steven


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

 I'm not sure either since I don't have Apache set up for 
debugging. We
 really don't think there should be a difference between JRun 
standalone
 and JRun with a connector, but clearly something is getting messed 
up.
 Does insecure work with the connector? 
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Steven Toth
 Sent: Tuesday, April 25, 2006 7:53 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex 2.0 Remote Objects over 
SecureAMFChannel
 (HTTPS) in Apache or IIS
 
 No, nothing really changed in the flex config. files other than the 
 port when I was going directly through Tomcat and JRun. When going 
 through Apache and IIS they stayed the same . 
 
 I'd say with near certainty the port is configured correctly since 
 I'm seeing the Command and Acknowledge messages in the console and 
 the log. Also when going through Apache and IIS I see in the web 
 server log that it is calling the messagebroker/amfsecure servlet 
and 
 getting a 200 back. 
 
 For some reason, I can't tell why since there's no source code and 
 very little information available in the log other than the 
messages, 
 it does not get (or process) the Remoting messages. That's why I 
 feel like something else may need to be configured. However, the 
 same configuration works when running directly through JRun over 
 SecureAMF (HTTPS). Of course, that's the only time it works.
 
 I appreciate all the help, but I'm not sure where to go from here. 
 It doesn't seem like anyone else has tried to get Flex 2 working in 
a 
 secure environment (other than JRun). Like I said, I'd be elated 
if 
 I was doing something wrong that was easily corrected as opposed to 
 waiting for a new release. However, I've gone over this more times 
 than I'd like to count and I cannot see anything wrong and other 
(non-
 Flex) J2EE applications are running correctly over HTTPS. 
 
 
 --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
 
  I've forwarded on to QA to see if we know of any issues. Did 
 anything
  change between configurations when you use the connector like what
  server name you use? Is the port configured right?
  
  -Original Message-
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of Steven Toth
  Sent: Monday, April 24, 2006 11:01 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Flex 2.0 Remote Objects over 
 SecureAMFChannel
  (HTTPS) in Apache or IIS
  
  I've also setup the flex application to run on Tomcat. Again, it 
 works 
  fine over an AMFChannel (HTTP), but not over a SecureAMF channel 
  (HTTPS). It seems that there's a bug here. The only platform I 
 could 
  get it to work strictly over the SecureAMFChannel is standalone 
 JRun. 
  I was not able to get it to work strictly over HTTPS on 
standalone 
  Tomcat, Apache-Tomcat, Apache-JRun, or IIS-JRun. All of these 
  configurations support working applications that are executing 
 strictly 
  over HTTPS. 
  
  Has anyone had other results? Can anyone at Macromedia/Adobe 
 comment? 
  Flex 2.0 is a great technology, but it's not going to penetrate 
the 
  mainstream if it won't run on the lion's share of web 
 environments. 
  We've made a concerted effort to use Flex 2.0 and it would be 
 counter 
  productive to move back to the Flex 1.5 platform. Strictly using 
 JRun 
  is not an option where existing environments are already 
situated. 
  
  I would be elated if I were simply missing something or 
configured 
  something incorrectly, but other applications are working fine on 
 these 
  configurations. Also, as I mentioned previously, I see some of 
the 
  flex messages in the log. Are there additional settings to run 
 over 
  SecureAMF? 
  
  I'm truly at an impass. Any help would be appreciated. Thanks.
  
  --- In flexcoders@yahoogroups.com, Steven Toth steventoth@ 
 wrote:
  
   Has anyone been able to get Flex 2.0 remote objects to work 
over 
 a 
   SecureAMFChannel (HTTPS) in Apache or IIS via the JRUN 
 connectors? I 
   have had success over a AMFChannel (HTTP) in Apache and IIS, 
but 
 have 
   only been able to get it to work over a SecureAMFChannel 
(HTTPS) 
 when 
   using JRun by itself. 
   
   When executing over a AMFChannel (HTTP) in Apache and IIS, or 
 over a 
   SecureAMFChannel (HTTPS) in standalone JRun I see traces for 
   CommandMessage, AcknowledgeMessage, and RemotingMessage. 
 However, 
   when running over a SecureAMFChannel (HTTPS) in Apache or IIS I 
 only 
   see the CommandMessage and AcknowledgeMessage.
   
   Any help would be greatly appreciated, I've 

RE: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a Carnigorm Video Intro.

2006-04-26 Thread Mark Davis










Michael,



I would love to get that simple app you
describe. I am just jumping (being thrown?) in to the Flex/Cairngorm community
and am being asked by my company to get up to speed very quickly. I appreciate
any help you can provide. You can send anything to the email below.



[EMAIL PROTECTED]







_

Mark Davis

Applications Developer

HealthGrades: Guiding America to Better Healthcare

NASDAQ:
HGRD

w (720)
963-6585

f
(720) 963-6685

[EMAIL PROTECTED] 

_

The message contains confidential and/or
legally privileged information and is intended for use only by the indicated
addressee. If you are not the named addressee you should not disseminate,
distribute, or copy this e-mail. Please notify the sender immediately by e-mail
if you have received this e-mail by mistake and delete this e-mail from your
system. E-mail transmissions cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late or
incomplete, or contain viruses. The sender therefore does not accept liability
for any errors or omissions in the contents of this message which arise as a
result of e-mail transmission. If verification is required please request a
hard-copy version.











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, April 26, 2006
7:52 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] PLEASE:
Could someone at Adobe/Macromedia do a Carnigorm Video Intro.





I have a very (very) simple sample app that I use to illustrate how to
get
the ball rolling with Cairngorm2 that I can send to you. It
includes
documentation on how to add your own dispatchEvent in step-by-step
instructions. I'm not knocking the Cairngorm2 'Login' example, but I
think
that a 'hold-your-hand' example is helpful for those getting familiar with
patterns.



---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---










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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] How to programmatically make a custom ListItemRender?

2006-04-26 Thread rigidcode



I'm trying to make a custom ListItemRenderer in Actionscript. I was
able to make it display the list correctly, but when I click on
anything in the list, I get this error:

TypeError: Error #1009: null has no properties.
at
mx.controls::List/drawItem()[C:\dev\beta2\sdk\frameworks\mx\controls\List.as:1416]
at
mx.controls.listClasses::ListBase/selectItem()[C:\dev\beta2\sdk\frameworks\mx\controls\listClasses\ListBase.as:2907]
at
mx.controls.listClasses::ListBase/mouseDownHandler()[C:\dev\beta2\sdk\frameworks\mx\controls\listClasses\ListBase.as:4369]
at
mx.controls::List/mouseDownHandler()[C:\dev\beta2\sdk\frameworks\mx\controls\List.as:1801]

Every function in that call stack is not in the documentation.

My hello worldish custom listitemrenderer so far is:

public class CustomItemRenderer extends HBox implements IFactory,
IListItemRenderer {

public var thelabel:Label;

public function CustomItemRenderer() {
super();
this.thelabel=new Label();
this.thelabel.percentWidth=100;
this.addChild(this.thelabel);
}

public function newInstance():* {
return new CustomItemRenderer();
}

public override function get data():Object {
return super.data;
}

public override function set data(value:Object):void {
this.thelabel.text=value['label'];
super.data="">
dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
}

}

I also tried with IDropInListItemRenderer, and I get the same error. 
Here is my instantiation. 

var mylist:List = new List();
mylist.dataProvider=this.myarraycollection;
mylist.itemRenderer=new CustomItemRenderer();













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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] F1.5: How to set dataprovider for Repeater-generated grids?

2006-04-26 Thread Tom Sammons



Hi,

I used the repeatEnd event to call a function that looped through the 
length of the repeater items, and now I can successfully pull down data 
for each datagrid's associated user -- woohoo! (I verified this by 
looking at the recordsets via ServiceCapture). However, when I attempt 
to assign the result set to the datagrid dataprovider (named 
dgAssignments, which is correctly displaying as an array of 3 elements 
via Chris C's Object Inspector), nothing appears to happen. Even more 
confusing, when I dump the RO result to text using ObjectDumper, nothing 
displays except a hyphen (-). Without object dumper, I expected the old 
[object object] at least, but I get undefined.

I think that once I get this part (getting the ro result assigned to the 
DP), I think the rest of it will be pretty simple. 

Anyone have any ideas that I can go with?

TIA, Tom

Postscript: Oops, here's my code:

?xml version=1.0 encoding=utf-8 ?
mx:Application width=100% height=100% 
xmlns:mx=http://www.macromedia.com/2003/mxml xmlns=*
backgroundColor=#3a6ea5 creationComplete=RO_FRS.GetFRSAssignees('');

Inspect /

mx:Script
 ![CDATA[
 import mx.controls.Alert;
 import mx.data.binding.ObjectDumper;
 
 public function doFault(event:Object):Void
 {
 alert(Error invoking CFC:  + event.fault.faultcode + ,  +
 event.fault.faultstring + ,  +
 event.fault.description + ,  +
 event.fault.detail);
 }
 
 public function getAssignments():Void
 {
 for (var i = 0; i  rp.dataProvider._items.length; i++)
 {
 RO_FRS.GetAssignedRequestByUserID(userWID[i].text);

 //kludge here just to view result set, I know it's three 
records
 //because I did top 3 in the RO query
 if (i == 0)
 {ta0.text = RO_FRS.GetAssignedRequestByUserID.result;}
 else if (i == 1)
 {ta1.text = RO_FRS.GetAssignedRequestByUserID.result;}
 else
 {ta2.text = RO_FRS.GetAssignedRequestByUserID.result;}

 
dgAssignments[i].dataProvider=RO_FRS.GetAssignedRequestByUserID.result;
 }
 }
 ]]
 
/mx:Script

mx:RemoteObject
 id=RO_FRS
 endpoint=http://127.0.0.1:8301/flashservices/gateway?x=21
 source=Tom.Remoting.RO_FRS
 fault=doFault(event) /

mx:VBox
 mx:TextArea id=ta0 width=600/
 mx:TextArea id=ta1 width=600/
 mx:TextArea id=ta2 width=600/
/mx:VBox

mx:Tile marginBottom=10 borderStyle=inset verticalGap=15 
id=tileAssignees
 marginLeft=10 backgroundColor=#dd marginTop=10 
marginRight=10
 horizontalGap=10 direction=horizontal autoLayout=false 
clipContent=false 
 
 mx:Repeater id=rp dataProvider={RO_FRS.GetFRSAssignees.result} 
repeatEnd=getAssignments();
 mx:VBox
 mx:HBox
 mx:Label text={rp.currentItem.ATFirstName} 
{rp.currentItem.ATLastName} fontWeight=bold width=150 
textAlign=center/
 mx:Label id=userWID text={rp.currentItem.ATUserId} 
fontWeight=bold width=100 textAlign=center/
 /mx:HBox
 mx:DataGrid id=dgAssignments rowCount=5 width=100% 
editable=false dataProvider=  
 mx:columns
 mx:Array
 mx:DataGridColumn columnName=Request_ID 
headerText=RID /
 mx:DataGridColumn 
columnName=Status_Description headerText=Status /
 mx:DataGridColumn columnName=Requestor_Name 
headerText=Requestee /
 mx:DataGridColumn 
columnName=CategoryDescription headerText=Cat /
 /mx:Array
 /mx:columns
 /mx:DataGrid
 /mx:VBox
 /mx:Repeater
/mx:Tile
 
/mx:Application


Tom Sammons wrote:

Hi all,

Long time viewer, first time caller... [never mind, it's a pittsburgh thing]

What I'm trying to accomplish is to populate a regular datagrid with 
records representing unassigned requests, and then use a repeater to 
display grids of current workload requests for a short list of 
personnel. An administrator would drag and drop unassigned requests 
into the workload grids, and be able to drag/drop between workload grids 
as well for the purpose of balancing/spreading personnel work around. 
(Eventually, I want to be able to use shared objects to automatically 
update at the client level as well to improve the collaboration, but 
that's a different effort.)

I've been unable to find a suitable example or solution that would 
demonstrate how one would set the dataProvider for datagrids generated 
by a Repeater. Obviously, if I bind the provider during Repeater 
execution it will populate all the grids with the last remote object 
call. (I'm not at all interested in using XML, although even that would 
give me a lead.) From a performance aspect, I'm not positive that the 
repeater may not be the best way to go -- although Tracy posted 
something that says otherwise in 18378 -- but the workload grids will 
generally only be between 3 and 6 in count, and the repeater seems to 
handle that quite well from what I've seen so far, plus takes care of 
all the nice formatting. Just so you know, F2 isn't an option right now.

I'd really appreciate it if someone could provide an example of how I 
can populate the repeater grids with different remote object calls, and 
how I would use the event.target.getRepeaterItem during the drag 
function (since I'm not sure how to use that to reference a specific 
datagrid id in the 

RE: [flexcoders] [Flex2B2] DataGrid refresh problem

2006-04-26 Thread Karl Johnson



I assume the event is not firing because the length of the dataprovider
has not changed in this case. Just a guess, but try setting the
dataprovider again or setting it to its self to force a reload of its
data. (grid.dataProvider = grid.dataProvider or grid.dataProvider =
dataObject);

|

Karl Johnson 
Cynergy Systems, Inc. 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andrea Varga
Sent: Wednesday, April 26, 2006 10:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] [Flex2B2] DataGrid refresh problem

Hi!

Here I have another problem with DataGrid:
http://virtualro.co.uk/~andi/flex/datagrid/2/Test2.html
(View Source enabled)

The Change button adds some characters to the first element of the
DataProvider. But the DataGrid does not refresh its content accordingly.
The Add button adds a new element to the DataProvider. This time the
DataGrid refreshes, the new element is there, and even the changes made
before are visible.
What an I missing? Why doesn't my changes show up in the DataGrid?

Thanks,
Andi


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



 








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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Extending Calendar Component for Federal Holidays

2006-04-26 Thread Wally Randall



I have a client who loves the Flex 2 calendar component but wants to 
display Federal holidays in a different color. Is it possible to 
extend the component and add that capability? Has anyone else done 
this?









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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: (Flex20b2) RemoteObject access problem

2006-04-26 Thread Steven Toth



Did you recompile the SWF after changing the endpoint URI? 

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

 Hi Matt,
 
 Thanks for your reply. Yes, I am running the SWF using the URL
 
http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html
 
 I also changed the channel endpoint URI from
 http://{server.name}:{server.port}/{context.root}/messagebroker/amf
 to
 http://localhost:8080/flex/messagebroker/amf
 but I still get the same result i.e. Channel.Connect.Failed error.
 NetConnection.Call.Failed error:HTTP:Failed .
 
 Please let me know what else could be missin/misconfigured.
 
 Thanks,
 Aejaz
 
 --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
 
  Are you running the SWF from http://localhost:8080/flex/ in your
  browser? Everything seems OK to me otherwise. Try changing the 
my-am
  channel entry to http://localhost:8080/flex/messagebroker/amf, 
but you
  shouldn't have needed to do it.
  
  
  
  Matt
  
  
  
  
  
  From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
  Behalf Of aejaz_98
  Sent: Tuesday, April 25, 2006 10:47 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] (Flex20b2) RemoteObject access problem
  
  
  
  Hi,
  
  I have posted a couple of messages on calling a method on a Java 
object
  using mx:RemoteObject tag but so far I haven't been successful. 
With
  help from Peter  Suresh I did proceed a little bit further but I 
am
  still unable to successfully call the method on the server side 
object.
  Since I described the problem in bits  pieces before, I think 
that I
  may have missed some step(s) which I don't know about. Here is 
what I
  have done step by step. Please let me know if I am doing anything 
wrong
  or not doing something.
  
  Basically what I wanted to do was to verify the connectivity from 
the
  browser side to a simple Java class on the back end using 
RemoteObject
  tag before doing anything major. To do this I take a (String) 
name from
  a TextInput field which is sent to the getString() method of the 
class
  called Echo which appends Welcome  to the incoming String  
returns it
  back. This is displayed by the state 'TargetState'.
  
  1. Here is the mxml file named SimpleRemoteObject.mxml. Please 
take a
  look at my ActionScript methods as I am new to ActionScript as 
well.
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
xmlns=*
  layout=absolute
  mx:TraceTarget level=0 /
  mx:Script
  ![CDATA[
  import mx.rpc.events.*; 
  import mx.collections.*;
  import mx.controls.*
  
  private function getNameHandler(event:ResultEvent):void
  {
  Result.text = event.result.toString();
  currentState='TargetState';
  }
  
  private function faultHandler(event:FaultEvent):void
  {
  Alert.show(event.fault.faultstring, Error);
  Alert.show(event.fault.faultDetail, Error); 
  }
  ]]
  /mx:Script
  mx:states 
  mx:State name=TargetState
  mx:RemoveChild child={button1}/
  mx:RemoveChild child={formInput}/
  mx:RemoveChild child={label1}/
  mx:AddChild position=lastChild
  mx:Label x=99 y=130 width=265 height=28
  id=Result/
  /mx:AddChild
  /mx:State
  /mx:states
  
  mx:RemoteObject id=sendStringBack destination=EchoString
  showBusyCursor=true fault=faultHandler(event)
  mx:method name=getString result=getNameHandler
(event)
  mx:arguments
  str
  {formInput.text}
  /str
  /mx:arguments
  /mx:method
  /mx:RemoteObject
  mx:TextInput x=119 y=129 id=formInput/
  mx:Button x=119 y=170 label=Submit fontSize=13 
id=button1
  click=sendStringBack.getString.send()/
  mx:Label x=119 y=86 text=What is your name ? 
width=160
  fontSize=15 id=label1/ 
  /mx:Application
  
  For this project I defined the Flex root folder at
  C:\tomcat-5.5.9\webapps\flex  flex server URL to
  http://localhost:8080/flex/.
  
  2. Defined the destination EchoString in
  C:\tomcat-5.5.9\webapps\flex\WEB-INF\flex\flex-remoting-
service.xml as
  follows,
  
  adapters
  adapter-definition id=java-object
  class=flex.messaging.services.remoting.adapters.JavaAdapter
  default=true/
  /adapters
  
  default-channels
  channel ref=my-amf/
  /default-channels
  
  destination id=EchoString
  properties
  sourcesamples.SimpleRemoteObject.Echo/source
  /properties
  /destination
  
  3. Saved the mxml file in Flex Builder which created
  C:\tomcat-5.5.9\webapps\flex\SimpleRemoteObject directory  put 
the
  HTML, SWFs  _javascript_ files in it.
  
  4. Compiled the Java class called Echo.java  put Echo.class in
  C:\tomcat-5.5.9\webapps\flex\WEB-
INF\classes\samples\SimpleRemoteObject.
  
  package samples.SimpleRemoteObject;
  public class Echo {
  public Echo(){
  }
  public String getString(String str){
  System.out.println(In Echo::getString(), got  + str);
  return Welcome  + str ;
  }
  }
  
  5. Started tomcat  went to,
  
http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html
  
  6. First page got painted fine, input a name  

Re: [flexcoders] Amazon Web Services

2006-04-26 Thread Josh Buhler


Sorry - I should have specified that I was getting the error from the web service, not Flex.  I did try changing the code to send a hard-coded value and not the textfield value, and it's still pitching errors at me.- joshOn Apr 26, 2006, at 6:30 AM, Karl Johnson wrote:  If you are sure that you are properly providing all of the parameters required and are still not having success...it probably means that a dynamic value of one of your parameters is returned "undefined" as its value. This will cause flex to say that it does not have all of the required params and will not make the ws call. Does the service call work when you use a hardcoded value instead of {searchString.text}? If so, then I would change the button to call amazon.ItemSearch(accessKey, service, keywords, searchString.text, operation); instead of just calling send with all of the predefind parameters. Just a thought, it may not be the problem at all but is the first thing that came to mind. Hope it helps.   Something I should have accessed first, is the error you are getting coming from the amazon service or is a flex error that is thrown prior to the service being called?    |   Karl Johnson Cynergy Systems, Inc.   From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Josh BuhlerSent: Wednesday, April 26, 2006 12:33 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Amazon Web Services  Ok, I'm a bit of a newbie when it comes to Flex, but I just can't get this to work. I'm trying to do an item search on Amazon, using the chunk of code below. However, I keep getting the error that I'm missing required parameters like the "SearchIndex". Am I doing something wrong here? I can't find the answer anywhere else, so I'm at your mercy.  Thanks,  Josh   mx:WebService id="amazon" wsdl="http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl" useProxy="false" mx:operation name="ItemSearch" showBusyCursor="true" mx:request xmlns="http://webservices.amazon.com/AWSECommerceService/2006-03-08" ItemSearch AWSAccessKeyId1SEH1ZG68CMWH9E84VR2/AWSAccessKeyId ServiceAWSECommerceService/Service Keywords{searchString.text}/Keywords SearchIndexBlended/SearchIndex OperationItemSearch/Operation /ItemSearch /mx:request /mx:operation /mx:WebService mx:Panel height="114" layout="absolute" title="Search for products" id="panel1" left="10" right="10" top="10" mx:Label x="10" y="10" text="Search String" id="searchLabel"/ mx:TextInput x="96" y="8" width="228" id="searchString" text="elvis"/ mx:Button x="332" y="8" label="Search" id="startSearch" click="amazon.ItemSearch.send()"/ /mx:Panel -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comSPONSORED LINKS  Web site design development  Computer software development  Software design and development  Macromedia flex  Software development best practice YAHOO! GROUPS LINKS  Visit your group "flexcoders" on the web.    To unsubscribe from this group, send an email to: [EMAIL PROTECTED]    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  








[flexcoders] useHandCursor=true In Flex 2.0

2006-04-26 Thread vestcomprogrammer



Before in flex 1.5 I would have this :

event.target. on a 
mxLHBox mx:Text

ReferenceError: Error #1056: Cannot create property onRelease on 
mx.containers.HBox
 at SS_SL/__Description1_mouseOver()



Now it flex 2.0 if throw an error at runtime.


-Bill









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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a Carnigorm Video Intro.

2006-04-26 Thread Darren Houle



Hey Michael

Any chance I could get that from you too? I've found the available Cg2 
examples out there somewhat lacking... the 6 part article talks about and 
uses Cg.99, but I have F2B2 installed so I want to learn Cg2. The Cg2 
CairngormLogin example has little documentation (not that it really does 
much anyway)... and there's a PhonesCairngorm2 example, but it's complex, 
uses Data Services, requires CF code, so... what I'd love to get my hands on 
would be a simple Cg2 example, one that has a couple simple RPC services to 
something like a public blog feed or a local XML data file, a couple VOs, a 
couple commands, a couple views, a couple controls. Nothing overly 
complicated and something with some healthy documentation (even inline 
comments would be fine.) Your example might not meet all those criteria, 
but that's totally okay, I'll take anything :-)

Thanks!
Darren



From: [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a 
Carnigorm Video Intro.
Date: Wed, 26 Apr 2006 09:51:56 -0400

 I have a very (very) simple sample app that I use to illustrate how to 
get
the ball rolling with Cairngorm2 that I can send to you. It includes
documentation on how to add your own dispatchEvent in step-by-step
instructions. I'm not knocking the Cairngorm2 'Login' example, but I think
that a 'hold-your-hand' example is helpful for those getting familiar with
patterns.



---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




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















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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: (Flex20b2) RemoteObject access problem : Success at last

2006-04-26 Thread aejaz_98



Hi Steven,

Thanks a lot for your reply. I recompiled the swf again 
in the Tomcat console I could see that the method on my class
was being called. So, thing that made this whole thing work
was,

Matt's advice to change the endpoint URI to
http://localhost:8080/flex/messagebroker/amf



recompilation of the swf after it.

However on the browser side I am seeing this error in a new window,

An ActionScript error has occurred,
TypeError: Error #1009: null has no properties.
 at SimpleRemoteObject/::getNameHandler()
 at SimpleRemoteObject/___Operation1_result()
 at flash.events::EventDispatcher/dispatchEvent()
 at
mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
 at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.rpc::Producer/acknowledge()
 at
::NetConnectionMessageResponder/NetConnectionChannel.as$36:NetConnectionMessageResponder::handleResult()
 at mx.messaging::MessageResponder/result() 

Any clues ?

Thanks,
Aejaz

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

 Did you recompile the SWF after changing the endpoint URI? 
 
 --- In flexcoders@yahoogroups.com, aejaz_98 aejaz_98@ wrote:
 
  Hi Matt,
  
  Thanks for your reply. Yes, I am running the SWF using the URL
  
 http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html
  
  I also changed the channel endpoint URI from
  http://{server.name}:{server.port}/{context.root}/messagebroker/amf
  to
  http://localhost:8080/flex/messagebroker/amf
  but I still get the same result i.e. Channel.Connect.Failed error.
  NetConnection.Call.Failed error:HTTP:Failed .
  
  Please let me know what else could be missin/misconfigured.
  
  Thanks,
  Aejaz
  
  --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
  
   Are you running the SWF from http://localhost:8080/flex/ in your
   browser? Everything seems OK to me otherwise. Try changing the 
 my-am
   channel entry to http://localhost:8080/flex/messagebroker/amf, 
 but you
   shouldn't have needed to do it.
   
   
   
   Matt
   
   
   
   
   
   From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
   Behalf Of aejaz_98
   Sent: Tuesday, April 25, 2006 10:47 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] (Flex20b2) RemoteObject access problem
   
   
   
   Hi,
   
   I have posted a couple of messages on calling a method on a Java 
 object
   using mx:RemoteObject tag but so far I haven't been successful. 
 With
   help from Peter  Suresh I did proceed a little bit further but I 
 am
   still unable to successfully call the method on the server side 
 object.
   Since I described the problem in bits  pieces before, I think 
 that I
   may have missed some step(s) which I don't know about. Here is 
 what I
   have done step by step. Please let me know if I am doing anything 
 wrong
   or not doing something.
   
   Basically what I wanted to do was to verify the connectivity from 
 the
   browser side to a simple Java class on the back end using 
 RemoteObject
   tag before doing anything major. To do this I take a (String) 
 name from
   a TextInput field which is sent to the getString() method of the 
 class
   called Echo which appends Welcome  to the incoming String  
 returns it
   back. This is displayed by the state 'TargetState'.
   
   1. Here is the mxml file named SimpleRemoteObject.mxml. Please 
 take a
   look at my ActionScript methods as I am new to ActionScript as 
 well.
   
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
 xmlns=*
   layout=absolute
   mx:TraceTarget level=0 /
   mx:Script
   ![CDATA[
   import mx.rpc.events.*; 
   import mx.collections.*;
   import mx.controls.*
   
   private function getNameHandler(event:ResultEvent):void
   {
   Result.text = event.result.toString();
   currentState='TargetState';
   }
   
   private function faultHandler(event:FaultEvent):void
   {
   Alert.show(event.fault.faultstring, Error);
   Alert.show(event.fault.faultDetail, Error); 
   }
   ]]
   /mx:Script
   mx:states 
   mx:State name=TargetState
   mx:RemoveChild child={button1}/
   mx:RemoveChild child={formInput}/
   mx:RemoveChild child={label1}/
   mx:AddChild position=lastChild
   mx:Label x=99 y=130 width=265 height=28
   id=Result/
   /mx:AddChild
   /mx:State
   /mx:states
   
   mx:RemoteObject id=sendStringBack destination=EchoString
   showBusyCursor=true fault=faultHandler(event)
   mx:method name=getString result=getNameHandler
 (event)
   mx:arguments
   str
   {formInput.text}
   /str
   /mx:arguments
   /mx:method
   /mx:RemoteObject
   mx:TextInput x=119 y=129 id=formInput/
   mx:Button x=119 y=170 label=Submit fontSize=13 
 id=button1
   click=sendStringBack.getString.send()/
   mx:Label x=119 y=86 text=What is your name ? 
 width=160
   fontSize=15 id=label1/ 
   /mx:Application
   
   

Re: [flexcoders] Framerate of Flex (Movies)

2006-04-26 Thread Simeon Bateman



I remember seeing a reference for the the compliler options come up on this list. In that doc was a setting where you could set the framerate ( i think). So I would do a search for something like that.Hope that helps.
simeonOn 4/26/06, Adam Sebastian [EMAIL PROTECTED] wrote:













does anyone know the default framerate of flex apps
and where to configure it (if possible)?






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] SVG as Image source at runtime in Flex 2.0?

2006-04-26 Thread John Dowdell



Summary: Possible lead, but still theoretical today.

Matt Chotin wrote:
 I'd like to be able to set an Image source to an SVG
 URL at runtime.

 No, SVG support unfortunately is only when you embed.

Sidenote: People *have* done work at retrieving, parsing and rendering 
SVG instructions within the Flash Player itself, via a SWF file with 
special drawing instructions. (This is a subset of the SVG spec, like 
all other SVG renderers, but each renderer does a different subset of 
the spec.) I don't know if/how you could integrate this into a 
Flex-authored SWF, but search term triolo wahlers svg brings up 
references, if that's of interest.

jd





-- 
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.






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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Binding with arrays in Flex 2 beta 2

2006-04-26 Thread Tracy Spratt



To be clear regarding 1.5, you can definitely bind to Arrays. The key
to updating controls is to use the dataProvider API, which the Array
class supports.

aDataProvider.addItem(oItem); //API method WILL update the control
aDataProvider.push(oItem); //array method will NOT update the
control
aDataProvider[n] = oItem; //array method will NOT update the
control

I don't know about 2.0

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Larry Liang
Sent: Wednesday, April 26, 2006 4:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Binding with arrays in Flex 2 beta 2


According to documentation, in Flex 1.5, you shouldn't bind your 
dataprovider to a raw array object, because array elements do not 
broadcast [ChangeEvent]. And therefore the flex controls won't update 
itself and refelct the changes.

I just tried to bind an array object to a comboBox dataprovider in 
Flex 2. And it seemed that the changes made to the array object did 
get updated in the combo box control.

I was wondering if this has been fixed in flex 2 purposly, or due to 
some other reasons.

Thanks,

Larry

 







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



 










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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Framerate of Flex (Movies)

2006-04-26 Thread JesterXL





Flex 1.5 it's frameRate in the Application 
tag. I'm sure mxmlc might of had some param for it (I believe she defaults 
to 24).

In Flex 2, it's -default-frame-rate:
http://livedocs.macromedia.com/labs/1/flex/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1191.html


- Original Message - 
From: Simeon Bateman 

To: flexcoders@yahoogroups.com 
Sent: Wednesday, April 26, 2006 2:37 PM
Subject: Re: [flexcoders] Framerate of Flex (Movies)
I remember seeing a reference for the the compliler options 
come up on this list. In that doc was a setting where you could set the 
framerate ( i think). So I would do a search for something like 
that.Hope that helps. simeon
On 4/26/06, Adam 
Sebastian [EMAIL PROTECTED] 
wrote:

  
  
  does anyone know the default 
  framerate of flex apps and where to configure it (if 
  possible)?





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: Binding with Child Object In Flex 2.0

2006-04-26 Thread vestcomprogrammer



SS_Save.mxml - Part in Child
mx:Script
![CDATA[
import mx.controls.Spacer;
import mx.events.CursorEvent;
import mx.utils.URLUtil;
import mx.managers.PopUpManager;
import mx.controls.Alert;
import Structures.*;
import Classes.*;
  
var CentValue:Boolean = false;
[Bindable] public var incomingDescription:String = Gas;
[Bindable] public var incomingDescription2:String = Description ;
[Bindable] public var incomingPrice:String = 0.00;
]]
/mx:Script


SSDemo.mxml - Part in Parent
mx:TitleWindow height=100% width=100% title=Design view 
 roundedBottomCorners=true 
 dragEnter=doDragEnter(event)
 dragExit=doDragExit(event)
 dragDrop=doDragDrop(event)
 creationPolicy=queued
 childrenCreationCompleteEffect=Dissolve
 horizontalAlign=center verticalAlign=bottom id=DesignView 

mx:Spacer /

The Child is drag and dropped into the parent at runtime.



-Bill





/mx:TitleWindow


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

 Well, I think it should, can we have more of an example?
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of vestcomprogrammer
 Sent: Tuesday, April 25, 2006 7:47 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Binding with Child Object In Flex 2.0
 
 Before in flex 1.5 I have this
 
 mx:Binding destination=this.DesignView[0].incomingDescription 
 source=AssetTitle.text /
 
 In Flex 2.0 Beta 2 this does not seem to work.
 
 
 
 Thanks
 Bill
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links












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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] SVG as Image source at runtime in Flex 2.0?

2006-04-26 Thread Darren Houle



Actually, I think this *might* be the article you're referring to...

http://www.macromedia.com/devnet/flash/articles/parse_svg.html

Darren



From: John Dowdell [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] SVG as Image source at runtime in Flex 2.0?
Date: Wed, 26 Apr 2006 11:38:32 -0700

Summary: Possible lead, but still theoretical today.

Matt Chotin wrote:
  I'd like to be able to set an Image source to an SVG
  URL at runtime.
 
  No, SVG support unfortunately is only when you embed.

Sidenote: People *have* done work at retrieving, parsing and rendering
SVG instructions within the Flash Player itself, via a SWF file with
special drawing instructions. (This is a subset of the SVG spec, like
all other SVG renderers, but each renderer does a different subset of
the spec.) I don't know if/how you could integrate this into a
Flex-authored SWF, but search term triolo wahlers svg brings up
references, if that's of interest.

jd





--
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.


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















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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












RE: [flexcoders] Flex 1.5 app hangs when loading

2006-04-26 Thread Tracy Spratt










Also, try running with ?debug=true.



I have seen behaviors like this when you
are approaching the 32k limit.



Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL
Sent: Wednesday, April 26, 2006
1:18 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 1.5
app hangs when loading







A few things to try that have worked for me:





- delete the contents of your generated folder 
recompile





- delay initialization code in your main application mxml
file by 1 frame (use doLater, or a 2 second interval / timeout)





- make a change to a file (such as adding a line break),
save the file, delete generated, and recompile

















- Original Message - 



From: Simon Fifield 





To: flexcoders@yahoogroups.com






Sent: Wednesday, April
26, 2006 1:12 PM





Subject: [flexcoders] Flex
1.5 app hangs when loading













I have a flex app that has been loading perfectly well on my
localhost dev machine (WinXP/Apache2/Tomcat5 - http://localhost/flexapp/index.mxml).
But when I upload it to the staging server(RHEL3/Apache2/Tomcat5 - http://my.domain.com/index.mxml)
it will not load, its just hang at 3% to 7%.











I've found people on flexcoders having the same problem but
no-one has posted their solution!











It can't be a compilation problem because its obviously
built the swf and is attempting to load it.





It can't be anything to do with Services because it hasn't
even got to that stage yet.





It can't be the browser because I'm using the same
browser/flash playerto request both the dev and staged apps.











The only difference I can see is the domain name and tomcat
host/context setup - but I think that this must be okay otherwise it would
respond with an error (I think).











I can't find any solutions to this problem - not on
Flexcoders, Google nowhere!











Anyone who knows why this is happening - please, please,
please help me!











Also, but this is not important, my staging server takes
ages to compile the app even though it is a monster compared to my local dev
server - any ideas?











Regards,





(desperately) Simon











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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] useHandCursor=true In Flex 2.0

2006-04-26 Thread Peter Baird



See the following to understand why:

http://mannu.livejournal.com/329068.html#cutid1

But, basically, 

useHandCursor=true
 buttonMode=true
 mouseChildren=false

-p


On 4/26/06 12:01 PM, vestcomprogrammer [EMAIL PROTECTED]
wrote:

 Before in flex 1.5 I would have this :
 
 event.target. on a
 mxLHBox mx:Text
 
 ReferenceError: Error #1056: Cannot create property onRelease on
 mx.containers.HBox
 at SS_SL/__Description1_mouseOver()
 
 
 
 Now it flex 2.0 if throw an error at runtime.
 
 
 -Bill
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
 
 
 









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a Carnigorm Video Intro.

2006-04-26 Thread michael . corbridge



I'll send you a copy.

On another note, I was looking at the ViewLocator/ViewHelper code and I
found myself wondering how to implement it. It's not that the theory isn't
sound, I'm sure it is - just try to find some simple working examples.
Anyone out there have some simple Cairngorm2 ViewLocator examples? Steve
Webster had mentioned to me that the ModelLocator can handle all the work
that the ViewLocator/ViewHelper is intended to do, so perhaps they are not
necessary. Thoughts?




 
 
 Darren Houle To: flexcoders@yahoogroups.com 
 [EMAIL PROTECTED] cc: 
 Sent by: Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a Carnigorm 
 flexcoders@yahoogroups.com Video Intro. 
 04/26/2006 11:10 AM 
 Please respond to 
 flexcoders 
 
 




Hey Michael

Any chance I could get that from you too? I've found the available Cg2
examples out there somewhat lacking... the 6 part article talks about and
uses Cg.99, but I have F2B2 installed so I want to learn Cg2. The Cg2
CairngormLogin example has little documentation (not that it really does
much anyway)... and there's a PhonesCairngorm2 example, but it's complex,
uses Data Services, requires CF code, so... what I'd love to get my hands
on
would be a simple Cg2 example, one that has a couple simple RPC services to

something like a public blog feed or a local XML data file, a couple VOs, a

couple commands, a couple views, a couple controls. Nothing overly
complicated and something with some healthy documentation (even inline
comments would be fine.) Your example might not meet all those criteria,
but that's totally okay, I'll take anything :-)

Thanks!
Darren



From: [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a
Carnigorm Video Intro.
Date: Wed, 26 Apr 2006 09:51:56 -0400

 I have a very (very) simple sample app that I use to illustrate how to
get
the ball rolling with Cairngorm2 that I can send to you. It includes
documentation on how to add your own dispatchEvent in step-by-step
instructions. I'm not knocking the Cairngorm2 'Login' example, but I
think
that a 'hold-your-hand' example is helpful for those getting familiar with
patterns.



---

This e-mail message (including attachments, if any) is intended for the
use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---





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











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











---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---








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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a Carnigorm Video Intro.

2006-04-26 Thread JesterXL



If you're an OOP, Cairngorm purist, sure. However, for those of use under 
extreme deadlines who have no problem tossing lofty ideals out the window, 
ViewLocator is a life saver. If there is a need to have some view tell 
another view not within the direct DisplayList to do something, it's a nice 
to have. To be honest, I feel dirty everytime I use it though.

- Original Message - 
From: [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, April 26, 2006 3:19 PM
Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a 
Carnigorm Video Intro.


I'll send you a copy.

On another note, I was looking at the ViewLocator/ViewHelper code and I
found myself wondering how to implement it. It's not that the theory isn't
sound, I'm sure it is - just try to find some simple working examples.
Anyone out there have some simple Cairngorm2 ViewLocator examples? Steve
Webster had mentioned to me that the ModelLocator can handle all the work
that the ViewLocator/ViewHelper is intended to do, so perhaps they are not
necessary. Thoughts?






 Darren Houle To: 
flexcoders@yahoogroups.com
 [EMAIL PROTECTED] cc:
 Sent by: Subject: Re: [flexcoders] 
PLEASE: Could someone at Adobe/Macromedia do a Carnigorm
 flexcoders@yahoogroups.com Video Intro.
 04/26/2006 11:10 AM
 Please respond to
 flexcoders






Hey Michael

Any chance I could get that from you too? I've found the available Cg2
examples out there somewhat lacking... the 6 part article talks about and
uses Cg.99, but I have F2B2 installed so I want to learn Cg2. The Cg2
CairngormLogin example has little documentation (not that it really does
much anyway)... and there's a PhonesCairngorm2 example, but it's complex,
uses Data Services, requires CF code, so... what I'd love to get my hands
on
would be a simple Cg2 example, one that has a couple simple RPC services to

something like a public blog feed or a local XML data file, a couple VOs, a

couple commands, a couple views, a couple controls. Nothing overly
complicated and something with some healthy documentation (even inline
comments would be fine.) Your example might not meet all those criteria,
but that's totally okay, I'll take anything :-)

Thanks!
Darren



From: [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a
Carnigorm Video Intro.
Date: Wed, 26 Apr 2006 09:51:56 -0400

 I have a very (very) simple sample app that I use to illustrate how to
get
the ball rolling with Cairngorm2 that I can send to you. It includes
documentation on how to add your own dispatchEvent in step-by-step
instructions. I'm not knocking the Cairngorm2 'Login' example, but I
think
that a 'hold-your-hand' example is helpful for those getting familiar with
patterns.



---

This e-mail message (including attachments, if any) is intended for the
use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---





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











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











---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




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











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



  Visit your group "flexcoders" on 

[flexcoders] Re: (Flex20b2) RemoteObject access problem : Success at last

2006-04-26 Thread Steven Toth



It seems as though the result of your call is null, hence the 
event.result.toString() call in your getNameHandler() is generating 
a NullPointerException. 

Do you see a value in the Tomcat console from the System.out call in 
your SimpleRemoteObject class?

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

 Hi Steven,
 
 Thanks a lot for your reply. I recompiled the swf again 
 in the Tomcat console I could see that the method on my class
 was being called. So, thing that made this whole thing work
 was,
 
 Matt's advice to change the endpoint URI to
 http://localhost:8080/flex/messagebroker/amf
 
 
 
 recompilation of the swf after it.
 
 However on the browser side I am seeing this error in a new window,
 
 An ActionScript error has occurred,
 TypeError: Error #1009: null has no properties.
  at SimpleRemoteObject/::getNameHandler()
  at SimpleRemoteObject/___Operation1_result()
  at flash.events::EventDispatcher/dispatchEvent()
  at
 
mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::
dispatchRpcEvent()
  at
 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::re
sultHandler()
  at flash.events::EventDispatcher/dispatchEvent()
  at mx.rpc::Producer/acknowledge()
  at
 ::NetConnectionMessageResponder/NetConnectionChannel.as$36:NetConnec
tionMessageResponder::handleResult()
  at mx.messaging::MessageResponder/result() 
 
 Any clues ?
 
 Thanks,
 Aejaz
 
 --- In flexcoders@yahoogroups.com, Steven Toth steventoth@ 
wrote:
 
  Did you recompile the SWF after changing the endpoint URI? 
  
  --- In flexcoders@yahoogroups.com, aejaz_98 aejaz_98@ wrote:
  
   Hi Matt,
   
   Thanks for your reply. Yes, I am running the SWF using the URL
   
  
http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html
   
   I also changed the channel endpoint URI from
   http://{server.name}:{server.port}/
{context.root}/messagebroker/amf
   to
   http://localhost:8080/flex/messagebroker/amf
   but I still get the same result i.e. Channel.Connect.Failed 
error.
   NetConnection.Call.Failed error:HTTP:Failed .
   
   Please let me know what else could be missin/misconfigured.
   
   Thanks,
   Aejaz
   
   --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ 
wrote:
   
Are you running the SWF from http://localhost:8080/flex/ in 
your
browser? Everything seems OK to me otherwise. Try changing 
the 
  my-am
channel entry to 
http://localhost:8080/flex/messagebroker/amf, 
  but you
shouldn't have needed to do it.



Matt





From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On
Behalf Of aejaz_98
Sent: Tuesday, April 25, 2006 10:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] (Flex20b2) RemoteObject access problem



Hi,

I have posted a couple of messages on calling a method on a 
Java 
  object
using mx:RemoteObject tag but so far I haven't been 
successful. 
  With
help from Peter  Suresh I did proceed a little bit further 
but I 
  am
still unable to successfully call the method on the server 
side 
  object.
Since I described the problem in bits  pieces before, I 
think 
  that I
may have missed some step(s) which I don't know about. Here 
is 
  what I
have done step by step. Please let me know if I am doing 
anything 
  wrong
or not doing something.

Basically what I wanted to do was to verify the connectivity 
from 
  the
browser side to a simple Java class on the back end using 
  RemoteObject
tag before doing anything major. To do this I take a (String) 
  name from
a TextInput field which is sent to the getString() method of 
the 
  class
called Echo which appends Welcome  to the incoming String  
  returns it
back. This is displayed by the state 'TargetState'.

1. Here is the mxml file named SimpleRemoteObject.mxml. 
Please 
  take a
look at my ActionScript methods as I am new to ActionScript 
as 
  well.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
  xmlns=*
layout=absolute
mx:TraceTarget level=0 /
mx:Script
![CDATA[
import mx.rpc.events.*; 
import mx.collections.*;
import mx.controls.*

private function getNameHandler
(event:ResultEvent):void
{
Result.text = event.result.toString();
currentState='TargetState';
}

private function faultHandler(event:FaultEvent):void
{
Alert.show(event.fault.faultstring, Error);
Alert.show(event.fault.faultDetail, Error); 
}
]]
/mx:Script
mx:states 
mx:State name=TargetState
mx:RemoveChild child={button1}/
mx:RemoveChild child={formInput}/
mx:RemoveChild child={label1}/
mx:AddChild position=lastChild
mx:Label x=99 y=130 width=265 
height=28
id=Result/
/mx:AddChild
/mx:State
/mx:states

mx:RemoteObject 

[flexcoders] Re: Flex1.5 - Info about XML object and working with XML in Actionscript?

2006-04-26 Thread thunderstumpgesatwork



Matt,

I have tried the undocumented trick you suggested, with no luck. no
errors, but the object 'deserialized' is undefined. 

Also, I cannot find any extras folder what folder do you mean?
There's no mx.extras namespace..

Any further tips on the XMLDecoder class, or details on the
XMLObjectOutput class?

thanks
Thunder

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

 In the extras folder is a class called XMLObjectOutput which is not
 perfect but has given some folks a starting point for getting the kind
 of deserialization you want.
 
 If you want to use the same deserializer as HTTPService you can try this
 undocumented trick:
 
 var decoder = new mx.services.XMLDecoder();
 var deserialized = decoderXML.decode(myXML);
 
 I haven't tested that in a while though so no guarantees that you can
 get away with passing params to the decoder constructor :-)
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of thunderstumpgesatwork
 Sent: Sunday, April 23, 2006 3:13 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex1.5 - Info about XML object and working with
 XML in Actionscript?
 
 Hi all,
 
 I've come to realize how much more complete the Flex 2 documentation
 seems than the Flex 1.5 documentation...
 
 I'm looking for Flex1.5 documentation on XML objects and working with
 XML. That or I need some help converting an XML object that is
 returned from a RemoteObject call into an ActionScript Object. I know
 there's functionality that does this for web-service results, and
 mx:Model tags that reference an XML file source can I tap into
 that?
 
 Any guidance as to where additional documentation can be found is
 greatly appreciated. I have looked through the Developing Flex
 Applications help library that comes with FlexBuilder 1.5, as well as
 the ActionScript/MXML Language reference for Flex 1.5... neither seem
 to discuss how to use XML objects, or suggest how I might convert the
 XML to an Object.
 
 Thanks,
 Thunder
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links












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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: Flex1.5 - Info about XML object and working with XML in Actionscript?

2006-04-26 Thread thunderstumpgesatwork



Matt, I found the XMLObjectOutput file by searching the Archives. I'm
giving that a shot.

thanks,
Thunder

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

 Matt,
 
 I have tried the undocumented trick you suggested, with no luck. no
 errors, but the object 'deserialized' is undefined. 
 
 Also, I cannot find any extras folder what folder do you mean?
 There's no mx.extras namespace..
 
 Any further tips on the XMLDecoder class, or details on the
 XMLObjectOutput class?
 
 thanks
 Thunder
 
 --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
 
  In the extras folder is a class called XMLObjectOutput which is not
  perfect but has given some folks a starting point for getting the kind
  of deserialization you want.
  
  If you want to use the same deserializer as HTTPService you can
try this
  undocumented trick:
  
  var decoder = new mx.services.XMLDecoder();
  var deserialized = decoderXML.decode(myXML);
  
  I haven't tested that in a while though so no guarantees that you can
  get away with passing params to the decoder constructor :-)
  
  Matt
  
  -Original Message-
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of thunderstumpgesatwork
  Sent: Sunday, April 23, 2006 3:13 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flex1.5 - Info about XML object and working with
  XML in Actionscript?
  
  Hi all,
  
  I've come to realize how much more complete the Flex 2 documentation
  seems than the Flex 1.5 documentation...
  
  I'm looking for Flex1.5 documentation on XML objects and working with
  XML. That or I need some help converting an XML object that is
  returned from a RemoteObject call into an ActionScript Object. I know
  there's functionality that does this for web-service results, and
  mx:Model tags that reference an XML file source can I tap into
  that?
  
  Any guidance as to where additional documentation can be found is
  greatly appreciated. I have looked through the Developing Flex
  Applications help library that comes with FlexBuilder 1.5, as well as
  the ActionScript/MXML Language reference for Flex 1.5... neither seem
  to discuss how to use XML objects, or suggest how I might convert the
  XML to an Object.
  
  Thanks,
  Thunder
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups Links
 












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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: how is this TabNavigator is done?

2006-04-26 Thread Prashant Balepur



Yes. Had the same issue with Flex2B1. 
Several other style attributes, including selectedFillColors, don'tappear to function as described (and as the Flex Style Explorer suggests http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html).
I don't need to right alight the tabs, but do need change other stylistic elements from their defaults.
Same issue with TabBar.
Prashant
--- In flexcoders@yahoogroups.com, "ben.clinkinbeard" [EMAIL PROTECTED] wrote: I can't even get the tabs to right align. horizontalAlign has no effect. Anyone else experienced this?






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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Help with Effect on Panel...

2006-04-26 Thread Jason Szeto




In Beta3, you can set the showEffect and hideEffect effect triggers on
the children of the ViewStack. For Beta2 and earlier, you should be able
to use the changeEffect trigger on the ViewStack. 

Jason

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Chotin
Sent: Sunday, April 23, 2006 6:22 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Help with Effect on Panel...

Set showEffect=Fade on the Panel? Maybe set the hideEffect on them
too. That's for the individual Panels. If you want it applied to
everything all the time there's a changeEffect on ViewStack.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexabledev
Sent: Sunday, April 23, 2006 2:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Help with Effect on Panel...

I am trying to create an Fade effect on each Panel in a ViewStack,
that takes place when I change the viewStack.selectedIndex value.

I have something similar to this:

mx:ViewStack id=vStack...
 mx:Panel
 child
 .
 .
 .
 /mx:Panel

 mx:Panel
 child
 .
 .
 .
 /mx:Panel
 .
 .
 .
/mx:ViewStack

I would like the entire Panel (including all it's children) to Fade in
 when the viewStack.selectedIndex value is changed. What would the
best way be to accomplish this? 






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



 





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



 








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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a Carnigorm Video Intro.

2006-04-26 Thread Jonathan Miranda



Got any examples of this Jester?

On 4/26/06, JesterXL [EMAIL PROTECTED] wrote:
 If you're an OOP, Cairngorm purist, sure. However, for those of use under
 extreme deadlines who have no problem tossing lofty ideals out the window,
 ViewLocator is a life saver. If there is a need to have some view tell
 another view not within the direct DisplayList to do something, it's a nice
 to have. To be honest, I feel dirty everytime I use it though.

 - Original Message -
 From: [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, April 26, 2006 3:19 PM
 Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a
 Carnigorm Video Intro.


 I'll send you a copy.

 On another note, I was looking at the ViewLocator/ViewHelper code and I
 found myself wondering how to implement it. It's not that the theory isn't
 sound, I'm sure it is - just try to find some simple working examples.
 Anyone out there have some simple Cairngorm2 ViewLocator examples? Steve
 Webster had mentioned to me that the ModelLocator can handle all the work
 that the ViewLocator/ViewHelper is intended to do, so perhaps they are not
 necessary. Thoughts?






 Darren Houle To:
 flexcoders@yahoogroups.com
 [EMAIL PROTECTED] cc:
 Sent by: Subject: Re: [flexcoders]
 PLEASE: Could someone at Adobe/Macromedia do a Carnigorm
 flexcoders@yahoogroups.com Video Intro.
 04/26/2006 11:10 AM
 Please respond to
 flexcoders






 Hey Michael

 Any chance I could get that from you too? I've found the available Cg2
 examples out there somewhat lacking... the 6 part article talks about and
 uses Cg.99, but I have F2B2 installed so I want to learn Cg2. The Cg2
 CairngormLogin example has little documentation (not that it really does
 much anyway)... and there's a PhonesCairngorm2 example, but it's complex,
 uses Data Services, requires CF code, so... what I'd love to get my hands
 on
 would be a simple Cg2 example, one that has a couple simple RPC services to

 something like a public blog feed or a local XML data file, a couple VOs, a

 couple commands, a couple views, a couple controls. Nothing overly
 complicated and something with some healthy documentation (even inline
 comments would be fine.) Your example might not meet all those criteria,
 but that's totally okay, I'll take anything :-)

 Thanks!
 Darren



 From: [EMAIL PROTECTED]
 Reply-To: flexcoders@yahoogroups.com
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a
 Carnigorm Video Intro.
 Date: Wed, 26 Apr 2006 09:51:56 -0400
 
  I have a very (very) simple sample app that I use to illustrate how to
 get
 the ball rolling with Cairngorm2 that I can send to you. It includes
 documentation on how to add your own dispatchEvent in step-by-step
 instructions. I'm not knocking the Cairngorm2 'Login' example, but I
 think
 that a 'hold-your-hand' example is helpful for those getting familiar with
 patterns.
 
 
 
 ---

 This e-mail message (including attachments, if any) is intended for the
 use
 of the individual or entity to which it is addressed and may contain
 information that is privileged, proprietary , confidential and exempt from
 disclosure. If you are not the intended recipient, you are notified that
 any dissemination, distribution or copying of this communication is
 strictly prohibited. If you have received this communication in error,
 please notify the sender and erase this e-mail message immediately.
 ---

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




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











 ---
 This e-mail message (including attachments, if any) is intended for the use
 of the individual or entity to which it is addressed and may contain
 information that is privileged, proprietary , confidential and exempt from
 disclosure. If you are not the intended recipient, you are notified that
 any dissemination, distribution or copying of this communication is
 strictly prohibited. If you have received this communication in error,
 please notify the sender and erase this e-mail message immediately.
 ---




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







 --
 Flexcoders Mailing List
 FAQ: 

[flexcoders] Re: (Flex20b2) RemoteObject access problem : Success at last

2006-04-26 Thread aejaz_98



Hi Steven,

Thanks for your reply. The problem was thet I was 
referring to a label field id in a new state without
setting the currentState to the new state.

Thanks,
Aejaz

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

 It seems as though the result of your call is null, hence the 
 event.result.toString() call in your getNameHandler() is generating 
 a NullPointerException. 
 
 Do you see a value in the Tomcat console from the System.out call in 
 your SimpleRemoteObject class?
 
 --- In flexcoders@yahoogroups.com, aejaz_98 aejaz_98@ wrote:
 
  Hi Steven,
  
  Thanks a lot for your reply. I recompiled the swf again 
  in the Tomcat console I could see that the method on my class
  was being called. So, thing that made this whole thing work
  was,
  
  Matt's advice to change the endpoint URI to
  http://localhost:8080/flex/messagebroker/amf
  
  
  
  recompilation of the swf after it.
  
  However on the browser side I am seeing this error in a new window,
  
  An ActionScript error has occurred,
  TypeError: Error #1009: null has no properties.
   at SimpleRemoteObject/::getNameHandler()
   at SimpleRemoteObject/___Operation1_result()
   at flash.events::EventDispatcher/dispatchEvent()
   at
  
 mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::
 dispatchRpcEvent()
   at
  
 mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::re
 sultHandler()
   at flash.events::EventDispatcher/dispatchEvent()
   at mx.rpc::Producer/acknowledge()
   at
  ::NetConnectionMessageResponder/NetConnectionChannel.as$36:NetConnec
 tionMessageResponder::handleResult()
   at mx.messaging::MessageResponder/result() 
  
  Any clues ?
  
  Thanks,
  Aejaz
  
  --- In flexcoders@yahoogroups.com, Steven Toth steventoth@ 
 wrote:
  
   Did you recompile the SWF after changing the endpoint URI? 
   
   --- In flexcoders@yahoogroups.com, aejaz_98 aejaz_98@ wrote:
   
Hi Matt,

Thanks for your reply. Yes, I am running the SWF using the URL

   
 http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html

I also changed the channel endpoint URI from
http://{server.name}:{server.port}/
 {context.root}/messagebroker/amf
to
http://localhost:8080/flex/messagebroker/amf
but I still get the same result i.e. Channel.Connect.Failed 
 error.
NetConnection.Call.Failed error:HTTP:Failed .

Please let me know what else could be missin/misconfigured.

Thanks,
Aejaz

--- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ 
 wrote:

 Are you running the SWF from http://localhost:8080/flex/ in 
 your
 browser? Everything seems OK to me otherwise. Try changing 
 the 
   my-am
 channel entry to 
 http://localhost:8080/flex/messagebroker/amf, 
   but you
 shouldn't have needed to do it.
 
 
 
 Matt
 
 
 
 
 
 From: flexcoders@yahoogroups.com 
   [mailto:[EMAIL PROTECTED] On
 Behalf Of aejaz_98
 Sent: Tuesday, April 25, 2006 10:47 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] (Flex20b2) RemoteObject access problem
 
 
 
 Hi,
 
 I have posted a couple of messages on calling a method on a 
 Java 
   object
 using mx:RemoteObject tag but so far I haven't been 
 successful. 
   With
 help from Peter  Suresh I did proceed a little bit further 
 but I 
   am
 still unable to successfully call the method on the server 
 side 
   object.
 Since I described the problem in bits  pieces before, I 
 think 
   that I
 may have missed some step(s) which I don't know about. Here 
 is 
   what I
 have done step by step. Please let me know if I am doing 
 anything 
   wrong
 or not doing something.
 
 Basically what I wanted to do was to verify the connectivity 
 from 
   the
 browser side to a simple Java class on the back end using 
   RemoteObject
 tag before doing anything major. To do this I take a (String) 
   name from
 a TextInput field which is sent to the getString() method of 
 the 
   class
 called Echo which appends Welcome  to the incoming String  
   returns it
 back. This is displayed by the state 'TargetState'.
 
 1. Here is the mxml file named SimpleRemoteObject.mxml. 
 Please 
   take a
 look at my ActionScript methods as I am new to ActionScript 
 as 
   well.
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
   xmlns=*
 layout=absolute
 mx:TraceTarget level=0 /
 mx:Script
 ![CDATA[
 import mx.rpc.events.*; 
 import mx.collections.*;
 import mx.controls.*
 
 private function getNameHandler
 (event:ResultEvent):void
 {
 Result.text = event.result.toString();
 currentState='TargetState';
 }
 
 private function faultHandler(event:FaultEvent):void
 {
 

Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a Carnigorm Video Intro.

2006-04-26 Thread JesterXL



In Cairngorm 1 or 2?

- Original Message - 
From: Jonathan Miranda [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, April 26, 2006 5:35 PM
Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a 
Carnigorm Video Intro.


Got any examples of this Jester?

On 4/26/06, JesterXL [EMAIL PROTECTED] wrote:
 If you're an OOP, Cairngorm purist, sure. However, for those of use under
 extreme deadlines who have no problem tossing lofty ideals out the window,
 ViewLocator is a life saver. If there is a need to have some view tell
 another view not within the direct DisplayList to do something, it's a 
 nice
 to have. To be honest, I feel dirty everytime I use it though.

 - Original Message -
 From: [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, April 26, 2006 3:19 PM
 Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a
 Carnigorm Video Intro.


 I'll send you a copy.

 On another note, I was looking at the ViewLocator/ViewHelper code and I
 found myself wondering how to implement it. It's not that the theory 
 isn't
 sound, I'm sure it is - just try to find some simple working examples.
 Anyone out there have some simple Cairngorm2 ViewLocator examples? Steve
 Webster had mentioned to me that the ModelLocator can handle all the work
 that the ViewLocator/ViewHelper is intended to do, so perhaps they are not
 necessary. Thoughts?






 Darren Houle To:
 flexcoders@yahoogroups.com
 [EMAIL PROTECTED] cc:
 Sent by: Subject: Re: [flexcoders]
 PLEASE: Could someone at Adobe/Macromedia do a Carnigorm
 flexcoders@yahoogroups.com Video Intro.
 04/26/2006 11:10 AM
 Please respond to
 flexcoders






 Hey Michael

 Any chance I could get that from you too? I've found the available Cg2
 examples out there somewhat lacking... the 6 part article talks about and
 uses Cg.99, but I have F2B2 installed so I want to learn Cg2. The Cg2
 CairngormLogin example has little documentation (not that it really does
 much anyway)... and there's a PhonesCairngorm2 example, but it's complex,
 uses Data Services, requires CF code, so... what I'd love to get my hands
 on
 would be a simple Cg2 example, one that has a couple simple RPC services 
 to

 something like a public blog feed or a local XML data file, a couple VOs, 
 a

 couple commands, a couple views, a couple controls. Nothing overly
 complicated and something with some healthy documentation (even inline
 comments would be fine.) Your example might not meet all those criteria,
 but that's totally okay, I'll take anything :-)

 Thanks!
 Darren



 From: [EMAIL PROTECTED]
 Reply-To: flexcoders@yahoogroups.com
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a
 Carnigorm Video Intro.
 Date: Wed, 26 Apr 2006 09:51:56 -0400
 
  I have a very (very) simple sample app that I use to illustrate how to
 get
 the ball rolling with Cairngorm2 that I can send to you. It includes
 documentation on how to add your own dispatchEvent in step-by-step
 instructions. I'm not knocking the Cairngorm2 'Login' example, but I
 think
 that a 'hold-your-hand' example is helpful for those getting familiar 
 with
 patterns.
 
 
 
 ---

 This e-mail message (including attachments, if any) is intended for the
 use
 of the individual or entity to which it is addressed and may contain
 information that is privileged, proprietary , confidential and exempt 
 from
 disclosure. If you are not the intended recipient, you are notified that
 any dissemination, distribution or copying of this communication is
 strictly prohibited. If you have received this communication in error,
 please notify the sender and erase this e-mail message immediately.
 ---

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




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











 ---
 This e-mail message (including attachments, if any) is intended for the 
 use
 of the individual or entity to which it is addressed and may contain
 information that is privileged, proprietary , confidential and exempt from
 disclosure. If you are not the intended recipient, you are notified that
 any dissemination, distribution or copying of this communication is
 strictly prohibited. If you have received this communication in error,
 please notify the sender and erase this e-mail message immediately.
 ---




 --
 

[flexcoders] Using the preloader in F2Beta2

2006-04-26 Thread Jonathan Miranda



Since the documentation says To be written, anyone tangoed down the
line of using the base preloader for when a Flex application runs for
something custom? Like fade the background (ala Alert style) and
pulling up this loader to run while you load stuff in?

Think it'd be a great little tool to use since it's built-in but not
having any luck finding ways to use it outside of the base (all
examples I'm finding go with editing it or subclassing it for just the
intro download).

-Jon






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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a Carnigorm Video Intro.

2006-04-26 Thread Jonathan Miranda



Let's be difficultboth! :)

On 4/26/06, JesterXL [EMAIL PROTECTED] wrote:
 In Cairngorm 1 or 2?

 - Original Message -
 From: Jonathan Miranda [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, April 26, 2006 5:35 PM
 Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a
 Carnigorm Video Intro.


 Got any examples of this Jester?

 On 4/26/06, JesterXL [EMAIL PROTECTED] wrote:
  If you're an OOP, Cairngorm purist, sure. However, for those of use under
  extreme deadlines who have no problem tossing lofty ideals out the window,
  ViewLocator is a life saver. If there is a need to have some view tell
  another view not within the direct DisplayList to do something, it's a
  nice
  to have. To be honest, I feel dirty everytime I use it though.
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com
  Sent: Wednesday, April 26, 2006 3:19 PM
  Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a
  Carnigorm Video Intro.
 
 
  I'll send you a copy.
 
  On another note, I was looking at the ViewLocator/ViewHelper code and I
  found myself wondering how to implement it. It's not that the theory
  isn't
  sound, I'm sure it is - just try to find some simple working examples.
  Anyone out there have some simple Cairngorm2 ViewLocator examples? Steve
  Webster had mentioned to me that the ModelLocator can handle all the work
  that the ViewLocator/ViewHelper is intended to do, so perhaps they are not
  necessary. Thoughts?
 
 
 
 
 
 
  Darren Houle To:
  flexcoders@yahoogroups.com
  [EMAIL PROTECTED] cc:
  Sent by: Subject: Re: [flexcoders]
  PLEASE: Could someone at Adobe/Macromedia do a Carnigorm
  flexcoders@yahoogroups.com Video Intro.
  04/26/2006 11:10 AM
  Please respond to
  flexcoders
 
 
 
 
 
 
  Hey Michael
 
  Any chance I could get that from you too? I've found the available Cg2
  examples out there somewhat lacking... the 6 part article talks about and
  uses Cg.99, but I have F2B2 installed so I want to learn Cg2. The Cg2
  CairngormLogin example has little documentation (not that it really does
  much anyway)... and there's a PhonesCairngorm2 example, but it's complex,
  uses Data Services, requires CF code, so... what I'd love to get my hands
  on
  would be a simple Cg2 example, one that has a couple simple RPC services
  to
 
  something like a public blog feed or a local XML data file, a couple VOs,
  a
 
  couple commands, a couple views, a couple controls. Nothing overly
  complicated and something with some healthy documentation (even inline
  comments would be fine.) Your example might not meet all those criteria,
  but that's totally okay, I'll take anything :-)
 
  Thanks!
  Darren
 
 
 
  From: [EMAIL PROTECTED]
  Reply-To: flexcoders@yahoogroups.com
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a
  Carnigorm Video Intro.
  Date: Wed, 26 Apr 2006 09:51:56 -0400
  
   I have a very (very) simple sample app that I use to illustrate how to
  get
  the ball rolling with Cairngorm2 that I can send to you. It includes
  documentation on how to add your own dispatchEvent in step-by-step
  instructions. I'm not knocking the Cairngorm2 'Login' example, but I
  think
  that a 'hold-your-hand' example is helpful for those getting familiar
  with
  patterns.
  
  
  
  ---
 
  This e-mail message (including attachments, if any) is intended for the
  use
  of the individual or entity to which it is addressed and may contain
  information that is privileged, proprietary , confidential and exempt
  from
  disclosure. If you are not the intended recipient, you are notified that
  any dissemination, distribution or copying of this communication is
  strictly prohibited. If you have received this communication in error,
  please notify the sender and erase this e-mail message immediately.
  ---
 
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
  
  
  
  
  
  
  
 
 
 
 
  --
  Flexcoders 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
 
 
 
 
 
 
 
 
 
 
 
  ---
  This e-mail message (including attachments, if any) is intended for the
  use
  of the individual or entity to which it is addressed and may contain
  information that is privileged, proprietary , confidential and exempt from
  disclosure. If you are not the intended recipient, you are notified that
  any dissemination, distribution or copying of this communication is
  

Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a Carnigorm Video Intro.

2006-04-26 Thread michael . corbridge



I took the ViewLocator class and modified it to take an Object rather than
a ViewHelper. It seems to work in that all components, and their methods
are reachable at any point in the application. I'm not sure if this is
what was intended in Cairngorm, but it seems to greatly simplify our
development (no one gets that dirty feeling). If you are interested, I can
send you the class and examples.




 
 
 Jonathan Miranda To: flexcoders@yahoogroups.com 
 [EMAIL PROTECTED] cc: 
 Sent by: Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia 
 flexcoders@yahoogroups.com do a Carnigorm Video Intro. 
 04/26/2006 05:35 PM 
 Please respond to 
 flexcoders 
 
 




Got any examples of this Jester?

On 4/26/06, JesterXL [EMAIL PROTECTED] wrote:
 If you're an OOP, Cairngorm purist, sure. However, for those of use
under
 extreme deadlines who have no problem tossing lofty ideals out the
window,
 ViewLocator is a life saver. If there is a need to have some view tell
 another view not within the direct DisplayList to do something, it's a
nice
 to have. To be honest, I feel dirty everytime I use it though.

 - Original Message -
 From: [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, April 26, 2006 3:19 PM
 Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a
 Carnigorm Video Intro.


 I'll send you a copy.

 On another note, I was looking at the ViewLocator/ViewHelper code and I
 found myself wondering how to implement it. It's not that the theory
isn't
 sound, I'm sure it is - just try to find some simple working examples.
 Anyone out there have some simple Cairngorm2 ViewLocator examples? Steve
 Webster had mentioned to me that the ModelLocator can handle all the work
 that the ViewLocator/ViewHelper is intended to do, so perhaps they are
not
 necessary. Thoughts?






 Darren Houle To:
 flexcoders@yahoogroups.com
 [EMAIL PROTECTED] cc:
 Sent by: Subject: Re: [flexcoders]
 PLEASE: Could someone at Adobe/Macromedia do a Carnigorm
 flexcoders@yahoogroups.com Video Intro.
 04/26/2006 11:10 AM
 Please respond to
 flexcoders






 Hey Michael

 Any chance I could get that from you too? I've found the available Cg2
 examples out there somewhat lacking... the 6 part article talks about and
 uses Cg.99, but I have F2B2 installed so I want to learn Cg2. The Cg2
 CairngormLogin example has little documentation (not that it really does
 much anyway)... and there's a PhonesCairngorm2 example, but it's complex,
 uses Data Services, requires CF code, so... what I'd love to get my hands
 on
 would be a simple Cg2 example, one that has a couple simple RPC services
to

 something like a public blog feed or a local XML data file, a couple VOs,
a

 couple commands, a couple views, a couple controls. Nothing overly
 complicated and something with some healthy documentation (even inline
 comments would be fine.) Your example might not meet all those criteria,
 but that's totally okay, I'll take anything :-)

 Thanks!
 Darren



 From: [EMAIL PROTECTED]
 Reply-To: flexcoders@yahoogroups.com
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a
 Carnigorm Video Intro.
 Date: Wed, 26 Apr 2006 09:51:56 -0400
 
  I have a very (very) simple sample app that I use to illustrate how to
 get
 the ball rolling with Cairngorm2 that I can send to you. It includes
 documentation on how to add your own dispatchEvent in step-by-step
 instructions. I'm not knocking the Cairngorm2 'Login' example, but I
 think
 that a 'hold-your-hand' example is helpful for those getting familiar
with
 patterns.
 
 
 

---


 This e-mail message (including attachments, if any) is intended for the
 use
 of the individual or entity to which it is addressed and may contain
 information that is privileged, proprietary , confidential and exempt
from
 disclosure. If you are not the intended recipient, you are notified
that
 any dissemination, distribution or copying of this communication is
 strictly prohibited. If you have received this communication in error,
 please notify the sender and erase this e-mail message immediately.

---


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




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












---
 This e-mail message (including attachments, if any) is intended for the
use
 of the individual or entity to which it is addressed and may contain
 information that is privileged, proprietary , 

Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a Carnigorm Video Intro.

2006-04-26 Thread JesterXL



In 1, the peeps I've worked with have done the same thing. We do not use 
ViewHelpers. We've basically built our own version of ViewLocator. The 
Cairngorm 1 version took a ViewHelper ID usually whereas we just pass in the 
View's id name with a reference. So:

?xml version=1.0 encoding=utf-8?
mx:Panel
 creationComplete=onMyPanelCreationComplete()
 unload=onUnloaded()
 xmlns:mx=http://www.macromedia.com/2003/mxml

mx:Script
 ![CDATA[

 import ViewLocatorX;

 function onMyPanelCreationComplete()
 {
 ViewLocatorX.registerComponentByID(this.id, this);
 }

 function onUnloaded()
 {
 ViewLocatorX.unregisterComponentByID(this.id, this);
 }

/mx:Panel

So, when she's loaded up, the ViewLocator has a reference to it. You can 
pass in a string name to access it. Pretty flexible using a string, but 
dangerous unless you put those globally accessible views names in a 
constant class somewhere. Example:

class ViewNameConstants
{
 public static var LOGIN_PANEL:String = loginPanel;
}

That way, when you do this:

view:LoginPanel id=loginPanel xmlns:view=* /

As long as you don't have deferred instantiation on, you can do:

var loginPanel = ViewLocator.getComponentByID ( 
ViewNameConstants.LOGIN_PANEL );
loginPanel.doLogin();

Cairngorm purists would be strong proponents of binding the LoginPanel to a 
state variable, and modifying that state variable in a Command. The 
LoginPanel could then have one of its bindings fire, and thus call that 
method.

However, until recently, we didn't have the ability to support Command 
callbacks. As such we had a log of views that needed to know when their 
data was ready. For display it's pretty easy; you just bind your DataGrid 
to an array; poof, your done. But for more advanced scenarios when you need 
to act upon that data, without knowledge of when a command is done (or some 
other dataservice specific event), you start ending up with a plethora of 
state variables. To me, that's an f'ing nightmare. Flex is already event 
based, and it's built into the player in Flash Player 9, so why not use 
events?

Cairngorm originally didn't support callbacks, but it's trivial to add. As 
such, I still have instances where I use a ViewLocator (albeit 3 if I 
remember correctly within a huge code base) where I need to call a method on 
another view. I don't like doing it, but still view it as a valid solution.

I akin it to Singleton vs. Memento. You see many many cases of Singleton 
being used, and it generally accepted practice to utilize Singletons. Not 
many people use, nor talk about, Memento. It's still a valid pattern to 
solve problems though. ViewLocator, to me, just has a hack feeling to it, 
but I'd be hard pressed to live without it.

Cairngorm 2? Basically same thing. You're ViewLocator would work about the 
same in both instances:

package
{
 public class ViewLocator
 {

 protected var components_hash:Object;

 public function registerComponentByID ( p_id:String, 
p_ref:UIComponent):void
 {
 components_hash[p_id] = p_ref;
 }
 }
}

Pseudo code, but you get the point.



- Original Message - 
From: Jonathan Miranda [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, April 26, 2006 5:51 PM
Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a 
Carnigorm Video Intro.


Let's be difficultboth! :)

On 4/26/06, JesterXL [EMAIL PROTECTED] wrote:
 In Cairngorm 1 or 2?

 - Original Message -
 From: Jonathan Miranda [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, April 26, 2006 5:35 PM
 Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a
 Carnigorm Video Intro.


 Got any examples of this Jester?

 On 4/26/06, JesterXL [EMAIL PROTECTED] wrote:
  If you're an OOP, Cairngorm purist, sure. However, for those of use 
  under
  extreme deadlines who have no problem tossing lofty ideals out the 
  window,
  ViewLocator is a life saver. If there is a need to have some view tell
  another view not within the direct DisplayList to do something, it's a
  nice
  to have. To be honest, I feel dirty everytime I use it though.
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com
  Sent: Wednesday, April 26, 2006 3:19 PM
  Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a
  Carnigorm Video Intro.
 
 
  I'll send you a copy.
 
  On another note, I was looking at the ViewLocator/ViewHelper code and I
  found myself wondering how to implement it. It's not that the theory
  isn't
  sound, I'm sure it is - just try to find some simple working examples.
  Anyone out there have some simple Cairngorm2 ViewLocator examples? 
  Steve
  Webster had mentioned to me that the ModelLocator can handle all the 
  work
  that the ViewLocator/ViewHelper is intended to do, so perhaps they are 
  not
  necessary. Thoughts?
 
 
 
 
 
 
  Darren Houle To:
  flexcoders@yahoogroups.com
  [EMAIL PROTECTED] cc:
  Sent by: Subject: Re: 
  [flexcoders]
  PLEASE: Could 

Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a Carnigorm Video Intro.

2006-04-26 Thread Jonathan Miranda



Good stuff Jester, maybe I'll have to give the ViewHelper more of a
lookas some said, I've cheapened the use of the ModelLocator for a
lot of this - but most of my work is exclusively in Flex2 so I haven't
dealt with your callback issues.

Thanks for the code.dont mind me, going to take a nap to try and
forget you saying you used 3 ViewLocators (my god man!)

On 4/26/06, JesterXL [EMAIL PROTECTED] wrote:
 In 1, the peeps I've worked with have done the same thing. We do not use
 ViewHelpers. We've basically built our own version of ViewLocator. The
 Cairngorm 1 version took a ViewHelper ID usually whereas we just pass in the
 View's id name with a reference. So:

 ?xml version=1.0 encoding=utf-8?
 mx:Panel
 creationComplete=onMyPanelCreationComplete()
 unload=onUnloaded()
 xmlns:mx=http://www.macromedia.com/2003/mxml

 mx:Script
 ![CDATA[

 import ViewLocatorX;

 function onMyPanelCreationComplete()
 {
 ViewLocatorX.registerComponentByID(this.id, this);
 }

 function onUnloaded()
 {
 ViewLocatorX.unregisterComponentByID(this.id, this);
 }

 /mx:Panel

 So, when she's loaded up, the ViewLocator has a reference to it. You can
 pass in a string name to access it. Pretty flexible using a string, but
 dangerous unless you put those globally accessible views names in a
 constant class somewhere. Example:

 class ViewNameConstants
 {
 public static var LOGIN_PANEL:String = loginPanel;
 }

 That way, when you do this:

 view:LoginPanel id=loginPanel xmlns:view=* /

 As long as you don't have deferred instantiation on, you can do:

 var loginPanel = ViewLocator.getComponentByID (
 ViewNameConstants.LOGIN_PANEL );
 loginPanel.doLogin();

 Cairngorm purists would be strong proponents of binding the LoginPanel to a
 state variable, and modifying that state variable in a Command. The
 LoginPanel could then have one of its bindings fire, and thus call that
 method.

 However, until recently, we didn't have the ability to support Command
 callbacks. As such we had a log of views that needed to know when their
 data was ready. For display it's pretty easy; you just bind your DataGrid
 to an array; poof, your done. But for more advanced scenarios when you need
 to act upon that data, without knowledge of when a command is done (or some
 other dataservice specific event), you start ending up with a plethora of
 state variables. To me, that's an f'ing nightmare. Flex is already event
 based, and it's built into the player in Flash Player 9, so why not use
 events?

 Cairngorm originally didn't support callbacks, but it's trivial to add. As
 such, I still have instances where I use a ViewLocator (albeit 3 if I
 remember correctly within a huge code base) where I need to call a method on
 another view. I don't like doing it, but still view it as a valid solution.

 I akin it to Singleton vs. Memento. You see many many cases of Singleton
 being used, and it generally accepted practice to utilize Singletons. Not
 many people use, nor talk about, Memento. It's still a valid pattern to
 solve problems though. ViewLocator, to me, just has a hack feeling to it,
 but I'd be hard pressed to live without it.

 Cairngorm 2? Basically same thing. You're ViewLocator would work about the
 same in both instances:

 package
 {
 public class ViewLocator
 {

 protected var components_hash:Object;

 public function registerComponentByID ( p_id:String,
 p_ref:UIComponent):void
 {
 components_hash[p_id] = p_ref;
 }
 }
 }

 Pseudo code, but you get the point.



 - Original Message -
 From: Jonathan Miranda [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, April 26, 2006 5:51 PM
 Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a
 Carnigorm Video Intro.


 Let's be difficultboth! :)

 On 4/26/06, JesterXL [EMAIL PROTECTED] wrote:
  In Cairngorm 1 or 2?
 
  - Original Message -
  From: Jonathan Miranda [EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com
  Sent: Wednesday, April 26, 2006 5:35 PM
  Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a
  Carnigorm Video Intro.
 
 
  Got any examples of this Jester?
 
  On 4/26/06, JesterXL [EMAIL PROTECTED] wrote:
   If you're an OOP, Cairngorm purist, sure. However, for those of use
   under
   extreme deadlines who have no problem tossing lofty ideals out the
   window,
   ViewLocator is a life saver. If there is a need to have some view tell
   another view not within the direct DisplayList to do something, it's a
   nice
   to have. To be honest, I feel dirty everytime I use it though.
  
   - Original Message -
   From: [EMAIL PROTECTED]
   To: flexcoders@yahoogroups.com
   Sent: Wednesday, April 26, 2006 3:19 PM
   Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a
   Carnigorm Video Intro.
  
  
   I'll send you a copy.
  
   On another note, I was looking at the ViewLocator/ViewHelper code and I
   found myself wondering how to implement it. It's not that the theory
   isn't
  

Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a Carnigorm Video Intro.

2006-04-26 Thread JesterXL



Just to clearify:

I use ViewLocator (the Singleton) only when I need to. I don't like it, but 
still feel it has rare, but valid uses.

I do not use, nor promote the use of ViewHelper's. I think they are evil, 
nasty, and just plain f'd up.

I've only used ViewLocator.getComponentByID(name).someMethod() 3 times 
because there was 1 View that is immensely popular in my app, but already 
has enough state stuff going on, the last thing I want is nother state 
variable to keep track of.

Don't forget, you can make more than 1 ModelLocator; just depends on the 
scope of your app really and what data you are really putting there.

- Original Message - 
From: Jonathan Miranda [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, April 26, 2006 6:39 PM
Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a 
Carnigorm Video Intro.


Good stuff Jester, maybe I'll have to give the ViewHelper more of a
lookas some said, I've cheapened the use of the ModelLocator for a
lot of this - but most of my work is exclusively in Flex2 so I haven't
dealt with your callback issues.

Thanks for the code.dont mind me, going to take a nap to try and
forget you saying you used 3 ViewLocators (my god man!)

On 4/26/06, JesterXL [EMAIL PROTECTED] wrote:
 In 1, the peeps I've worked with have done the same thing. We do not use
 ViewHelpers. We've basically built our own version of ViewLocator. The
 Cairngorm 1 version took a ViewHelper ID usually whereas we just pass in 
 the
 View's id name with a reference. So:

 ?xml version=1.0 encoding=utf-8?
 mx:Panel
 creationComplete=onMyPanelCreationComplete()
 unload=onUnloaded()
 xmlns:mx=http://www.macromedia.com/2003/mxml

 mx:Script
 ![CDATA[

 import ViewLocatorX;

 function onMyPanelCreationComplete()
 {
 ViewLocatorX.registerComponentByID(this.id, this);
 }

 function onUnloaded()
 {
 ViewLocatorX.unregisterComponentByID(this.id, this);
 }

 /mx:Panel

 So, when she's loaded up, the ViewLocator has a reference to it. You can
 pass in a string name to access it. Pretty flexible using a string, but
 dangerous unless you put those globally accessible views names in a
 constant class somewhere. Example:

 class ViewNameConstants
 {
 public static var LOGIN_PANEL:String = loginPanel;
 }

 That way, when you do this:

 view:LoginPanel id=loginPanel xmlns:view=* /

 As long as you don't have deferred instantiation on, you can do:

 var loginPanel = ViewLocator.getComponentByID (
 ViewNameConstants.LOGIN_PANEL );
 loginPanel.doLogin();

 Cairngorm purists would be strong proponents of binding the LoginPanel to 
 a
 state variable, and modifying that state variable in a Command. The
 LoginPanel could then have one of its bindings fire, and thus call that
 method.

 However, until recently, we didn't have the ability to support Command
 callbacks. As such we had a log of views that needed to know when their
 data was ready. For display it's pretty easy; you just bind your DataGrid
 to an array; poof, your done. But for more advanced scenarios when you 
 need
 to act upon that data, without knowledge of when a command is done (or 
 some
 other dataservice specific event), you start ending up with a plethora of
 state variables. To me, that's an f'ing nightmare. Flex is already event
 based, and it's built into the player in Flash Player 9, so why not use
 events?

 Cairngorm originally didn't support callbacks, but it's trivial to add. 
 As
 such, I still have instances where I use a ViewLocator (albeit 3 if I
 remember correctly within a huge code base) where I need to call a method 
 on
 another view. I don't like doing it, but still view it as a valid 
 solution.

 I akin it to Singleton vs. Memento. You see many many cases of Singleton
 being used, and it generally accepted practice to utilize Singletons. Not
 many people use, nor talk about, Memento. It's still a valid pattern to
 solve problems though. ViewLocator, to me, just has a hack feeling to it,
 but I'd be hard pressed to live without it.

 Cairngorm 2? Basically same thing. You're ViewLocator would work about 
 the
 same in both instances:

 package
 {
 public class ViewLocator
 {

 protected var components_hash:Object;

 public function registerComponentByID ( p_id:String,
 p_ref:UIComponent):void
 {
 components_hash[p_id] = p_ref;
 }
 }
 }

 Pseudo code, but you get the point.



 - Original Message -
 From: Jonathan Miranda [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, April 26, 2006 5:51 PM
 Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a
 Carnigorm Video Intro.


 Let's be difficultboth! :)

 On 4/26/06, JesterXL [EMAIL PROTECTED] wrote:
  In Cairngorm 1 or 2?
 
  - Original Message -
  From: Jonathan Miranda [EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com
  Sent: Wednesday, April 26, 2006 5:35 PM
  Subject: Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a
  Carnigorm Video Intro.
 
 
  Got any 

RE: [flexcoders] Binding with arrays in Flex 2 beta 2

2006-04-26 Thread Gordon Smith



What kind of change did you make to the array object? If you assigned
another array to dataProvider, I'd expect the ComboBox to update. If you
did

 myDataProvider[0] = newItem;

or

 myDataProvider.splice(3, 1);

I wouldn't.

- Gordon


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Larry Liang
Sent: Wednesday, April 26, 2006 1:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Binding with arrays in Flex 2 beta 2


According to documentation, in Flex 1.5, you shouldn't bind your 
dataprovider to a raw array object, because array elements do not 
broadcast [ChangeEvent]. And therefore the flex controls won't update 
itself and refelct the changes.

I just tried to bind an array object to a comboBox dataprovider in 
Flex 2. And it seemed that the changes made to the array object did 
get updated in the combo box control.

I was wondering if this has been fixed in flex 2 purposly, or due to 
some other reasons.

Thanks,

Larry

 







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



 








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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Re: how is this TabNavigator is done?

2006-04-26 Thread Peter Baird
Title: Re: [flexcoders] Re: how is this TabNavigator is done?





SelectedFillColors are not a property of Tab in Flex 2, rather to define the color of a selected tab, use backgroundColor for tab, like so: 


Tab {
backgroundColor: #CC;
}

As for horizontalAlign, that is still be a property of TabNavigator as per the latest ASDocs. But, yes, I can confirm that it is not working (remember this is a beta product). 

Finally, for flex 2 styles, please refer to the Flex 2 Style Explorer as a very large amount of styles and style names have changed. The Flex 2 Style Explorer currently can be found at:

http://weblogs.macromedia.com/mc/archives/Flex2StyleExplorer/Flex2StyleExplorer.html

Thanks,

-peter



On 4/26/06 4:12 PM, Prashant Balepur [EMAIL PROTECTED] wrote:

Yes. Had the same issue with Flex2B1. 

Several other style attributes, including selectedFillColors, don't appear to function as described (and as the Flex Style Explorer 
suggests http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html ).

I don't need to right alight the tabs, but do need change other stylistic elements from their defaults.

Same issue with TabBar.

Prashant


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

 I can't even get the tabs to right align. horizontalAlign has no
 effect. Anyone else experienced this?



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

 Visit your group flexcoders http://groups.yahoo.com/group/flexcoders  on the web.
  
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
  
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . 





/ \ PETER BAIRD
888/ \888 User Experience Consultant
88/ / \88 Adobe Consulting | Adobe Systems, Inc
8/ /8\ \8 275 Grove St. Newton, MA
/ /888\ \ Office: 617.219.2126 | Cell: 617.803.6804
\8\ AIM: pbaird00 | Y!IM: pbaird00









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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Problem with Firefox and Flex 2 apps?

2006-04-26 Thread billlane1962



I was just trying out the Connect 4 app that is currently showcased in Labs (http://joeberkovitz.com/projects/Connect4/bin/Connect4.html). This works great in IE. But when I run this in Firefox (1.5.0.2 Plugin : 8,0,24,0) I get the default Flex background and nothing else. I right-click and select play and the app starts. But it runs very slowly and after a few moves Firefox stops responding. This has been happening to me regularly since installing Flex 2 Beta 2. Is anyone else having the same problem?






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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Flex Jobs!

2006-04-26 Thread Matt Chotin



I know we've blogged about this before but there have been some updates
and rather than blog I'll go for visibility here. Feel free to blog
about 'em yourself. If you're interested in working for Adobe we've got
plenty of entry points!

For information on any of these feel free to contact:
Tracy Schmidt
415-832-7690 
[EMAIL PROTECTED]

You can apply for the job online at http://www.adobecareers.com

---

Architect, Flex Enterprise, Newton Massachusetts WW020603
We are seeking an architect to work closely with the other members of
the Flex Enterprise engineering team on both client-side and server-side
development and to help to drive the overall implementation of the
product. Experience in developing real-world, large enterprise data
architectures required. 

Developer, Flex Enterprise, Newton Massachusetts WW020602
We are looking for a razor sharp coder to work on design and
implementation of product features on both the client and server. Rock
solid coding skills and outstanding engineering sensibilities required. 

Senior Quality Engineer, Flex, Newton Massachusetts TB020602
You'll have a unique opportunity to help shape the product through hands
on use and low level testing, where automation plays an integral part in
our test strategy. 

Computer Scientist, Flex Builder, San Francisco HW020602
Flex Builder is a groundbreaking new authoring tool that will enable
users to build visually engaging Web applications based on the Flex
framework and the Flash platform. Flex Builder contains both coding and
design features. We are looking for an exceptional engineer who is
passionate about building compelling and innovative visual tools to lead
key areas of our design-oriented features. 

Computer Scientist, Flex Builder, San Francisco SK120506
Be part of a focused, energized team that works closely with customers
and product teams in the Flex and Flash ecosystems, gathering
requirements, designing, architecting and developing features that are
core to the success of Flex Builder. Ideally, you are someone who has
built heavy duty graphics tools or animation tools, and you're
passionate about building compelling and innovative user interfaces for
visual tools. 

Senior Product Marketing Manager, Flex Developer, Newton Massachusetts
DG010602
Drive product adoption, market share, and revenue growth through
planning, development and execution of developer awareness programs,
channel development, product launches, and partner programs. Work
closely with product management to solve critical developer problems and
meet developer needs through the ongoing development of the Flex
technology. Be a visible spokesperson for Flex.

Technical Evangelist, Flex, Newton Massachusetts BW040602
Evangelize Flex to the Java and enterprise development community! Drive
adoption of Adobe products and take a leadership role in designing and
delivering high impact, high quality presentations covering a variety of
Java-centric topics. The successful candidate will have software
development, architecture and software marketing experience, a solid
understanding of Java, _javascript_, J2EE, Windows, AIX, Linux, and other
programming languages and platforms, and knowledge of Adobe products,
including Adobe LiveCycle, Flash, Flex and ColdFusion. 

QE Engineer, Flex Builder, San Francisco LM020604
Adobe is looking for a Quality Assurance (QA) Engineer to make a big
impact on the next release of Adobe Flex Builder. You will work as a
tightly integrated part of the development team and you will help shape
the product. You will be involved in gathering requirements, creating
and running test plans, and building real-world applications to certify
the software for shipment.







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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Re: mx:States and databinding issue

2006-04-26 Thread Matt Chotin



OK, I confirmed how binding basically applies to the SetProperty tag but
doesn't apply to the target of the SetProperty tag. We've filed a bug
and will see what happens.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Chotin
Sent: Tuesday, April 25, 2006 11:42 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: mx:States and databinding issue

Glad you could get the workaround going. I'll forward this into the
team and see if they have any thoughts.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sof4real03
Sent: Tuesday, April 25, 2006 7:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: mx:States and databinding issue

Matt,

After a ton of debugging I finally was able to change the value of the
button in the State via actionscript and not through binding with the
SetProperty tag.

public function formsValid(...args:Array):Boolean
{
 for(var i:int = 0; i  args.length; i++)
 {
 if( args[i] == false )
 return false;
 }
 parentDocument.addClientBtn.enabled = true;
 return true;
}   

mx:states
mx:State name=default id=defaultCCView
mx:SetProperty target={parentDocument.addClientBtn} name=enabled
value={formsValid(personalDetails.formValid,contactDetails.formValid)
}/
mx:SetEventHandler target={parentDocument.addClientBtn}
name=click handler=submitClientForm()/
/mx:State
/mx:states


Now I'm not sure if this is a databinding issue with States and
SetProperty tag, but this workaround isn't something I'd like to do in
the future. I hope someone can point something wrong in my code that
would make the state handle the databind correctly, but I just don't
see anything wrong.

Thanks,
Sof

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

 I'm at a loss here, Anybody having any issues with binding in States?
 
 --- In flexcoders@yahoogroups.com, sof4real03 soubraham2@ wrote:
 
  After tracing my code, I'm sure that the event is being propagated,
  but the button still doesn't become enabled even when the forms are
  valid. Could it be the issue of creating this state on the
component's
  parent?
  
  --- In flexcoders@yahoogroups.com, sof4real03 soubraham2@ wrote:
  
   You are correct, the formsValidationChange event is bound for the
   formvalid property of the component.
   
   [ChangeEvent(formValidChanged)]
   public function get formValid():Boolean
   {
return _formValid;
   }
 
   public function set formValid( formValid:Boolean ):void
   {
setFormValid( formValid );
   }
   
   private function setFormValid( formValid:Boolean ):void
   {
if ( formValid != _formValid )
{
 _formValid = formValid;
 dispatchEvent(new Event(formValidChanged));
}
   }
   
   
   I've put Alerts in the formsValid function and it's getting to the
   function, but it doesn't seem to be recieving the
   formValidationChange event everytime it's set to a new value.
I'm at
   a loss...
   
   If I don't use a state and put in this button on the page
initially
   all is good.
   --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
   
What is formValidationChanged the event on? The formValid
 property I
hope? Are you sure you're not going into the formsValid method?
 Try
naming the arguments array to something different like args,
 arguments
is a reserved word and may be acting funky here (though it
 should work
correctly in this case I think).

Matt

-Original Message-
From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On
Behalf Of sof4real03
Sent: Monday, April 24, 2006 9:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] mx:States and databinding issue

I have a custom form component that broadcasts an event every
 time the
form changes validation states:

ContactDetails.mxml:

[ChangeEvent(formValidationChanged)]

Now the parent component of ContactDetails is
CreateClientProfile.mxml and it uses an accordian to
instantiate the
ContactDetails form. 

Finally CreateClientProfile is a state of another component. 

Ok, so in ContactDetails, I have the following code:

mx:states
mx:State name=default id=defaultCCView
mx:AddChild target={parentDocument.clientPanelControl}
mx:Button id=addClientBtn label=Add My Client/
/mx:AddChild
mx:SetProperty target={addClientBtn} name=enabled value={
formsValid(personalDetails.formValid,contactDetails.formValid)
}/ 
mx:SetEventHandler target={addClientBtn} name=click
handler=submitClientForm()/
/mx:State
/mx:states

mx:Script
![CDATA[
  
public function formsValid(...arguments:Array):Boolean
{
for(var i:int = 0; i  arguments.length; ++i)
{
if( arguments[i] == false )
{
return false;
}
}
return true;
}

So, in the 

[flexcoders] Re: Binding with arrays in Flex 2 beta 2

2006-04-26 Thread Larry Liang




Hi,

The following is basically what I did.

in mx:script tag

 Declare an array object:
 var myArr :Array = ['one','two','three']; //I did NOT use 
[Bindable] here

 Bind array object directly to a combo box:

 mx:ComboBox id=cb1 rowCount=10 dataProvider={myArr} / 
 
 Bind the dataprovider of the cb1 to another comboBox:

 mx:ComboBox id=cb2 rowCount=10 dataProvider={ cb1.
dataProvider } /

 Use a textInput control to update the second element of the array: 
 mx:TextInput id=sText change=myArr[1]= sText.text  /


Result: 

 when I put some text into textinput box, both combobox dropdown 
list changes. 

In Flex 2 documentation Using collection change notifications, it 
said 
 Specifying [Bindable] metadata before a variable declaration 
 causes the object represented by the variable to implement the 
 IPropertyChangeNotifier interface.

I was wondering if this is somehow related or not.

Thanks,

Larry



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

 What kind of change did you make to the array object? If you 
assigned
 another array to dataProvider, I'd expect the ComboBox to update. 
If you
 did
 
 myDataProvider[0] = newItem;
 
 or
 
 myDataProvider.splice(3, 1);
 
 I wouldn't.
 
 - Gordon
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
com] On
 Behalf Of Larry Liang
 Sent: Wednesday, April 26, 2006 1:10 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Binding with arrays in Flex 2 beta 2
 
 
 According to documentation, in Flex 1.5, you shouldn't bind your 
 dataprovider to a raw array object, because array elements do not 
 broadcast [ChangeEvent]. And therefore the flex controls won't 
update 
 itself and refelct the changes.
 
 I just tried to bind an array object to a comboBox dataprovider in 
 Flex 2. And it seemed that the changes made to the array object did 
 get updated in the combo box control.
 
 I was wondering if this has been fixed in flex 2 purposly, or due 
to 
 some other reasons.
 
 Thanks,
 
 Larry
 
 
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.
txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links













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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












RE: [flexcoders] Re: sandbox issue

2006-04-26 Thread Matt Chotin



Sounds like the Player didn't really upgrade itself correctly. Make
sure all the browsers are closed, run the Uninstaller, then run the
installer again, see if that helps.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexlearner
Sent: Wednesday, April 26, 2006 2:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: sandbox issue

thanks Matt , 
i did that ..and worked ! and also i exported the swf as png and 
imported it dynamically and it worked too..

there is one more problem i wanted to bring to notice and tring to 
find the soultion for the same...

is it the problem of flash player??

i downloaded and installed the flash player 8.5 and can see its 
entry in the window/system32/macromed/flash/  folder as 
flash85b.ocx and flash85.ocx
still when i try to run the mxml file from flexbuilder too its giving 
me the error prompt of lower version found and required version 8.5

can u please suggest me something ! 

thanks in advance 
Flex Learner 

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

 We may be looking into bugs on this front, I'm not entirely sure. 
Only
 thing I can think of is that something in the SWF is trying to 
access
 _root or _level0 or something like that which wouldn't be allowed.
 Otherwise if it's really just a graphic I think it should work. 
Can you
 try embedding it for now as a workaround?
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of flexlearner
 Sent: Monday, April 24, 2006 9:38 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: sandbox issue
 
 No ! 
 the swf contains just a graphic
 and i have not used any effects in flash 8 like shadow or blur..etc.
 
 
 --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
 
  Does your Flash 8 SWF have AS code that is trying to execute? 
That
  unfortunately is not allowed (we don't allow cross-VM AS).
  
  Matt
  
  -Original Message-
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of flexlearner
  Sent: Monday, April 24, 2006 3:50 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] sandbox issue
  
  hello,
  
  
  I have simple mxml file in which I am importing a swf publish in 
  flash8
  I can see the output in flex builder in design mode also get 
  successful compilation result when I compile it by mxmlc command 
 line 
  complier 
  but when I open a sand alone swf i get a dialogue box with these 
  error :
  
  
  SecurityError: Error #2047: Security sandbox 
  violation: 'content': 'file:///D|/flexPractice/flextry.swf' may 
not 
  access 'file:///D|/flexPractice/verticalbar.swf'.
   at mx.controls::Loader/get Loader$404
  $private::contentHolderWidth()
   at mx.controls::Loader/Loader$404$private::contentLoaded()
   at mx.controls::Loader/completeEventHandler()
   at mx.controls::Image/completeEventHandler()
  
  Please help 
  Thanks in advance 
  
  Regards,
  Flex Learner 
  
  
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups Links
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links








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



 








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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.