[flexcoders] How do I generate useful CFC Errors?

2005-12-28 Thread Greg Johnson
Right now, when something goes caput in a cfc I get back a realitivly 
meaningless set of information in Flex vs and CFML doc calling the same 
CFC and getting an error.





 Yahoo! Groups Sponsor ~-- 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Flex 2:HAccordion???

2005-12-15 Thread Greg Johnson
I know there was code for one in Flex 1.5, but it appears to need 
somework to work in Flex 2.  Has anyone already done that who could 
give me a copy?

Thanks
([EMAIL PROTECTED])





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Tab Wraping

2005-12-09 Thread Greg Johnson
I have x tabs.  However its x tabs too many and they get cut off on the 
right hand side.  I would prefer they wrap to a second line 
automaticaly.  Ideas? 


tnks
Greg







 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Flex 2: Where's the color?

2005-11-21 Thread Greg Johnson
In Flex 1.5 panel header had the nice gradient haloGreen.  Now they are 
flat grey.  I have tried several different ways to change the color to 
a gradient, but to no avail?

Is there a place I can referance Flex 2 styling and what it can and 
cant do that Flex 1.5 could?

Thanks





 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Flex 2: Where's the color?

2005-11-21 Thread Greg Johnson
Ya, kinda had a feeling it was just a bug.  So went ahead and covered 
myself by telling boss we are just out of luck till the next release 
where this is fixed.  I might try the skin, just hate using a graphic 
where text should do the trick.

Tnks


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

 On 11/21/05, Greg Johnson [EMAIL PROTECTED] wrote:
  In Flex 1.5 panel header had the nice gradient haloGreen.  Now 
they are
  flat grey.  I have tried several different ways to change the 
color to
  a gradient, but to no avail?
 
 I think headerColors is supposed to work, so that's a bug.  for 
now,
 you can use your own skin for title bar's background by setting
 titleBackgroundSkin to a class reference.
 
  Panel {
   titleBackgroundSkin: ClassReference
(my.skin.TitleBackgroundSkin);
  }
 
 or:
 
 Panel {
  titleBackgroundSkin: Embed
(source=graphics.swf,symbol=titleBackground);
 }
 
 Manish







 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Flex 2:Bind a variable to selectedIndex?

2005-11-21 Thread Greg Johnson
Basicaly I have an accordian view.  The first pannel is a dataGrid, the 
secound pannel is a viewstack.  What I want is for when I go from the 
dataGrid to teh viewstack, that the viewstack switch to the first 
view.  However all I seem to be able to do is ether get an error 
because the viewstack doesn't exist, or every time I click to switch 
the viewstack it throws me right back to the first view.  The viewstack 
will show the details for an item someone selects on the datagrid.

I thought if I could bind a variable to selectedIndex then I could just 
change that, and when the viewstack showed it would use that value and 
switch.

Any ideas?





 Yahoo! Groups Sponsor ~-- 
AIDS in India: A lurking bomb. Click and help stop AIDS now.
http://us.click.yahoo.com/VpTY2A/lzNLAA/yQLSAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Flex 2:Having a major problem with what should be very simple.

2005-11-16 Thread Greg Johnson
I have an oracle database setup on one server.  
I have CF setup on another server with a datasource setup connecting to 
the oracle server.
I am querying oracle and getting back result set.
Included in that result set (from what I can see) is a field called 
Abstract with a type of Long.  It contains a few paragraphs of text.  
When I just dump the variable to the screen outside of flex, it 
displays fine.  When I even try and pass the information back to  Flex 
however from a CFC it blows up.  No helpful error messages ether.

I do not have access to the CF Server admin nor the Oracle Admin.

Ideas?





 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Flex 2:Class Problem?

2005-11-09 Thread Greg Johnson
I finally got some time to setup classes for some common functions 
and it was working, then I rolled it out to all parts of the 
application and now it balks on me.

Here is the error in debug view

[SWF] C:\Documents and Settings\gjohnson\My 
Documents\Flex\mr_new\bin\mr-debug.swf - 1,611,760 bytes after 
decompression
Flex accessibility startup: true
TypeError: Error #1009: null has no properties.


Here is the error from the flash player

TypeError: Error #1009: null has no properties.
at mr/doResultGetPeople()[C:\Documents and 
Settings\gjohnson\My Documents\Flex\mr_new\mrCFCHandlers.as:105]
at mr/___Operation15_result()[C:\Documents and 
Settings\gjohnson\My Documents\Flex\mr_new\mr.mxml:55]
at flash.events::EventDispatcher/dispatchEvent()
at 
mx.rpc::AbstractOperation/http://www.macromedia.com/2005/flex/mx/inter
nal::dispatchRpcEvent()
[C:\dev\max\sdk\frameworks\mx\rpc\AbstractOperation.as:167]
at 
mx.rpc.soap::Operation/http://www.macromedia.com/2005/flex/mx/internal
::resultHandler()
[C:\dev\max\sdk\frameworks\mx\rpc\soap\Operation.as:592]
at flash.events::EventDispatcher/dispatchEvent()
at 
mx.rpc::Producer/http://www.macromedia.com/2005/flex/mx/internal::ackn
owledge()[C:\dev\max\sdk\frameworks\mx\rpc\Producer.as:59]
at mx.messaging.channels$1021
$private::HTTPMessageResponder/completeHandler()
[C:\dev\max\sdk\frameworks\mx\messaging\channels\DirectHTTPChannel.as:
237]
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/URLLoader$502$private::onComplete()
-


Here are the germain parts of my code

mr.mxml

!-- Managment Reporting Main Web Service Definition --
mx:WebService id=mr_main wsdl={removed for posting} 
fault=stdFuncs.cfcerr('mr_main','', event.fault.faultcode, 
event.fault.faultstring, event.fault.description, 
event.fault.detail) showBusyCursor=true
mx:operation name=getPeopleByName_cfc 
result=doResultGetPeople(event.result) fault=stdFuncs.cfcerr
('mr_main','getPeopleByName_cfc', event.fault.faultcode, 
event.fault.faultstring, event.fault.description, 
event.fault.detail) /
mx:operation name=getDeptPIDs_cfc 
result=doResultGetDepartmentPIDs(event.result) 
fault=stdFuncs.cfcerr('mr_main','getDeptPIDs_cfc', 
event.fault.faultcode, event.fault.faultstring, 
event.fault.description, event.fault.detail) /
mx:operation name=getCompany_cfc 
result=doResultGetCompany(event.result) fault=stdFuncs.cfcerr
('mr_main','getCompany_cfc', event.fault.faultcode, 
event.fault.faultstring, event.fault.description, 
event.fault.detail) /
mx:operation name=getPerson_cfc 
result=doResultGetPerson(event.result) fault=stdFuncs.cfcerr
('mr_main','getPerson_cfc', event.fault.faultcode, 
event.fault.faultstring, event.fault.description, 
event.fault.detail) /
mx:operation name=getDeptList_cfc 
result=doResultGetDeptList(event.result) fault=stdFuncs.cfcerr
('mr_main','getDeptList_cfc', event.fault.faultcode, 
event.fault.faultstring, event.fault.description, 
event.fault.detail) /
mx:operation name=getPermissions_cfc 
result=doResultGetPermissions(event.result) fault=stdFuncs.cfcerr
('mr_main','getPermissions_cfc', event.fault.faultcode, 
event.fault.faultstring, event.fault.description, 
event.fault.detail) /
/mx:WebService
--
mycode.as
--
import mx.collections.ArrayCollection;
[Bindable]
public var investigatorResultsGrid_dp:ArrayCollection = new 
ArrayCollection();
public var stdFuncs:stdlib;

//** Get People CFC **
// Caller
public function getPeople(name:String, deptcode:String, 
deptname:String):Void{
mr_main.getPeopleByName_cfc(name, deptcode, deptname, getPIDs
());
}

// Result Handler
public function doResultGetPeople(result:Array):Void {
// *** it errors on the following line 
stdFuncs.CFC2AS(result,investigatorResultsGrid_dp);
investigatorResultsGrid.visible=true;
investigatorResultsGrid.selectedIndex=0;
selections_vs.selectedIndex=0;
selectionsPanel.visible=true;
getPerson();
}
--

Here is the class
-
stdlib.as
-
package {
import mx.collections.ArrayCollection;
import mx.events.DragEvent;
public interface stdlib {
function CFC2AS(newArray:Array, 
oldArray:ArrayCollection):Void
function getToday():String
function doDragDrop(event:DragEvent):Void
function detectDoubleClick(event:Object, 
functionToCall_func:Function, ... args):Boolean
function dateAssign(dateOut:Date, dateIn:Object):Date
function 

[flexcoders] Re: Flex 2:Can you center a popup from the inside?

2005-11-04 Thread Greg Johnson
Nope
--- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote:

 Is the err function being called from a class that extends 
 UIObject/UIComponent/View?
 
 - Original Message - 
 From: Greg Johnson [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, November 03, 2005 3:44 PM
 Subject: [flexcoders] Flex 2:Can you center a popup from the inside?
 
 
 Here is the popup function
 
 // Error Handler Function
 public function err(message:String):Void {
 var errpop:stdErr = stdErr(PopUpManager.createPopUp
 (this, stdErr, true));
 errpop.message.text = message;
 }
 
 And here is the stdErr.mxml file it uses for the actual popup.
 
 ?xml version=1.0 encoding=utf-8?
 mx:TitleWindow xmlns:mx=http://www.macromedia.com/2005/mxml;
 width=240 height=341 closeButton=true
 borderStyle=outset cornerRadius=10 title=Notice
 fontWeight=bold
 mx:Canvas width=100% height=100%
 mx:Text id=message selectable=true
 mx:layoutConstraints
 mx:EdgeAnchor left=5 right=5
 bottom=5 top=25/
 /mx:layoutConstraints
 /mx:Text
 /mx:Canvas
 mx:Script
 ![CDATA[
 import mx.managers.PopUpManager;
 ]]
 /mx:Script
 mx:ControlBar width=100% horizontalAlign=center
 marginBottom=5 marginLeft=5 marginRight=5 marginTop=5
 mx:Button label=Close
 click=PopUpManager.removePopUp(this) width=100%/
 /mx:ControlBar
 /mx:TitleWindow
 
 I have tried a few variations to get centerPopUp to work, but they
 all either give an error when I try to compile or just don't center
 it.
 
 
 
 
 
 
 
 --
 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








 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Flex 2:CFC can't seem to return the same type

2005-11-03 Thread Greg Johnson
I have a date field that gets returned to Flex2 from a CFC.  Thing is 
when there is a date in it, it returns a date.  When there is no date 
in it, it returns a empty string.

Flex is having indigestion as the Flex variable is of date type.  So 
when a date is returned, its happy, when a empty string is returned, it 
complains about coersion failure from string to date.

If this were a different language I would use something like IsDate, 
but the closest thing to it seems to be the DateValidator which, 
atleast as presented in the documentation, seems more complex then what 
I really need. 

Is there a function in Flex 2 that will accept a date or a empty string 
and will return ether a valid date or an empty date?  Or is there a 
better way to pass the date from the CFC so even when its  flex still 
sees it as a date type?

Thanks





 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: RES: [flexcoders] Flex 2:CFC can't seem to return the same type

2005-11-03 Thread Greg Johnson
Nope, haven't tried that yet.

Basicaly what I did to get it to work is to make all my variables in 
Flex2 be strings.  Then when I assign the value returned from the 
CFC, if its a date or number being returned I use String() which will 
convert the number or date to a string representation.

mx:DateFormatter id=StdDateFormat/
mx:CurrenctFormatter id=StdMoneyFormat precision=2/

[Bindable]
public var date_dp:String = new String();
[Bindable]
public var total_dp:String = new String();

date_dp = String(result[0].DATE);
total_dp = String(result[0].TOTAL);

Then in the binding I use a currency formater and a date formater 
which seem to take strings or number/dates as acceptable input and 
output correctly.

mx:Label text={StdDateFormat.format(date_dp)}/
mx:Label text={StdMoneyFormat.format(total_dp)}/


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

 Greg,
 
 I'm not sure, but I think that in AS 3.0 you can't assign an empty 
string to
 a Date Object. It's stronglly typed. As well you can't assigns na 
empty
 string to a Numeric variable. You must return 0 or -1 to a numeric 
variable.
 I guess that's the problem.
 
 As you're using Flex2 and ColdFusion, have you tested using session
 variables? It's not working for me and I don't know why. I tested 
the same
 components using just the browser and it worked.
 
 Thanks.
 
 Rafael
 
 -Mensagem original-
 De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Em nome
 de Greg Johnson
 Enviada em: quinta-feira, 3 de novembro de 2005 15:06
 Para: flexcoders@yahoogroups.com
 Assunto: [flexcoders] Flex 2:CFC can't seem to return the same type
 
 I have a date field that gets returned to Flex2 from a CFC.  Thing 
is when
 there is a date in it, it returns a date.  When there is no date in 
it, it
 returns a empty string.
 
 Flex is having indigestion as the Flex variable is of date type.  
So when a
 date is returned, its happy, when a empty string is returned, it 
complains
 about coersion failure from string to date.
 
 If this were a different language I would use something like 
IsDate, but the
 closest thing to it seems to be the DateValidator which, atleast as
 presented in the documentation, seems more complex then what I 
really need. 
 
 Is there a function in Flex 2 that will accept a date or a empty 
string and
 will return ether a valid date or an empty date?  Or is there a 
better way
 to pass the date from the CFC so even when its  flex still sees 
it as a
 date type?
 
 Thanks
 
 
 
 
 
  Yahoo! Groups Sponsor 
~-- Fair
 play? Video games influencing politics. Click and talk back!
 http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
 
~- 
 
 --
 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
 
 
 
  
 
 
 
 
 
 --
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.361 / Virus Database: 267.12.6/151 - Release Date: 
28/10/2005







 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Flex 2:Can you center a popup from the inside?

2005-11-03 Thread Greg Johnson
Here is the popup function

// Error Handler Function
public function err(message:String):Void {
var errpop:stdErr = stdErr(PopUpManager.createPopUp
(this, stdErr, true));
errpop.message.text = message;
}

And here is the stdErr.mxml file it uses for the actual popup.

?xml version=1.0 encoding=utf-8?
mx:TitleWindow xmlns:mx=http://www.macromedia.com/2005/mxml; 
width=240 height=341 closeButton=true
borderStyle=outset cornerRadius=10 title=Notice 
fontWeight=bold
mx:Canvas width=100% height=100%
mx:Text id=message selectable=true
mx:layoutConstraints
mx:EdgeAnchor left=5 right=5 
bottom=5 top=25/
/mx:layoutConstraints
/mx:Text
/mx:Canvas
mx:Script
![CDATA[
import mx.managers.PopUpManager;
]]
/mx:Script
mx:ControlBar width=100% horizontalAlign=center 
marginBottom=5 marginLeft=5 marginRight=5 marginTop=5
mx:Button label=Close 
click=PopUpManager.removePopUp(this) width=100%/
/mx:ControlBar
/mx:TitleWindow

I have tried a few variations to get centerPopUp to work, but they 
all either give an error when I try to compile or just don't center 
it.






 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Flex 2:Package/Class problem

2005-11-02 Thread Greg Johnson
Well that definatly clears up a few things that were confusing me.

Basicaly what I am doing is that we have several intrAnet 
applications that we are trying to create a central reporting system 
for.

In all cases the reports will be based on a person or list of 
people.  We have a tabed interface where the first tab lets the 
manager build the list of people.  They can do this either by 
searching for and selecting individual people which builds a list of 
people's unique campus wide ID, or using departments and department 
codes, or eventually companies and company codes.

When you click on the next tab it takes whichever type of list the 
manager built and generates a list of whatever in a dataGrid.  You 
can then double click on a row and it uses a accordian to show a 
viewstack with all the details for that record.

However instead of coding the visual part all in one mxml file I have 
a main mxml file with the search, then each additional tab I have in 
a seperate mxml file as a component.  So in the tabNavigator I simply 
add lines like local:otdTab id=otdTabHandle/

When I am inside one of the components I want to access the same 
doubleclick function I use in the main mxml.  However since the as 
file the doubleclick code is in is included in the main mxml the 
component can't see the function.  I have to add the 
mx.core.Application.application. in order for the component to 
see it.

So what I would rather do is just be able to add a include or 
something in the component making the functions already loaded in the 
main file available to the component file.
--- In flexcoders@yahoogroups.com, Roger Gonzalez [EMAIL PROTECTED] 
wrote:

 This seems like you're talking about a couple different things here.
 I'm not sure I understand where mx.core.Application.application 
comes
 into it.
 
 You can do the same thing with source as you can with a SWC;
 
 Make a new directory tree, looks like you're using mrstd.
 
 Then, you'll make one source file per class (that you are currently
 putting in one file).  Name the source file the same as the 
classname.
 
 BTW - several of your utility functions should probably really be 
static
 - there's no reason to create a class instance just to call a 
function
 when there are no vars on the object!
 
 Add the directory one level above the mrstd directory to your
 actionscript-classpath (either via the flex-config file or by 
setting it
 in FlexBuilder; Project  ActionScript Build Path  Class path.
 
 When you want to use these classes from some other file, just do
 import mrstd.*;
 
 Use the classes as you would expect.
 
 This should get you most of the way there.
 
 Ok, so what if you want to hand your mrstd classes off to someone 
else?
 Or maybe you don't want to keep compiling them?  That's when you 
need a
 SWC.  Unfortunately, the alpha build of FlexBuilder doesn't have 
any SWC
 support built-in, so you need to drop down to the command line.
 
 Run compc.exe -i source source source -o mrstd.swc
 
 Go back into FlexBuilder, and remove the mrstd directory from the
 classpath, and add the mrstd.swc file to the library path tab.
 
 Is this what you need?
 
 -Roger
 
 Roger Gonzalez
 mailto:[EMAIL PROTECTED]
  
 
  -Original Message-
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Greg Johnson
  Sent: Tuesday, November 01, 2005 11:45 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Flex 2:Package/Class problem
  
  This is a part I didn't even get a chance to get into with 1.5 so 
im 
  coming kinda late in 2.
  
  In my post you saw the functions that I want to make so I can use 
  them all over without having to 
  use mx.core.Application.application. every time I use one.
  
  Most of them I use in .as files not .mxml files.  And the ones I 
use 
  in the .mxml files I usually use as function calls.  Like for a 
grid 
  column that contains a date, I use the dateFunction parameter and 
  give the function name.
  
  I have looked at the interface and class builder wizards.  But 
  didn't really get anywhere with them.  I definatly need to 
optimize 
  as much as I can as the applications I will be working on are 
going 
  to be extensive in some cases.
  
  Can you point me somewhere that shows how to build a library 
that I 
  can use in any code I have by just putting in the import 
  mylib.whatever.*?
  
  Thanks
  Greg
  
  --- In flexcoders@yahoogroups.com, Roger Gonzalez 
[EMAIL PROTECTED] 
  wrote:
  
   How so?  A library isn't one file.
   
   You should package everything up by making a manifest file so 
that 
  you
   can use your classes as MXML tags, and then use compc.exe to 
bundle 
  a
   SWC.  You can also bundle in additional stuff like icons and 
CSS and
   whatnot.
   
   Its a much more efficient distribution and packaging mechanism!
   
   -Roger
   
   Roger Gonzalez
   mailto:[EMAIL PROTECTED]

   
-Original Message-
From: flexcoders@yahoogroups.com

[flexcoders] Flex 2:Package/Class problem

2005-11-01 Thread Greg Johnson
I am tryinig to create a class with functions that I use repeatedly 
so I can just include them in different components/applications.  As 
far as I can tell I have written it correctly, but when I use an 
include, and they try calling one of the functions, it doesn't work.

Here is the package
package mrstd{
// Imported Libraries
import mx.managers.PopUpManager;
import mx.containers.TitleWindow;
import mx.controls.gridclasses.DataGridColumn;
import mx.managers.DragManager;
import mx.events.DragEvent;
import mx.formatters.*
import flash.util.Timer;

// Standard Library Class
public class stdlib {
// Does what it says, used when a function has to be 
called, but you don't actually want to do anything
public function doNothing():Void {} 

// Get Today's Date as a string
public function getToday():String {
var today_date:Date = new Date();
var date_str:String = ((today_date.getMonth()
+1)+/+today_date.getDate()+/+today_date.getFullYear());
return date_str;
}
}

// Mouse Related Functions
public class mouseHandlers {
// Handles drag and drop events.
public function doDragDrop(event:DragEvent):Void {
private var items:Array = 
event.dragSource.dataForFormat(items);
private var dest:Object = event.currentTarget;
private var dropLoc:int = dest.getDropLocation
();
dest.hideDropFeedback(event);
items.reverse();
var l:int = items.length;
for(var i:int = 0; i  l; i++) {
dest.dataProvider.addItemAt(items[i], 
dropLoc);
}
event.preventDefault();
}   

// Variables used for detectDoubleClick function
private var lastClick:int = 0;
private var lastObject:Object = new Object();;
private var lastIndex:int = 0;
private var maxTicks:int = 300;

// Detect if a double click was made and if so, call 
a function
public function detectDoubleClick(event:Object, 
functionToCall:Function, ... args):Void {
var currentClick:int;
var currentObject:Object;
var currentIndex:int;
var clickDif:int;
currentClick = getTimer();
currentObject = event.target;
currentIndex = event.index;
clickDif = currentClick - lastClick;
if( clickDif = maxTicks  currentObject == 
lastObject  currentIndex == lastIndex ) {
lastClick = currentClick;
lastObject = currentObject;
lastIndex = currentIndex;
if (args[0] == null) {
functionToCall();
} else {
functionToCall(args);
}
}
lastClick = currentClick;
lastObject = currentObject;
lastIndex = currentIndex;
}
}

// Standard Formaters
public class formaters {
private var StdMoneyFormat:CurrencyFormatter = new 
CurrencyFormatter();
private var StdDateFormat:DateFormatter = new 
DateFormatter();
StdMoneyFormat.precision=2;
// Formats a dataGrid cell as money
public function formatMoney(dpItem:Object, 
dgColumn:DataGridColumn):String {
return StdMoneyFormat.format(dpItem
[dgColumn.columnName]);
}

// Formats a dataGrid cell as a date
public function formatDate(dpItem:Object, 
dgColumn:DataGridColumn):String {
return StdDateFormat.format(dpItem
[dgColumn.columnName]);
}

// Formats a dataGrid cell as a string that is x 
characters long followed by an elipse
public function shortString(dpItem:Object, 
dgColumn:DataGridColumn, x:Number):String {
var tmpString:String;
tmpString = dpItem[dgColumn.columnName];
if (tmpString.length  x) {
tmpString = tmpString.substr(0,x);
tmpString = tmpString.concat('...');
}
 

[flexcoders] Re: Flex 2:Package/Class problem

2005-11-01 Thread Greg Johnson
Hmm, well that pokes a hole in that plan.  If I have to create a 
bunch of different files it kinda is contrary to my goal of combining 
things into one main generic library :(

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

 You can only have one public function / class / prop per .as file. 
Also, the
 .as files name must match that of the function / class / prop.
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Greg Johnson
 Sent: Tuesday, November 01, 2005 9:43 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex 2:Package/Class problem
 
 I am tryinig to create a class with functions that I use repeatedly 
 so I can just include them in different components/applications.  
As 
 far as I can tell I have written it correctly, but when I use an 
 include, and they try calling one of the functions, it doesn't work.
 
 Here is the package
 package mrstd{
   // Imported Libraries
   import mx.managers.PopUpManager;
   import mx.containers.TitleWindow;
   import mx.controls.gridclasses.DataGridColumn;
   import mx.managers.DragManager;
   import mx.events.DragEvent;
   import mx.formatters.*
   import flash.util.Timer;
 
   // Standard Library Class
   public class stdlib {
   // Does what it says, used when a function has to be 
 called, but you don't actually want to do anything
   public function doNothing():Void {} 
 
   // Get Today's Date as a string
   public function getToday():String {
   var today_date:Date = new Date();
   var date_str:String = ((today_date.getMonth()
 +1)+/+today_date.getDate()+/+today_date.getFullYear());
   return date_str;
   }
   }
   
   // Mouse Related Functions
   public class mouseHandlers {
   // Handles drag and drop events.
   public function doDragDrop(event:DragEvent):Void {
   private var items:Array = 
 event.dragSource.dataForFormat(items);
   private var dest:Object = event.currentTarget;
   private var dropLoc:int = dest.getDropLocation
 ();
   dest.hideDropFeedback(event);
   items.reverse();
   var l:int = items.length;
   for(var i:int = 0; i  l; i++) {
   dest.dataProvider.addItemAt(items[i], 
 dropLoc);
   }
   event.preventDefault();
   }   
 
   // Variables used for detectDoubleClick function
   private var lastClick:int = 0;
   private var lastObject:Object = new Object();;
   private var lastIndex:int = 0;
   private var maxTicks:int = 300;
 
   // Detect if a double click was made and if so, call 
 a function
   public function detectDoubleClick(event:Object, 
 functionToCall:Function, ... args):Void {
   var currentClick:int;
   var currentObject:Object;
   var currentIndex:int;
   var clickDif:int;
   currentClick = getTimer();
   currentObject = event.target;
   currentIndex = event.index;
   clickDif = currentClick - lastClick;
   if( clickDif = maxTicks  currentObject == 
 lastObject  currentIndex == lastIndex ) {
   lastClick = currentClick;
   lastObject = currentObject;
   lastIndex = currentIndex;
   if (args[0] == null) {
   functionToCall();
   } else {
   functionToCall(args);
   }
   }
   lastClick = currentClick;
   lastObject = currentObject;
   lastIndex = currentIndex;
   }
   }
   
   // Standard Formaters
   public class formaters {
   private var StdMoneyFormat:CurrencyFormatter = new 
 CurrencyFormatter();
   private var StdDateFormat:DateFormatter = new 
 DateFormatter();
   StdMoneyFormat.precision=2;
   // Formats a dataGrid cell as money
   public function formatMoney(dpItem:Object, 
 dgColumn:DataGridColumn):String {
   return StdMoneyFormat.format(dpItem
 [dgColumn.columnName]);
   }
 
   // Formats a dataGrid cell as a date
   public function formatDate(dpItem:Object, 
 dgColumn:DataGridColumn):String {
   return StdDateFormat.format(dpItem

[flexcoders] Re: Flex 2:Package/Class problem

2005-11-01 Thread Greg Johnson
This is a part I didn't even get a chance to get into with 1.5 so im 
coming kinda late in 2.

In my post you saw the functions that I want to make so I can use 
them all over without having to 
use mx.core.Application.application. every time I use one.

Most of them I use in .as files not .mxml files.  And the ones I use 
in the .mxml files I usually use as function calls.  Like for a grid 
column that contains a date, I use the dateFunction parameter and 
give the function name.

I have looked at the interface and class builder wizards.  But 
didn't really get anywhere with them.  I definatly need to optimize 
as much as I can as the applications I will be working on are going 
to be extensive in some cases.

Can you point me somewhere that shows how to build a library that I 
can use in any code I have by just putting in the import 
mylib.whatever.*?

Thanks
Greg

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

 How so?  A library isn't one file.
 
 You should package everything up by making a manifest file so that 
you
 can use your classes as MXML tags, and then use compc.exe to bundle 
a
 SWC.  You can also bundle in additional stuff like icons and CSS and
 whatnot.
 
 Its a much more efficient distribution and packaging mechanism!
 
 -Roger
 
 Roger Gonzalez
 mailto:[EMAIL PROTECTED]
  
 
  -Original Message-
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Greg Johnson
  Sent: Tuesday, November 01, 2005 8:05 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Flex 2:Package/Class problem
  
  Hmm, well that pokes a hole in that plan.  If I have to create a 
  bunch of different files it kinda is contrary to my goal of 
combining 
  things into one main generic library :(
  
  --- In flexcoders@yahoogroups.com, Geoffrey Williams 
[EMAIL PROTECTED] 
  wrote:
  
   You can only have one public function / class / prop per .as 
file. 
  Also, the
   .as files name must match that of the function / class / prop.
   
   -Original Message-
   From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On
   Behalf Of Greg Johnson
   Sent: Tuesday, November 01, 2005 9:43 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Flex 2:Package/Class problem
   
   I am tryinig to create a class with functions that I use 
repeatedly 
   so I can just include them in different 
components/applications.  
  As 
   far as I can tell I have written it correctly, but when I use 
an 
   include, and they try calling one of the functions, it doesn't 
work.
   
   Here is the package
   package mrstd{
 // Imported Libraries
 import mx.managers.PopUpManager;
 import mx.containers.TitleWindow;
 import mx.controls.gridclasses.DataGridColumn;
 import mx.managers.DragManager;
 import mx.events.DragEvent;
 import mx.formatters.*
 import flash.util.Timer;
   
 // Standard Library Class
 public class stdlib {
 // Does what it says, used when a function has to be 
   called, but you don't actually want to do anything
 public function doNothing():Void {} 
   
 // Get Today's Date as a string
 public function getToday():String {
 var today_date:Date = new Date();
 var date_str:String = ((today_date.getMonth()
   +1)+/+today_date.getDate()+/+today_date.getFullYear());
 return date_str;
 }
 }
 
 // Mouse Related Functions
 public class mouseHandlers {
 // Handles drag and drop events.
 public function doDragDrop(event:DragEvent):Void {
 private var items:Array = 
   event.dragSource.dataForFormat(items);
 private var dest:Object = event.currentTarget;
 private var dropLoc:int = dest.getDropLocation
   ();
 dest.hideDropFeedback(event);
 items.reverse();
 var l:int = items.length;
 for(var i:int = 0; i  l; i++) {
 dest.dataProvider.addItemAt(items[i], 
   dropLoc);
 }
 event.preventDefault();
 }   
   
 // Variables used for detectDoubleClick function
 private var lastClick:int = 0;
 private var lastObject:Object = new Object();;
 private var lastIndex:int = 0;
 private var maxTicks:int = 300;
   
 // Detect if a double click was made and if so, call 
   a function
 public function detectDoubleClick(event:Object, 
   functionToCall:Function, ... args):Void {
 var currentClick:int;
 var currentObject:Object;
 var currentIndex:int;
 var clickDif:int;
 currentClick = getTimer();
 currentObject = event.target

[flexcoders] Flex2:Need quick answer

2005-10-31 Thread Greg Johnson
I knowtice that if I just try to run the html/swf directly I don't get 
any of the data, iow I get my initial drop box, but without anything in 
it.  It appears to not work.  However if I click run in the builder it 
comes up fine.

Is the alpha designed so you can't deploy the compiled SWF (which I 
could understand) or am I just doing something wrong?

Thanks
Greg





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Flex2:Need quick answer

2005-10-31 Thread Greg Johnson
Ok, that was a nausiating hour as we need to show this to some big 
people later today.

Turned out I got the wrong subdirectory when I was manualy typing it 
in.  Once I copy/pasted the path into the browser from FB it worked 
fine.  Tnks :)
--- In flexcoders@yahoogroups.com, Sho Kuwamoto [EMAIL PROTECTED] 
wrote:

 There is no restriction in how SWFs are deployed. However, there are
 security issues in the player which can trip you up if you are not
 careful. 
 
 To make sure you are running things in exactly the same way:
 
 1) Open up your run configration by clicking on the triangle menu 
next
 to the Run button and choosing Run... from the menu.
 2) Click on the application you are trying to run and look for the
 section called URL or path to launch.
 3) Make sure you are running the SWF or HTML file at the same path 
as
 specified. If the path is a URL, make sure you are using the same 
URL to
 run the application.
 4) You may also want to make sure that you are using the same 
browser
 when running from FB and outside of FB.
 
 After these steps, if you are still not seeing the same results, 
then
 you have found a mysterious bug.
 
 -Sho
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Greg Johnson
 Sent: Monday, October 31, 2005 6:05 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex2:Need quick answer
 
 I knowtice that if I just try to run the html/swf directly I don't 
get 
 any of the data, iow I get my initial drop box, but without 
anything in 
 it.  It appears to not work.  However if I click run in the builder 
it 
 comes up fine.
 
 Is the alpha designed so you can't deploy the compiled SWF (which 
I 
 could understand) or am I just doing something wrong?
 
 Thanks
 Greg
 
 
 
 
 
 
 --
 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








 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Can you hardcode a debug breakpoint in flex scripts?

2005-10-31 Thread Greg Johnson
Not that I have seen.

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

 Some programming environments (like Powerbuilder) allow you to put a
 statement into your script like debugBreak(), which allows execution
 to stop at that point (in debug mode) every time until such time as
 you delete the statement. Since Flexbuilder is always helpfully
 deleting my breakpoints, this would be a real time saver. Is there
 such a thing built in?
 
 Thanks,
 Libby








 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Flex 2: Oracle - type long ??

2005-10-27 Thread Greg Johnson
I am stuck with using Oracle for a datasource with a project.  One 
field that is returned back is of type long in oracle.  When I try to 
return it as part of my results, Flex throws a fit.  I comment that one 
thing out, and it's fine.

I tried using ToString in the CFC but that didn't work.

Any ideas how to get the long field returned to Flex2???





 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Flex 2: Oracle - type long ??

2005-10-27 Thread Greg Johnson
Well it looked promicing for a bit.  It stoped the error message.  
But when I decode it all I get is 1 character :/

I did a LEN() on what was returned and found out its apparently using 
2-byte char encoding as when I did a LEFT(...,20) I only got the 
first 10 characters.

*sigh*

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

 Have you tried toBase64() or urlEncodedFormat() in the CFC?
 
 If one of those works, you might be able to decode it safely once 
it gets
 into Flash.
 
 I had a similar problem with some data I am working with that 
contains low
 ASCII control characters. I managed to fix that by wrapping the 
result in
 urlEncodedFormat() in the CFC and using unescape() on the returned 
data in
 flash.
 
 Spike
 
 On 10/27/05, Greg Johnson [EMAIL PROTECTED] wrote:
 
  I am stuck with using Oracle for a datasource with a project. One
  field that is returned back is of type long in oracle. When I try 
to
  return it as part of my results, Flex throws a fit. I comment 
that one
  thing out, and it's fine.
 
  I tried using ToString in the CFC but that didn't work.
 
  Any ideas how to get the long field returned to Flex2???
 
 
 
 
 
 
  --
  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
 
 
 
 
 
 
 
 
 
 --
 
 Stephen Milligan
 Do you do the Badger?
 http://www.yellowbadger.com
 
 Do you cfeclipse? http://www.cfeclipse.org







 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] FLEX2: Date Cell Renderer Solved

2005-10-25 Thread Greg Johnson
It looks like :)

Ok, here is what I did.  First in the MXML I created a Currency 
Formater.

mx:CurrencyFormatter id=StdMoneyFormat 
useThousandsSeparator=true/

Then in the dataGrid for the column I wanted to format I used the 
labelFunction parameter

mx:DataGridColumn headerText=$ Prop. width=75 
labelFunction=formatNumber  columnName=DOLLAR_PROPOSED /

and in my Actionscript file I created a function.

import mx.controls.gridclasses.DataGridColumn;
public function formatNumber(dpItem:Object, 
dgColumn:DataGridColumn):String {
return StdMoneyFormat.format(dpItem[dgColumn.columnName]);
}

unlike cellRenderer, in a dataGrid (**only**) the labelFunction 
passes 2 items.  The std dataObject that cellRenderer passes and 
specificaly the column information.  So I just do a simple return of 
the dataObject indexed by the columnName in the dataGridColumn object.

Just as a note, there is also a columnNumber in the dataGridColum 
object that would do exactly the same, just with the numerical index 
value vs the enumerated index value.

This should work for all the data Formaters includeing Date.

**only** = Acording to the documentation, anything else that uses the 
labelFunction only gets the dataObject since they are 1 dimential 
arrays vs 2 dimentional grids.  Plus if you specify one of the drop 
in renderers it will adjust in all cases to send what they need.  As 
I understand it.
--- In flexcoders@yahoogroups.com, Greg Johnson [EMAIL PROTECTED] 
wrote:

 Think i replyed to the wrong addy since it hasn't shown up in the 
 list.  
 
 Is there some code somewhere I can look at that specificaly is 
 redering the date.  I have messed around and can get a datefield 
box 
 to show, but I don't need to have it edit, I just need to display 
the 
 date mm/dd/.  I have also written my own mxml and still nogo.
 
 --- In flexcoders@yahoogroups.com, Jim Laing [EMAIL PROTECTED] wrote:
 
  In Flex 2, the cell render API is totally different. For one 
thing,
  setValue() is no longer used. For another thing, a cell render is
  passed a dataObject (or something like that) value, which 
contains
  the data to be rendered. All of the examples I've seen thus far 
are
  straight MXML, and most are rendered inline, so you might want to 
 try
  heading in that direction.
  
  Jim
  
  On 10/21/05, Greg Johnson [EMAIL PROTECTED] wrote:
   Ok, for flex 1.5 I had downloaded a nice AS file that would 
render
   dates in cells for me.  However dispite me updateing it to work 
in
   Flex 2 it doesn't.  Any ideas what I missed?
  
  
   /*
* DateFormatCellRenderer is a simple Label-based cell renderer 
 that
   displays
* its item content in a known date format.
*/
   package {
   import mx.formatters.DateFormatter;
   import mx.controls.Label;
   class DateFormatCellRenderer extends Label
   {
   var getDataLabel:Function;
   static var dateFmt:DateFormatter;
  
   private function init() : Void
   {
   // instantiate the 1 and only date formatter 
(more
   efficient than
   // have a date formatter for every instance of 
the
   cell renderer).
   if( dateFmt == null ) {
   dateFmt = new DateFormatter();
   dateFmt.formatString = MM/DD/;
   }
   super.initialize();
   }
  
   private function setValue(str:String, item:Object,
   sel:Boolean):Void
   {
   if( item != null ) {
   // format the date value in the cell
   this.text = dateFmt.format(item
 [getDataLabel
   ()]);
   }
   else {
   this.text = ;
   }
   }
  
   private function size() : Void
   {
   this.setActualSize
(explicitWidth,explicitHeight);
   }
   }
   }
  
   btw the size function change is a complete guess on my part.
  
  
  
  
  
  
   --
   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
  
  
  
  
  
  
  
 







 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: FLEX2: Date Cell Renderer

2005-10-24 Thread Greg Johnson
Think i replyed to the wrong addy since it hasn't shown up in the 
list.  

Is there some code somewhere I can look at that specificaly is 
redering the date.  I have messed around and can get a datefield box 
to show, but I don't need to have it edit, I just need to display the 
date mm/dd/.  I have also written my own mxml and still nogo.

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

 In Flex 2, the cell render API is totally different. For one thing,
 setValue() is no longer used. For another thing, a cell render is
 passed a dataObject (or something like that) value, which contains
 the data to be rendered. All of the examples I've seen thus far are
 straight MXML, and most are rendered inline, so you might want to 
try
 heading in that direction.
 
 Jim
 
 On 10/21/05, Greg Johnson [EMAIL PROTECTED] wrote:
  Ok, for flex 1.5 I had downloaded a nice AS file that would render
  dates in cells for me.  However dispite me updateing it to work in
  Flex 2 it doesn't.  Any ideas what I missed?
 
 
  /*
   * DateFormatCellRenderer is a simple Label-based cell renderer 
that
  displays
   * its item content in a known date format.
   */
  package {
  import mx.formatters.DateFormatter;
  import mx.controls.Label;
  class DateFormatCellRenderer extends Label
  {
  var getDataLabel:Function;
  static var dateFmt:DateFormatter;
 
  private function init() : Void
  {
  // instantiate the 1 and only date formatter (more
  efficient than
  // have a date formatter for every instance of the
  cell renderer).
  if( dateFmt == null ) {
  dateFmt = new DateFormatter();
  dateFmt.formatString = MM/DD/;
  }
  super.initialize();
  }
 
  private function setValue(str:String, item:Object,
  sel:Boolean):Void
  {
  if( item != null ) {
  // format the date value in the cell
  this.text = dateFmt.format(item
[getDataLabel
  ()]);
  }
  else {
  this.text = ;
  }
  }
 
  private function size() : Void
  {
  this.setActualSize(explicitWidth,explicitHeight);
  }
  }
  }
 
  btw the size function change is a complete guess on my part.
 
 
 
 
 
 
  --
  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
 
 
 
 
 
 
 







 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] FLEX2: Date Cell Renderer

2005-10-21 Thread Greg Johnson
Ok, for flex 1.5 I had downloaded a nice AS file that would render 
dates in cells for me.  However dispite me updateing it to work in 
Flex 2 it doesn't.  Any ideas what I missed?


/*
 * DateFormatCellRenderer is a simple Label-based cell renderer that 
displays
 * its item content in a known date format.
 */
package {
import mx.formatters.DateFormatter;
import mx.controls.Label;
class DateFormatCellRenderer extends Label
{   
var getDataLabel:Function;
static var dateFmt:DateFormatter;

private function init() : Void
{
// instantiate the 1 and only date formatter (more 
efficient than
// have a date formatter for every instance of the 
cell renderer).
if( dateFmt == null ) {
dateFmt = new DateFormatter();
dateFmt.formatString = MM/DD/;
}
super.initialize();
}

private function setValue(str:String, item:Object, 
sel:Boolean):Void
{
if( item != null ) {
// format the date value in the cell
this.text = dateFmt.format(item[getDataLabel
()]);
}
else {
this.text = ;
}
}

private function size() : Void
{
this.setActualSize(explicitWidth,explicitHeight);
}
}
}

btw the size function change is a complete guess on my part.





 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Timers

2005-10-20 Thread Greg Johnson
Can someone point me to where I can get info on the Timer Class.  The 
livedocs just ether say see the new Timer Class, or for the Timer Class 
it just says TBD :/





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Re: Flex2: Popup Error

2005-10-20 Thread Greg Johnson
In the end I solved it by just writing my own code using the example 
in Flex2 Sample Explorer.  Thing is every example of sending data to 
a popup I have found usually instead shows returning data :/

But I have a way I can easily send and recieve from a popup.

Here is the code im using.

This is the function that displays the popup.

import mx.managers.PopUpManager;
// Error Handler Function
public function err(message:String, title:String):Void {
  var errpop:MyPopup = MyPopup(PopUpManager.createPopUp(this, 
MyPopup, true));
  errpop.title = title;
  errpop.messagebox.htmlText = message;
}

And here is the Popup File

?xml version=1.0 encoding=utf-8?
mx:Panel xmlns:mx=http://www.macromedia.com/2005/mxml; width=500 
height=503
borderStyle=outset cornerRadius=10 backgroundColor=#80 
themeColor=#80 title=Error color=#FF 
borderColor=#80
mx:Script
![CDATA[
import mx.managers.PopUpManager;
]]
/mx:Script
mx:TextArea id=messagebox width=100% height=100% 
editable=false text=error backgroundColor=#FF 
themeColor=#80/
mx:HBox width=100% horizontalAlign=center
mx:Button label=Close 
click=PopUpManager.removePopUp(this)/
/mx:HBox
/mx:Panel

Key things to note in the popup function is that you are setting the 
type of the popup handle to the popup's name.  This little trick then 
lets you access anything in the popup:Variables, Functions, 
Components.  In theory if you defined the popup handle variable 
outside the function you could then be interactive if you made the 
window non-model.  I use model since I am using it to display error 
messages.
--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] 
wrote:

 If this was 1.5, I's say, call the removePopUp from a doLater().
 
 Tracy
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Greg Johnson
 Sent: Wednesday, October 19, 2005 4:58 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex2: Popup Error
 
 BTW Thanks to Spike, he gave me the little bits I needed to finally 
see 
 what I needed to get it with the changes in 2.
 
 Now I have tried many variations of a popup window to send stuff 
too.  
 It works for the most part.  But when I close the window I get an 
error.
 
 Here is the function that fires the popup window up.
 ---
   import mx.managers.PopUpManager;
   import mx.containers.TitleWindow;
   // Error Handler Function
   public function err(message:String, title:String):Void {
   var errpop:TitleWindow = TitleWindow
 (PopUpManager.createPopUp(this, MyPopup, true));
   errpop.title=Test;
   errpop.closeButton=true;
   }
 
 
 And here is the MyPopup.mxml
 
 ?xml version=1.0 encoding=utf-8?
 mx:TitleWindow xmlns:mx=http://www.macromedia.com/2005/mxml; 
 click=PopUpManager.removePopUp(this) width=940 height=503
   mx:Script
   ![CDATA[
   import mx.managers.PopUpManager;
   ]]
   /mx:Script
   mx:TextArea id=messagebox width=100% height=100% 
 editable=false /
 /mx:TitleWindow
 ---
 
 And here is the error that gets thrown
 ---
 TypeError: Error #1009: null has no properties.
   at mx.managers::PopUpManager$/removePopUp()
   at MyPopup/___TitleWindow0_click()
 
 
 
 
 
 
 
 --
 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







 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 







[flexcoders] Re: Flex2: Popup Error

2005-10-20 Thread Greg Johnson
Ah.  Very interesting.  I just gave up on the X and did a 
close button, which effectively did the same thing as figureing out 
how to get it not to do that double click. 
--- In flexcoders@yahoogroups.com, Mercer, Dustin 
[EMAIL PROTECTED] wrote:

 I believe the removePopUp method is being called twice...  You will 
find
 if you click anywhere in the header of the titlewindow, the window 
will
 fire the click event (Which is set to close the window) and if you 
click
 on the close button, it fires the event twice.  You get the null 
error
 because the window has already closed by the time the second remove
 method tries to execute.  I did not find this, but I say someone 
else
 mention this somewhere.  Hope this helps
 
  
 
 Dustin Mercer
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Tracy Spratt
 Sent: Thursday, October 20, 2005 10:03 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Flex2: Popup Error
 
  
 
 If this was 1.5, I's say, call the removePopUp from a doLater().
 
 Tracy
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Greg Johnson
 Sent: Wednesday, October 19, 2005 4:58 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex2: Popup Error
 
 BTW Thanks to Spike, he gave me the little bits I needed to finally 
see 
 what I needed to get it with the changes in 2.
 
 Now I have tried many variations of a popup window to send stuff 
too.  
 It works for the most part.  But when I close the window I get an 
error.
 
 Here is the function that fires the popup window up.
 ---
   import mx.managers.PopUpManager;
   import mx.containers.TitleWindow;
   // Error Handler Function
   public function err(message:String, title:String):Void {
 var errpop:TitleWindow = TitleWindow
 (PopUpManager.createPopUp(this, MyPopup, true));
 errpop.title=Test;
 errpop.closeButton=true;
   }
 
 
 And here is the MyPopup.mxml
 
 ?xml version=1.0 encoding=utf-8?
 mx:TitleWindow xmlns:mx=http://www.macromedia.com/2005/mxml; 
 click=PopUpManager.removePopUp(this) width=940 height=503
   mx:Script
 ![CDATA[
   import mx.managers.PopUpManager;
 ]]
   /mx:Script
   mx:TextArea id=messagebox width=100% height=100% 
 editable=false /
 /mx:TitleWindow
 ---
 
 And here is the error that gets thrown
 ---
 TypeError: Error #1009: null has no properties.
   at mx.managers::PopUpManager$/removePopUp()
   at MyPopup/___TitleWindow0_click()
 
 
 
 
 
 
 
 --
 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
 http://groups.yahoo.com/gads?
t=msk=Web+site+design+developmentw1=Web+
 
site+design+developmentw2=Computer+software+developmentw3=Software+d
es
 
ign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr
ac
 ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ  
 
 Computer software development
 http://groups.yahoo.com/gads?
t=msk=Computer+software+developmentw1=We
 
b+site+design+developmentw2=Computer+software+developmentw3=Software
+d
 
esign+and+developmentw4=Macromedia+flexw5=Software+development+best+
pr
 acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw  
 
 Software design and development
 http://groups.yahoo.com/gads?
t=msk=Software+design+and+developmentw1=
 
Web+site+design+developmentw2=Computer+software+developmentw3=Softwa
re
 
+design+and+developmentw4=Macromedia+flexw5=Software+development+bes
t+
 practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ  
 
 Macromedia flex
 http://groups.yahoo.com/gads?
t=msk=Macromedia+flexw1=Web+site+design+
 
developmentw2=Computer+software+developmentw3=Software+design+and+de
ve
 
lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s
=1
 66.sig=OO6nPIrz7_EpZI36cYzBjw  
 
 Software development best practice
 http://groups.yahoo.com/gads?
t=msk=Software+development+best+practice
 
w1=Web+site+design+developmentw2=Computer+software+developmentw3=Sof
tw
 
are+design+and+developmentw4=Macromedia+flexw5=Software+development+
be
 st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw  
 
  
 
  
 
 
 
 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

[flexcoders] Flex 2: Where is the Timer Class

2005-10-20 Thread Greg Johnson
This is a repost since we can't edit something we already did.  I just 
wanted to clerify the subject line.

Flex 2 docs say the old timer functions have been removed and there is 
a Timer Class.  However in the docs for the Timer Class there is a 
blank page.

Does anyone know where I can read about the methods etc of the new 
class?  Or can tell me what they are?

I am trying to write a new doubleClick checker and this need a timer.

Thanks





 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Re: Flex 2: Where is the Timer Class

2005-10-20 Thread Greg Johnson
Hm.  Will take a look at that as well.  Would always be better to 
use an pure internal doubleclick even.  Will check it out when I 
check out the mouse stuff as I would want it to detect if you moved 
the mouse (to prevent the clicking two rows of a datagrid so quick it 
registered a double).

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

 BTW, all InteractiveObjects (superclass way up) dispatch a
 MouseEventType.DOUBLE_CLICK event so it may be that don't need your
 workaround anymore.  However the metadata for doubleClick is 
currently
 not being passed through so you won't be able to assign the handler 
from
 MXML, you'll need to do it manually in AS.
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Gordon Smith
 Sent: Thursday, October 20, 2005 11:01 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Flex 2: Where is the Timer Class
 
  
 
 setInterval() still exists; it's now a function in the flash.util
 package. But we do want folks to move to use Timer instead. Here's a
 Flex 2.0 example of using Timer:
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;
 
 mx:Script
 ![CDATA[
   
 import flash.util.Timer;
 import flash.util.TimerEvent;
 import flash.util.TimerEventType;
 
 private var timer:Timer;
 
 private function startTimer():Void
 {
 timer = new Timer(1000);
 timer.addEventListener(TimerEventType.TIMER, 
timerHandler);
 timer.start();
 }
 
 private function stopTimer():Void
 {
 timer.stop();
 timer = null;
 }
 
 private function timerHandler(event:TimerEvent):Void
 {
 trace(timer);
 }
 
 ]]
 /mx:Script
 
 mx:Button label=Start Timer click=startTimer();/
 mx:Button label=Stop Timer click=stopTimer();/
 
 /mx:Application
 
 Here are a few things to note:
 
 1. A Timer dispatches timer events which you handle like any other
 event.
 
 2. When a Timer is first created with 'new', it is stopped; you 
have to
 use the start() method to start it.
 
 3. This examples creates and destroys a Timer object each time you 
click
 the Start and Stop buttons. (Setting timer = null allows it to be
 garbage collected.) But you could also create a Timer object, say 
at app
 initialization, which you keep around, starting and stopping it 
multiple
 times.
 
 - Gordon
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Greg Johnson
 Sent: Thursday, October 20, 2005 10:25 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex 2: Where is the Timer Class
 
 This is a repost since we can't edit something we already did.  I 
just 
 wanted to clerify the subject line.
 
 Flex 2 docs say the old timer functions have been removed and there 
is 
 a Timer Class.  However in the docs for the Timer Class there is a 
 blank page.
 
 Does anyone know where I can read about the methods etc of the new 
 class?  Or can tell me what they are?
 
 I am trying to write a new doubleClick checker and this need a 
timer.
 
 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
 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/ . 
 
  
 
 







 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Flex2: Popup Error

2005-10-19 Thread Greg Johnson
BTW Thanks to Spike, he gave me the little bits I needed to finally see 
what I needed to get it with the changes in 2.

Now I have tried many variations of a popup window to send stuff too.  
It works for the most part.  But when I close the window I get an error.

Here is the function that fires the popup window up.
---
import mx.managers.PopUpManager;
import mx.containers.TitleWindow;
// Error Handler Function
public function err(message:String, title:String):Void {
var errpop:TitleWindow = TitleWindow
(PopUpManager.createPopUp(this, MyPopup, true));
errpop.title=Test;
errpop.closeButton=true;
}


And here is the MyPopup.mxml

?xml version=1.0 encoding=utf-8?
mx:TitleWindow xmlns:mx=http://www.macromedia.com/2005/mxml; 
click=PopUpManager.removePopUp(this) width=940 height=503
mx:Script
![CDATA[
import mx.managers.PopUpManager;
]]
/mx:Script
mx:TextArea id=messagebox width=100% height=100% 
editable=false /
/mx:TitleWindow
---

And here is the error that gets thrown
---
TypeError: Error #1009: null has no properties.
at mx.managers::PopUpManager$/removePopUp()
at MyPopup/___TitleWindow0_click()






 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Flex 2: Passing to a PopupWindow

2005-10-18 Thread Greg Johnson
Ok, I can get the basic popup window fine.  Hand to scratch the old 
popupwindow code I had gotten from cflex.net because it was throwing 
tons of errors in Flex 2.  Thing is, I can't figure out how to set a 
text field in the popup when it's called.





 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Ok, im lost with Flex 2

2005-10-18 Thread Greg Johnson
It seems like they went out of there way to remove features in coding 
and make things far far more difficult or am I missing something?

I have my AS code in different files, and right now have nothing but 
function stubs, and am getting no end of errors :/

I create a variable
var investigatorSelectionGrid_dp:Array = new Array(1);

first thing it does is on the mxml side where I have it assigned to a 
dataProvider parameter it says something about possibly not being 
able to see changes or something.  So I add [Bindable] over it.  Then 
it says I can't use [Bindable] on a non-public variable, so I add 
public before it.  It still says its a non-public variable.  
*scream*

It was so simple before and seems to be like pulling teeth now, im 
going nuts.  I can't belief they would louse up Flex as bad as it 
seems they have, so I am hoping I am missing something that knowing 
makes it all atleast mostly as easy as before. 

Anyone?!?!
Tnks
Greg





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Re: Ok, im lost with Flex 2

2005-10-18 Thread Greg Johnson
) dragExit=doDragExit
(event) dragDrop=doDragDrop(event) dragOver=doDragOver(event) 
dragComplete=doDragComplete(event) cellPress=if(detectDoubleClick
()) {addToInvestigatorList();} else {getPerson
(investigatorResultsGrid.selectedItem.PERSON_ID);} 
dataProvider={investigatorResultsGrid_dp}

mx:columns

mx:Array

mx:DataGridColumn headerText=Name 
columnName=FULL_NAME width=200 /

mx:DataGridColumn headerText=Dept. Code 
columnName=DEPT_CODE width=80 /

mx:DataGridColumn headerText=Department 
columnName=DEPT_NAME /

/mx:Array

/mx:columns
/mx:DataGrid
mx:Button 
label=Select Person click=addToInvestigatorList() /
  /mx:VBox
  /mx:ViewStack
  /mx:VBox
/mx:TabNavigator
/mx:VBox
/mx:HBox
/mx:Application

and here is the as file I started with

// ActionScript file
var investigatorSelectionGrid_dp:Array = new Array(1);
var investigatorResultsGrid_dp:Array = new Array(1);
var companySelectionGrid_dp:Array = new Array(1);
var companyResultsGrid_dp:Array = new Array(1);
var departmentSelectionGrid_dp:Array = new Array(1);
var departmentResultsGrid_dp:Array = new Array(1);
var personResultsFullName_dp:String = new String();
var personResultsDeptName_dp:String = new String();
var personResultsOfficePhone_dp:String = new String();
var personResultsEmail_dp:String = new String();
var personResultsPID_dp:String = new String();

function getPeople(name:String,deptCode:String,deptName:String):Void {
}

function doResultGetPeople(result:Array):Void {
}

function getCompanies(companyName:String):Void {
}

function doResultGetCompanies(result:Array):Void {
}

function getDepartments(deptCode:String, deptName:String):Void {
}

function doResultGetDepartments(result:Array):Void {
}

function getPerson(PID:String):Void {
}

function doResultGetPerson(result:Array):Void {
}

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

 Hi Greg,
 
 If you can post the code that's not working, or a link to a zip of 
it, that
 would probably help.
 
 Spike
 
 On 10/18/05, Greg Johnson [EMAIL PROTECTED] wrote:
 
  It seems like they went out of there way to remove features in 
coding
  and make things far far more difficult or am I missing something?
 
  I have my AS code in different files, and right now have nothing 
but
  function stubs, and am getting no end of errors :/
 
  I create a variable
  var investigatorSelectionGrid_dp:Array = new Array(1);
 
  first thing it does is on the mxml side where I have it assigned 
to a
  dataProvider parameter it says something about possibly not being
  able to see changes or something. So I add [Bindable] over it. 
Then
  it says I can't use [Bindable] on a non-public variable, so I add
  public before it. It still says its a non-public variable.
  *scream*
 
  It was so simple before and seems to be like pulling teeth now, im
  going nuts. I can't belief they would louse up Flex as bad as it
  seems they have, so I am hoping I am missing something that 
knowing
  makes it all atleast mostly as easy as before.
 
  Anyone?!?!
  Tnks
  Greg
 
 
 
 
 
 
  --
  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
 
 
 
 
 
 
 
 
 
 
 
 
 --
 
 Stephen Milligan
 Do you do the Badger?
 http://www.yellowbadger.com
 
 Do you cfeclipse? http://www.cfeclipse.org







 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Re: Flex 2: Passing to a PopupWindow

2005-10-18 Thread Greg Johnson
In FLEX2 the createPopUp function only has 3 parameters now, 
referance to the parrent, referance to the window's code, and model 
state.

--- In flexcoders@yahoogroups.com, Doodi, Hari - BLS CTR 
[EMAIL PROTECTED] wrote:

 I think the best way to pass values to popup window is to use init
 object methodology.
 
 Declare variables in myPopup.mxml
 
 For example 
 
 var firstName:String;
 
 var lastName:String;
 
  
 
 In the parent mxml file
 
 Create an object. Assign values to above said attributes.
 
 Example
 
 var initObj:Object = new Object();
 
 initObj.firstName = zz; // should match
 variable declared in myPopup.mxml
 
 initObj.lastName = xxx;   // should match 
variable
 declared in myPopup.mxml
 
  
 
 then pass this initObj 
 
  
 
 var popupWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp
(this,
 myPopup, true,initObj)); 
 
  
 
  
 
 Thanks! 
 Hari 
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Spike
 Sent: Tuesday, October 18, 2005 10:43 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex 2: Passing to a PopupWindow
 
  
 
 Here's one way to do it:
 
 **
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;
 xmlns=*
 
 mx:Script
 ![CDATA[
 import mx.managers.PopUpManager;
 import mx.containers.TitleWindow;
 import mx.controls.TextInput;
 
 private function showPopUp(event:Event):Void  {
 var tw:TitleWindow = new TitleWindow(); 
 tw.title = My Title; 
 
 var input:TextInput = new TextInput();
 input.text = Hello!;
 tw.addChild(input);
 
 PopUpManager.popUpWindow(tw, this, false); 
 }
 
 
 
 ]]
 /mx:Script
 
 
 mx:Button label=Test popup click=showPopUp(event); /
 
 /mx:Application
 
**
**
 **
 
 HTH
 
 Spike
 
 
 
 On 10/18/05, Greg Johnson [EMAIL PROTECTED] wrote:
 
 Ok, I can get the basic popup window fine.  Hand to scratch the old
 popupwindow code I had gotten from cflex.net because it was throwing
 tons of errors in Flex 2.  Thing is, I can't figure out how to set 
a 
 text field in the popup when it's called.
 
 
 
 
 
 
 --
 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
 
 
 
 
 
 
 
 
 
 
 
 
 
 -- 
 
 Stephen Milligan 
 Do you do the Badger?
 http://www.yellowbadger.com
 
 Do you cfeclipse? http://www.cfeclipse.org
 
 
 
 --
 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
 http://groups.yahoo.com/gads?
t=msk=Web+site+design+developmentw1=Web+
 
site+design+developmentw2=Computer+software+developmentw3=Software+d
es
 
ign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr
ac
 ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ  
 
 Computer software development
 http://groups.yahoo.com/gads?
t=msk=Computer+software+developmentw1=We
 
b+site+design+developmentw2=Computer+software+developmentw3=Software
+d
 
esign+and+developmentw4=Macromedia+flexw5=Software+development+best+
pr
 acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw  
 
 Software design and development
 http://groups.yahoo.com/gads?
t=msk=Software+design+and+developmentw1=
 
Web+site+design+developmentw2=Computer+software+developmentw3=Softwa
re
 
+design+and+developmentw4=Macromedia+flexw5=Software+development+bes
t+
 practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ  
 
 Macromedia flex
 http://groups.yahoo.com/gads?
t=msk=Macromedia+flexw1=Web+site+design+
 
developmentw2=Computer+software+developmentw3=Software+design+and+de
ve
 
lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s
=1
 66.sig=OO6nPIrz7_EpZI36cYzBjw  
 
 Software development best practice
 http://groups.yahoo.com/gads?
t=msk=Software+development+best+practice
 
w1=Web+site+design+developmentw2=Computer+software+developmentw3=Sof
tw
 
are+design+and+developmentw4=Macromedia+flexw5=Software+development+
be
 st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw  
 
  
 
  
 
 
 
 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

[flexcoders] Re: Ok, im lost with Flex 2

2005-10-18 Thread Greg Johnson
Ya. I understand that, but it seems like they threw the baby out with 
the bathwater and dumped everything they had done up to Flex 1.5 and 
started from scratch and just haven't built back up to even the level 
of the previous version.

And I looked at that page first thing, and made all the changes, and 
still ended up with 100s of errors.  I have also looked at the new 
Flex 2 Explorer and gone though the code in the as files it uses, and 
even when I include the same things they do, I get errors.

1.5 I had a fairly intricate and function application working, 2 and 
im having to start with the hello world tutorials to try and figure 
out why things are not working.  I would stick with 1.5 at this point 
but we specificaly need to have the ability to create SWFs vs being 
dependent on the server, plus the trial only has 26 more days and we 
aint spending the money for 1.5 when 2 should be gold by the first 
half of next year.  So I am frusterated right now.

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

 it's alpha... it's not done yet...
  there's also a part about the changes between Flex1.5 and Flex 2.0 
and AS2
 and AS3...
  See Migrating Applications to Flex 2 in here:
 
http://livedocs.macromedia.com/labs/1/flex/wwhelp/wwhimpl/js/html/wwhe
lp.htm
 
  On 10/18/05, Greg Johnson [EMAIL PROTECTED] wrote:
 
  It seems like they went out of there way to remove features in 
coding
  and make things far far more difficult or am I missing something?
 
  I have my AS code in different files, and right now have nothing 
but
  function stubs, and am getting no end of errors :/
 
  I create a variable
  var investigatorSelectionGrid_dp:Array = new Array(1);
 
  first thing it does is on the mxml side where I have it assigned 
to a
  dataProvider parameter it says something about possibly not being
  able to see changes or something. So I add [Bindable] over it. 
Then
  it says I can't use [Bindable] on a non-public variable, so I add
  public before it. It still says its a non-public variable.
  *scream*
 
  It was so simple before and seems to be like pulling teeth now, im
  going nuts. I can't belief they would louse up Flex as bad as it
  seems they have, so I am hoping I am missing something that 
knowing
  makes it all atleast mostly as easy as before.
 
  Anyone?!?!
  Tnks
  Greg
 
 
 
 
 
 
  --
  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
 
 
 
 
 
 
 
 
 







 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Re: Dividing the mailing list into categories

2005-10-18 Thread Greg Johnson
Hehehe *raises hand as Flex Newbie*

But I have been using Flash and Actionscript for 5+ years and have 
been coding CF since it's first Beta release.  Plus I have a Degree 
in Business Computer Programing where I was fully educated in OOP 
with C++.

I understand what you are saying, and there is a valid logic to it.  
There is a flaw to it as well.  Its kinda like those party lines you 
call to meet a hot babe and all that you find is a bunch of guys.  
If you put all the n00bs like me in one room, and the experts in 
another, it will just be people who don't have any answers asking 
questions of people who don't have any answers. rofl

Don't take any of my most recent posts wrong, I agree that Flex is 
great.  We have an entire project, grant, and I have an offer for me 
to go to full time state emp specificaly because of Flex2.  Its just 
frusterating as it seems most of the syntax etc I learned with Flex 
1.5 is just causing errors now.

I would have grave doubts that creating an all n00b area would 
benifit the n00bs, though I am sure it would benifit the pros :)  
Just my 2000 cents :D

Greg
--- In flexcoders@yahoogroups.com, Manuel Saint-Victor 
[EMAIL PROTECTED] wrote:

 I've brought this up before and I'm going to go out on a limb again 
and
 suggest that we maybe create a Flex 2 noobs mailing list. I say 
this because
 I think that in the coming weeks there is going to be a deluge of 
members to
 here that a)are brand spanking new to Flex and even Flash b) 
Haven't really
 read the posting etiquette or become familiar with searching 
previous posts
 c)are just dabbling etc.
 
 I think it will make it a lot more readable and usable a list if 
those who
 are at least working with 1.5 for production level projects that 
will
 continue can be spared our posts of Hello help I'm oblivious. 
Last time I
 mentioned this it was more motivated by the sense that newbies 
needed a
 place to ask for help and then be directed to the docs or a Google 
search
 while the more knowledgeable guys can have a more productive 
environment.
 Before I believe that as pointed out to me -Flex's developer 
population was
 not yet at critical mass for this kind of partitioning. I have the 
feeling
 that this week will change that.
 Either way I think that this Flex 2 is the best thing since indoor 
plumbing.
 The workflow is fluid, the docs are light and informative and I 
very well
 might need a relationship counselor in the next few weeks or 
someone to keep
 my fiancee at whatever venue so that we don't have to break up 
while I stay
 glued to this computer.
 
 Thanks MM for an amazing product- even in its alpha state.
 
 Mani







 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Re: Ok, im lost with Flex 2

2005-10-18 Thread Greg Johnson
Ya, if you could email that to me it would be good as I just use a 
RSS Reader for the list and at the end of your message it said the 
file was not stored :)

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

 I have modified your code so it now compiles and runs without error.
 
 There really weren't too many different things that were broken, 
just a lot
 of repetition of the same 4 or 5 problems.
 
 I'll try to summarize the ones I remember:
 
 * Applciation tag doesn't have an initialize event any more, use
 creationComplete
 * Not sure if this would cause a problem, but I haven't initialized 
any of
 the bindable variables. I would do that in initFunction()
 * All the bindable variables needed a [Bindable] statement on the 
preceding
 line.
 * I added the functions to the actionscript manually rather than 
copying
 your actionscript file, so it's possible that one or more of the 
function
 signatures was wrong. It's also possible that there was nothing 
wrong with
 them at all.
 
 I'll try to attach to the code to this message. If the list doesn't 
accept
 attachments I'll email it to you off list.
 
 Spike
 
 On 10/18/05, Greg Johnson [EMAIL PROTECTED] wrote:
 
  Ya. I understand that, but it seems like they threw the baby out 
with
  the bathwater and dumped everything they had done up to Flex 1.5 
and
  started from scratch and just haven't built back up to even the 
level
  of the previous version.
 
  And I looked at that page first thing, and made all the changes, 
and
  still ended up with 100s of errors. I have also looked at the new
  Flex 2 Explorer and gone though the code in the as files it uses, 
and
  even when I include the same things they do, I get errors.
 
  1.5 I had a fairly intricate and function application working, 2 
and
  im having to start with the hello world tutorials to try and 
figure
  out why things are not working. I would stick with 1.5 at this 
point
  but we specificaly need to have the ability to create SWFs vs 
being
  dependent on the server, plus the trial only has 26 more days and 
we
  aint spending the money for 1.5 when 2 should be gold by the first
  half of next year. So I am frusterated right now.
 
  --- In flexcoders@yahoogroups.com, Clint Modien [EMAIL PROTECTED] 
wrote:
  
   it's alpha... it's not done yet...
   there's also a part about the changes between Flex1.5 and Flex 
2.0
  and AS2
   and AS3...
   See Migrating Applications to Flex 2 in here:
  
  
http://livedocs.macromedia.com/labs/1/flex/wwhelp/wwhimpl/js/html/wwhe
  lp.htm
  
   On 10/18/05, Greg Johnson [EMAIL PROTECTED] wrote:
   
It seems like they went out of there way to remove features in
  coding
and make things far far more difficult or am I missing 
something?
   
I have my AS code in different files, and right now have 
nothing
  but
function stubs, and am getting no end of errors :/
   
I create a variable
var investigatorSelectionGrid_dp:Array = new Array(1);
   
first thing it does is on the mxml side where I have it 
assigned
  to a
dataProvider parameter it says something about possibly not 
being
able to see changes or something. So I add [Bindable] over it.
  Then
it says I can't use [Bindable] on a non-public variable, so I 
add
public before it. It still says its a non-public variable.
*scream*
   
It was so simple before and seems to be like pulling teeth 
now, im
going nuts. I can't belief they would louse up Flex as bad as 
it
seems they have, so I am hoping I am missing something that
  knowing
makes it all atleast mostly as easy as before.
   
Anyone?!?!
Tnks
Greg
   
   
   
   
   
   
--
Flexcoders Mailing List
FAQ:
  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%
  40yahoogroups.com http://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
 
 
 
 
 
 
 
 
 
 
 
 
 --
 
 Stephen Milligan
 Do you do the Badger?
 http://www.yellowbadger.com
 
 Do you cfeclipse? http://www.cfeclipse.org







 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL

[flexcoders] Packages must not be nested? Flex2

2005-10-17 Thread Greg Johnson
It errors on line 1.  Don't understand what it's talking about.

package {
import mx.managers.PopUpManager;
import mx.containers.TitleWindow;
import mx.utils.Delegate;
public function alertHandlerResultsGrid(event):Void {
if (event.detail==mx.controls.Alert.OK) {
 investigatorResultsGrid.setStyle
(borderColor,#CC);
 investigatorResultsGrid.setStyle
(borderThickness,1);
}
}
public function alertHandlerSelectionsGrid(event):Void {
if (event.detail==mx.controls.Alert.OK) {
 investigatorSelectionGrid.setStyle
(borderColor,#CC);
 investigatorSelectionGrid.setStyle
(borderThickness,1);
}
}
// Managemnt Reporting Main Initialization Function
public function initFunction():Void {
initDoubleClick();
main_tn.visible=false;
selectionsPanel.visible=false;
personelDetailBox.visible=false;
}
public function showPopUp(message:String, title:String) : Void
{
var popup = mx.managers.PopUpManager.createPopUp( 
_root, MyPopup, false, null, true );
popup.width = 600;
popup.height = 500;
popup.messagebox.htmlText = message;
popup.title = title;
popup.centerPopUp( _root );
}   
// Error Handler Function
public function err(message:String, title:String):Void {
if(title == null) { title=ERROR! }
showPopUp(message, title);
//alert(message,title);
}

// Get Today's Date as a string
public function getToday():String {
var today_date:Date = new Date();
var date_str:String = ((today_date.getMonth()+1)
+/+today_date.getDate()+/+today_date.getFullYear());
return date_str;
}

// Formats a date and returns a string
public function formatDate(today_date:Date):String {
var date_str:String = ((today_date.getUTCMonth()+1)
+/+today_date.getUTCDate()+/+today_date.getUTCFullYear());
return date_str;
}


// Type in filter
//private function filterType() {
//var tempObject:Object = new Object();
//  var runningArray:Array = new Array();
//  var compString:String = new String();
//
//for(var i=0; i  otd_tech_search_dp.length; i++){
// tempObject = otd_tech_search_dp[i];
//   compString = tempObject.TITLE
//   if ( compString.indexOf(String(search.text)) = 0 ) {
//   runningArray.push(tempObject);
//  }
//}
//  OTD_TECH_RESULTS.dataProvider = runningArray;
//  OTD_TECH_RESULTS.dataProvider.dispatchEvent
({type: modelChanged});
//}
}





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Re: Packages must not be nested? Flex2

2005-10-17 Thread Greg Johnson
Thanks.  I took the info on converting from 1.5 to 2 about all 
actionscript components a little too literally :).  Now I just have 
to figure out why it now saying I do not have an externaly visible 
definition.

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

 You can only have one public class/method available in a 
package .as file.
 Is this supposed to be an .as include? If so, just get rid 
of 'package {'
 and the end brace.
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Greg Johnson
 Sent: Monday, October 17, 2005 3:01 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Packages must not be nested? Flex2
 
 It errors on line 1.  Don't understand what it's talking about.
 
 package {
   import mx.managers.PopUpManager;
   import mx.containers.TitleWindow;
   import mx.utils.Delegate;
   public function alertHandlerResultsGrid(event):Void {
   if (event.detail==mx.controls.Alert.OK) {
investigatorResultsGrid.setStyle
 (borderColor,#CC);
investigatorResultsGrid.setStyle
 (borderThickness,1);
   }
   }
   // ...
 }







 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Row Height Overflow

2005-10-14 Thread Greg Johnson
I need the rows of a datagrid to stay at 1 line if none of the cells in 
that row is bigger then one line, but if one is I need that cell to 
wrap and the row to expand.  I also only want used rows showing up to a 
max overall height and then show the scroll bar.

However it seems all I can get the rows to do is ether by 1 line and 
not wrap, or all the rows be more then 1 line.  Plus I can get it to 
only display the number of rows that are used.  I have tried setting 
the rowHeight to 0 and 1 and programaticly setting it to 
dataSource.length but to no avail.

Thanks







 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Re: Row Height Overflow

2005-10-14 Thread Greg Johnson
Figures as soon as I post I find out atleast part of what was wrong.  
The only problem I have now is the last one below, getting the grid to 
only show x rows if the # of items in the datagrid is less then the 
number of rows that would completly fill the height.

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

 I need the rows of a datagrid to stay at 1 line if none of the cells 
in 
 that row is bigger then one line, but if one is I need that cell to 
 wrap and the row to expand.  I also only want used rows showing up to 
a 
 max overall height and then show the scroll bar.
 
 However it seems all I can get the rows to do is ether by 1 line and 
 not wrap, or all the rows be more then 1 line.  Plus I can get it to 
 only display the number of rows that are used.  I have tried setting 
 the rowHeight to 0 and 1 and programaticly setting it to 
 dataSource.length but to no avail.
 
 Thanks







 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Re: Row Height Overflow

2005-10-14 Thread Greg Johnson
Ya, my mistake was I had a marginbottom=15.  For some reason when 
you set the left and right margins it moves the outer edge in, but 
when you do the bottom, it effects every single row.

Still though, it still leaves me with the problem of getting the 
height to adjust.

IOW say it takes 30 lines to fill the screen.  If the CFC returns 20, 
I don't want 20 result lines and 10 blank lines, I just want 20 
lines.  But if it returns 40 results, I just want 30 result lines and 
the scrollbar.
--- In flexcoders@yahoogroups.com, Manish Jethani 
[EMAIL PROTECTED] wrote:

 On 10/14/05, Greg Johnson [EMAIL PROTECTED] wrote:
  I need the rows of a datagrid to stay at 1 line if none of the 
cells in
  that row is bigger then one line, but if one is I need that cell 
to
  wrap and the row to expand.  I also only want used rows showing 
up to a
  max overall height and then show the scroll bar.
 
 variableRowHeight=true wordWrap=true







 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Cause and Effect

2005-10-13 Thread Greg Johnson
Ok.  Lets say I have a search screen(btw the queries are running via 
a webservice to a set of CFCs).  The search screen lets you choose 
between person, department, and company.  

Person Search returns a list of people you can select from.
Department Search returns a list of departments you can select from.
Company Search returns a list of companies you can select from.

Then you click one of 4 tabs.

When you click on a tab, and the search was for people, it uses there 
unique IDs in a search of what they are responsible for and returns 
that.

If the search was for departments then a list of people in all of 
those departments has to be created so the seach can use that list of 
people's unique IDs.  Same kinda thing for Company.

Getting the list of people in all the departments is easy.  The 
difficult part is how to get the second search that runs when you 
click the tab to wait until the the department call finishes to run 
it's search.  Plus each tab will need to be able to do this.

Obveously the simple approch would be that each sub search have it's 
own webservice operation and result handler.  However this interface 
will have other tabs added later that have nothing to do with what im 
working on how save they draw there unquie person IDs from the same 
inital search.





 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Re: Cause and Effect

2005-10-13 Thread Greg Johnson
It might help if I also actually asked a question I guess :)

I need the department to people list to be generic, but depending on 
what tab you are on for the result event to be handled by a function 
based on the tab you ahve selected.

I am guessing this means using a custom event that is dispatched by 
the generic result handler and then changing the event handler 
function by adding a new event listener.

However I do not know how to do this eactly, nor do I know what to 
attack the listeners to with each tab.  I have look in the 
documentation, but if the answer is there, I am just not getting it 
as I have tried different attacks and only get error messages.

So 1, how would I create a custom event to use the dispatchEvent 
function when the dept2id result handler runs, and what do I need to 
dispatch the event from.  And what should I assign the listener to?

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

 Ok.  Lets say I have a search screen(btw the queries are running 
via 
 a webservice to a set of CFCs).  The search screen lets you choose 
 between person, department, and company.  
 
 Person Search returns a list of people you can select from.
 Department Search returns a list of departments you can select from.
 Company Search returns a list of companies you can select from.
 
 Then you click one of 4 tabs.
 
 When you click on a tab, and the search was for people, it uses 
there 
 unique IDs in a search of what they are responsible for and returns 
 that.
 
 If the search was for departments then a list of people in all of 
 those departments has to be created so the seach can use that list 
of 
 people's unique IDs.  Same kinda thing for Company.
 
 Getting the list of people in all the departments is easy.  The 
 difficult part is how to get the second search that runs when you 
 click the tab to wait until the the department call finishes to run 
 it's search.  Plus each tab will need to be able to do this.
 
 Obveously the simple approch would be that each sub search have 
it's 
 own webservice operation and result handler.  However this 
interface 
 will have other tabs added later that have nothing to do with what 
im 
 working on how save they draw there unquie person IDs from the same 
 inital search.







 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Re: Cause and Effect

2005-10-13 Thread Greg Johnson
I am probably over-complicating it, thats always a possiblity.

However the reason I can't is because the second search that actually 
gets used will be dependent on which of the 4 tabs you select.  But 
the first search needs to stay the same.

IOW for example

1. Search for Departments based on partial department name
2. Select Department from returned list
3. Click on Car Tab
4. Get the Unique IDs of every person in the list of selected 
departments
5. Get all the cars for all the people returned from step 4 adding a 
date range filter.
6. Double click on a car to view that car's details.

BUT

At Step 3 you can actualy click any of the following
Click on Car Tab
Click on DoorKey Tab
Click on Employment File Tab
Click on Room Tab

in all 4 instances it would have to do Step 4, and other then sending 
the results to different second searchs 
(Car/DoorKey/EmploymentFile/Room) it would always be the same that 
you are taking a list of departments and generating a list of 
people's unique IDs who are in those departments.

But since you only go get the people list from the departments when 
you click the tab, and at the same time it automaticaly submits a 
search for whatever that tab is about, it is a problem as when the, 
say, car search runs, the people list will not have had a chance to 
be populated.
--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] 
wrote:

 Perhaps you are over-complicating this.  Or I am over-simplifying 
it!
 Why not just invoke the second search in the result handler of the
 first?
 
 Tracy
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Greg Johnson
 Sent: Thursday, October 13, 2005 1:20 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Cause and Effect
 
 It might help if I also actually asked a question I guess :)
 
 I need the department to people list to be generic, but depending 
on 
 what tab you are on for the result event to be handled by a 
function 
 based on the tab you ahve selected.
 
 I am guessing this means using a custom event that is dispatched by 
 the generic result handler and then changing the event handler 
 function by adding a new event listener.
 
 However I do not know how to do this eactly, nor do I know what to 
 attack the listeners to with each tab.  I have look in the 
 documentation, but if the answer is there, I am just not getting it 
 as I have tried different attacks and only get error messages.
 
 So 1, how would I create a custom event to use the dispatchEvent 
 function when the dept2id result handler runs, and what do I need 
to 
 dispatch the event from.  And what should I assign the listener to?
 
 --- In flexcoders@yahoogroups.com, Greg Johnson [EMAIL PROTECTED] 
 wrote:
 
  Ok.  Lets say I have a search screen(btw the queries are running 
 via 
  a webservice to a set of CFCs).  The search screen lets you 
choose 
  between person, department, and company.  
  
  Person Search returns a list of people you can select from.
  Department Search returns a list of departments you can select 
from.
  Company Search returns a list of companies you can select from.
  
  Then you click one of 4 tabs.
  
  When you click on a tab, and the search was for people, it uses 
 there 
  unique IDs in a search of what they are responsible for and 
returns 
  that.
  
  If the search was for departments then a list of people in all of 
  those departments has to be created so the seach can use that 
list 
 of 
  people's unique IDs.  Same kinda thing for Company.
  
  Getting the list of people in all the departments is easy.  The 
  difficult part is how to get the second search that runs when you 
  click the tab to wait until the the department call finishes to 
run 
  it's search.  Plus each tab will need to be able to do this.
  
  Obveously the simple approch would be that each sub search have 
 it's 
  own webservice operation and result handler.  However this 
 interface 
  will have other tabs added later that have nothing to do with 
what 
 im 
  working on how save they draw there unquie person IDs from the 
same 
  inital search.
 
 
 
 
 
 
 
 
 --
 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







 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL

[flexcoders] How would I use a variable to define the wsdl param in mx:WebService?

2005-10-12 Thread Greg Johnson
iow mx:WebService id=maincfc wsdl=maincfc

Where I set a variable maincfc
var maincfc:String = http://... ;







 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: How would I use a variable to define the wsdl param in mx:WebService?

2005-10-12 Thread Greg Johnson
Basicaly im trying to work around two issues.  1 I have a dev and a 
prod version in diferent directories and would like to not have to 
edit the WebService tag every time I move the dev to production.  
Plus I have to keep changing the filename of the cfc to get Flex to 
see the new code when I have edited it.  I have tried a variety of 
ways to get the cfcs not to create stubs or recreate stubs but 
nothing works but chaning the filename.


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

 Ah yes, good call!  Just did that yesterday...here's an example of 
some
 sort:
  
   function wsTestTimeOut (callTime:Number):Void
   {
 ...
dsmcWs.setEndpointURI (http://jchung:8080/dsmc/DSMCOther;);
 ...
   }
  
 mx:WebService
 fault=wsFault (event)
 id=dsmcWs
 protocol=http
 wsdl=http://jchung:8080/dsmc/DSMC?wsdl;
 mx:operation name=testTimeOut 
result=handleTestTimeOutResult
 (event.result)/
 /mx:WebService
  
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Matt Chotin
 Sent: Wednesday, October 12, 2005 9:27 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] How would I use a variable to define the 
wsdl
 param in mx:WebService?
 
 
 
 You can't redefine the wsdl parameter of a webservice in 1.5 (you 
can in
 the upcoming 2.0).  However if you're just trying to change the 
server
 to hit as opposed to the actual method definitions you can change 
the
 endpointURI for the service.  Check the docs for more details on 
that.
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Greg Johnson
 Sent: Wednesday, October 12, 2005 8:42 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How would I use a variable to define the wsdl
 param in mx:WebService?
 
  
 
 iow mx:WebService id=maincfc wsdl=maincfc
 
 Where I set a variable maincfc
 var maincfc:String = http://... ;
 
 
 
 
 
 
 
 
 --
 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/ . 
 
 
 







 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: How would I use a variable to define the wsdl param in mx:WebService?

2005-10-12 Thread Greg Johnson
Unfortuately the server with the CFCs on it I do not have access to 
the CF Admin interface.

This seems to be a difficulty when you use the WebService or 
something.  Glad you are not having this problem because it's 
annoying.  Apparently when you first call a CFC stubs are generated 
in some directory.  These prevent changes made to the cfc files to 
actually work.  I have tried many ways to force it to update but to 
no avail.
--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 Why not use a named service in flex-config so that the dev or 
production
 server simply has the right WSDL specified?  Or is it dev and 
production
 web service but the same flex app?  Not sure why your CFC isn't
 updating.  Is the browser caching accidentally or is CF caching?
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Greg Johnson
 Sent: Wednesday, October 12, 2005 9:47 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: How would I use a variable to define the 
wsdl
 param in mx:WebService?
 
  
 
 Basicaly im trying to work around two issues.  1 I have a dev and a 
 prod version in diferent directories and would like to not have to 
 edit the WebService tag every time I move the dev to production.  
 Plus I have to keep changing the filename of the cfc to get Flex to 
 see the new code when I have edited it.  I have tried a variety of 
 ways to get the cfcs not to create stubs or recreate stubs but 
 nothing works but chaning the filename.
 
 
 --- In flexcoders@yahoogroups.com, Mink, Joseph 
[EMAIL PROTECTED] 
 wrote:
 
  Ah yes, good call!  Just did that yesterday...here's an example 
of 
 some
  sort:
   
function wsTestTimeOut (callTime:Number):Void
{
  ...
 dsmcWs.setEndpointURI (http://jchung:8080/dsmc/DSMCOther;);
  ...
}
   
  mx:WebService
  fault=wsFault (event)
  id=dsmcWs
  protocol=http
  wsdl=http://jchung:8080/dsmc/DSMC?wsdl;
  mx:operation name=testTimeOut 
 result=handleTestTimeOutResult
  (event.result)/
  /mx:WebService
   
   
  
  
  
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of Matt Chotin
  Sent: Wednesday, October 12, 2005 9:27 AM
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] How would I use a variable to define 
the 
 wsdl
  param in mx:WebService?
  
  
  
  You can't redefine the wsdl parameter of a webservice in 1.5 (you 
 can in
  the upcoming 2.0).  However if you're just trying to change the 
 server
  to hit as opposed to the actual method definitions you can change 
 the
  endpointURI for the service.  Check the docs for more details on 
 that.
  
   
  
  Matt
  
   
  
  
  
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of Greg Johnson
  Sent: Wednesday, October 12, 2005 8:42 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] How would I use a variable to define the 
wsdl
  param in mx:WebService?
  
   
  
  iow mx:WebService id=maincfc wsdl=maincfc
  
  Where I set a variable maincfc
  var maincfc:String = http://... ;
  
  
  
  
  
  
  
  
  --
  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]
subject=Unsubscribe 
  
  *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
  Service http://docs.yahoo.com/info/terms/ . 
  
  
  
 
 
 
 
 
 
 
 --
 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/ . 
 
  
 
 







 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

[flexcoders] Calling down?

2005-10-10 Thread Greg Johnson
I have an application and a custom component.  I have a line like 

local:otdTab id=otdt /

in the custom component I have created a function called

public function initTech()

But when I am in the upper level application and try to do

otdt.initTech();

the system tells me initTech() is not a method.

What's up?





 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Re: Calling down?

2005-10-10 Thread Greg Johnson
I just figured out what it was.  Since for some reason Flex Builder 
doesn't seem to place nice with other apps including the server (I 
get major delays and lockups) I run it on a different computer.  For 
some reason builder wasn't syncing correctly.

Right now I am just trying to figure out why my webservice call in 
the component is throwing could not connect at me for WSDL
--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:

 Hi,
 
 It should work. Can you post code custom component?
 
 -abdul 
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Greg Johnson
 Sent: Monday, October 10, 2005 9:01 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Calling down?
 
 I have an application and a custom component.  I have a line like 
 
 local:otdTab id=otdt /
 
 in the custom component I have created a function called
 
 public function initTech()
 
 But when I am in the upper level application and try to do
 
 otdt.initTech();
 
 the system tells me initTech() is not a method.
 
 What's up?
 
 
 
 
 
 
 --
 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







 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] How do I get alert to work in a flex component

2005-10-06 Thread Greg Johnson
I have the main application, then I have a Flex component.  But if I 
try to add a alert() it says it doesn't know what im talking about.  
If I add _root.alert() it will not give an error, but it won't show 
the alert window either. :/

Here is the app line from the main flex app
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
xmlns=* initialize=initFunction()

and here is the call to the component
otdTab label=OTD /




 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Re: How do I get alert to work in a flex component

2005-10-06 Thread Greg Johnson
The alert was being called in the component in some as code.  And 
yes, flex has an alert function.

--- In flexcoders@yahoogroups.com, Mink, Joseph [EMAIL PROTECTED] 
wrote:
 So where exactly is the alert() call being made?  Also...isn's
 alert() a javascript function?  I don't know if that method 
exists in
 Flex.
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Greg Johnson
 Sent: Thursday, October 06, 2005 12:07 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How do I get alert to work in a flex component
 
 
 I have the main application, then I have a Flex component.  But if 
I 
 try to add a alert() it says it doesn't know what im talking 
about.  
 If I add _root.alert() it will not give an error, but it won't 
show 
 the alert window either. :/
 
 Here is the app line from the main flex app
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
 xmlns=* initialize=initFunction()
 
 and here is the call to the component
 otdTab label=OTD /
 
 
 
 
 --
 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/ . 
 
 
 




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Flex or Flash, opinions?

2005-10-06 Thread Greg Johnson
Even though Flash 8 now has many of the same controls that Flex has 
(acordians, viewstacks, datagrids, etc).?


--- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote:
 I'll let someone else give you the elongated answer, so here's the 
short 
 one.
 
 If you are creating games that have low level needs (blitting, 
movieclip 
 usage vs. UIObject), use Flash.
 
 If you are creating applications, use Flex.
 
 If you are creating applications that have AfterEffects like 
designs with 
 Photoshopped GUI's, create those in Flash, and build your 
application in 
 Flex.
 
 - Original Message - 
 From: Greg Johnson [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, October 06, 2005 1:55 PM
 Subject: [flexcoders] Flex or Flash, opinions?
 
 
 I am currently finishing up doing the first part of a Management
 Reporting system in Flex 1.5.  Then I am going to try and reproduce 
it
 in Flash 8.  Then I get the fun of making the official decision of 
what
 we will use.
 
 What does Flex 1.5 have over Flash 8 (knowing that Flex 2 and Flash 
8.5
 are coming along at some point, but will prob have to decide before
 they get here.)
 
 Or vise versa.
 
 We would like the best of both worlds, to be able to spit out QD
 reports and have a full central interface that can both run off the
 same webservices (CFCs).
 
 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




 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] CFC Cashing

2005-10-05 Thread Greg Johnson
I make a change to the CFC and the Flex App doesn't see it unless I 
change the CFC's filename.

How can I force it to see the updates without having to constantly play 
musical filenames?

-- 
Greg Johnson
Owner  Lead Technician
[EMAIL PROTECTED]

Techno-Fix-It
Filling the Gap Between the Store and the Repair Shop
--
www.technofixit.com
Phone:(919)-371-1476
Fax:(919)-882-9804
P.O. Box 1094
Morrisville, N.C. 27560



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Re: CFC Cashing

2005-10-05 Thread Greg Johnson
Ya, im calling it from flex as a webservice, however I have not
registered it as a webservice in coldfusion admin

--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] 
wrote:
 Are you using the CFC as a web service?
 





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Nesting Instinct on overload?

2005-10-03 Thread Greg Johnson
How far can you nest custom components?

IOW including one in another.  Right now im looking at like 5 or 6 layers
Main App File
window1 - file
   .as file
window2 - file
   .as file
window3 - file
   .as file
   tab1 - file
  .as file
  window1
 viewstack1 - file
.as file
 viewstack2 - file
.as file
 viewstack3 - file
.as file
  window2 - file
 .as file
  window3
tab2 - file
   .as file
   tab1 - file
  .as file
  accordian1 - file
 .as file
  accordian2 - file
 .as file
 viewstack1 - file
.as file
 viewstack2 - file
.as file
 viewstack3 - file
.as file
 viewstack4 - file
.as file
 viewstack5 - file
.as file
   tab2 - file
  .as file
   tab3 - file
  .as file
   tab4 - file
  .as file

Yes, this is a very very very complex app that I need to be highly 
expandable but still easy to work on the code, so I was breaking it up 
into lots of small files.  But then I started getting errors saying it 
can't read .as file this or that and I know 100% the file is there 
because I used the browse mode to select it.

Have I gone too bonkers for Flex's like?

Thanks
Greg

-- 
Greg Johnson
Owner  Lead Technician
[EMAIL PROTECTED]

Techno-Fix-It
Filling the Gap Between the Store and the Repair Shop
--
www.technofixit.com
Phone:(919)-371-1476
Fax:(919)-882-9804
P.O. Box 1094
Morrisville, N.C. 27560



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Calls to CFCs

2005-09-29 Thread Greg Johnson






I will give that the / suggestion a try. As a workaround I switched to
a webservice vs remoteobject and it has no problems and seems to let
the client load faster.

But I just commented out the remoteobject so I will try flipping back
and see what happens.

Now my biggest problems are I am making a call to a CFC and passing it
a parameter but the CFC is complaining that it wasn't passed. Plus my
debugger for some reason who let me watch variables anymore. I put an
alert in the Flex code just before the CFC call and it shows valid data
in the variable I am sending, but it just doesn't get to the CFC for
some reason. Doing the same exact thing with all the other CFCs and
they work fine :/

Peter Farland wrote:

Actually, it's likely that you're getting an AppendToGatewayUrl AMF
Response Header from the server because it detected that while a session
was created during the request, the client didn't inform the server
whether it could accept cookies. 
  
This AMF Response Header is trying to tell the client NetConnection to
decorate its connection URL with some extra info, for example a
jsessionid for Java or a cfid/cftoken for ColdFusion.
  
You may then be using IIS... In which case it may be barfing on the
semi-colon in something like the jsessionid token, irrespective of
whether you have a ;.
  
  http://cfxtest.research.unc.edu/flashservices/gateway/;jessionid=XYZ123A
BC
  
I believe CF released a hot fix for this issue, but the work around is
easy... Just add a ? To the gateway URL (or "endpoint" in flex speak) so
that the session information won't annoy IIS.
  
endpoint="http://cfxtest.research.unc.edu/flashservices/gateway?"
  
  
Pete
  
  
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Muzak
Sent: Wednesday, September 28, 2005 11:22 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Calls to CFCs
  
A wild guess: try adding a "/" at the end of the gateway url.
  
endpoint="http://cfxtest.research.unc.edu/flashservices/gateway/"
  
I've seen USERID and alike being added to the gateway url when making
remote calls.
In that case, without the ending '/', the gateway url gets messed up.
  
Might not be the case here, but it's the first thing I'd check ;-)
  
regards,
Muzak
  
- Original Message -
From: "Greg Johnson" [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, September 28, 2005 2:28 PM
Subject: Re: [flexcoders] Calls to CFCs
  
  
 Here is where the connection is setup in the main file:



 mx:RemoteObject id="mr_cfc"
 endpoint="http://cfxtest.research.unc.edu/flashservices/gateway"
 source="mr.mr_cfc"
 fault="mx.controls.Alert.show(event.fault.faultstring)"
 showBusyCursor="true" 
  
  
  
  
  
--
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
  
  
  
  
  
  
  

  
  
  

As
a professional in computers, I personaly recommend Avast Antivirus
avast! Antivirus: Inbound
message clean.

Virus
Database (VPS): 0539-1, 09/27/2005
Tested on: 9/29/2005 8:13:54 AM
avast! - copyright (c) 2000-2004 ALWIL Software.


  
  


-- 
Greg Johnson
Owner  Lead Technician
[EMAIL PROTECTED]

Techno-Fix-It
Filling the Gap Between the Store and the Repair Shop
--
www.technofixit.com
Phone:(919)-371-1476
Fax:(919)-882-9804
P.O. Box 1094
Morrisville, N.C. 27560






--
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] Calls to CFCs

2005-09-29 Thread Greg Johnson






Well the problem with it not passing solved itself somehow. Debugger
still wont let me watch variables though.

I tried the ? and while it prevented it from hanging, when I go do one
search I get a message about unsupported type in stream so I just went
back to the webservice. Even tried diffferent tweeks to the cfc etc
and it wouldn't work.

Peter Farland wrote:

  
  
  
  Note that my suggestion was
to append the ? query string marker, please let me know if this
resolves the issue as your initial symptoms described the issue with
AppendToGatewayUrl exactly.
  
  Also, the problem is that
Flash Remoting (and hence stillFlex's RemoteObject)with ColdFusion
introduced the concept of named arguments. That is, if your CFC is
expecting a Struct as a single argument and you're sending it an
object, then it won't work as the CFC proxy between the gateway
interprets them as "named arguments" and thus looks for parameters to
match each of the keys in the AS Object. Try adding a second, dummy
variable to the CFC function and let me know if this solves the issue.
  
  
  
  
  From:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Greg Johnson
  Sent: Thursday, September 29, 2005 8:42 AM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Calls to CFCs
  
  
I will give that the / suggestion a try. As a workaround I switched to
a webservice vs remoteobject and it has no problems and seems to let
the client load faster.
  
But I just commented out the remoteobject so I will try flipping back
and see what happens.
  
Now my biggest problems are I am making a call to a CFC and passing it
a parameter but the CFC is complaining that it wasn't passed. Plus my
debugger for some reason who let me watch variables anymore. I put an
alert in the Flex code just before the CFC call and it shows valid data
in the variable I am sending, but it just doesn't get to the CFC for
some reason. Doing the same exact thing with all the other CFCs and
they work fine :/
  
Peter Farland wrote:
  Actually, it's likely that you're getting an
AppendToGatewayUrl AMF
Response Header from the server because it detected that while a session
was created during the request, the client didn't inform the server
whether it could accept cookies. 

This AMF Response Header is trying to tell the client NetConnection to
decorate its connection URL with some extra info, for example a
jsessionid for Java or a cfid/cftoken for ColdFusion.

You may then be using IIS... In which case it may be barfing on the
semi-colon in something like the jsessionid token, irrespective of
whether you have a ;.

http://cfxtest.research.unc.edu/flashservices/gateway/;jessionid=XYZ123A
BC

I believe CF released a hot fix for this issue, but the work around is
easy... Just add a ? To the gateway URL (or "endpoint" in flex speak) so
that the session information won't annoy IIS.

endpoint="http://cfxtest.research.unc.edu/flashservices/gateway?"


Pete


-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of Muzak
Sent: Wednesday, September 28, 2005 11:22 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Calls to CFCs

A wild guess: try adding a "/" at the end of the gateway url.

endpoint="http://cfxtest.research.unc.edu/flashservices/gateway/"

I've seen USERID and alike being added to the gateway url when making
remote calls.
In that case, without the ending '/', the gateway url gets messed up.

Might not be the case here, but it's the first thing I'd check ;-)

regards,
Muzak
    
- Original Message -
From: "Greg Johnson" [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, September 28, 2005 2:28 PM
Subject: Re: [flexcoders] Calls to CFCs


 Here is where the connection is setup in the main file:



 mx:RemoteObject id="mr_cfc"
 endpoint="http://cfxtest.research.unc.edu/flashservices/gateway"
 source="mr.mr_cfc"
 fault="mx.controls.Alert.show(event.fault.faultstring)"
 showBusyCursor="true" 





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









  
  As
a professional in computers, I personaly recommend Avast Antivirus
  avast! Antivirus: Inbound
message clean. 
  Virus
Database (VPS): 0539-1, 09/27/2005
Tested on: 9/29/2005 8:13:54 AM
  avast! - copyright (c) 2000-2004 ALWIL
Software.
  
  


  
  
  -- 
Greg Johnson
Owner  Lead Technician
[EMAIL PROTECTED]

Techno-Fix-It
Filling the Gap Between the Store and the Repair Shop
--

[flexcoders] Search while you type?

2005-09-29 Thread Greg Johnson
I return a list from a database into a datagrid.  I then have a text 
entry field with a keydown event set to call a function.
The function runs though the currently loaded like, compares what is in 
the text entry field's .text property and creates a array with only 
those entries then resets the dataprovider parameter of the datagrid to 
the filtered list.  Here is the code

private function filterlist() {
var TempObject:Object = new Object();
var RunningArray:Array = new Array();
for(var i=0; i  OTD_TECH_RESULTS.dataProvider.length; i++){
 TempObject = OTD_TECH_RESULTS.dataProvider[i];
 if ( TempObject.INTERNAL_CASE_NUMBER.indexOf(search.text)) {
 RunningArray.push(TempObject);
}
}
OTD_TECH_RESULTS.dataProvider = RunningArray;
OTD_TECH_RESULTS.dataProvider.dispatchEvent({type: modelChanged});
}

INTERNAL_CASE_NUMBER is one of the columns

What happens is that it gives me no entries once I type the first 
character, and even when I got it to return results it wouldn't seem to 
update once I hit a second key unless I hit backspace first.

I am using indexOf because I couldn't find a find command anywhere.

Any ideas how I can make this work?

-- 
Greg Johnson
Owner  Lead Technician
[EMAIL PROTECTED]

Techno-Fix-It
Filling the Gap Between the Store and the Repair Shop
--
www.technofixit.com
Phone:(919)-371-1476
Fax:(919)-882-9804
P.O. Box 1094
Morrisville, N.C. 27560



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Calls to CFCs

2005-09-29 Thread Greg Johnson






I tried to set that once and started getting J-Run errors. We are
running MX7.

I am not exactly doing that. The related code that is run when that
message shows up is below where Person_List is a datagrid, and
otd_tech_after_db is empty at the time of the cfc call

var
otd_tech_after_db:String = new String();
var otd_tech_before_db:String = new String();

function initFunction() {
 MainNavigation.visible=false;
 Selections.visible=false;
 otd_tech_before_db = getToday();
}

function getToday():String {
 var today_date:Date = new Date();
 var date_str:String =
((today_date.getMonth()+1)+"/"+today_date.getDate()+"/"+today_date.getFullYear());
 return date_str;
}

private function getTechSearch():Void { 
  mr_cfc.get_tech_search(otd_tech_before_db, otd_tech_after_db,
getPIDs());
}

private function
getPIDs():Array {
 var SelectionPIDs:Array = new Array();
 for (var i=0; iPerson_List.length; i++) {
  SelectionPIDs[i] = Person_List.dataProvider[i].PERSON_ID;
 }
 return SelectionPIDs;
}

private function
doResultGetTechSearch(result:Array):Void {
 var TempObject:Object = new Object();
 var GetTechSearchArray:Array = new Array();
 for(var i=0; i  result.length; i++){
 TempObject = result[i];
 GetTechSearchArray.push(TempObject);
 }
 OTD_TECH_RESULTS.dataProvider = GetTechSearchArray;
}



Peter Farland wrote:

  
  
  
  Are you setting
remote-objects-debug in flex-config.xml? What
version of ColdFusion are you using? 
  
  Re: the unsupported type in
stream message... are you doing anything like the following:
  
  var s:String = new String("foo");
  var
b:Boolean = new Boolean(true);
  var n:Number = new Number(4);
  
  Unfortunately in AS1/AS2 the
Flash Player does not recognize the Object form of String, Boolean or
Number type for serialization purposes so it sends them (yes, oddly) as
an unsupported type when serialized as AMF which the remoting gateway
rejects. If you use the "primitive" forms of these types in
ActionScript:
  
  
  var s:String = "foo";
  var
b:Boolean = true;
  var n:Number = 4;
  
  It should
work fine.
  
  Out of
curiosity, how are you generating the data that is sent to the CFC? Are
you loading a web service first by any chance and then trying to send
that result to a CFC via remote object?
  
  Can you
post the cffunction and accompanying cfargument tags
from your CFC method that you're invoking? Can you also post the
ActionScript line you're using to call the RemoteObject abstraction of
your CFC?
  
  Thanks,
   Pete
  
  
  
  
  
  
  








--
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] Calls to CFCs

2005-09-29 Thread Greg Johnson






Here is the start of the CFC function
 cffunction name="get_tech_search" access="remote"
returntype="array"
  cfargument name="before" type="string"
  cfargument name="after" type="string"
  cfargument name="innovators" type="array"

I tried the change on the variables and nothing.

I then replaced the variables I was sending with '' and in the cfc made
innovators a string vs array and still got the error message.
Peter Farland wrote:

  
  
  
  I could probably solve your JRun
errors too if you posted them... but that aside, I can help you turn on
server side tracing for the CFMX 7 version of the gateway what you
need to do is look out for the gateway-config.xml file that is specific
to the gateway that you're calling. It might be under:
  
  /WEB-INF/coldfusion/gateway-config.xml
  
  I believe the servlet that's
mapped to /flashservices will have an init param in /WEB-INF/web.xml
that points you to the location of the configuration file that the
gateway is using.
  
  Anyway, in this file you'd set
the logger to debug:
  
  logger level="Debug"(whatever
gateway logger implementation CF uses would be listed here... I think
it was coldfusion.flash.ColdFusionLogger if I remember
correctly)/logger
  
  You should then be able to look
at the log to see a dump of the AMF traffic that went through the
gateway's serializer... this might give you a clue as to which
parameters are being sent to your CFC method.
  
  I think CFMX 7 redirects log
info to a flash.log. If you started JRun from the command line and
wanted to just see this info on the console you could always switch to
use the DefaultLogger:
  
  logger
level="Error"flashgateway.log.DefaultLogger/logger
  
  
  Also, I'd still like to look at
the cffunction and cfargument tag signatures for your
CFC method
  
  
  In any case, can you try this
instead:
  
  var otd_tech_after_db:String = "";
var otd_tech_before_db:String = "";
  
  If it's not that, can you try narrowing down
which attribute is causing it in the call (i.e. by sending null or
something you know is a primitive type or a structure that could not
possibly contain non-primitive types for the aforementioned Boolean,
String or Class types... i.e. don't necessarily trust an API to return
you a primitive until you've tracked down the cause)?
  
  
  
  
  
  From:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Greg Johnson
  Sent: Thursday, September 29, 2005 11:22 AM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Calls to CFCs
  
  
I tried to set that once and started getting J-Run errors. We are
running MX7.
  
I am not exactly doing that. The related code that is run when that
message shows up is below where Person_List is a datagrid, and
otd_tech_after_db is empty at the time of the cfc call
  
  var
otd_tech_after_db:String = new String();
var otd_tech_before_db:String = new String();
  
function initFunction() {
 MainNavigation.visible=false;
 Selections.visible=false;
 otd_tech_before_db = getToday();
}
  
function getToday():String {
 var today_date:Date = new Date();
 var date_str:String =
((today_date.getMonth()+1)+"/"+today_date.getDate()+"/"+today_date.getFullYear());
 return date_str;
}
  
private function getTechSearch():Void { 
  mr_cfc.get_tech_search(otd_tech_before_db, otd_tech_after_db,
getPIDs());
}
  
  private function
getPIDs():Array {
 var SelectionPIDs:Array = new Array();
 for (var i=0; iPerson_List.length; i++) {
  SelectionPIDs[i] = Person_List.dataProvider[i].PERSON_ID;
 }
 return SelectionPIDs;
}
  
  private function
doResultGetTechSearch(result:Array):Void {
 var TempObject:Object = new Object();
 var GetTechSearchArray:Array = new Array();
 for(var i=0; i  result.length; i++){
 TempObject = result[i];
 GetTechSearchArray.push(TempObject);
 }
 OTD_TECH_RESULTS.dataProvider = GetTechSearchArray;
}
  
  
  
Peter Farland wrote:
  

Are you setting
remote-objects-debug in flex-config.xml? What
version of ColdFusion are you using? 

Re: the unsupported type in
stream message... are you doing anything like the following:

var s:String = new
String("foo");
var
b:Boolean = new Boolean(true);
var n:Number = new Number(4);

Unfortunately in AS1/AS2 the
Flash Player does not recognize the Object form of String, Boolean or
Number type for serialization purposes so it sends them (yes, oddly) as
an unsupported type when serialized as AMF which the remoting gateway
rejects. If you use the "primitive" forms of these types in
ActionScript:


var s:String = "foo";
var
b:Boolean = true;
var n:Number = 4;

It should
work fine.

Out of
curiosity, how are you generating the data that is sent to the CFC? Are
you loading a web service first by any chance and then tryin

Re: [flexcoders] Search while you type?

2005-09-29 Thread Greg Johnson






I did some sniffin around and got mine to work right. For anyone
interested I made a kinda generic version below.

// sourceArray = any array
you are currently using as a datasource, most likely it will be
preloaded with entries
// search = the ID of the text entry field you want to use while typing
private function
filterlist() {
 var TempObject:Object = new Object(); // This will hold a source
structure
 var RunningArray:Array = new Array(); // This will become the new
dataSource for the datagrid
 var compString:String = new String(); // This will have just the
element of the TempObject you want to test
 // Start Looping over the original datasource
 for(var i=0; i  sourceArray.length; i++){
 TempObject = sourceArray[i]; // Assign the current
source row structure to the TempObject
 compString = TempObject.TITLE; // Assign the comp(are)String to
the Element you want to filter on
 // check of the text property of most likly a text field, if it is
in the compString
 if ( compString.indexOf(String(search.text)) = 0 ) {
  RunningArray.push(TempObject); //If it is a match, add the row
from the source to the filtered array
  }
 }
 destinationDataGrid.dataProvider = RunningArray; // Rebind the
DataGrid to the new filtered array
 destinationDataGrid.dataProvider.dispatchEvent({type:
"modelChanged"}); // Dont know if this is needed, may work without.
}

No wildcards or anything like that are needed, esentialy its
just like searching with the astrix wild character on each end of
whatever you type. Its pretty fast since the data is already loaded
into memeory

Hope this helps someone







--
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] Comparing Structure Elements - Not Working

2005-09-16 Thread Greg Johnson
I have 2 Datagrids.  One gets populated by a call to a CFC, the other 
starts databound to an empty array

The Source Datagrid has a list of names.  I let the person click on, 
then click a button.  Then a function checks to make sure the person is 
not already in the list.  If they are not in the list, it adds them to 
the list.

Both have a structure of
PERSON_ID
FULL_NAME
DEPT_CODE
DEPT_NAME

The comparison is on PERSON_ID which is a unique number stored in the 
SQL Database as test. SelectionList is bound to the destination Datagrid 
and here is the function that brings in the data for the source grid.

private function doResultGetPeople(result:Array):Void{
var TempObject:Object = new Object();
var GetPeopleArray:Array = new Array();
for(var i=0; i  result.length; i++){
 TempObject = result[i];
 GetPeopleArray.push(TempObject);
}
IS_RESULTS.dataProvider = GetPeopleArray;
Selections.visible=true;
   }

Here is my code that is always evaluating true

var SelectionList:Array = new Array();
function addfromIS():Void {
var SrcItem = 
IS_RESULTS.dataProvider.getItemAt(IS_RESULTS.selectedIndex);
if(SelectionList.length  0) {
for (var i=0; iSelectionList.length; i++) {
var CompItem = SelectionList.getItemAt(i);
 if(SrcItem.Person_ID != CompItem.Person_ID) {
SelectionList.addItem(SrcItem);
}
}
} else {
SelectionList.addItem(SrcItem);
}
}

-- 
Greg Johnson
Owner  Lead Technician
[EMAIL PROTECTED]

Techno-Fix-It
Filling the Gap Between the Store and the Repair Shop
--
www.technofixit.com
Phone:(919)-371-1476
Fax:(919)-882-9804
P.O. Box 1094
Morrisville, N.C. 27560



 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Comparing Structure Elements - Not Working **SPAM**

2005-09-16 Thread Greg Johnson






I forgot to say exacty what I need. I have 2 datagrids and need to
move rows from one to another making sure that the destination doesn't
already have the same row. Could someone look at the code I have and
see why the check for duplicates isn't working?

tnks

Greg Johnson wrote:

I have 2 Datagrids. One gets populated by a call to a CFC, the other 
starts databound to an empty array
  
The Source Datagrid has a list of names. I let the person click on, 
then click a button. Then a function checks to make sure the person is
  
not already in the list. If they are not in the list, it adds them to 
the list.
  
Both have a structure of
PERSON_ID
FULL_NAME
DEPT_CODE
DEPT_NAME
  
The comparison is on PERSON_ID which is a unique number stored in the 
SQL Database as test. SelectionList is bound to the destination
Datagrid 
and here is the function that brings in the data for the source grid.
  
private function doResultGetPeople(result:Array):Void{
 var TempObject:Object = new Object();
 var GetPeopleArray:Array = new Array();
 for(var i=0; i  result.length; i++){
 TempObject = result[i];
 GetPeopleArray.push(TempObject);
 }
 IS_RESULTS.dataProvider = GetPeopleArray;
 Selections.visible=true;
 }
  
Here is my code that is always evaluating true
  
var SelectionList:Array = new Array();
function addfromIS():Void {
 var SrcItem = 
IS_RESULTS.dataProvider.getItemAt(IS_RESULTS.selectedIndex);
 if(SelectionList.length  0) {
 for (var i=0; iSelectionList.length; i++) {
 var CompItem = SelectionList.getItemAt(i);
 if(SrcItem.Person_ID != CompItem.Person_ID) {
 SelectionList.addItem(SrcItem);
 }
 }
 } else {
 SelectionList.addItem(SrcItem);
 }
}
  
-- 
Greg Johnson
Owner  Lead Technician
[EMAIL PROTECTED]
  
Techno-Fix-It
Filling the Gap Between the Store and the Repair Shop
--
www.technofixit.com
Phone:(919)-371-1476
Fax:(919)-882-9804
P.O. Box 1094
Morrisville, N.C. 27560
  
  

  
  
  

As
a professional in computers, I personaly recommend Avast Antivirus
avast! Antivirus: Inbound
message clean.

Virus
Database (VPS): 0537-2, 09/16/2005
Tested on: 9/16/2005 9:56:11 AM
avast! - copyright (c) 2000-2004 ALWIL Software.


  
  


-- 
Greg Johnson
Owner  Lead Technician
[EMAIL PROTECTED]

Techno-Fix-It
Filling the Gap Between the Store and the Repair Shop
--
www.technofixit.com
Phone:(919)-371-1476
Fax:(919)-882-9804
P.O. Box 1094
Morrisville, N.C. 27560






--
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] Comparing Structure Elements - Not Working **SPAM**

2005-09-16 Thread Greg Johnson
Nope, leaving the comparison as below
if (SrcItem.Person_ID != CompItem.Person_ID) {
results in me being able to add the same name over and over again
if (SrcItem.Person_ID == CompItem.Person_ID) {
lets me add one name but no other names.



jeff tapper wrote:

 try this =

 var SelectionList:Array = new Array();
 var isNew:Boolean = true;
 function addfromIS():Void {
  var SrcItem =
 IS_RESULTS.dataProvider.getItemAt(IS_RESULTS.selectedIndex);
  if (SelectionList.length0) {
  for (var i = 0; iSelectionList.length; i++) {
  var CompItem = SelectionList.getItemAt(i);
  if (SrcItem.Person_ID != CompItem.Person_ID) {
  isNew = false;
  }
  }
  }
  if (isNew) {
  SelectionList.addItem(SrcItem);
  }
 }



-- 
Greg Johnson
Owner  Lead Technician
[EMAIL PROTECTED]

Techno-Fix-It
Filling the Gap Between the Store and the Repair Shop
--
www.technofixit.com
Phone:(919)-371-1476
Fax:(919)-882-9804
P.O. Box 1094
Morrisville, N.C. 27560



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Comparing Structure Elements - Not Working

2005-09-16 Thread Greg Johnson






I got it
var isNew:Boolean = true;
function addfromIS():Void {
 var SrcItem:String =
IS_RESULTS.dataProvider[IS_RESULTS.selectedIndex].PERSON_ID;
   isNew = true;
   if (SelectionList.length0) {
 for (var i = 0; iSelectionList.length; i++) {
 var CompItem:String =
Person_List.dataProvider[i].PERSON_ID;
 if (SrcItem == CompItem) {
 isNew = false;
 }
 }
 }
 if (isNew) {

Person_List.dataProvider.addItem(IS_RESULTS.dataProvider[IS_RESULTS.selectedIndex]);
 }
}
The key was getting the info through the datagrid instead of
directly from the dataProvider. I have absolutely no idea why. If
anyone can shed light on this for me it would be apreciated. This is
only the 3rd day I've been working with Flex, and with no prior
education on Flex. :)

jeff tapper wrote:

try this =
  
var SelectionList:Array = new Array();
var isNew:Boolean = true;
function addfromIS():Void {
 var SrcItem = 
IS_RESULTS.dataProvider.getItemAt(IS_RESULTS.selectedIndex);
 if (SelectionList.length0) {
 for (var i = 0; iSelectionList.length; i++) {
 var CompItem = SelectionList.getItemAt(i);
 if (SrcItem.Person_ID != CompItem.Person_ID) {
 isNew = false;
 }
 }
 }
 if (isNew) {
 SelectionList.addItem(SrcItem);
 }
}
  
  
At 11:25 AM 9/16/2005, you wrote:
I forgot to say exacty what I need. I have 2 datagrids and need to
move 
rows from one to another making sure that the destination doesn't
already 
have the same row. Could someone look at the code I have and see
why the 
check for duplicates isn't working?

tnks

Greg Johnson wrote:
I have 2 Datagrids. One gets populated by a call to a CFC, the
other
starts databound to an empty array

The Source Datagrid has a list of names. I let the person
click on,
then click a button. Then a function checks to make sure the
person is
not already in the list. If they are not in the list, it adds
them to
the list.

Both have a structure of
PERSON_ID
FULL_NAME
DEPT_CODE
DEPT_NAME

The comparison is on PERSON_ID which is a unique number stored
in the
SQL Database as test. SelectionList is bound to the destination
Datagrid
and here is the function that brings in the data for the source
grid.

private function doResultGetPeople(result:Array):Void{
 var TempObject:Object = new Object();
 var GetPeopleArray:Array = new Array();
 for(var i=0; i  result.length; i++){
 TempObject = result[i];
 GetPeopleArray.push(TempObject);
 }
 IS_RESULTS.dataProvider = GetPeopleArray;
 Selections.visible=true;
 }

Here is my code that is always evaluating true

var SelectionList:Array = new Array();
function addfromIS():Void {
 var SrcItem =
IS_RESULTS.dataProvider.getItemAt(IS_RESULTS.selectedIndex);
 if(SelectionList.length  0) {
 for (var i=0; iSelectionList.length; i++) {
 var CompItem = SelectionList.getItemAt(i);
 if(SrcItem.Person_ID != CompItem.Person_ID) {
 SelectionList.addItem(SrcItem);
 }
 }
 } else {
 SelectionList.addItem(SrcItem);
 }
}

--
Greg Johnson
Owner  Lead Technician
mailto:[EMAIL PROTECTED][EMAIL PROTECTED]

Techno-Fix-It
Filling the Gap Between the Store and the Repair Shop
--
http://www.technofixit.comwww.technofixit.com
Phone:(919)-371-1476
Fax:(919)-882-9804
P.O. Box 1094
Morrisville, N.C. 27560




--
As a professional in computers, I personaly recommend Avast
Antivirus
http://www.avast.comavast!
Antivirus: Inbound message clean.

Virus Database (VPS): 0537-2, 09/16/2005
Tested on: 9/16/2005 9:56:11 AM
avast! - copyright (c) 2000-2004 ALWIL Software.


--
Greg Johnson
Owner  Lead Technician
mailto:[EMAIL PROTECTED][EMAIL PROTECTED]

Techno-Fix-It
Filling the Gap Between the Store and the Repair Shop
--
http://www.technofixit.comwww.technofixit.com
Phone:(919)-371-1476
Fax:(919)-882-9804
P.O. Box 1094
Morrisville, N.C. 27560

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




--
YAHOO! GROUPS LINKS

 * Visit your group 
 "http://groups.yahoo.com/group/flexcodersflexcoders"
on the web.
 *
 * To unsubscribe from this group, send an email to:
 * 

mailto:[EMAIL PROTECTED][EMAIL PROTECTED]
  

 *
 * Your use of Yahoo! Groups is subject to the 
 http://docs.yahoo.com/info/terms/Yahoo!
Terms of Service.


--
  
  

  
  
  

As
a professional in computers, I personaly recommend Avast Antivirus
avast! Antivirus: Inbound
message clean.

Virus
Database (VPS): 0537-2, 09/16/2005
Tested on: 9/16/2005 12:10:20 PM
avast! - copyright (c) 2000-2004 ALWIL Software.


  
  


-- 
Greg Johnson
Owner  Lead Technician
[EMAIL PROTECTED]

Techno-Fix-It
Filling the Gap Between the Store and the Repair Shop
--
www.technofixit.com
Phone:(919)-371-1476
Fax:(919)-882-9804
P.O. Box 1094
Morrisville, N.C. 27560






--
Flexcoders Mailing List