[flexcoders] Re: Cannot resolve to a component implementation

2007-04-04 Thread Maury Sword
The location of your component must reflect the package name.  This 
component would need to be located in a \com\company\util\ folder 
structure.  This folder structure must exist in either the project 
folder or another folder in the project build path.  

The file name must also match the class name, so it would need to be 
named TextLinkButton.as or TextLinkButton.mxml depending upon the 
implementation.

--- In flexcoders@yahoogroups.com, "Giles Roadnight" <[EMAIL PROTECTED]> 
wrote:
>
> Hi All
> 
> I am trying to extend the LinkButton component to replace the label
> with a multiline text field. I have tried to extend the link button
> component first with a as file:
> 
> [code]
> package com.company.util
> {
>   import mx.controls.LinkButton;
> 
>   public class TextLinkButton extends LinkButton
>   {
>   public function TextLinkButton()
>   {
>   super();
>   }
>   
>   }
> }
> [/code]
> 
> and then with an mxml file:
> 
> [code]
> 
> http://www.adobe.com/2006/mxml";>
>   
> 
> [/code]
> 
> with both of them I get the error:
> 
> Could not resolve  to a component
> implementation.
> 
> What am I doing wrong?
> 
> (while I am here any pointers on how to replace the label with a 
text
> field would be great).
> 
> Thanks for the help.
>




[flexcoders] Re: Is anybody else getting duplicate messages?

2007-03-28 Thread Maury Sword
I believe people are posting messages multiple times.  There can be 
quite a delay between the time a message is posted and it finally 
appears here on the list.  I know I did this at first.  Do messages 
from new members have to be approved by a moderator before they are 
posted ?  After I made several valid posts this delay was much less.

--- In flexcoders@yahoogroups.com, "Geoffrey Williams" <[EMAIL PROTECTED]> 
wrote:
>
> Yup, yup. This doesn't seem to be the only yahoo group affected 
either.
> 
>  
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Paul DeCoursey
> Sent: Wednesday, March 28, 2007 4:40 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Is anybody else getting duplicate messages?
> 
>  
> 
> I've been getting 2 sometimes 3 copies of many messages. It's quite
> annoying and this is on top of an already high volume list.
>




[flexcoders] Re: Flex access to cookies

2007-03-28 Thread Maury Sword
You can modify the "flashvars" in index.template.html file under the 
html-template directory of your project.  In the follwoing snippet I 
have added username and pwd parameters.

// if we've detected an acceptable version
// embed the Flash Content SWF when all tests are passed
AC_FL_RunContent(
   "src", "${swf}",
   "width", "${width}",
   "height", "${height}",
   "align", "middle",
   "id", "${application}",
   "quality", "high",
   "bgcolor", "${bgcolor}",
   "name", "${application}",
   "flashvars",'historyUrl=history.htm%3F&lconid=' + lc_id   
+ '&username=myUser&pwd=myPwd',   <  code change
   "allowScriptAccess","sameDomain",
   "type", "application/x-shockwave-flash",
   "pluginspage", "http://www.adobe.com/go/getflashplayer";
);


Then reference these parameter in Flex via the Application class:

import mx.core.Application;

Application.application.parameters.username;
Application.application.parameters.pwd;


--- In flexcoders@yahoogroups.com, Tony Obermeit <[EMAIL PROTECTED]> wrote:
>
> Thanks a lot! :-) - any code snippets to guide me as to how to do  
> that, or links to related examples?
> 
> Tony
> 
> Posted by: "Clint Tredway" [EMAIL PROTECTED]   clinttredway
> Tue Mar 27, 2007 5:33 pm (PST)
> 
> pass in the cookie value thru the flashVars.
> 
> On 3/27/07, Tony Obermeit <[EMAIL PROTECTED]> wrote:
>  >
>  > I need to access the cookies already created in the browser in 
order
>  > to determine if the user has been authenticated using oracle 
single
>  > sign on.
>  >
>  > 1. Which flash object / class do I use to access the cookies?
>  >
>  > 2. Anyone have tips / code to share that they've used to 
authenicate
>  > user with oracle sso?
>  >
>  > Thanks
>  >
>  > Tony
>  >
>  >
>




[flexcoders] Re: remoteCredentials and CFCs

2007-03-27 Thread Maury Sword
Chad,

I normally pass the username and an encrypted password in the html 
wrapper by modifying the flashvars parameter in the 
index.template.html file and set the remote credentials in the 
creationComplete handler of the Application.  This is only needed 
when the CFC is in a directory secured by CFLogin. 


 


Maury

--- In flexcoders@yahoogroups.com, "Chad Gray" <[EMAIL PROTECTED]> wrote:
>
> I posted to the Apollo forum, but this is more of a Flex question.
> 
> How would one use this setRemoteCredentials() method?  
> 
> 
http://livedocs.adobe.com/flex/201/langref/mx/rpc/remoting/RemoteObjec
t.html#setRemoteCredentials()
> 
> Do I place it in my submitJob function in the example code below?
> 
> Here is my basic code that I am passing a job number to a cfc and I 
get a result back from it.
> 
> Also how does the CFC need to be setup to even use this 
RemoteCredentials information? 
> 
> 
> 
> 
> 
> 
> http://demo.dev/flex2gateway/";> 
> 
> 
> {jobNumber.text}
> 
> 
> 
> 
> 
> 
> 
> 
> 
>




[flexcoders] Re:

2007-03-26 Thread Maury Sword
Jeremy,

I would normally do this in the RemoteObject result handler for the 
data that contains the id that is the selection.  

For instance let's say you have a ComboBox populated with a list of 
US States.  You retrieve an Employee record from a datasource via 
Remoting, when that data is returned it would contain the state_id 
that you want selected out of the comboBox. Then you could call the 
code to select the correct state out of the ComboBox.

Maury

--- In flexcoders@yahoogroups.com, Jeremy Watson <[EMAIL PROTECTED]> 
wrote:
>
> Hi Maury,
> 
> Um. Thanks for that. Without sounding like a complete idiot...where 
would you put that. I know enough to be dangerous.
> But not enough to be useful at this point. 
> 
> Jeremy
> 
> ----- Original Message 
> From: Maury Sword <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Tuesday, 27 March, 2007 7:20:41 AM
> Subject: [flexcoders] Re: 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> Try this:
> 
> 
> 
> for (var i:Number=0; i < bob.dataProvider. length; i++) {
> 
>if (bob.dataProvider[ i].bobid == mybobid) {
> 
>   bob.selectedIndex = i;
> 
>   break;
> 
>}
> 
> }
> 
> 
> 
> --- In [EMAIL PROTECTED] ups.com, "flexjeremy"  
> 
> wrote:
> 
> >
> 
> > Boy do I feel like a dork. Excellent. Thank you. One last thing 
if I
> 
> > were getting a value out of the database is there a way to say 
that
> 
> > item is selected? I know how to do this in ColdFusion, but I'm
> 
> > thinking that would be totally different in Flex.
> 
> > 
> 
> > SO for example in CF we do it this way.
> 
> > 
> 
> > 
> 
> >
> > mybobidfromdb> selected< /cfif>>#mybob# 
> 
> > 
> 
> > 
> 
> > In flex we do it..?
> 
> > 
> 
> > 
> 
> > *insert blank look from jeremy*
> 
> > 
> 
> > 
> 
> > Jeremy
> 
> > 
> 
> > 
> 
> > --- In [EMAIL PROTECTED] ups.com, "Maury Sword"  
> 
> wrote:
> 
> > >
> 
> > > Jeremy,
> 
> > > 
> 
> > > You will need to specify a labelField or labelFunction in order 
> 
> for 
> 
> > > the ComboBox to know what you want to display.
> 
> > > 
> 
> > > Maury
> 
> > > 
> 
> > > 
> 
> > > 
> 
> > > --- In [EMAIL PROTECTED] ups.com, "flexjeremy"  
> 
> > > wrote:
> 
> > > >
> 
> > > > Hello helpful list,
> 
> > > > 
> 
> > > > I seem to be confusing myself. I'm using ColdFusion to get 
the 
> 
> data
> 
> > > > out of our database. Simple. I got a remote object getting 
the 
> 
> data.
> 
> > > > 
> 
> > > >  
> > > > source="Cows3. cows" showBusyCursor= "true"/>
> 
> > > > 
> 
> > > > Now what I want to do is firstly get the data into it. I 
tried 
> 
> this 
> 
> > > by
> 
> > > > doing the following. 
> 
> > > > 
> 
> > > >  
> > > > dataProvider= "{remoteService. getProcessors. lastResult} ">
> 
> > > > 
> 
> > > > 
> 
> > > > Now I know that it needs to be in an Array. When I dump the 
> 
> data 
> 
> > > into
> 
> > > > a grid. It works fine. i.e. 
> 
> > > > 
> 
> > > >  
> > > dataProvider= "{remoteService. getProcessors. lastResult} ">
> 
> > > >  
> 
> > > > 
> 
> > > > All the examples on Adobe's site is shitting me. Cause they 
are 
> 
> put 
> 
> > > in
> 
> > > > from an Array they manually make. 
> 
> > > > 
> 
> > > > Help. Again.
> 
> > > > 
> 
> > > > Jeremy
> 
> > > >
> 
> > >
> 
> >
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Send instant messages to your online friends 
http://au.messenger.yahoo.com
>




[flexcoders] Re:

2007-03-26 Thread Maury Sword
Try this:

for (var i:Number=0; i < bob.dataProvider.length; i++) {
   if (bob.dataProvider[i].bobid == mybobid) {
  bob.selectedIndex = i;
  break;
   }
}


--- In flexcoders@yahoogroups.com, "flexjeremy" <[EMAIL PROTECTED]> 
wrote:
>
> Boy do I feel like a dork. Excellent. Thank you. One last thing if I
> were getting a value out of the database is there a way to say that
> item is selected? I know how to do this in ColdFusion, but I'm
> thinking that would be totally different in Flex.
> 
> SO for example in CF we do it this way.
> 
> 
>mybobidfromdb>selected>#mybob#
> 
> 
> In flex we do it..?
> 
> 
> *insert blank look from jeremy*
> 
> 
> Jeremy
> 
> 
> --- In flexcoders@yahoogroups.com, "Maury Sword"  
wrote:
> >
> > Jeremy,
> > 
> > You will need to specify a labelField or labelFunction in order 
for 
> > the ComboBox to know what you want to display.
> > 
> > Maury
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "flexjeremy"  
> > wrote:
> > >
> > > Hello helpful list,
> > > 
> > > I seem to be confusing myself. I'm using ColdFusion to get the 
data
> > > out of our database. Simple. I got a remote object getting the 
data.
> > > 
> > >  > > source="Cows3.cows" showBusyCursor="true"/>
> > > 
> > > Now what I want to do is firstly get the data into it. I tried 
this 
> > by
> > > doing the following. 
> > > 
> > >  > > dataProvider="{remoteService.getProcessors.lastResult}">
> > > 
> > > 
> > > Now I know that it needs to be in an Array. When I dump the 
data 
> > into
> > > a grid. It works fine. i.e. 
> > > 
> > >  > dataProvider="{remoteService.getProcessors.lastResult}">
> > >  
> > > 
> > > All the examples on Adobe's site is shitting me. Cause they are 
put 
> > in
> > > from an Array they manually make. 
> > > 
> > > Help. Again.
> > > 
> > > Jeremy
> > >
> >
>




[flexcoders] Re:

2007-03-26 Thread Maury Sword
Jeremy,

You will need to specify a labelField or labelFunction in order for 
the ComboBox to know what you want to display.

Maury



--- In flexcoders@yahoogroups.com, "flexjeremy" <[EMAIL PROTECTED]> 
wrote:
>
> Hello helpful list,
> 
> I seem to be confusing myself. I'm using ColdFusion to get the data
> out of our database. Simple. I got a remote object getting the data.
> 
>  source="Cows3.cows" showBusyCursor="true"/>
> 
> Now what I want to do is firstly get the data into it. I tried this 
by
> doing the following. 
> 
>  dataProvider="{remoteService.getProcessors.lastResult}">
> 
> 
> Now I know that it needs to be in an Array. When I dump the data 
into
> a grid. It works fine. i.e. 
> 
> 
>  
> 
> All the examples on Adobe's site is shitting me. Cause they are put 
in
> from an Array they manually make. 
> 
> Help. Again.
> 
> Jeremy
>




[flexcoders] Re: "constructor" like arguments in MXML components?

2007-03-23 Thread Maury Sword
The way I do this is I create a public property of type Object called 
parentComponent in the Script/AS section of my TitleWindow.  Then 
after I create the PopUp I set the parentComponent.  That way I can 
get at the selectedItem and other information that I may need in the 
PopUp without passing anything.  I normally working within a 
component that I have extended from one of the Flex components, so I 
have a method like this:

protected var pop1:TitleWindow;

protected function createPopUp():void {
   pop1 = new RemotingForm();
   RemotingForm(pop1).parentComponent = this;   
}

Where RemotingForm is the MXML TitleWindow.

Then in the TitleWindow I will reference the the selectedItem as 
follows:







I use this technique with all of my list based components.


Maury


--- In flexcoders@yahoogroups.com, "tddclare" <[EMAIL PROTECTED]> wrote:
>
> I talk to myself all the time, so why not do it on FlexCoders?
> 
> I was thinking more about my problem:  I had tried to do something
> like this:
> 
> //code here to create new popup of my TitleWindow form, then...
> myTitleWindow.person = myPerson;
> 
> But I was getting errors and/or nothing because myTitleWindow was 
not
> done creating its children before I set its person variable.
> 
> So I did this:
> 
> var myTitleWindow = //code to create the popup using my mxml 
extension
> //of TitleWindow with the set person() function 
in  
> //it
> var myFunc:Function = function():void {myTitleWindow.person = 
myPerson}
> 
> myTitleWindow.addEventListener("creationComplete", myFunc);
> 
> Seems to work, and is finally gives me a reason to understand why 
one
> would ever create a variable of type Function.
> 
> Comments or concerns are welcome... but I thought I'd share
>




[flexcoders] Re: Flex coldfusion simple question

2007-03-23 Thread Maury Sword
John,

Here's a link to an article that I found helpful in getting this to 
work:

http://www.adobe.com/devnet/flex/articles/helloworld.html

Maury


--- In flexcoders@yahoogroups.com, John Barrett <[EMAIL PROTECTED]> wrote:
>
> Hi Clint,
> Thanks so much
> I am looking forward to seeing the zip so I can finally get CF & 
Flex to communicate`-` 
> Thanks,
> John
>   
>  
> 
> 
> - Original Message 
> From: Clint Tredway <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Friday, March 23, 2007 2:01:13 AM
> Subject: Re: [flexcoders] Re: Flex coldfusion simple question
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> I can send you the zip of the code as I know that 
works. 
> 
> 
> On 23 Mar 2007 03:15:01 -0700, John Barrett <[EMAIL PROTECTED] com
> > wrote:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> Hi Clint,
> I tried to reply to your blog, but I never got the conformation e-
mail.
> 
> Thanks for the tutorial one this!
> I might be wrong, but on line 27 of the mxml file I think that it 
should say:
> 
>  
> Anyway, this is what I had to do for flex not too throw an error. 
It was saying it needed a closing tag.
> 
> I was not able to get it to work in the end(the above is the only 
change that I made to the code) I get the error"Couldn't establish a 
connection to ColdFusion" I have a screen shot of the error message 
here:
> 
> http://johnbarrett. net/flex_ error.jpg
> 
> I am running ColdFusion 7.02 on the Mac.
> 
> Any thoughts?
> Thanks,
> John
>  
> 
>   
>  
> 
> 
> 
> - Original Message 
> From: Clint Tredway <[EMAIL PROTECTED] com>
> To: [EMAIL PROTECTED]
> ups.com
> Sent: Thursday, March 22, 2007 7:40:25 AM
> Subject: Re: [flexcoders] Re: Flex coldfusion simple question
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> http://grumpee. instantspot. com/blog
> 
> 
> 
> On 3/22/07, cardinalflexjeremy <
> [EMAIL PROTECTED] net> wrote:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> Are there any code examples or tutorials on this? That 
is, any samples
> 
> using coldfusion (not webservices or httpRequest) to access CFCs?
> 
> 
> 
> thanks.
> 
> 
> 
> --- In [EMAIL PROTECTED] ups.com, Tom Chiverton 

> 
> wrote:
> 
> >
> 
> > On Thursday 22 Mar 2007, cardinalflexjeremy wrote:
> 
> > > If I want to make a flex app to tie to a Database, and I want 
to use
> 
> > > Coldfusion components to access the Database stuff, and connect 
Flex
> 
> > > and coldfusion, do I need FDS to use the coldfusion adapter 
pieces?
> 
> > 
> 
> > No.
> 
> > You can use Flex's RemoteObject straight to a CFC, no FDS (now
> 
> called LCDS 
> 
> > btw) required.
> 
> > 
> 
> > > Please let me know if a company would require FDS in order to 
use
> 
> > > coldfusion with flex?
> 
> > 
> 
> > Again with the no :-)
> 
> > 
> 
> > -- 
> 
> > Tom Chiverton
> 
> > Helping to continually morph slick appliances
> 
> > On: http://thefalken. livejournal. com
> 
> > 
> 
> >  * * * * 
> 
> > 
> 
> > This email is sent for and on behalf of Halliwells LLP.
> 
> > 
> 
> > Halliwells LLP is a limited liability partnership registered in
> 
> England and Wales under registered number OC307980 whose registered
> 
> office address is at St James's Court Brown Street Manchester M2 
2JF.
> 
>  A list of members is available for inspection at the registered
> 
> office. Any reference to a partner in relation to Halliwells LLP 
means
> 
> a member of Halliwells LLP. Regulated by the Law Society.
> 
> > 
> 
> > CONFIDENTIALITY
> 
> > 
> 
> > This email is intended only for the use of the addressee named 
above
> 
> and may be confidential or legally privileged.  If you are not the
> 
> addressee you must not read it and must not use any information
> 
> contained in nor copy it nor inform any person other than Halliwells
> 
> LLP or the addressee of its existence or contents.  If you have
> 
> received this email in error please delete it and notify Halliwells
> 
> LLP IT Department on 0870 365 8008.
> 
> > 
> 
> > For more information about Halliwells LLP visit www.halliwells. 
com.
> 
> >
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> http://indeegrumpee .spaces.live. com/
> 
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> It's here! Your new message!
> Get
>  new email alerts with the free Yahoo! Toolbar.
> 
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> http://indeegrumpee .spaces.live. com/
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
__
__
> The fish are biting. 
> Get more visitors on your site using Yahoo! Search Marketing.
> http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
>




[flexcoders] Re: Advanced DataGrid / Destination Aware intros tight coupling?

2007-03-23 Thread Maury Sword
Anatole,

I just ordered my copy yesterday and downloaded the PDF version but I 
haven't had time to do much reading yet.  I'll be sure to pay close 
attention to that part of the book.  I'm always looking for ways to 
improve my class libraries and coding techniques.  It's refreshing to 
see someone else has at least considered this approach.  

Thanks,
Maury


 --- In flexcoders@yahoogroups.com, "anatolet" 
<[EMAIL PROTECTED]> wrote:
>
> Maury,
>Please take a look @ the subchapter on resources (somewhere close
> to the end of chapter 8 - did not get my copy of the book with real
> page numbers yet). Basically it talks about moving destination part
> along with key columns and some other properties into separate 
class -
> there you can provide caching and notifications a la runtime 
styles -
> only on the properties/model level.
> 
> Regards,
> Anatole Tartakovsky
> 
> 
> --- In flexcoders@yahoogroups.com, "maury.sword"  
wrote:
> >
> > --- In flexcoders@yahoogroups.com, "lostinrecursion"  
> > wrote:
> > >
> > > Evening folks,
> > > 
> > > I finished reading a chapter in the new book, RIAs with Flex 
and 
> > Java.
> > > Specifically, I was reading Chapter 11: Advanced Datagrid which
> > > introduces the concept of a destination aware component which 
> > contains
> > > calls to a remote object embedded in the extended component's 
MXML 
> > code.
> > > 
> > > Although the destination and method are passed to the component 
in
> > > compile time attributes, this smells of not only tight coupling 
of
> > > components - but totally ignoring good OOP practice and mixing 
the
> > > business and presentation tiers. Add to that the fact that now 
the
> > > dataProvider can only have the one view, the actual grid to 
which it
> > > is set.
> > > 
> > > Can someone point out what I am missing here or make any points 
why 
> > my
> > > thoughts are incorrect? 
> > > 
> > > So far, it's a great book but that chapter really threw me off.
> > > 
> > > -Kenny/LIR
> > >
> > 
> > 
> > I'm not sure that's that's ignoring good OOP practice but it 
> > certainly does mix the business and presentation tiers.  
> > 
> > I have been doing this since Flex 1.5 for the ComboBox, List, 
> > DataGrid and Tree components.  I first extended each these to 
create 
> > generic components that implement Flash Remoting, some standard 
> > contextmenus, drag and drop, security/privilege checking and 
dispatch 
> > events when remoting calls return.  Then I extend these and point 
the 
> > RemoteObject source to the specific CFC that retrieves the data 
from 
> > the database.  
> > 
> > For instance I have a RemotingComboBase class that extends the 
> > ComboBox class and I have an EmployeeComboBox class that extends 
the 
> > RemotingComboBase.  I have several applications that need to use 
an 
> > EmployeeComboBox, so when I need one I just have to drag it onto 
the 
> > form and go on to the next component.  I also have an 
EmployeeList 
> > class when I want to display a list of employees.  Both of these 
> > components have their RemoteObject source pointed at the same 
CFC.  
> > Obviously if I'm using both of these components on the same form 
I am 
> > retrieving and storing this information twice but it's worth it 
to me 
> > for the ease and speed of development that I've gained.  Also I 
don't 
> > normally have the need to display the same data in different 
views 
> > within the same application. 
> > 
> > I don't view this as much different than the Flex example of a 
> > StateComboBox that always displays a list of hardcoded US states.
> > 
> > Maury
> >
>