[flexcoders] Re: Tile list displaying across the whole screen

2008-03-06 Thread markcavins
thank you tracey. That didn't seem to make a difference. I trying to
find how flex will display columnwidths, Total width, and any other
values that can be handled dynamically on resizes and such. 

Any ideas would be great. Thanks

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> You have defined the width of the tileList to be "350" set it to 100%.
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of markcavins
> Sent: Thursday, March 06, 2008 3:42 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Tile list displaying across the whole screen
> 
>  
> 
> I am trying to get a tile list to use the whole width of the screen to
> display the results.
> 
> Right now it only hits about 40% of the screen.
> Here is my current set up.
> 
>  left="35" right="15"
> width="350" backgroundColor="#00" color="#ff" fontSize="27"
> borderColor="#00" columnWidth="315" rowHeight="50"
> themeColor="#808080" fontWeight="bold" allowMultipleSelection="true" 
> id="TileList1" height="0" y="202" x="178"/>
> 
> 
> Then the States values
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> I have tried a few ways of doing this.
> 
> I am just trying to get the most bang for my screen.
> 
> Thanks for any ideas.
>




[flexcoders] Tile list displaying across the whole screen

2008-03-06 Thread markcavins
I am trying to get a tile list to use the whole width of the screen to
display the results.

Right now it only hits about 40% of the screen.
Here is my current set up.




Then the States values











I have tried a few ways of doing this.

I am just trying to get the most bang for my screen.

Thanks for any ideas.



[flexcoders] Re: Having an issue with flex 3

2008-03-06 Thread markcavins
Now I am seeing in firebug that my wrapper script can't resolve my
host so that is why I am having a problem. Thanks for looking at this
with me.


--- In flexcoders@yahoogroups.com, "markcavins" <[EMAIL PROTECTED]> wrote:
>
> Hmm you pose an interesting question. I was simply going between the
> working copy that is working on my server (written in flex 2 and then
> updated with the beta 2 version of 3). I can go to the actual url call
> and see that the xml is being generated. I'm not sure quite how to
> debug 3 to see. I am not receiving any errors from flex at this point.
> Not sure how to get the degugger working. 
> 
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > I'm sure your code is the same and works great on Flex 2, but now that
> > you're hitting some problem we need to definitely determine where the
> > problem is.  How did you confirm that you have data in the Flex 3
> > version?  If you really do have data, then the next step is to examine
> > the renderers, see how many are being created and how they behave.
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of markcavins
> > Sent: Thursday, March 06, 2008 10:25 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Having an issue with flex 3
> > 
> >  
> > 
> > I do have data in it. I can take the working copy -- which ahs the
> > same exact code and it is working fine. But from flex 3 nothing
appears.
> > 
> > --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > I can't think of any issues that should affect you. Make sure your
> > > dataProvider has items.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> > [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> > ] On
> > > Behalf Of markcavins
> > > Sent: Thursday, March 06, 2008 10:08 AM
> > > To: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> 
> > > Subject: [flexcoders] Having an issue with flex 3
> > > 
> > > 
> > > 
> > > I have recently upgraded to Flex 3 and an app that I wrote with the
> > > beta version of 3 that was working fine is not working with the
> > > release candidate. Most of the stuff has been cosmetic which I
> > > expected however a major issue is that the TileList info is not
being
> > > displayed.
> > > 
> > > Code
> > > 
> > >  > > result="onResult(event)" 
> > > url="http://rbdev.mysite.net/info_wrapper.php?url=https://
> > <http://rbdev.mysite.net/info_wrapper.php?url=https://> 
> > > <http://rbdev.mysite.net/info_wrapper.php?url=https://
> > <http://rbdev.mysite.net/info_wrapper.php?url=https://> >
> > >
> >
{customer.text}.mysite.net/interface.php?action=showopen&operation=s
> > >
> >
howassets&format=xml&opstatus=crit&username={username.text}&
> > > amp;password={password.text}"
> > > />
> > > 
> > >  > > left="35" right="15"
> > > width="350" backgroundColor="#00" color="#ff" fontSize="27"
> > > borderColor="#00" columnWidth="315" rowHeight="50"
> > > themeColor="#808080" fontWeight="bold"
allowMultipleSelection="true" 
> > > id="TileList1" height="0" y="202" x="178"/>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > As stated before the app was displaying the data before with both
> > > flex2 and the beta of flex 3. Is there something that I'm
missing now?
> > >
> >
>




[flexcoders] Re: Having an issue with flex 3

2008-03-06 Thread markcavins
Hmm you pose an interesting question. I was simply going between the
working copy that is working on my server (written in flex 2 and then
updated with the beta 2 version of 3). I can go to the actual url call
and see that the xml is being generated. I'm not sure quite how to
debug 3 to see. I am not receiving any errors from flex at this point.
Not sure how to get the degugger working. 


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I'm sure your code is the same and works great on Flex 2, but now that
> you're hitting some problem we need to definitely determine where the
> problem is.  How did you confirm that you have data in the Flex 3
> version?  If you really do have data, then the next step is to examine
> the renderers, see how many are being created and how they behave.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of markcavins
> Sent: Thursday, March 06, 2008 10:25 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Having an issue with flex 3
> 
>  
> 
> I do have data in it. I can take the working copy -- which ahs the
> same exact code and it is working fine. But from flex 3 nothing appears.
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Alex Harui"  wrote:
> >
> > I can't think of any issues that should affect you. Make sure your
> > dataProvider has items.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of markcavins
> > Sent: Thursday, March 06, 2008 10:08 AM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Having an issue with flex 3
> > 
> > 
> > 
> > I have recently upgraded to Flex 3 and an app that I wrote with the
> > beta version of 3 that was working fine is not working with the
> > release candidate. Most of the stuff has been cosmetic which I
> > expected however a major issue is that the TileList info is not being
> > displayed.
> > 
> > Code
> > 
> >  > result="onResult(event)" 
> > url="http://rbdev.mysite.net/info_wrapper.php?url=https://
> <http://rbdev.mysite.net/info_wrapper.php?url=https://> 
> > <http://rbdev.mysite.net/info_wrapper.php?url=https://
> <http://rbdev.mysite.net/info_wrapper.php?url=https://> >
> >
> {customer.text}.mysite.net/interface.php?action=showopen&operation=s
> >
> howassets&format=xml&opstatus=crit&username={username.text}&
> > amp;password={password.text}"
> > />
> > 
> >  > left="35" right="15"
> > width="350" backgroundColor="#00" color="#ff" fontSize="27"
> > borderColor="#00" columnWidth="315" rowHeight="50"
> > themeColor="#808080" fontWeight="bold" allowMultipleSelection="true" 
> > id="TileList1" height="0" y="202" x="178"/>
> > 
> > 
> > 
> > 
> > 
> > As stated before the app was displaying the data before with both
> > flex2 and the beta of flex 3. Is there something that I'm missing now?
> >
>




[flexcoders] Re: Having an issue with flex 3

2008-03-06 Thread markcavins
I do have data in it. I can take the working copy -- which ahs the
same exact code and it is working fine. But from flex 3 nothing appears.


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I can't think of any issues that should affect you.  Make sure your
> dataProvider has items.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of markcavins
> Sent: Thursday, March 06, 2008 10:08 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Having an issue with flex 3
> 
>  
> 
> I have recently upgraded to Flex 3 and an app that I wrote with the
> beta version of 3 that was working fine is not working with the
> release candidate. Most of the stuff has been cosmetic which I
> expected however a major issue is that the TileList info is not being
> displayed.
> 
> Code
> 
>  result="onResult(event)" 
> url="http://rbdev.mysite.net/info_wrapper.php?url=https://
> <http://rbdev.mysite.net/info_wrapper.php?url=https://>
> {customer.text}.mysite.net/interface.php?action=showopen&operation=s
> howassets&format=xml&opstatus=crit&username={username.text}&
> amp;password={password.text}"
> />
> 
>  left="35" right="15"
> width="350" backgroundColor="#00" color="#ff" fontSize="27"
> borderColor="#00" columnWidth="315" rowHeight="50"
> themeColor="#808080" fontWeight="bold" allowMultipleSelection="true" 
> id="TileList1" height="0" y="202" x="178"/>
> 
> 
> 
> 
> 
> As stated before the app was displaying the data before with both
> flex2 and the beta of flex 3. Is there something that I'm missing now?
>




[flexcoders] Having an issue with flex 3

2008-03-06 Thread markcavins
I have recently upgraded to Flex 3 and an app that I wrote with the
beta version of 3 that was working fine is not working with the
release candidate. Most of the stuff has been cosmetic which I
expected however a major issue is that the TileList info is not being
displayed.

Code

http://rbdev.mysite.net/info_wrapper.php?url=https://{customer.text}.mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit&username={username.text}&password={password.text}";
/>








As stated before the app was displaying the data before with both
flex2 and the beta of flex 3. Is there something that I'm missing now?





[flexcoders] Re: Problems with IE and refreshing data

2008-01-23 Thread markcavins
found the answer

Thanks to all who replied


[Bindable]
var dt : String = new Date().toTimeString();

url="http://mysite.net/info_wrapper.php?customer={customer.text}&username={username.text}&password={password.text}&submitDT={dt}";
/>




--- In flexcoders@yahoogroups.com, "markcavins" <[EMAIL PROTECTED]> wrote:
>
> I think this might be a solution to the issue but I am not quite sure
> how to tackle it. What would need to be added in order to create the
> random number/date (I have seen some people talk about it but I have
> never seen it done).
> 
> Any links you could send on the subject would be great. I have done
> some searching but can't seem to find a solution.
> 
> Thank you.
> 
> --- In flexcoders@yahoogroups.com, "Matt Chotin"  wrote:
> >
> > The issue is if you have a test certificate for https, not
necessarily a
> > test server.  
> > 
> >  
> > 
> > It may be that IE simply isn't attempting to hit the server.  Can you
> > try adding an additional dummy query parameter so the url changes?
> > 
> >  
> > 
> > Also check your server to see if you can adjust the cache settings on
> > the page that is being returned.
> > 
> >  
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of Sherif Abdou
> > Sent: Tuesday, January 22, 2008 5:06 PM
> > To: flexcoders@yahoogroups.com
> > Subject: Re: [flexcoders] Re: Problems with IE and refreshing data
> > 
> >  
> > 
> > Ya I think, I remb reading that somewhere that IE has some weird
> > restrictions like that if it is a test server. I would wait on someone
> > who knows more than me
> > 
> > - Original Message 
> > From: markcavins 
> > To: flexcoders@yahoogroups.com
> > Sent: Tuesday, January 22, 2008 6:59:32 PM
> > Subject: [flexcoders] Re: Problems with IE and refreshing data
> > 
> > It is a test server. The request makes request to the live server but
> > it is a test server. what would the restrictions be?
> > 
> > --- In [EMAIL PROTECTED] ups.com
<mailto:flexcoders%40yahoogroups.com>
> > , Sherif Abdou  wrote:
> > >
> > > is that a test server or online since IE has some restrictions if it
> > is local
> > > 
> > > 
> > > - Original Message 
> > > From: markcavins 
> > > To: [EMAIL PROTECTED] ups.com
<mailto:flexcoders%40yahoogroups.com> 
> > > Sent: Tuesday, January 22, 2008 4:56:04 PM
> > > Subject: [flexcoders] Problems with IE and refreshing data
> > > 
> > > Hello,
> > > 
> > > I have this app that was refreshing data in development but now
once I
> > > deploy it to my server I am not getting the data to refresh in
> > > IE(6/7). In FF every thing updates and resends to the server just
> > > fine. Here is the code that makes it work.
> > > 
> > > the httpservice
> > > 
> > > Code:
> > > 
> > >  > > result="onResult( event)" 
> > > url="http://mysite. <http://mysite./>  net/info_ wrapper.php?
> > customer={customer. text}
> > &username= {username. text}& password= {password. text}"
> > > />
> > > 
> > >  > > left="35" right="15"
> > > width="350" backgroundColor= "#00" color="#ff" fontSize="27"
> > > borderColor= "#00" columnWidth= "315" rowHeight="50"
> > > themeColor=" #808080" fontWeight=" bold" allowMultipleSelect
> > ion="true" 
> > > id="TileList1" height="0" y="202" x="178"/>
> > > 
> > > The Updater script
> > > 
> > > Code:
> > > 
> > > import mx.collections. XMLListCollectio n;
> > > 
> > > [Bindable]
> > > private var _xlcMyListData: XMLListCollectio n;
> > > 
> > > private function onResult(Event: ResultEvent) :void {
> > > var xmlResult:XML = XML(Event.result) ;
> > > _xlcMyListData = new XMLListCollection( xmlResult. .asset);
> > > }
> > > 
> > > The refresh button
> > > Code:
> > > 
> > >  > > borderColor= "#DCDEDF" click="tempXML. send();"/ >
> > > 
> > > Any Ideas?
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> >  _ _ _ _ _ _
> > > Looking for last minute shopping deals? 
> > > Find them fast with Yahoo! Search. 
> > http://tools. search.yahoo. com/newsearch/ category. php?category=
> > shopping
> >
<http://tools.search.yahoo.com/newsearch/category.php?category=shopping>
> > 
> > >
> > 
> >  
> > 
> >  
> > 
> > 
> > 
> > Never miss a thing. Make Yahoo your homepage.
> > <http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs>
> >
>




[flexcoders] Re: Problems with IE and refreshing data

2008-01-23 Thread markcavins
I think this might be a solution to the issue but I am not quite sure
how to tackle it. What would need to be added in order to create the
random number/date (I have seen some people talk about it but I have
never seen it done).

Any links you could send on the subject would be great. I have done
some searching but can't seem to find a solution.

Thank you.

--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> The issue is if you have a test certificate for https, not necessarily a
> test server.  
> 
>  
> 
> It may be that IE simply isn't attempting to hit the server.  Can you
> try adding an additional dummy query parameter so the url changes?
> 
>  
> 
> Also check your server to see if you can adjust the cache settings on
> the page that is being returned.
> 
>  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Sherif Abdou
> Sent: Tuesday, January 22, 2008 5:06 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: Problems with IE and refreshing data
> 
>  
> 
> Ya I think, I remb reading that somewhere that IE has some weird
> restrictions like that if it is a test server. I would wait on someone
> who knows more than me
> 
> - Original Message 
> From: markcavins <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Tuesday, January 22, 2008 6:59:32 PM
> Subject: [flexcoders] Re: Problems with IE and refreshing data
> 
> It is a test server. The request makes request to the live server but
> it is a test server. what would the restrictions be?
> 
> --- In [EMAIL PROTECTED] ups.com <mailto:flexcoders%40yahoogroups.com>
> , Sherif Abdou  wrote:
> >
> > is that a test server or online since IE has some restrictions if it
> is local
> > 
> > 
> > - Original Message 
> > From: markcavins 
> > To: [EMAIL PROTECTED] ups.com <mailto:flexcoders%40yahoogroups.com> 
> > Sent: Tuesday, January 22, 2008 4:56:04 PM
> > Subject: [flexcoders] Problems with IE and refreshing data
> > 
> > Hello,
> > 
> > I have this app that was refreshing data in development but now once I
> > deploy it to my server I am not getting the data to refresh in
> > IE(6/7). In FF every thing updates and resends to the server just
> > fine. Here is the code that makes it work.
> > 
> > the httpservice
> > 
> > Code:
> > 
> >  > result="onResult( event)" 
> > url="http://mysite. <http://mysite./>  net/info_ wrapper.php?
> customer={customer. text}
> &username= {username. text}& password= {password. text}"
> > />
> > 
> >  > left="35" right="15"
> > width="350" backgroundColor= "#00" color="#ff" fontSize="27"
> > borderColor= "#00" columnWidth= "315" rowHeight="50"
> > themeColor=" #808080" fontWeight=" bold" allowMultipleSelect
> ion="true" 
> > id="TileList1" height="0" y="202" x="178"/>
> > 
> > The Updater script
> > 
> > Code:
> > 
> > import mx.collections. XMLListCollectio n;
> > 
> > [Bindable]
> > private var _xlcMyListData: XMLListCollectio n;
> > 
> > private function onResult(Event: ResultEvent) :void {
> > var xmlResult:XML = XML(Event.result) ;
> > _xlcMyListData = new XMLListCollection( xmlResult. .asset);
> > }
> > 
> > The refresh button
> > Code:
> > 
> >  > borderColor= "#DCDEDF" click="tempXML. send();"/ >
> > 
> > Any Ideas?
> > 
> > 
> > 
> > 
> > 
> > 
>  _ _ _ _ _ _
> > Looking for last minute shopping deals? 
> > Find them fast with Yahoo! Search. 
> http://tools. search.yahoo. com/newsearch/ category. php?category=
> shopping
> <http://tools.search.yahoo.com/newsearch/category.php?category=shopping>
> 
> >
> 
>  
> 
>  
> 
> 
> 
> Never miss a thing. Make Yahoo your homepage.
> <http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs>
>




[flexcoders] Re: Problems with IE and refreshing data

2008-01-22 Thread markcavins
It is a test server. The request makes request to the live server but
it is a test server. what would the restrictions be?

--- In flexcoders@yahoogroups.com, Sherif Abdou <[EMAIL PROTECTED]> wrote:
>
> is that a test server or online since IE has some restrictions if it
is local
> 
> 
> - Original Message ----
> From: markcavins <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Tuesday, January 22, 2008 4:56:04 PM
> Subject: [flexcoders] Problems with IE and refreshing data
> 
> Hello,
> 
> I have this app that was refreshing data in development but now once I
> deploy it to my server I am not getting the data to refresh in
> IE(6/7). In FF every thing updates and resends to the server just
> fine. Here is the code that makes it work.
> 
> the httpservice
> 
> Code:
> 
>  result="onResult( event)" 
> url="http://mysite. net/info_ wrapper.php? customer={customer.text}
&username= {username. text}& password= {password. text}"
> />
> 
>  left="35" right="15"
> width="350" backgroundColor= "#00" color="#ff" fontSize="27"
> borderColor= "#00" columnWidth= "315" rowHeight="50"
> themeColor=" #808080" fontWeight=" bold" allowMultipleSelect ion="true" 
> id="TileList1" height="0" y="202" x="178"/>
> 
> The Updater script
> 
> Code:
> 
> import mx.collections. XMLListCollectio n;
> 
> [Bindable]
> private var _xlcMyListData: XMLListCollectio n;
> 
> private function onResult(Event: ResultEvent) :void {
> var xmlResult:XML = XML(Event.result) ;
> _xlcMyListData = new XMLListCollection( xmlResult. .asset);
> }
> 
> The refresh button
> Code:
> 
>  borderColor= "#DCDEDF" click="tempXML. send();"/ >
> 
> Any Ideas?
> 
> 
> 
> 
> 
>  

> Looking for last minute shopping deals?  
> Find them fast with Yahoo! Search. 
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>




[flexcoders] Re: Problems with IE and refreshing data

2008-01-22 Thread markcavins
I have played with the cache and headers ---  the weird thing is when
I click the refresh button I don't see a request being made to the server.


--- In flexcoders@yahoogroups.com, "markcavins" <[EMAIL PROTECTED]> wrote:
>
> Hello,
> 
> I have this app that was refreshing data in development but now once I
> deploy it to my server I am not getting the data to refresh in
> IE(6/7). In FF every thing updates and resends to the server just
> fine. Here is the code that makes it work.
> 
> 
> the httpservice
> 
> Code:
> 
>  result="onResult(event)" 
>
url="http://mysite.net/info_wrapper.php?customer={customer.text}&username={username.text}&password={password.text}";
> />
> 
>  left="35" right="15"
>   width="350" backgroundColor="#00" color="#ff" 
> fontSize="27"
> borderColor="#00" columnWidth="315" rowHeight="50"
> themeColor="#808080" fontWeight="bold" allowMultipleSelection="true" 
> id="TileList1" height="0" y="202" x="178"/>
> 
> The Updater script
> 
> Code:
> 
> import mx.collections.XMLListCollection;
>   
>   [Bindable]
>   private var _xlcMyListData:XMLListCollection;
> 
>   private function onResult(Event:ResultEvent):void {
>   var xmlResult:XML = XML(Event.result);
>   _xlcMyListData = new XMLListCollection(xmlResult..asset);
> }
> 
> The refresh button
> Code:
> 
>  borderColor="#DCDEDF" click="tempXML.send();"/>
> 
> Any Ideas?
>




[flexcoders] Problems with IE and refreshing data

2008-01-22 Thread markcavins
Hello,

I have this app that was refreshing data in development but now once I
deploy it to my server I am not getting the data to refresh in
IE(6/7). In FF every thing updates and resends to the server just
fine. Here is the code that makes it work.


the httpservice

Code:

http://mysite.net/info_wrapper.php?customer={customer.text}&username={username.text}&password={password.text}";
/>



The Updater script

Code:

import mx.collections.XMLListCollection;
  
[Bindable]
private var _xlcMyListData:XMLListCollection;

private function onResult(Event:ResultEvent):void {
var xmlResult:XML = XML(Event.result);
_xlcMyListData = new XMLListCollection(xmlResult..asset);
}

The refresh button
Code:



Any Ideas?



[flexcoders] Re: Clock Killer

2008-01-20 Thread markcavins
How would you created it as a global. I have tried to reference it but
I have only found that if I call it twice that it won't work

--- In flexcoders@yahoogroups.com, "Mark Rausch" <[EMAIL PROTECTED]> wrote:
>
> Why do you create a new timer in stopTimer()? You should make
> minuteTimer a global variable, create it only once, and use that
> reference in stopTimer...
> 
>  
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of markcavins
> Sent: Friday, January 18, 2008 3:12 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Clock Killer
> 
>  
> 
> Hello,
> 
> I have this clock that runs as a countdown timer once a user logs into
> the site. It works great until the user logs out. When they log back
> in the counter no longer counts correctly. It is like there are 2
> intstances of the clock running at the same time but I'm not sure how
> to kill the first instance.
> 
> Clock code
> private function getDaysUntil():void {
> //setting the timer
> var minuteTimer:Timer = new Timer(1000, 300);
> minuteTimer.addEventListener(TimerEvent.TIMER, onTick);
> minuteTimer.addEventListener(TimerEvent.TIMER_COMPLETE,
> onTimerComplete);
> 
> minuteTimer.start(); 
> }
> 
> public function onTick(evt:TimerEvent):void { 
> var minuteTimer:Timer = evt.target as Timer; 
> var lvSecondsRemaining:int = minuteTimer.repeatCount -
> minuteTimer.currentCount; 
> var lvMinutes:int = lvSecondsRemaining / 60; 
> var lvSeconds:int = lvSecondsRemaining - ( lvMinutes * 60 ); 
> var lvSecondsText:String = lvSeconds.toString(); 
> if( lvSeconds < 10 ) lvSecondsText = "0" + lvSecondsText; 
> 
> lblTimeUntil.text = lvMinutes.toString() + ":" + lvSecondsText; 
> 
> } 
> 
> public function onTimerComplete(evt:TimerEvent):void{
> var minuteTimer:Timer = evt.target as Timer;
> minuteTimer.reset();
> minuteTimer.start();
> tempXML.send();
> 
> }
> 
> private function stopTimer():void{
> var minuteTimer:Timer = new Timer(1000, 300);
> minuteTimer.reset(); 
> minuteTimer.stop(); 
> clearFormHandler(); 
> 
> }
> 
> Here is the logout button and the login button
> 
>  fillColors="[#03, #03, #474545, #474545]"
> borderColor="#DCDEDF" click="currentState=''; stopTimer();"/>
> 
>  click="login_user.send();" 
> fontSize="14" themeColor="#FFA800" borderColor="#FA0202"
> enabled="{formIsValid}" />
> 
> If the user is able to login
> 
> currentState = "Logged In";
> 
> tempXML.send();
> getDaysUntil();
> 
> Any ideas how to get this to display right
>




[flexcoders] Clock Killer

2008-01-18 Thread markcavins
Hello,

I have this clock that runs as a countdown timer once a user logs into
the site. It works great until the user logs out. When they log back
in the counter no longer counts correctly. It is like there are 2
intstances of the clock running at the same time but I'm not sure how
to kill the first instance.

Clock code
private function getDaysUntil():void {
//setting the timer
var minuteTimer:Timer = new Timer(1000, 300);
minuteTimer.addEventListener(TimerEvent.TIMER, onTick);
minuteTimer.addEventListener(TimerEvent.TIMER_COMPLETE,
onTimerComplete);

minuteTimer.start(); 
}

public function onTick(evt:TimerEvent):void { 
var minuteTimer:Timer = evt.target as Timer; 
var lvSecondsRemaining:int = minuteTimer.repeatCount -
minuteTimer.currentCount;  
var lvMinutes:int = lvSecondsRemaining / 60; 
var lvSeconds:int = lvSecondsRemaining - ( lvMinutes * 60 ); 
var lvSecondsText:String = lvSeconds.toString(); 
if( lvSeconds < 10 ) lvSecondsText = "0" + lvSecondsText;   
 
lblTimeUntil.text = lvMinutes.toString() + ":" + lvSecondsText; 

} 

public function onTimerComplete(evt:TimerEvent):void{
var minuteTimer:Timer = evt.target as Timer;
minuteTimer.reset();
minuteTimer.start();
tempXML.send();

}


private function stopTimer():void{
var minuteTimer:Timer = new Timer(1000, 300);
minuteTimer.reset();
minuteTimer.stop(); 
clearFormHandler(); 

}




Here is the logout button and the login button







If the user is able to login

currentState = "Logged In";

tempXML.send();
getDaysUntil();

Any ideas how to get this to display right






[flexcoders] Re: Killing Browser based popups

2008-01-18 Thread markcavins


You are correct it would be a JS HTML. Is there a way for flex to take
control of the browser to keep the JS from activating?



--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Thursday 17 Jan 2008, markcavins wrote:
> > I have this flex app that accesses an existing backend program to get
> > it's information. 
> 
> How ? XML RPC ? Or are you screen scrapeing ?
> 
> > One of the fail safes we have in this backend is a 
> > browser based pop up that will activate if a user enters the wrong
> > username or password.
> 
> At a guess, this would be JavaScript in a HTML repsonce, right ?
Which won't 
> be run by the Flex HTTP client.
> 
> -- 
> Tom Chiverton
> Helping to preemptively participate front-end models
> on: http://thefalken.livejournal.com
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  Regulated by The
Solicitors Regulation Authority.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 2500.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




[flexcoders] Re: Killing Browser based popups

2008-01-17 Thread markcavins
Thanks for the idea. No I would have to do this on the flex side. 

--- In flexcoders@yahoogroups.com, "Varun Shetty" <[EMAIL PROTECTED]> wrote:
>
> i believe it would be best to create some url encoding parameters in
the php
> page that is there. If you send a no parameters which are used in other
> applications currently. it would open the popup.. but sending a
specific url
> encoded parameter from flex .. can make it stop..
> 
> jus an idea.. no clue if u can edit ur php page or not.
> 
> regards,
> varun
> 
> On Jan 17, 2008 5:06 PM, markcavins <[EMAIL PROTECTED]> wrote:
> 
> >   Hey,
> >
> > I have this flex app that accesses an existing backend program to get
> > it's information. One of the fail safes we have in this backend is a
> > browser based pop up that will activate if a user enters the wrong
> > username or password. I don't want to alter this behavior in the PHP
> > because it is needed elsewhere but I don't want to have write a
> > separate login page when this one returns everything I need to make
> > this app work. What I am wondering is if there is a way to have flex
> > override this browser popup so that it doesn't show and just the flex
> > warnings do.
> >
> > Any help would be great
> >
> > Thanks
> >
> >  
> >
>




[flexcoders] Killing Browser based popups

2008-01-17 Thread markcavins
Hey,

I have this flex app that accesses an existing backend program to get
it's information. One of the fail safes we have in this backend is a
browser based pop up that will activate if a user enters the wrong
username or password. I don't want to alter this behavior in the PHP
because it is needed elsewhere but I don't want to have write a
separate login page when this one returns everything I need to make
this app work. What I am wondering is if there is a way to have flex
override this browser popup so that it doesn't show and just the flex
warnings do. 

Any help would be great

Thanks 



[flexcoders] Re: Refresh login screen

2008-01-17 Thread markcavins
OK so I am still having a little problem implementing the code so I'll
post all relevate code.

Hello,

I am having a little issue with a script that is supposed to stop a
request to my server when I enter information into a form but the
information takes more than 5 seconds to be processed by the server.

Code:






Here is the data Service

https://{customer.text}.mysite.net/interface.php";  
useProxy="false"
fault="userFaultHandler(event)">


{customer.text}


{username.text}


{password.text}




and the form












There are several different functions that are going on with this
form. All other functions are working but the timer is not timing out
and resetting the form as I expect it to. Any Ideas.






[flexcoders] Re: Refresh login screen

2008-01-16 Thread markcavins
Perfect that is exactly what I was looking to try and accomplish. Thanks


--- In flexcoders@yahoogroups.com, Sherif Abdou <[EMAIL PROTECTED]> wrote:
>
> So you could probably add a event listener to the button on Click
then create a timer
> 
> 
> 
> 
> 
> 
> Is that what you want kind of?
> - Original Message 
> From: markcavins <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Wednesday, January 16, 2008 6:15:50 PM
> Subject: [flexcoders] Re: Refresh login screen
> 
> I can do that.
> 
> I have a form that has three form variables
> 
> customer, username, password.
> 
> When the user has succesfully entered information in all three forms
> the user clicks submit and the the form will try to authenticate the
> user. Now because the url is created dynamically and part of the url
> is the field customer the server seems to take a long time to try and
> auth them if they enter in the wrong customer number so I want the app
> to time out after 10 to 15 seconds and create a alert that tells them
> to check their username.
> 
> --- In [EMAIL PROTECTED] ups.com, Sherif Abdou  wrote:
> >
> > like reset the entire form? give an example
> > 
> > 
> > - Original Message 
> > From: markcavins 
> > To: [EMAIL PROTECTED] ups.com
> > Sent: Wednesday, January 16, 2008 6:07:09 PM
> > Subject: [flexcoders] Refresh login screen
> > 
> > Hey all,
> > 
> > Is it possible to refresh the login in page if a user's credentials
> > have not been verified in a certain time frame (say 10 to 15 seconds)?
> > 
> > 
> > 
> > 
> > 
> > 
>  _ _ _ _ _ _
> > Be a better friend, newshound, and 
> > know-it-all with Yahoo! Mobile. Try it now. 
> http://mobile. yahoo.com/ ;_ylt=Ahu06i62sR 8HDtDypao8Wcj9tA cJ
> >
> 
> 
> 
> 
> 
>  

> Be a better friend, newshound, and 
> know-it-all with Yahoo! Mobile.  Try it now. 
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>




[flexcoders] Re: Refresh login screen

2008-01-16 Thread markcavins
I can do that.

I have a form that has three form variables

customer, username, password.

When the user has succesfully entered information in all three forms
the user clicks submit and the the form will try to authenticate the
user. Now because the url is created dynamically and part of the url
is the field customer the server seems to take a long time to try and
auth them if they enter in the wrong customer number so I want the app
to time out after 10 to 15 seconds and create a alert that tells them
to check their username.


--- In flexcoders@yahoogroups.com, Sherif Abdou <[EMAIL PROTECTED]> wrote:
>
> like reset the entire form? give an example
> 
> 
> - Original Message ----
> From: markcavins <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Wednesday, January 16, 2008 6:07:09 PM
> Subject: [flexcoders] Refresh login screen
> 
> Hey all,
> 
> Is it possible to refresh the login in page if a user's credentials
> have not been verified in a certain time frame (say 10 to 15 seconds)?
> 
> 
> 
> 
> 
>  

> Be a better friend, newshound, and 
> know-it-all with Yahoo! Mobile.  Try it now. 
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>




[flexcoders] Refresh login screen

2008-01-16 Thread markcavins
Hey all,

Is it possible to refresh the login in page if a user's credentials
have not been verified in a certain time frame (say 10 to 15 seconds)?





[flexcoders] Re: List issues

2008-01-16 Thread markcavins
That is correct. The only issues I have in flex is strict coding
nature of AS. That was the reason that I left flash back in the
earlier part of the Millennium. AS seems too much like Java to me and
I never particularly like coding in Java (I know I'll get a few emails
on that one- remember we all have our opinions). I don't know to me I
guess there are so many other languages out there -- why did we need
another one :-). 

--- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> Well done. Now you can forget that Ajax stuff..  ;-)
> 
> I guess using the .. in your XML solves the problem of where the
asset data 
> sits in the XML tree.
> 
> Paul
> - Original Message - 
> From: "markcavins" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, January 15, 2008 10:58 PM
> Subject: [flexcoders] Re: List issues
> 
> 
> > Thank you to Tracy, Paul Andrews, Peter Ent and all the others that
> > were with me in spirit trying to figure this out. In case any one has
> > this same problem I am posting the solution that fixed this and this
> > part is closed.
> >
> > Thank you again.
> >
> > Mark
>




[flexcoders] Re: List issues

2008-01-15 Thread markcavins
Thank you to Tracy, Paul Andrews, Peter Ent and all the others that
were with me in spirit trying to figure this out. In case any one has
this same problem I am posting the solution that fixed this and this
part is closed.

Thank you again.

Mark 

Code:

https://{customer.text}.mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit&username={username.text}&password={password.text}";
/>









[flexcoders] Re: List issues

2008-01-15 Thread markcavins
Yep tried that as well and still nothing. This just seems that I am
missing something small but very important. All I want to accomplish
is to grab a xml document and then display it in a horizontal list. I
only want to display the asset name and nothing else and yet I can't
seem to find a way to get it to display. Sorry morning rant.


--- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> So that would be the result of the query, I assume. In that case you
need to 
> refer to fleet directly - you will lose the outermost level.
> 
> "tempXML.lastResult.fleet" not "tempXML.lastResult.asset.fleet" .
> 
> Paul
> 
> 
> 
> 
> - Original Message - 
> From: "markcavins" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, January 15, 2008 12:55 AM
> Subject: [flexcoders] Re: List issues
> 
> 
> > This is the output for each asset
> >
> > 
> > 333CCC
> > 52
> > VIN09876SDF133
> > 0052
> > Standard
> > STANDARD
> > 
> > 1946
> > Home
> > 0
> > 
> > GMC
> > 20 Sep 2007
> > 1190310279
> > −
> > 
> > 
> > unknown
> > 
> > unsat
> > 1
> > 
> > 
> >
> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >>
> >> relist your current source and what your xml should look like.
> >>
> >> To use the debugger, set a breakpoint at the start of the result
> > handler
> >> (click in the margin to the left of the first line  - you should get
> > a small
> >> circle). Run in debugging mode by pressing the spider icon.
> > Execution will
> >> stop when the breakpoint is hit. You can then see the variable
> > contents in
> >> the variables window and see exactly what your result is.
> >>
> >> Paul
> >> - Original Message - 
> >> From: "markcavins" 
> >> To: 
> >> Sent: Tuesday, January 15, 2008 12:37 AM
> >> Subject: [flexcoders] Re: List issues
> >>
> >>
> >> >I am still thinking that part of the problem is that no where to I
> >> > call the path of tempXML (tempXML.lastResult.asset.fleet) to
actually
> >> > get this data. I am still trying to mess with the debugger but it
> >> > doesn't seem to be returnining anyt thing.
> >>
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
>




[flexcoders] Re: List issues

2008-01-14 Thread markcavins
This is the output for each asset


333CCC
52
VIN09876SDF133
0052
Standard
STANDARD

1946
Home
0

GMC
20 Sep 2007
1190310279
−


unknown

unsat
1



--- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> relist your current source and what your xml should look like.
> 
> To use the debugger, set a breakpoint at the start of the result
handler 
> (click in the margin to the left of the first line  - you should get
a small 
> circle). Run in debugging mode by pressing the spider icon.
Execution will 
> stop when the breakpoint is hit. You can then see the variable
contents in 
> the variables window and see exactly what your result is.
> 
> Paul
> - Original Message - 
> From: "markcavins" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, January 15, 2008 12:37 AM
> Subject: [flexcoders] Re: List issues
> 
> 
> >I am still thinking that part of the problem is that no where to I
> > call the path of tempXML (tempXML.lastResult.asset.fleet) to actually
> > get this data. I am still trying to mess with the debugger but it
> > doesn't seem to be returnining anyt thing.
>




[flexcoders] Re: List issues

2008-01-14 Thread markcavins
I am still thinking that part of the problem is that no where to I
call the path of tempXML (tempXML.lastResult.asset.fleet) to actually
get this data. I am still trying to mess with the debugger but it
doesn't seem to be returnining anyt thing.



--- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> Go back and check on the value xlMyListData.
> 
> If you spend ten minutes trying to figure out the debugger, you'll find 
> progress much quicker and you'll truly appreciate how good Flex is. The 
> debugger will show you the values of your variables without having
to put in 
> trace statements.
> 
> Paul
> - Original Message - 
> From: "markcavins" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, January 15, 2008 12:14 AM
> Subject: [flexcoders] Re: List issues
> 
> 
> > ok so I added a trace line
> >
> > trace("Hello from Flex Debugging!");
> >
> > and when I refresh the page I can see that but there the reference to
> >
> > trace(_xlcMyListData.toXMLString());
> >
> > returns nothing.
> >
> > So it is not getting anything from the function at all. So now I know
> > that (why I have no idea but I will look at more examples).
> >
> > Thanks for talking it through.
> >
> >
> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >>
> >> I doubt that you are far from success. Perhaps go with a few
tutorials
> >> (http://www.adobe.com/devnet/flex/quickstart/httpservice/) first
before
> >> setting off on your own. Flex is as cool as it gets.
> >>
> >> Paul
> >> - Original Message - 
> >> From: "markcavins" 
> >> To: 
> >> Sent: Monday, January 14, 2008 11:55 PM
> >> Subject: [flexcoders] Re: List issues
> >>
> >>
> >> > Thanks for the doc. I am actually using the trial of Flex 3
right now.
> >> > I haven't decided if I want to use flex. if I can't get this app to
> >> > work I will just go back to AJAX and PHP.
> >> >
> >> >
> >> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >> >>
> >> >> You are using FlexBuilder?
> >> >>
> >> >> In which case check out the debugger that is part of flexbuilder:
> >> >> http://learn.adobe.com/wiki/display/Flex/Debugging+tutorial
> >> >>
> >> >> (The tutorial is forFlex 3, but should help).
> >> >>
> >> >> Paul
> >> >> - Original Message - 
> >> >> From: "markcavins" 
> >> >> To: 
> >> >> Sent: Monday, January 14, 2008 11:30 PM
> >> >> Subject: [flexcoders] Re: List issues
> >> >>
> >> >>
> >> >> > Thanks for the suggestion and I appreciate that you give me more
> >> >> > credit than I deserve but I am not sure what you are talking
about.
> >> >> >
> >> >> >
> >> >> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >> >> >>
> >> >> >> The debugger is your friend. Try putting a breakpoint on the
> > result
> >> >> > handler,
> >> >> >> then look at what you get.
> >> >> >>
> >> >> >> Paul
> >> >> >> - Original Message - 
> >> >> >> From: "markcavins" 
> >> >> >> To: 
> >> >> >> Sent: Monday, January 14, 2008 11:19 PM
> >> >> >> Subject: [flexcoders] Re: List issues
> >> >> >>
> >> >> >>
> >> >> >> > Yep that killed that error. No results but error gone
> > thanks. Silly
> >> >> >> > spelling Monkee got me again
> >> >> >> >
> >> >> >> > --- In flexcoders@yahoogroups.com, "Paul Andrews" 
wrote:
> >> >> >> >>
> >> >> >> >> Your result handler specifies a parameter 'Event' which
> > should be
> >> >> >> > 'event'.
> >> >> >> >>
> >> >> >> >> Haven't looked further.
> >> >> >> >>
> >> >> >> >> Paul
> >> >> >> >>
> >> >> >> >> - Original Message ---

[flexcoders] Re: List issues

2008-01-14 Thread markcavins
ok so I added a trace line

trace("Hello from Flex Debugging!");

and when I refresh the page I can see that but there the reference to

trace(_xlcMyListData.toXMLString()); 

returns nothing. 

So it is not getting anything from the function at all. So now I know
that (why I have no idea but I will look at more examples).

Thanks for talking it through.


--- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> I doubt that you are far from success. Perhaps go with a few tutorials 
> (http://www.adobe.com/devnet/flex/quickstart/httpservice/) first before 
> setting off on your own. Flex is as cool as it gets.
> 
> Paul
> ----- Original Message - 
> From: "markcavins" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, January 14, 2008 11:55 PM
> Subject: [flexcoders] Re: List issues
> 
> 
> > Thanks for the doc. I am actually using the trial of Flex 3 right now.
> > I haven't decided if I want to use flex. if I can't get this app to
> > work I will just go back to AJAX and PHP.
> >
> >
> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >>
> >> You are using FlexBuilder?
> >>
> >> In which case check out the debugger that is part of flexbuilder:
> >> http://learn.adobe.com/wiki/display/Flex/Debugging+tutorial
> >>
> >> (The tutorial is forFlex 3, but should help).
> >>
> >> Paul
> >> - Original Message - 
> >> From: "markcavins" 
> >> To: 
> >> Sent: Monday, January 14, 2008 11:30 PM
> >> Subject: [flexcoders] Re: List issues
> >>
> >>
> >> > Thanks for the suggestion and I appreciate that you give me more
> >> > credit than I deserve but I am not sure what you are talking about.
> >> >
> >> >
> >> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >> >>
> >> >> The debugger is your friend. Try putting a breakpoint on the
result
> >> > handler,
> >> >> then look at what you get.
> >> >>
> >> >> Paul
> >> >> - Original Message - 
> >> >> From: "markcavins" 
> >> >> To: 
> >> >> Sent: Monday, January 14, 2008 11:19 PM
> >> >> Subject: [flexcoders] Re: List issues
> >> >>
> >> >>
> >> >> > Yep that killed that error. No results but error gone
thanks. Silly
> >> >> > spelling Monkee got me again
> >> >> >
> >> >> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >> >> >>
> >> >> >> Your result handler specifies a parameter 'Event' which
should be
> >> >> > 'event'.
> >> >> >>
> >> >> >> Haven't looked further.
> >> >> >>
> >> >> >> Paul
> >> >> >>
> >> >> >> - Original Message - 
> >> >> >> From: "markcavins" 
> >> >> >> To: 
> >> >> >> Sent: Monday, January 14, 2008 11:07 PM
> >> >> >> Subject: [flexcoders] Re: List issues
> >> >> >>
> >> >> >>
> >> >> >> > There also seems to be an issue with this line in the as
> >> >> >> >
> >> >> >> > var xmlResult:XML = XML(event.result);
> >> >> >> >
> >> >> >> > I get a 1120 error.
> >> >> >> >
> >> >> >> >
> >> >> >> > --- In flexcoders@yahoogroups.com, "Paul Andrews" 
wrote:
> >> >> >> >>
> >> >> >> >> from the applicationcreation complete event perhaps?
> >> >> >> >>
> >> >> >> >> creationComplete="tempXML.send();
> >> >> >> >>
> >> >> >> >> It's just that declaring the tempXML service doesn't fetch
> >> > anything
> >> >> >> > unless
> >> >> >> >> you call the send() method, and there's no use of send() in
> > your
> >> >> > code.
> >> >> >> >>
> >> >> >> >> Paul
> >> >> >> >> - Original

[flexcoders] Re: List issues

2008-01-14 Thread markcavins
Thanks for the doc. I am actually using the trial of Flex 3 right now.
I haven't decided if I want to use flex. if I can't get this app to
work I will just go back to AJAX and PHP. 


--- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> You are using FlexBuilder?
> 
> In which case check out the debugger that is part of flexbuilder: 
> http://learn.adobe.com/wiki/display/Flex/Debugging+tutorial
> 
> (The tutorial is forFlex 3, but should help).
> 
> Paul
> - Original Message - 
> From: "markcavins" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, January 14, 2008 11:30 PM
> Subject: [flexcoders] Re: List issues
> 
> 
> > Thanks for the suggestion and I appreciate that you give me more
> > credit than I deserve but I am not sure what you are talking about.
> >
> >
> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >>
> >> The debugger is your friend. Try putting a breakpoint on the result
> > handler,
> >> then look at what you get.
> >>
> >> Paul
> >> - Original Message - 
> >> From: "markcavins" 
> >> To: 
> >> Sent: Monday, January 14, 2008 11:19 PM
> >> Subject: [flexcoders] Re: List issues
> >>
> >>
> >> > Yep that killed that error. No results but error gone thanks. Silly
> >> > spelling Monkee got me again
> >> >
> >> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >> >>
> >> >> Your result handler specifies a parameter 'Event' which should be
> >> > 'event'.
> >> >>
> >> >> Haven't looked further.
> >> >>
> >> >> Paul
> >> >>
> >> >> - Original Message - 
> >> >> From: "markcavins" 
> >> >> To: 
> >> >> Sent: Monday, January 14, 2008 11:07 PM
> >> >> Subject: [flexcoders] Re: List issues
> >> >>
> >> >>
> >> >> > There also seems to be an issue with this line in the as
> >> >> >
> >> >> > var xmlResult:XML = XML(event.result);
> >> >> >
> >> >> > I get a 1120 error.
> >> >> >
> >> >> >
> >> >> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >> >> >>
> >> >> >> from the applicationcreation complete event perhaps?
> >> >> >>
> >> >> >> creationComplete="tempXML.send();
> >> >> >>
> >> >> >> It's just that declaring the tempXML service doesn't fetch
> > anything
> >> >> > unless
> >> >> >> you call the send() method, and there's no use of send() in
your
> >> > code.
> >> >> >>
> >> >> >> Paul
> >> >> >> - Original Message - 
> >> >> >> From: "markcavins" 
> >> >> >> To: 
> >> >> >> Sent: Monday, January 14, 2008 10:52 PM
> >> >> >> Subject: [flexcoders] Re: List issues
> >> >> >>
> >> >> >>
> >> >> >> > Where would you use a send() in this case?
> >> >> >> >
> >> >> >> >
> >> >> >> > --- In flexcoders@yahoogroups.com, "Paul Andrews" 
wrote:
> >> >> >> >>
> >> >> >> >> You have remembered to call the send() method?
> >> >> >> >>
> >> >> >> >> Paul
> >> >> >> >> - Original Message - 
> >> >> >> >> From: "markcavins" 
> >> >> >> >> To: 
> >> >> >> >> Sent: Monday, January 14, 2008 10:25 PM
> >> >> >> >> Subject: [flexcoders] List issues
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> >I am having the same issue of data not being returned into
> >> > the app.
> >> >> >> >> >
> >> >> >> >> >  >> >> >> >> > result="onResult(event)"
> >> >> >> >> >
> >> >> >> >
> >> >> >
> >

[flexcoders] Re: List issues

2008-01-14 Thread markcavins
Thanks for the suggestion and I appreciate that you give me more
credit than I deserve but I am not sure what you are talking about.


--- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> The debugger is your friend. Try putting a breakpoint on the result
handler, 
> then look at what you get.
> 
> Paul
> - Original Message - 
> From: "markcavins" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, January 14, 2008 11:19 PM
> Subject: [flexcoders] Re: List issues
> 
> 
> > Yep that killed that error. No results but error gone thanks. Silly
> > spelling Monkee got me again
> >
> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >>
> >> Your result handler specifies a parameter 'Event' which should be
> > 'event'.
> >>
> >> Haven't looked further.
> >>
> >> Paul
> >>
> >> - Original Message - 
> >> From: "markcavins" 
> >> To: 
> >> Sent: Monday, January 14, 2008 11:07 PM
> >> Subject: [flexcoders] Re: List issues
> >>
> >>
> >> > There also seems to be an issue with this line in the as
> >> >
> >> > var xmlResult:XML = XML(event.result);
> >> >
> >> > I get a 1120 error.
> >> >
> >> >
> >> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >> >>
> >> >> from the applicationcreation complete event perhaps?
> >> >>
> >> >> creationComplete="tempXML.send();
> >> >>
> >> >> It's just that declaring the tempXML service doesn't fetch
anything
> >> > unless
> >> >> you call the send() method, and there's no use of send() in your
> > code.
> >> >>
> >> >> Paul
> >> >> - Original Message - 
> >> >> From: "markcavins" 
> >> >> To: 
> >> >> Sent: Monday, January 14, 2008 10:52 PM
> >> >> Subject: [flexcoders] Re: List issues
> >> >>
> >> >>
> >> >> > Where would you use a send() in this case?
> >> >> >
> >> >> >
> >> >> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >> >> >>
> >> >> >> You have remembered to call the send() method?
> >> >> >>
> >> >> >> Paul
> >> >> >> - Original Message - 
> >> >> >> From: "markcavins" 
> >> >> >> To: 
> >> >> >> Sent: Monday, January 14, 2008 10:25 PM
> >> >> >> Subject: [flexcoders] List issues
> >> >> >>
> >> >> >>
> >> >> >> >I am having the same issue of data not being returned into
> > the app.
> >> >> >> >
> >> >> >> >  >> >> >> > result="onResult(event)"
> >> >> >> >
> >> >> >
> >> >
> >
url="https://{customer.text}.mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit&username={username.text}&password={password.text}";
> >> >> >> > />
> >> >> >> >
> >> >> >> >  >> >> >> > width="344" backgroundColor="#00" color="#ff"
> > fontSize="27"
> >> >> >> > borderColor="#00" columnWidth="300" rowHeight="50"
> >> >> >> > themeColor="#808080" fontWeight="bold"
> >> > allowMultipleSelection="true"
> >> >> >> > id="TileList1" height="0" y="202" x="178"/>
> >> >> >> >
> >> >> >> > 
> >> >> >> > 
> >> >> >> > 
> >> >> >> >
> >> >> >> > I've tried the dataProvider="{tempXML.lastResult.asset.fleet
> > }" and
> >> >> >> > when I first start the app I see nothing but then if I hit
> > refresh
> >> >> > I get
> >> >> >> >
> >> >> >> > [Object, object]
> >> >> >> >
> >> >> >> > as a response. I can look in firebug and see that I am
> > getting the
> >> >> >> > proper data.
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > --
> >> >> >> > Flexcoders Mailing List
> >> >> >> > FAQ:
> >> > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >> >> >> > Search Archives:
> >> >> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >> >> >> > Yahoo! Groups Links
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Flexcoders Mailing List
> >> >> > FAQ:
> > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >> >> > Search Archives:
> >> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >> >> > Yahoo! Groups Links
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > Flexcoders Mailing List
> >> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >> > Yahoo! Groups Links
> >> >
> >> >
> >> >
> >> >
> >>
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
>




[flexcoders] Re: List issues

2008-01-14 Thread markcavins
Yep that killed that error. No results but error gone thanks. Silly
spelling Monkee got me again

--- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> Your result handler specifies a parameter 'Event' which should be
'event'.
> 
> Haven't looked further.
> 
> Paul
> 
> - Original Message - 
> From: "markcavins" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, January 14, 2008 11:07 PM
> Subject: [flexcoders] Re: List issues
> 
> 
> > There also seems to be an issue with this line in the as
> >
> > var xmlResult:XML = XML(event.result);
> >
> > I get a 1120 error.
> >
> >
> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >>
> >> from the applicationcreation complete event perhaps?
> >>
> >> creationComplete="tempXML.send();
> >>
> >> It's just that declaring the tempXML service doesn't fetch anything
> > unless
> >> you call the send() method, and there's no use of send() in your
code.
> >>
> >> Paul
> >> - Original Message - 
> >> From: "markcavins" 
> >> To: 
> >> Sent: Monday, January 14, 2008 10:52 PM
> >> Subject: [flexcoders] Re: List issues
> >>
> >>
> >> > Where would you use a send() in this case?
> >> >
> >> >
> >> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >> >>
> >> >> You have remembered to call the send() method?
> >> >>
> >> >> Paul
> >> >> - Original Message - 
> >> >> From: "markcavins" 
> >> >> To: 
> >> >> Sent: Monday, January 14, 2008 10:25 PM
> >> >> Subject: [flexcoders] List issues
> >> >>
> >> >>
> >> >> >I am having the same issue of data not being returned into
the app.
> >> >> >
> >> >> >  >> >> > result="onResult(event)"
> >> >> >
> >> >
> >
url="https://{customer.text}.mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit&username={username.text}&password={password.text}";
> >> >> > />
> >> >> >
> >> >> >  >> >> > width="344" backgroundColor="#00" color="#ff"
fontSize="27"
> >> >> > borderColor="#00" columnWidth="300" rowHeight="50"
> >> >> > themeColor="#808080" fontWeight="bold"
> > allowMultipleSelection="true"
> >> >> > id="TileList1" height="0" y="202" x="178"/>
> >> >> >
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> >
> >> >> > I've tried the dataProvider="{tempXML.lastResult.asset.fleet
}" and
> >> >> > when I first start the app I see nothing but then if I hit
refresh
> >> > I get
> >> >> >
> >> >> > [Object, object]
> >> >> >
> >> >> > as a response. I can look in firebug and see that I am
getting the
> >> >> > proper data.
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Flexcoders Mailing List
> >> >> > FAQ:
> > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >> >> > Search Archives:
> >> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >> >> > Yahoo! Groups Links
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > Flexcoders Mailing List
> >> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >> > Yahoo! Groups Links
> >> >
> >> >
> >> >
> >> >
> >>
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
>




[flexcoders] Re: List issues

2008-01-14 Thread markcavins
Thanks for that still no change.

--- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> from the applicationcreation complete event perhaps?
> 
> creationComplete="tempXML.send();
> 
> It's just that declaring the tempXML service doesn't fetch anything
unless 
> you call the send() method, and there's no use of send() in your code.
> 
> Paul
> - Original Message - 
> From: "markcavins" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, January 14, 2008 10:52 PM
> Subject: [flexcoders] Re: List issues
> 
> 
> > Where would you use a send() in this case?
> >
> >
> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >>
> >> You have remembered to call the send() method?
> >>
> >> Paul
> >> - Original Message - 
> >> From: "markcavins" 
> >> To: 
> >> Sent: Monday, January 14, 2008 10:25 PM
> >> Subject: [flexcoders] List issues
> >>
> >>
> >> >I am having the same issue of data not being returned into the app.
> >> >
> >> >  >> > result="onResult(event)"
> >> >
> >
url="https://{customer.text}.mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit&username={username.text}&password={password.text}";
> >> > />
> >> >
> >> >  >> > width="344" backgroundColor="#00" color="#ff" fontSize="27"
> >> > borderColor="#00" columnWidth="300" rowHeight="50"
> >> > themeColor="#808080" fontWeight="bold"
allowMultipleSelection="true"
> >> > id="TileList1" height="0" y="202" x="178"/>
> >> >
> >> > 
> >> > 
> >> > 
> >> >
> >> > I've tried the dataProvider="{tempXML.lastResult.asset.fleet }" and
> >> > when I first start the app I see nothing but then if I hit refresh
> > I get
> >> >
> >> > [Object, object]
> >> >
> >> > as a response. I can look in firebug and see that I am getting the
> >> > proper data.
> >> >
> >> >
> >> >
> >> > --
> >> > Flexcoders Mailing List
> >> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >> > Yahoo! Groups Links
> >> >
> >> >
> >> >
> >> >
> >>
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
>




[flexcoders] Re: List issues

2008-01-14 Thread markcavins
There also seems to be an issue with this line in the as

var xmlResult:XML = XML(event.result);

I get a 1120 error.


--- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> from the applicationcreation complete event perhaps?
> 
> creationComplete="tempXML.send();
> 
> It's just that declaring the tempXML service doesn't fetch anything
unless 
> you call the send() method, and there's no use of send() in your code.
> 
> Paul
> - Original Message - 
> From: "markcavins" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, January 14, 2008 10:52 PM
> Subject: [flexcoders] Re: List issues
> 
> 
> > Where would you use a send() in this case?
> >
> >
> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >>
> >> You have remembered to call the send() method?
> >>
> >> Paul
> >> - Original Message - 
> >> From: "markcavins" 
> >> To: 
> >> Sent: Monday, January 14, 2008 10:25 PM
> >> Subject: [flexcoders] List issues
> >>
> >>
> >> >I am having the same issue of data not being returned into the app.
> >> >
> >> >  >> > result="onResult(event)"
> >> >
> >
url="https://{customer.text}.mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit&username={username.text}&password={password.text}";
> >> > />
> >> >
> >> >  >> > width="344" backgroundColor="#00" color="#ff" fontSize="27"
> >> > borderColor="#00" columnWidth="300" rowHeight="50"
> >> > themeColor="#808080" fontWeight="bold"
allowMultipleSelection="true"
> >> > id="TileList1" height="0" y="202" x="178"/>
> >> >
> >> > 
> >> > 
> >> > 
> >> >
> >> > I've tried the dataProvider="{tempXML.lastResult.asset.fleet }" and
> >> > when I first start the app I see nothing but then if I hit refresh
> > I get
> >> >
> >> > [Object, object]
> >> >
> >> > as a response. I can look in firebug and see that I am getting the
> >> > proper data.
> >> >
> >> >
> >> >
> >> > --
> >> > Flexcoders Mailing List
> >> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >> > Yahoo! Groups Links
> >> >
> >> >
> >> >
> >> >
> >>
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
>




[flexcoders] Re: List issues

2008-01-14 Thread markcavins
Where would you use a send() in this case?


--- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> You have remembered to call the send() method?
> 
> Paul
> - Original Message - 
> From: "markcavins" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, January 14, 2008 10:25 PM
> Subject: [flexcoders] List issues
> 
> 
> >I am having the same issue of data not being returned into the app.
> >
> >  > result="onResult(event)"
> >
url="https://{customer.text}.mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit&username={username.text}&password={password.text}";
> > />
> >
> >  > width="344" backgroundColor="#00" color="#ff" fontSize="27"
> > borderColor="#00" columnWidth="300" rowHeight="50"
> > themeColor="#808080" fontWeight="bold" allowMultipleSelection="true"
> > id="TileList1" height="0" y="202" x="178"/>
> >
> > 
> > 
> > 
> >
> > I've tried the dataProvider="{tempXML.lastResult.asset.fleet }" and
> > when I first start the app I see nothing but then if I hit refresh
I get
> >
> > [Object, object]
> >
> > as a response. I can look in firebug and see that I am getting the
> > proper data.
> >
> >
> >
> > --
> > 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] List issues

2008-01-14 Thread markcavins
I am having the same issue of data not being returned into the app.

https://{customer.text}.mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit&username={username.text}&password={password.text}";
/>







I've tried the dataProvider="{tempXML.lastResult.asset.fleet }" and
when I first start the app I see nothing but then if I hit refresh I get 

[Object, object]

as a response. I can look in firebug and see that I am getting the
proper data.



[flexcoders] Re: XML List problems

2008-01-14 Thread markcavins
Thanks again Tracy,

I know there is still something that I am doing wrong because I still
do not see any data in the app.

https://{customer.text}.mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit&username={username.text}&password={password.text}";
/>








--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Also, Mark, you can remove the AsyncToken stuff until you are ready for
> it.
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Alger Werft
> Sent: Friday, January 11, 2008 4:50 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: XML List problems
> 
>  
> 
> Concerning three of your errors:
> 
> in onResult():
> 
> You are passing in oEvent.
> The next line you are using event.
> 
> You are declaring
> var callToken:AsyncToke
> 
> but are using:
> token.callId = "myQuery1";
> 
> You are calling:
> doQuery2();
> 
> The declaration of this method is nowhere to be found.
> 
> Read your code a bit more carefully. FlexBuilder gives you hints. Use
> them.
> Look at the lines FlexBuilder lists in the Problems-View.
> If FlexBuilder says "undefined property", ask yourself, is this property
> 
> declared? Have I misspelled it?
> Same goes for "undefined method".
> 
> markcavins schrieb:
> >
> > OK I've seen some of the errors
> >
> >  > result="onResult(event)"
> >
> url="https://{customer.text}.mysite.net/interface.php?action=showopen&am
> p;operation=showassets&format=xml&opstatus=crit&username={us
> ername.text}&password={password.text}"
> > />
> >
> >  > width="344" backgroundColor="#00" color="#ff" fontSize="27"
> > borderColor="#00" columnWidth="300" rowHeight="50"
> > themeColor="#808080" fontWeight="bold" allowMultipleSelection="true"
> > id="TileList1" height="0" y="202" x="178"/>
> >
> > 
> > 
> > 
> >
> > that cut the errors is half
> >
> > 1120: Access of undefined property event.
> > 1120: Access of undefined property oRequest.
> > 1120: Access of undefined property token.
> > 1180: Call to a possibly undefined method doQuery2.
> >
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>  
> > <mailto:flexcoders%40yahoogroups.com>, "markcavins" 
> >
> > wrote:
> > >
> > > This is what I have currently. I removed the comments to make it
> > > cleaner to read here.
> > >
> > >  > > result="onResult(event)"
> > >
> >
> url="https://{customer.text}.mysite.net/interface.php?action=showopen&am
> p;operation=showassets&format=xml&opstatus=crit&username={us
> ername.text}&password={password.text}"
> > > />
> > >
> > > 
> > > 
> > > 
> > >
> > >
> > >  > > width="344" backgroundColor="#00" color="#ff" fontSize="27"
> > > borderColor="#00" columnWidth="300" rowHeight="50"
> > > themeColor="#808080" fontWeight="bold" allowMultipleSelection="true"
> > > id="TileList1" height="0" y="202" x="178"/>
> > >
> > >
> > >
> > > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>  
> > <mailto:flexcoders%40yahoogroups.com>, Alger Werft 
> wrote:
> > > >
> > > > Do you import AsyncToken and XMLListCollection?
> > > >
> > > > markcavins schrieb:
> > > > >
> > > > > Yeah thanks for the advice but I can't seem to get anything on
> that
> > > > > code to work and to be honest I don't even begin to understand
> where
> > > > > to begin on how to modify it to get it to work. Trying to get it
> to
> > > > > work but I get a whole mess of errors
> > > > >
> > > > > 1046: Type was not found or was not a compile-time constant:
> > > AsyncToken.
> > > > > 1046: Type was not found or was not a compile-time constant:
> > > AsyncToken.
> > > > > 1046: Type was not found or was not a compile-time constant:
> > > > > XMLListCollection.
> > > > > 1120: Access of undefined property event.
> > > > > 1120: Access of undefined property oRequest.
> > > > > 1120: Access of undefined property service.
> > > > > 1120: Access of undefined property token.
> > > > > 1180: Call to a possibly undefined method doQuery2.
> > > > > 1180: Call to a possibly undefined method XMLListCollection.
> > > > >
> > > > > Thank you for your help Tracey
> > > > >
> >
> >
>




[flexcoders] Rehashing XML List Problems

2008-01-11 Thread markcavins

OK I've seen some of the errors

https://{customer.text}.mysite.net/interface.php?action=showopen&operat\
ion=showassets&format=xml&opstatus=crit&username={username.text}&\
;password={password.text}"
/>







that cut the errors is half



1120: Access of undefined property event.
1120: Access of undefined property oRequest.
1120: Access of undefined property token.
1180: Call to a possibly undefined method doQuery2.



[flexcoders] Re: XML List problems

2008-01-11 Thread markcavins
OK I've seen some of the errors

https://{customer.text}.mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit&username={username.text}&password={password.text}";
/>







that cut the errors is half



1120: Access of undefined property event.   
1120: Access of undefined property oRequest.
1120: Access of undefined property token.   
1180: Call to a possibly undefined method doQuery2. 


--- In flexcoders@yahoogroups.com, "markcavins" <[EMAIL PROTECTED]> 


wrote:
>
> This is what I have currently. I removed the comments to make it
> cleaner to read here.
> 
>  result="onResult(event)"
>
url="https://{customer.text}.mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit&username={username.text}&password={password.text}";
> />
>   
>   
> 
>   
>   
>   
>  width="344" backgroundColor="#00" color="#ff" 
> fontSize="27"
> borderColor="#00" columnWidth="300" rowHeight="50"
> themeColor="#808080" fontWeight="bold" allowMultipleSelection="true" 
> id="TileList1" height="0" y="202" x="178"/>
>   
> 
> 
> --- In flexcoders@yahoogroups.com, Alger Werft  wrote:
> >
> > Do you import AsyncToken and XMLListCollection?
> > 
> > markcavins schrieb:
> > >
> > > Yeah thanks for the advice but I can't seem to get anything on that
> > > code to work and to be honest I don't even begin to understand where
> > > to begin on how to modify it to get it to work. Trying to get it to
> > > work but I get a whole mess of errors
> > >
> > > 1046: Type was not found or was not a compile-time constant:
> AsyncToken.
> > > 1046: Type was not found or was not a compile-time constant:
> AsyncToken.
> > > 1046: Type was not found or was not a compile-time constant:
> > > XMLListCollection.
> > > 1120: Access of undefined property event.
> > > 1120: Access of undefined property oRequest.
> > > 1120: Access of undefined property service.
> > > 1120: Access of undefined property token.
> > > 1180: Call to a possibly undefined method doQuery2.
> > > 1180: Call to a possibly undefined method XMLListCollection.
> > >
> > > Thank you for your help Tracey
> > >




[flexcoders] Re: XML List problems

2008-01-11 Thread markcavins
Yeah thanks for the advice but I can't seem to get anything on that
code to work and to be honest I don't even begin to understand where
to begin on how to modify it to get it to work. Trying to get it to
work but I get a whole mess of errors


1046: Type was not found or was not a compile-time constant: AsyncToken.
1046: Type was not found or was not a compile-time constant: AsyncToken.
1046: Type was not found or was not a compile-time constant:
XMLListCollection.  
1120: Access of undefined property event.   
1120: Access of undefined property oRequest.
1120: Access of undefined property service. 
1120: Access of undefined property token.   
1180: Call to a possibly undefined method doQuery2. 
1180: Call to a possibly undefined method XMLListCollection.

Thank you for your help Tracey



--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> labelField and labelFunction are properties of TileList.
> 
>  
> 
> You have several other issues.
> 
>  
> 
> I advise using my example code, including the trace statements.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of markcavins
> Sent: Friday, January 11, 2008 2:35 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: XML List problems
> 
>  
> 
> OK so in the example that I have 
> 
> tempXML.lastResult.asset.fleet
> 
> tempXML is my source (the url)
> 
> asset is the parent attribute
> 
> and fleet is the actual name that I want to display 
> 
> I'm still unsure as to where I would use the labelFunction(asset).
> 
> Sorry I know this must be sounding Dugh to everyone and this is why I
> have never delved into Flex or Flash before because the language just
> confuses me to all heck. 
> 
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Tracy Spratt"  wrote:
> >
> > TileList is very similar to List and DataGrid. Each element (row,
> tile)
> > in the list gets a reference to the dataProvider item that is
> producing
> > it.
> > 
> > 
> > 
> > With all the lists, you have to tell the control which property in the
> > dataProvider item you want to display.
> > 
> > 
> > 
> > Specify labelField (dataField for DataGrid) for simple, top-level
> > properties of the item, like attributes, or first generation child
> nodes
> > in xml or properties in an object.
> > 
> > 
> > 
> > Specify labelFunction() to build complex labels from more than one
> > property, or to access values in nested nodes or properties./
> > 
> > 
> > 
> > Tracy
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of markcavins
> > Sent: Friday, January 11, 2008 1:43 PM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Re: XML List problems
> > 
> > 
> > 
> > I've tried this basic event handler with no success
> > 
> > Code:
> > 
> >  >
> url="https://{customer.text}.mysite.net/interface.php?action=showopen&am
> >
> p;operation=showassets&format=xml&opstatus=crit&username={us
> > ername.text}&password={password.text}"
> > />
> > 
> > 
> > 
> > 
> >  > width="344" backgroundColor="#00" color="#ff" fontSize="27"
> > borderColor="#00" columnWidth="300" rowHeight="50"
> > themeColor="#808080" fontWeight="bold" allowMultipleSelection="true"
> > id="TileList1" height="0" y="202" x="178"/>
> > 
> > I can look through fire bug and see that I am seeing the XML being
> > received but I am not seeing the data being displayed in the app.
> > 
> > I am trying to find an example of the result handler that will get the
> > data to the TileList.
> > 
> > I know that I am probably noobing this problem but I am still new and
> > unsure of how to receive. 
> > 
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > , "markcavins"  wrote:
> > >
> > > I am trying to find an example of 

[flexcoders] Re: XML List problems

2008-01-11 Thread markcavins
OK so in the example that I have 

tempXML.lastResult.asset.fleet

tempXML is my source (the url)

asset is the parent attribute

and fleet is the actual name that I want to display 

I'm still unsure as to where I would use the labelFunction(asset).

Sorry I know this must be sounding Dugh to everyone and this is why I
have never delved into Flex or Flash before because the language just
confuses me to all heck. 



--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> TileList is very similar to List and DataGrid.  Each element (row, tile)
> in the list gets a reference to the dataProvider item that is producing
> it.
> 
>  
> 
> With all the lists, you have to tell the control which property in the
> dataProvider item you want to display.
> 
>  
> 
> Specify labelField (dataField for DataGrid) for simple, top-level
> properties of the item, like attributes, or first generation child nodes
> in xml or properties in an object.
> 
>  
> 
> Specify labelFunction() to build complex labels from more than one
> property, or to access values in nested nodes or properties./
> 
>  
> 
> Tracy
> 
>  
> 
> ________
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of markcavins
> Sent: Friday, January 11, 2008 1:43 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: XML List problems
> 
>  
> 
> I've tried this basic event handler with no success
> 
> Code:
> 
>  url="https://{customer.text}.mysite.net/interface.php?action=showopen&am
> p;operation=showassets&format=xml&opstatus=crit&username={us
> ername.text}&password={password.text}"
> />
> 
> 
> 
> 
>  width="344" backgroundColor="#00" color="#ff" fontSize="27"
> borderColor="#00" columnWidth="300" rowHeight="50"
> themeColor="#808080" fontWeight="bold" allowMultipleSelection="true"
> id="TileList1" height="0" y="202" x="178"/>
> 
> I can look through fire bug and see that I am seeing the XML being
> received but I am not seeing the data being displayed in the app.
> 
> I am trying to find an example of the result handler that will get the
> data to the TileList.
> 
> I know that I am probably noobing this problem but I am still new and
> unsure of how to receive. 
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "markcavins"  wrote:
> >
> > I am trying to find an example of the result handler that will get the
> > data to the TileList. Tracy's example is great but I am having a hard
> > time making this work with my app. 
> > 
> > 
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> , "markcavins" 
> wrote:
> > >
> > > Thank you for this wonderful example and maybe I am just too much of
> a
> > > noob at this but wouldn't this example just put every thing in a
> data
> > > grid?
> > > 
> > > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> , "Tracy Spratt"  wrote:
> > > >
> > > > It is difficult to debug problems when you bind directly to
> > > lastResult. Instead, use a result handler, in which you can inspect
> > > yur data.
> > > > Tracy
> > > > 
> > > > Sample code using HTTPService, e4x, handler function to populate a
> > > list item. 
> > > > Also shows usage of AsyncToken.
> > > > 
> > > > The DataGrid tag:
> > > > 
> > > > 
> > > > 
> > > > The HTTPService tag:
> > > >  > > result="onResult(event)" fault="/>
> > > > 
> > > > Script block declaration:
> > > > import mx.rpc.Events.ResultEvent;
> > > > [Bindable]private var _xlcMyListData:XMLListCollection;
> > > > 
> > > > Invoke send:
> > > > var oRequest:Object = new Object();
> > > > oRequest.Arg1 = "value1";
> > > > var callToken:AsyncToken = service.send(oRequest);
> > > > token.callId = "myQuery1";
> > > > 
> > > > Result Handler function:
> > > > private function onResult(oEvent:ResultEvent):void {
> > > > var xmlResult:XML = XML(event.result); //converts
> > > result Object to XML. can also use "as" operator
> > > > v

[flexcoders] Re: XML List problems

2008-01-11 Thread markcavins
I've tried this basic event handler with no success

Code:

https://{customer.text}.mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit&username={username.text}&password={password.text}";
/>







I can look through fire bug and see that I am seeing the XML being
received but I am not seeing the data being displayed in the app.

I am trying to find an example of the result handler that will get the
data to the TileList.

I know that I am probably noobing this problem but I am still new and
unsure of how to receive. 



--- In flexcoders@yahoogroups.com, "markcavins" <[EMAIL PROTECTED]> wrote:
>
> I am trying to find an example of the result handler that will get the
> data to the TileList. Tracy's example is great but I am having a hard
> time making this work with my app. 
> 
> 
> --- In flexcoders@yahoogroups.com, "markcavins"  wrote:
> >
> > Thank you for this wonderful example and maybe I am just too much of a
> > noob at this but wouldn't this example just put every thing in a data
> > grid?
> > 
> > --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> > >
> > > It is difficult to debug problems when you bind directly to
> > lastResult.  Instead, use a result handler, in which you can inspect
> > yur data.
> > > Tracy
> > > 
> > > Sample code using HTTPService, e4x, handler function to populate a
> > list item.  
> > > Also shows usage of AsyncToken.
> > > 
> > > The DataGrid tag:
> > > 
> > > 
> > > 
> > > The HTTPService tag:
> > >  > result="onResult(event)" fault="/>
> > > 
> > > Script block declaration:
> > > import mx.rpc.Events.ResultEvent;
> > > [Bindable]private var _xlcMyListData:XMLListCollection;
> > > 
> > > Invoke send:
> > > var oRequest:Object = new Object();
> > > oRequest.Arg1 = "value1";
> > > var callToken:AsyncToken = service.send(oRequest);
> > > token.callId = "myQuery1";
> > > 
> > > Result Handler function:
> > > private function onResult(oEvent:ResultEvent):void  {
> > >   var xmlResult:XML = XML(event.result);//converts
> > result Object to XML. can also use "as" operator
> > >   var xlMyListData:XMLList = xmlResult.myListData;  //depends on
> > xml format, is row data
> > >   _xlcMyListData = new XMLListCollection(xlMyListData); //wrap the
> > XMLList in a collection
> > >   trace(_xlcMyListData.toXMLString());  //so you can
> > see exactly how to specify dataField or build labelFunction
> > >   var callToken:AsyncToken = oEvent.token;
> > >   var sCallId = callToken.callId;   //"myQuery1"
> > >   switch(sCallId)  {//Process
> > the result conditionally
> > > case "myQuery1":
> > >   doQuery2();   //do
> > whatever. this example calls another data service query
> > >   break;
> > > ... 
> > >   }
> > > }//onResult
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> > On Behalf Of markcavins
> > > Sent: Thursday, January 10, 2008 7:21 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Re: XML List problems
> > > 
> > > another question would be if I need to add a result to the
HTTPService
> > > to get it to display and if so what would the result set need to be?
> > > 
> > > --- In flexcoders@yahoogroups.com, "markcavins"  wrote:
> > > >
> > > > This is the XML output for each asset
> > > > 
> > > > 
> > > > 333CCC
> > > > abc232
> > > > 
> > > > 0052
> > > > Standard
> > > > STANDARD
> > > > 
> > > > 1946
> > > > Home
> > > > 0
> > > > 
> > > > GMC
> > > > 
> > > > 12/10/2002
> > > > −
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 1325465465
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > All I am looking for is just that asset name.
> > > > 
> > > > 
> > > > 
> > > > 
>

[flexcoders] Re: XML List problems

2008-01-11 Thread markcavins
I am trying to find an example of the result handler that will get the
data to the TileList. Tracy's example is great but I am having a hard
time making this work with my app. 


--- In flexcoders@yahoogroups.com, "markcavins" <[EMAIL PROTECTED]> wrote:
>
> Thank you for this wonderful example and maybe I am just too much of a
> noob at this but wouldn't this example just put every thing in a data
> grid?
> 
> --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> >
> > It is difficult to debug problems when you bind directly to
> lastResult.  Instead, use a result handler, in which you can inspect
> yur data.
> > Tracy
> > 
> > Sample code using HTTPService, e4x, handler function to populate a
> list item.  
> > Also shows usage of AsyncToken.
> > 
> > The DataGrid tag:
> > 
> > 
> > 
> > The HTTPService tag:
> >  result="onResult(event)" fault="/>
> > 
> > Script block declaration:
> > import mx.rpc.Events.ResultEvent;
> > [Bindable]private var _xlcMyListData:XMLListCollection;
> > 
> > Invoke send:
> > var oRequest:Object = new Object();
> > oRequest.Arg1 = "value1";
> > var callToken:AsyncToken = service.send(oRequest);
> > token.callId = "myQuery1";
> > 
> > Result Handler function:
> > private function onResult(oEvent:ResultEvent):void  {
> >   var xmlResult:XML = XML(event.result);//converts
> result Object to XML. can also use "as" operator
> >   var xlMyListData:XMLList = xmlResult.myListData;  //depends on
> xml format, is row data
> >   _xlcMyListData = new XMLListCollection(xlMyListData); //wrap the
> XMLList in a collection
> >   trace(_xlcMyListData.toXMLString());  //so you can
> see exactly how to specify dataField or build labelFunction
> >   var callToken:AsyncToken = oEvent.token;
> >   var sCallId = callToken.callId;   //"myQuery1"
> >   switch(sCallId)  {//Process
> the result conditionally
> > case "myQuery1":
> >   doQuery2();   //do
> whatever. this example calls another data service query
> >   break;
> > ... 
> >   }
> > }//onResult
> > 
> > 
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On Behalf Of markcavins
> > Sent: Thursday, January 10, 2008 7:21 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: XML List problems
> > 
> > another question would be if I need to add a result to the HTTPService
> > to get it to display and if so what would the result set need to be?
> > 
> > --- In flexcoders@yahoogroups.com, "markcavins"  wrote:
> > >
> > > This is the XML output for each asset
> > > 
> > > 
> > > 333CCC
> > > abc232
> > > 
> > > 0052
> > > Standard
> > > STANDARD
> > > 
> > > 1946
> > > Home
> > > 0
> > > 
> > > GMC
> > > 
> > > 12/10/2002
> > > −
> > > 
> > > 
> > > 
> > > 
> > > 1325465465
> > > 
> > > 
> > > 
> > > 
> > > 
> > > All I am looking for is just that asset name.
> > > 
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, Alger Werft  wrote:
> > > >
> > > > To clarify:
> > > >
> > >
> >
>
http://livedocs.adobe.com/labs/flex3/langref/mx/rpc/http/mxml/HTTPService.html
> > > > 
> > > > There's a lastResult property but no result!
> > > > 
> > > > There's a result event which is fired when the HTTP response is
> > loaded.
> > > > This event has a result property.
> > > >
> > >
> >
>
http://livedocs.adobe.com/labs/flex3/langref/mx/rpc/events/ResultEvent.html
> > > > 
> > > > 
> > > > What's the structure of your XML?
> > > > 
> > > > 
> > > > markcavins schrieb:
> > > > >
> > > > > In that case I get the following error
> > > > >
> > > > > 1119: Access of possibly undefined property result through a
> > reference
> > > > > with static type mx.rpc.http.mxml:HTTPService.
> > > > >
> > > > > --- In flexcoders@yahoogroups.co

[flexcoders] Re: XML List problems

2008-01-11 Thread markcavins
Thank you for this wonderful example and maybe I am just too much of a
noob at this but wouldn't this example just put every thing in a data
grid?

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> It is difficult to debug problems when you bind directly to
lastResult.  Instead, use a result handler, in which you can inspect
yur data.
> Tracy
> 
> Sample code using HTTPService, e4x, handler function to populate a
list item.  
> Also shows usage of AsyncToken.
> 
> The DataGrid tag:
> 
> 
> 
> The HTTPService tag:
>  var callToken:AsyncToken = service.send(oRequest);
> token.callId = "myQuery1";
> 
> Result Handler function:
> private function onResult(oEvent:ResultEvent):void  {
>   var xmlResult:XML = XML(event.result);//converts
result Object to XML. can also use "as" operator
>   var xlMyListData:XMLList = xmlResult.myListData;  //depends on
xml format, is row data
>   _xlcMyListData = new XMLListCollection(xlMyListData); //wrap the
XMLList in a collection
>   trace(_xlcMyListData.toXMLString());  //so you can
see exactly how to specify dataField or build labelFunction
>   var callToken:AsyncToken = oEvent.token;
>   var sCallId = callToken.callId;   //"myQuery1"
>   switch(sCallId)  {//Process
the result conditionally
> case "myQuery1":
>   doQuery2();   //do
whatever. this example calls another data service query
>   break;
> ... 
>   }
> }//onResult
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of markcavins
> Sent: Thursday, January 10, 2008 7:21 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: XML List problems
> 
> another question would be if I need to add a result to the HTTPService
> to get it to display and if so what would the result set need to be?
> 
> --- In flexcoders@yahoogroups.com, "markcavins"  wrote:
> >
> > This is the XML output for each asset
> > 
> > 
> > 333CCC
> > abc232
> > 
> > 0052
> > Standard
> > STANDARD
> > 
> > 1946
> > Home
> > 0
> > 
> > GMC
> > 
> > 12/10/2002
> > −
> > 
> > 
> > 
> > 
> > 1325465465
> > 
> > 
> > 
> > 
> > 
> > All I am looking for is just that asset name.
> > 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, Alger Werft  wrote:
> > >
> > > To clarify:
> > >
> >
>
http://livedocs.adobe.com/labs/flex3/langref/mx/rpc/http/mxml/HTTPService.html
> > > 
> > > There's a lastResult property but no result!
> > > 
> > > There's a result event which is fired when the HTTP response is
> loaded.
> > > This event has a result property.
> > >
> >
>
http://livedocs.adobe.com/labs/flex3/langref/mx/rpc/events/ResultEvent.html
> > > 
> > > 
> > > What's the structure of your XML?
> > > 
> > > 
> > > markcavins schrieb:
> > > >
> > > > In that case I get the following error
> > > >
> > > > 1119: Access of possibly undefined property result through a
> reference
> > > > with static type mx.rpc.http.mxml:HTTPService.
> > > >
> > > > --- In flexcoders@yahoogroups.com 
> > > > <mailto:flexcoders%40yahoogroups.com>, Sheriff  wrote:
> > > > >
> > > > > it shouldnt be tempXML.lastResult, instead tempXML.result
> > > > >
> > > > >
> > > > > - Original Message 
> > > > > From: markcavins 
> > > > > To: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> > > > > Sent: Thursday, January 10, 2008 3:40:58 PM
> > > > > Subject: [flexcoders] XML List problems
> > > > >
> > > > > I have had some help from some others on this issue but the
battle
> > > > > continues and I am perplexed as to why this might be happening.
> > > > >
> > > > > I am grabbing a HTTPService from my site
> > > > >
> > > > >  > > > > url="https://mysite. net/interface. php?action= showopen&
> > > > amp;operation= showassets& amp;format= xml&opstatus =crit"
> > > > > />
> > > > >
> > > > > and displaying it in a T

[flexcoders] Re: XML List problems

2008-01-10 Thread markcavins
another question would be if I need to add a result to the HTTPService
to get it to display and if so what would the result set need to be?


--- In flexcoders@yahoogroups.com, "markcavins" <[EMAIL PROTECTED]> wrote:
>
> This is the XML output for each asset
> 
> 
> 333CCC
> abc232
> 
> 0052
> Standard
> STANDARD
> 
> 1946
> Home
> 0
> 
> GMC
> 
> 12/10/2002
> −
> 
> 
> 
> 
> 1325465465
> 
> 
> 
> 
> 
> All I am looking for is just that asset name.
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, Alger Werft  wrote:
> >
> > To clarify:
> >
>
http://livedocs.adobe.com/labs/flex3/langref/mx/rpc/http/mxml/HTTPService.html
> > 
> > There's a lastResult property but no result!
> > 
> > There's a result event which is fired when the HTTP response is
loaded.
> > This event has a result property.
> >
>
http://livedocs.adobe.com/labs/flex3/langref/mx/rpc/events/ResultEvent.html
> > 
> > 
> > What's the structure of your XML?
> > 
> > 
> > markcavins schrieb:
> > >
> > > In that case I get the following error
> > >
> > > 1119: Access of possibly undefined property result through a
reference
> > > with static type mx.rpc.http.mxml:HTTPService.
> > >
> > > --- In flexcoders@yahoogroups.com 
> > > <mailto:flexcoders%40yahoogroups.com>, Sheriff  wrote:
> > > >
> > > > it shouldnt be tempXML.lastResult, instead tempXML.result
> > > >
> > > >
> > > > - Original Message 
> > > > From: markcavins 
> > > > To: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> > > > Sent: Thursday, January 10, 2008 3:40:58 PM
> > > > Subject: [flexcoders] XML List problems
> > > >
> > > > I have had some help from some others on this issue but the battle
> > > > continues and I am perplexed as to why this might be happening.
> > > >
> > > > I am grabbing a HTTPService from my site
> > > >
> > > >  > > > url="https://mysite. net/interface. php?action= showopen&
> > > amp;operation= showassets& amp;format= xml&opstatus =crit"
> > > > />
> > > >
> > > > and displaying it in a TileList
> > > >
> > > >  > > > width="344" backgroundColor= "#00" color="#ff"
fontSize="27"
> > > > borderColor= "#00" columnWidth= "300" rowHeight="50"
> > > > themeColor=" #808080" fontWeight=" bold" allowMultipleSelect
> ion="true"
> > > > id="TileList1" height="0" y="202" x="178"/>
> > > >
> > > > and then refreshing the data every 5 minutes or when a user
pushes a
> > > > button.
> > > >
> > > > before I was trying to call the data with a mx:XML and the
data was
> > > > displaying but the data would not refresh. Looking through the
> docs it
> > > > seems that that is the expected response. changing to the Service
> > > > request I can look through firebug and see that the request is
being
> > > > made and that the server is returning the proper xml but now the
> > > > TileList is not displaying any information.
> > > >
> > > > I have tried to look through the docs to see what might be the
cause
> > > > but not solution has presented itself.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > __
> > > > Looking for last minute shopping deals?
> > > > Find them fast with Yahoo! Search.
> > >
> http://tools.search.yahoo.com/newsearch/category.php?category=shopping 
> > >
> <http://tools.search.yahoo.com/newsearch/category.php?category=shopping>
> > > >
> > >
> > >
> >
>




[flexcoders] Re: XML List problems

2008-01-10 Thread markcavins
This is the XML output for each asset


333CCC
abc232

0052
Standard
STANDARD

1946
Home
0

GMC

12/10/2002
−




1325465465





All I am looking for is just that asset name.




--- In flexcoders@yahoogroups.com, Alger Werft <[EMAIL PROTECTED]> wrote:
>
> To clarify:
>
http://livedocs.adobe.com/labs/flex3/langref/mx/rpc/http/mxml/HTTPService.html
> 
> There's a lastResult property but no result!
> 
> There's a result event which is fired when the HTTP response is loaded.
> This event has a result property.
>
http://livedocs.adobe.com/labs/flex3/langref/mx/rpc/events/ResultEvent.html
> 
> 
> What's the structure of your XML?
> 
> 
> markcavins schrieb:
> >
> > In that case I get the following error
> >
> > 1119: Access of possibly undefined property result through a reference
> > with static type mx.rpc.http.mxml:HTTPService.
> >
> > --- In flexcoders@yahoogroups.com 
> > <mailto:flexcoders%40yahoogroups.com>, Sheriff  wrote:
> > >
> > > it shouldnt be tempXML.lastResult, instead tempXML.result
> > >
> > >
> > > - Original Message 
> > > From: markcavins 
> > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> > > Sent: Thursday, January 10, 2008 3:40:58 PM
> > > Subject: [flexcoders] XML List problems
> > >
> > > I have had some help from some others on this issue but the battle
> > > continues and I am perplexed as to why this might be happening.
> > >
> > > I am grabbing a HTTPService from my site
> > >
> > >  > > url="https://mysite. net/interface. php?action= showopen&
> > amp;operation= showassets& amp;format= xml&opstatus =crit"
> > > />
> > >
> > > and displaying it in a TileList
> > >
> > >  > > width="344" backgroundColor= "#00" color="#ff" fontSize="27"
> > > borderColor= "#00" columnWidth= "300" rowHeight="50"
> > > themeColor=" #808080" fontWeight=" bold" allowMultipleSelect
ion="true"
> > > id="TileList1" height="0" y="202" x="178"/>
> > >
> > > and then refreshing the data every 5 minutes or when a user pushes a
> > > button.
> > >
> > > before I was trying to call the data with a mx:XML and the data was
> > > displaying but the data would not refresh. Looking through the
docs it
> > > seems that that is the expected response. changing to the Service
> > > request I can look through firebug and see that the request is being
> > > made and that the server is returning the proper xml but now the
> > > TileList is not displaying any information.
> > >
> > > I have tried to look through the docs to see what might be the cause
> > > but not solution has presented itself.
> > >
> > >
> > >
> > >
> > >
> > >
> > __
> > > Looking for last minute shopping deals?
> > > Find them fast with Yahoo! Search.
> >
http://tools.search.yahoo.com/newsearch/category.php?category=shopping 
> >
<http://tools.search.yahoo.com/newsearch/category.php?category=shopping>
> > >
> >
> >
>




[flexcoders] Re: Dynamic URLs

2008-01-10 Thread markcavins
Thank you Justin that worked great.


--- In flexcoders@yahoogroups.com, "Justin Raymond" <[EMAIL PROTECTED]> wrote:
>
> Hey Mark,
>  
> You can use the following:
>  
> var request:URLRequest = new URLRequest("test.htm");
>  request.method = URLRequestMethod.GET;
>  var urlVars : URLVariables = new URLVariables();
>  urlVars.username = "theUsername";
>  request.data = urlVars; 
>  navigateToURL(request,"_blank");
>  
> Just substitute your own vars in where appropriate.
> 
> Cheers
> 
> Justin
> 
>  
> 
> ________
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of markcavins
> Sent: Friday, 11 January 2008 8:55 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Dynamic URLs
> 
> 
> 
> Is there a way to take the results from form data services
> 
>  showBusyCursor="true" method="POST"
> url="https://cfg0013.zonarsystems.net/interface.php
> <https://cfg0013.zonarsystems.net/interface.php> " useProxy="false">
> 
> 
> {customer.text}
> 
> 
> {username.text}
> 
> 
> {password.text}
> 
> 
> 
> 
> and use it to dyanamically populate a url
> 
> https://{customer.text}.mysite.net/interface.php?action=showopen&ope
> ration=showassets&format=xml&opstatus=crit&username={usernam
> e.text}&password={password.text}
> 
> I know how to do this in most other languages but I am completely noob
> when it comes to Flex/Flash action script and I'm not quite sure how
> you would set this up but I only want to make this app once so that
> any customer can login and get information on their own information.
> 
> 
> 
>  
> 
>
#
> Note:
> 
> This correspondence and any files transmitted with it are
confidential. If you
> are not the intended recipient, you must not disclose or use the
information
> contained in it. Any opinions expressed in this correspondence are
those of the
> individual sender, except where the sender expressly, and with
authority, states
> them to be the opinions of ABBOTSLEIGH.
> 
> If you have received this correspondence in error please notify
Abbotsleigh
> immediately by phone (612 9473 7900) or email ([EMAIL PROTECTED]).
> Neither the sender nor ABBOTSLEIGH warrants that any communication
via the Internet
> is free of errors, viruses, interception or interference.
Information is distributed
> without warranties of any kind. 
>
#
>




[flexcoders] Dynamic URLs

2008-01-10 Thread markcavins
Is there a way to take the results from form data services

https://cfg0013.zonarsystems.net/interface.php"; useProxy="false">


{customer.text}


{username.text}


{password.text}




and use it to dyanamically populate a url

https://{customer.text}.mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit&username={username.text}&password={password.text}

I know how to do this in most other languages but I am completely noob
when it comes to Flex/Flash action script and I'm not quite sure how
you would set this up but I only want to make this app once so that
any customer can login and get information on their own information.





[flexcoders] Re: XML List problems

2008-01-10 Thread markcavins
In that case I get the following error


1119: Access of possibly undefined property result through a reference
with static type mx.rpc.http.mxml:HTTPService.  


--- In flexcoders@yahoogroups.com, Sheriff <[EMAIL PROTECTED]> wrote:
>
> it shouldnt be tempXML.lastResult, instead tempXML.result
> 
> 
> - Original Message ----
> From: markcavins <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Thursday, January 10, 2008 3:40:58 PM
> Subject: [flexcoders] XML List problems
> 
> I have had some help from some others on this issue but the battle
> continues and I am perplexed as to why this might be happening.
> 
> I am grabbing a HTTPService from my site
> 
>  url="https://mysite. net/interface. php?action= showopen&
amp;operation= showassets& amp;format= xml&opstatus =crit"
> />
> 
> and displaying it in a TileList
> 
>  width="344" backgroundColor= "#00" color="#ff" fontSize="27"
> borderColor= "#00" columnWidth= "300" rowHeight="50"
> themeColor=" #808080" fontWeight=" bold" allowMultipleSelect ion="true" 
> id="TileList1" height="0" y="202" x="178"/>
> 
> and then refreshing the data every 5 minutes or when a user pushes a
> button.
> 
> before I was trying to call the data with a mx:XML and the data was
> displaying but the data would not refresh. Looking through the docs it
> seems that that is the expected response. changing to the Service
> request I can look through firebug and see that the request is being
> made and that the server is returning the proper xml but now the
> TileList is not displaying any information.
> 
> I have tried to look through the docs to see what might be the cause
> but not solution has presented itself.
> 
> 
> 
> 
> 
>  

> Looking for last minute shopping deals?  
> Find them fast with Yahoo! Search. 
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>




[flexcoders] XML List problems

2008-01-10 Thread markcavins
I have had some help from some others on this issue but the battle
continues and I am perplexed as to why this might be happening.

I am grabbing a HTTPService from my site

https://mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit";
/>

and displaying it in a TileList



and then refreshing the data every 5 minutes or when a user pushes a
button.

before I was trying to call the data with a mx:XML and the data was
displaying but the data would not refresh. Looking through the docs it
seems that that is the expected response. changing to the Service
request I can look through firebug and see that the request is being
made and that the server is returning the proper xml but now the
TileList is not displaying any information.

I have tried to look through the docs to see what might be the cause
but not solution has presented itself.





[flexcoders] Re: Using HTTPService with a TileList

2008-01-10 Thread markcavins
Thanks for the help. However, doing that now I see no data at all in
the list.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> {tempXML.lastResult.asset.fleet}
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of markcavins
> Sent: Thursday, January 10, 2008 11:03 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Using HTTPService with a TileList
> 
>  
> 
> 
> Thank your Abdul for taking a look at my problem. this fixed one of
> the two errors but it is still hating my TileList
> 
>  width="344" backgroundColor="#00" color="#ff" fontSize="27"
> borderColor="#00" columnWidth="300" rowHeight="50"
> themeColor="#808080" fontWeight="bold" allowMultipleSelection="true" 
> id="TileList1" height="0" y="202" x="178"/>
> 
> 
> it is still returning 
> 
> 1119: Access of possibly undefined property asset through a reference
> with static type mx.rpc.http.mxml:HTTPService.
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Abdul Qabiz"  wrote:
> >
> > click="HTTPService.send()"/>
> > 
> > It should be:-
> > 
> > click="tempXML.send ()"
> > 
> > 
> > -abdul
> > 
> > On Jan 10, 2008 11:24 PM, markcavins  wrote:
> > 
> > > I have also tried to change the way that I get the data to
> > >
> > > Code:
> > >
> > >  > > url="
> > >
> https://mysite.net/interface.php?action=showopen&operation=showasset
> s&a\
> <https://mysite.net/interface.php?action=showopen&operation=showasse
> ts&a> > >
> mp;format=xml&opstatus=defect&rand=12345645647<https://mysite.ne
> t/interface.php?action=showopen&operation=showassets&format=xml&opstatus
> =defect&rand=12345645647
> <https://mysite.net/interface.php?action=showopen&operation=showassets&f
> ormat=xml&opstatus=defect&rand=12345645647> >
> > > "
> > > >
> > >
> > >  > > width="344" backgroundColor="#00" color="#ff" fontSize="27"
> > > borderColor="#00" columnWidth="300" rowHeight="50"
> > > themeColor="#808080" fontWeight="bold" allowMultipleSelection="true"
> > > id="TileList1" height="0" y="202" x="178"/>
> > >
> > >  > > borderColor="#DCDEDF" click="HTTPService.send()"/>
> > >
> > > but now I'm getting 2 errors
> > >
> > > 1061: Call to a possibly undefined method send through a reference
> > > with static type Class.
> > >
> > > 1119: Access of possibly undefined property asset through a
> reference
> > > with static type mx.rpc.http.mxml:HTTPService.
> > >
> > > I am trying to find the reason for that problem it seems it doesn't
> > > like the services being used with the TileList. Still trying to see
> > > what's going on now.
> > >
> > > 
> > >
> > 
> > 
> > 
> > -- 
> > -abdul
> > ---
> > http://abdulqabiz.com/blog/ <http://abdulqabiz.com/blog/> 
> > ---
> >
>




[flexcoders] Re: Massive Error for login script

2008-01-10 Thread markcavins
Thank you Abdul for your reply to this problem. 

If I copy and paste the url I still get the popup but as soon as I
enter the user and password it will let me through. But If I go
through the flex app then it will never validate and I will have to
click cancel which throws a 403 error. 

My goal is to try and have flex control the browser and let flex
control 403's and so on. I have read your blog post on controlling
HTTP requests but have not been able to get it to work.

Any other ideas that you have would be great.



--- In flexcoders@yahoogroups.com, "Abdul Qabiz" <[EMAIL PROTECTED]> wrote:
>
> Probably, your login script on server-side is throwing some error
when it
> sees the wrong data...
> 
> What happens, if you copy paste URL in browser (not in flex app):-
> 
>
https://mysite.net/interface.php?password=pass&customer=34343&username=wrong_name<https://mysite.net/interface.php?password=pass&customer=13&username=uzernamz>
> 
> Do you see any error?
> 
> 
> BTW! Just a suggestion, nothing to do with this problem, it's not
good idea
> to use HTTP/GET for this purpose. Use POST method in HTTPService and
also
> modify the php to use $_POST or $_REQUEST (works for both GET and
POST but
> it's good to use the specific ones).
> 
> -abdul
> 
> On Jan 10, 2008 11:57 PM, markcavins <[EMAIL PROTECTED]> wrote:
> 
> >   Hello,
> >
> > I am having a major problem with my login script. When a user enters
> > information correctly there is not problem. if a user enters in the
> > wrong customer name I get the expected popup that says enter your
> > customer #. However if the username or customer name is wrong the
> > browser pops up a warning (set by a serverside js warning used by
> > other programs) and I get the following error
> >
> > [RPC Fault faultString="HTTP request error"
> > faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent
> > type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error
> > #2032: Stream Error. URL:
> >
> >
https://mysite.net/interface.php?password=pass&customer=13&username=uzernamz
> > "].
> > URL: https://mysite.net/interface.php";]
> > at
> > mx.rpc::AbstractInvoker/
> > http://www.adobe.com/2006/flex/mx/internal::faultHandler
> >
()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:211]
> > at
> > mx.rpc::Responder/fault
> >
()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\rpc\Responder.as:56]
> > at
> > mx.rpc::AsyncRequest/fault
> >
()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:110]
> > at
> >
> >
DirectHTTPMessageResponder/errorHandler()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:343]
> > at flash.events::EventDispatcher/dispatchEventFunction()
> > at flash.events::EventDispatcher/dispatchEvent()
> > at flash.net::URLLoader/redirectEvent()
> >
> > I have read articals like judah's blog I am still stumped how to fix
> > this issue.
> >
> >  
> >
> 
> 
> 
> -- 
> -abdul
> ---
> http://abdulqabiz.com/blog/
> ---
>




[flexcoders] Re: Using HTTPService with a TileList

2008-01-10 Thread markcavins

Thank your Abdul for taking a look at my problem. this fixed one of
the two errors but it is still hating my TileList




it is still returning 

1119: Access of possibly undefined property asset through a reference
with static type mx.rpc.http.mxml:HTTPService.


--- In flexcoders@yahoogroups.com, "Abdul Qabiz" <[EMAIL PROTECTED]> wrote:
>
>  click="HTTPService.send()"/>
> 
> It should be:-
> 
> click="tempXML.send ()"
> 
> 
> -abdul
> 
> On Jan 10, 2008 11:24 PM, markcavins <[EMAIL PROTECTED]> wrote:
> 
> >   I have also tried to change the way that I get the data to
> >
> > Code:
> >
> >  > url="
> >
https://mysite.net/interface.php?action=showopen&operation=showassets&a\
> >
mp;format=xml&opstatus=defect&rand=12345645647<https://mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=defect&rand=12345645647>
> > "
> > >
> >
> >  > width="344" backgroundColor="#00" color="#ff" fontSize="27"
> > borderColor="#00" columnWidth="300" rowHeight="50"
> > themeColor="#808080" fontWeight="bold" allowMultipleSelection="true"
> > id="TileList1" height="0" y="202" x="178"/>
> >
> >  > borderColor="#DCDEDF" click="HTTPService.send()"/>
> >
> > but now I'm getting 2 errors
> >
> > 1061: Call to a possibly undefined method send through a reference
> > with static type Class.
> >
> > 1119: Access of possibly undefined property asset through a reference
> > with static type mx.rpc.http.mxml:HTTPService.
> >
> > I am trying to find the reason for that problem it seems it doesn't
> > like the services being used with the TileList. Still trying to see
> > what's going on now.
> >
> >  
> >
> 
> 
> 
> -- 
> -abdul
> ---
> http://abdulqabiz.com/blog/
> ---
>




[flexcoders] Massive Error for login script

2008-01-10 Thread markcavins
Hello,

I am having a major problem with my login script. When a user enters
information correctly there is not problem. if a user enters in the
wrong customer name I get the expected popup that says enter your
customer #. However if the username or customer name is wrong the
browser pops up a warning (set by a serverside js warning used by
other programs) and I get the following error

[RPC Fault faultString="HTTP request error"
faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent
type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error
#2032: Stream Error. URL:
https://mysite.net/interface.php?password=pass&customer=13&username=uzernamz";].
URL: https://mysite.net/interface.php";]
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:211]
at
mx.rpc::Responder/fault()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\rpc\Responder.as:56]
at
mx.rpc::AsyncRequest/fault()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:110]
at
DirectHTTPMessageResponder/errorHandler()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:343]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/redirectEvent()

I have read articals like judah's blog I am still stumped how to fix
this issue.



[flexcoders] Using HTTPService with a TileList

2008-01-10 Thread markcavins
I have also tried to change the way that I get the data to

Code:

https://mysite.net/interface.php?action=showopen&operation=showassets&a\
mp;format=xml&opstatus=defect&rand=12345645647"
>






but now I'm getting 2 errors


1061: Call to a possibly undefined method send through a reference
with static type Class.

1119: Access of possibly undefined property asset through a reference
with static type mx.rpc.http.mxml:HTTPService.


I am trying to find the reason for that problem it seems it doesn't
like the services being used with the TileList. Still trying to see
what's going on now.




[flexcoders] Re: Resetting data

2008-01-09 Thread markcavins
Thanks for the response. I took a look at the docs and some other
sites and made some of the changes

https://mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=defect&rand=12345645647";
>







but now I'm getting 2 errors 


1061: Call to a possibly undefined method send through a reference
with static type Class. 

1119: Access of possibly undefined property asset through a reference
with static type mx.rpc.http.mxml:HTTPService.  


I am trying to find the reason for that problem it seems it doesn't
like the services being used with the TileList. Still trying to see
what's going on now.



--- In flexcoders@yahoogroups.com, Alger Werft <[EMAIL PROTECTED]> wrote:
>
> Use  to load the XML.
> 
> Take a look at 
>
http://livedocs.adobe.com/flex/2/langref/mx/rpc/http/mxml/HTTPService.html#includeExamplesSummary
> 
> When clicking the button, call httpService.send() again.
> 
> 
> Alger
> 
> 
> markcavins wrote:
> > 
> > 
> > Hello,
> > 
> > I am trying to reset the data when a user clicks on a button but have
> > made no headway on getting this done
> > 
> > at first I create the initial view
> > 
> >  >
source="https://mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=defect

> >
<https://mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=defect>"
> > />
> > 
> >  > width="344" backgroundColor="#00" color="#ff" fontSize="27"
> > borderColor="#00" columnWidth="300" rowHeight="50"
> > themeColor="#808080" fontWeight="bold" allowMultipleSelection="true"
> > id="TileList1" height="0" y="202" x="178"/>
> > 
> > 
> > All of my data shows up and everthing here is hunky dory. However,
> > when I click on the button to update
> >
https://mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=defect

> >
<https://mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=defect>
> > (Users make repairs from a separate website this applications simply
> > sits in a room and the user can click a button to see if their repairs
> > are done or not or else a 5 minute timer will also update the page).
> > 
> > all I need to do is completly refresh this url source so people can
> > see if the repair is done or not and I can not get the page to repost
> > the data.
> > 
> > I have tried to use refresh and I get the following error
> > 
> > 3594: refresh is not a recognized method of the dynamic class XML.
> > 
> > I am totally a noob at this and have read way too many tutorials and I
> > still don't get the way to get this accomplished. I would appreciate
> > any help anyone could give.
> > 
> >
>




[flexcoders] Resetting data

2008-01-09 Thread markcavins
Hello,

I am trying to reset the data when a user clicks on a button but have
made no headway on getting this done

at first I create the initial view

https://mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=defect";
/>




All of my data shows up and everthing here is hunky dory. However,
when I click on the button to update
https://mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=defect
(Users make repairs from a separate website this applications simply
sits in a room and the user can click a button to see if their repairs
are done or not or else a 5 minute timer will also update the page).

all I need to do is completly refresh this url source so people can
see if the repair is done or not and I can not get the page to repost
the data. 

I have tried to use refresh and I get the following error

3594: refresh is not a recognized method of the dynamic class XML.  

I am totally a noob at this and have read way too many tutorials and I
still don't get the way to get this accomplished. I would appreciate
any help anyone could give.





[flexcoders] resetting XMLListCollection information

2008-01-08 Thread markcavins
Ok this whole thing goes to the fact that I never reset the list in
the first place.

So what I need to do is take the list

private function resetForm():void{


tempXML.asset = false; //clear it I could also us tempXML.asset =
newXMLListCollection(tempXML.asset); either way it clears it
tempXML.asset = tempXML.asset; //redisplay it



}

This will definatley clear out the old list but now I need a way to
recall the same list from the


https://mysite.net/interface.php?action=showopen&operation=showasset\
s&format=xml&opstatus=defect"
/>




and I'm not quite sure how to do this



[flexcoders] Re: caching issues

2008-01-08 Thread markcavins
Ok this whole thing goes to the fact that I never reset the list in
the first place. 

So what I need to do is take the list

   private function resetForm():void{


tempXML.asset = false; //clear it I could also us tempXML.asset =
newXMLListCollection(tempXML.asset); either way it clears it
   tempXML.asset = tempXML.asset; //redisplay it
   
  

}

This will definatley clear out the old list but now I need a way to
recall the same list from the 


https://mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=defect";
/>

and I'm not quite sure how to do this




[flexcoders] Re: caching issues

2008-01-08 Thread markcavins
In addition I have been looking in the adobe docs and have augmented
the script (to no avail) 

  private function resetForm():void{
var loader:URLLoader = new URLLoader();
configureListeners(loader);
var header:URLRequestHeader = new URLRequestHeader("pragma",
"no-cache");
var request:URLRequest = new
URLRequest("https://mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit";);
request.requestHeaders.push(header);

try{
tempXML.asset = tempXML.asset;
}catch (error:Error){
trace ("Service unavailble try back in a moment");
}
}

   private function
configureListeners(dispatcher:IEventDispatcher):void {
dispatcher.addEventListener(Event.COMPLETE, completeHandler);
dispatcher.addEventListener(Event.OPEN, openHandler);
dispatcher.addEventListener(ProgressEvent.PROGRESS,
progressHandler);
   
dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
securityErrorHandler);
dispatcher.addEventListener(HTTPStatusEvent.HTTP_STATUS,
httpStatusHandler);
dispatcher.addEventListener(IOErrorEvent.IO_ERROR,
ioErrorHandler);
}

private function completeHandler(event:Event):void {
var loader:URLLoader = URLLoader(event.target);
trace("completeHandler: " + loader.data);
}

private function openHandler(event:Event):void {
trace("openHandler: " + event);
}

private function progressHandler(event:ProgressEvent):void {
trace("progressHandler loaded:" + event.bytesLoaded + "
total: " + event.bytesTotal);
}

private function
securityErrorHandler(event:SecurityErrorEvent):void {
trace("securityErrorHandler: " + event);
}

private function httpStatusHandler(event:HTTPStatusEvent):void {
trace("httpStatusHandler: " + event);
}

private function ioErrorHandler(event:IOErrorEvent):void {
trace("ioErrorHandler: " + event);
}


]]>
 

--- In flexcoders@yahoogroups.com, "markcavins" <[EMAIL PROTECTED]> wrote:
>
> This is how I am currently getting the service
> 
>private function resetForm():void{
> 
>   var header:URLRequestHeader = new URLRequestHeader("pragma",
> "no-cache");
> var request:URLRequest = new
>
URLRequest("https://mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit";);
> request.requestHeaders.push(header);
>   
> tempXML.asset = tempXML.asset;
> }
> but this is refreshing the layout and any clicked information on the
> onclick event but the information is not updating.
> 
> 
> 
> Here is the services as well
> 
>showBusyCursor="true" method="GET"
> url="https://mysite.net/interface.php"; >
>   
>   
>   {customer.text}
>   
>   
>   {username.text}
>   
>   
>   {password.text}
>   
>   
>   
> 
> --- In flexcoders@yahoogroups.com, "mitek17"  wrote:
> >
> > Hi Mark,
> > 
> > In your PHP code remove all header control commands and just use the
> > following:
> > 
> > header('Pragma: bogus');
> > header('Cache-control: bogus');
> > 
> > IE has problem understanding Cache-control header, so you should just
> > override it with something irrelevant.
> > 
> > PS And don't use Expires header - from my experience it does not work
> > as well.
> > 
> > Cheers!
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "markcavins"  wrote:
> > >
> > > Hello, 
> > > 
> > > 
> > > I am having problems getting my flex application to refresh data
once
> > > it has been updated on the server side and believe it is a caching
> > issue.
> > > 
> > > In my PHP I set the caching to no cache
> > > 
> > > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");  //
Date in
> > > the past
> > > header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); //
> > > always modified
> > > header("Cache-Control: no-cache, must-revalidate");//
> HTTP/1.1 
> > > 
> > > but the flash player doesn't seem to respect it.
> > > 
> > > I have written a function in as that I believe I would have to
add the
> > > caching into
> > > 
> > >   private function resetForm():void{
> > > 
> > >   
> > >   
> > > tempXML.asset = tempXML.asset;
> > > }
> > > 
> > > 
> > > however I'm still a noob and not sure how to get it going.
> > > 
> > > Any help would be great.
> > >
> >
>




[flexcoders] Re: caching issues

2008-01-08 Thread markcavins
This is how I am currently getting the service

   private function resetForm():void{

var header:URLRequestHeader = new URLRequestHeader("pragma",
"no-cache");
var request:URLRequest = new
URLRequest("https://mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit";);
request.requestHeaders.push(header);

tempXML.asset = tempXML.asset;
}
but this is refreshing the layout and any clicked information on the
onclick event but the information is not updating.



Here is the services as well

https://mysite.net/interface.php"; >


{customer.text}


{username.text}


{password.text}




--- In flexcoders@yahoogroups.com, "mitek17" <[EMAIL PROTECTED]> wrote:
>
> Hi Mark,
> 
> In your PHP code remove all header control commands and just use the
> following:
> 
> header('Pragma: bogus');
> header('Cache-control: bogus');
> 
> IE has problem understanding Cache-control header, so you should just
> override it with something irrelevant.
> 
> PS And don't use Expires header - from my experience it does not work
> as well.
> 
> Cheers!
> 
> 
> --- In flexcoders@yahoogroups.com, "markcavins"  wrote:
> >
> > Hello, 
> > 
> > 
> > I am having problems getting my flex application to refresh data once
> > it has been updated on the server side and believe it is a caching
> issue.
> > 
> > In my PHP I set the caching to no cache
> > 
> > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");  // Date in
> > the past
> > header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); //
> > always modified
> > header("Cache-Control: no-cache, must-revalidate");//
HTTP/1.1 
> > 
> > but the flash player doesn't seem to respect it.
> > 
> > I have written a function in as that I believe I would have to add the
> > caching into
> > 
> >   private function resetForm():void{
> > 
> > 
> > 
> > tempXML.asset = tempXML.asset;
> > }
> > 
> > 
> > however I'm still a noob and not sure how to get it going.
> > 
> > Any help would be great.
> >
>




[flexcoders] Controlling browser http results with flex

2008-01-08 Thread markcavins
Hello all,

I am working on an app and I am having some problems with the way ff
is reacting to a login form that I have made in flex to get to some
customer information. I have figured out that when a customer enters
the wrong customer number my flex app will display the proper error
message but when the username or password is entered the browser (by
means of a server request used by other programs) will display a JS
popup to reenter the username and password but it will never validate
them this way (a problem of them interacting with Flex? not sure). all
the user can do is to click the cancel button which will return a 403
error which cruds out the flash player (both an XML response and HTML
page are sent). 

What I would like to accomplish is to give Flex control of how the
browser handles http responses. I have read the tutorial by Abdule

http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/http_authentica.php
(for some reason the link wasn't working this morning)

which is set up for flash but is there a way to append this to a more
Flexy enviro?





[flexcoders] Re: caching issues

2008-01-08 Thread markcavins
this is how I am getting the url

https://cfg0013.zonarsystems.net/interface.php"; >


{customer.text}


{username.text}


{password.text}





I'm not seeing where I could append it in that situation.

This is where I am resetting the form

   private function resetForm():void{



tempXML.asset = tempXML.asset;
}

Would I need to add a new url?


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Append it to the Url before you call the data service.
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of markcavins
> Sent: Monday, January 07, 2008 7:15 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: caching issues
> 
>  
> 
> But where would you put this? this is the issue that is getting me
> confused is where to handle the url
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Tracy Spratt"  wrote:
> >
> > The server side solution is iffy. The most reliable solution is to
> > append some unique string to the Url. Some folks use Math.random, but
> > more have had success using Date.getTime()
> > 
> > Tracy
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of markcavins
> > Sent: Monday, January 07, 2008 7:03 PM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] caching issues
> > 
> > 
> > 
> > Hello, 
> > 
> > I am having problems getting my flex application to refresh data once
> > it has been updated on the server side and believe it is a caching
> > issue.
> > 
> > In my PHP I set the caching to no cache
> > 
> > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in
> > the past
> > header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); //
> > always modified
> > header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 
> > 
> > but the flash player doesn't seem to respect it.
> > 
> > I have written a function in as that I believe I would have to add the
> > caching into
> > 
> > private function resetForm():void{
> > 
> > 
> > 
> > tempXML.asset = tempXML.asset;
> > }
> > 
> > 
> > however I'm still a noob and not sure how to get it going.
> > 
> > Any help would be great.
> >
>




[flexcoders] Re: caching issues

2008-01-08 Thread markcavins
Thanks for the advice but the issues is with FF everything works in IE.

--- In flexcoders@yahoogroups.com, "mitek17" <[EMAIL PROTECTED]> wrote:
>
> Hi Mark,
> 
> In your PHP code remove all header control commands and just use the
> following:
> 
> header('Pragma: bogus');
> header('Cache-control: bogus');
> 
> IE has problem understanding Cache-control header, so you should just
> override it with something irrelevant.
> 
> PS And don't use Expires header - from my experience it does not work
> as well.
> 
> Cheers!
> 
> 
> --- In flexcoders@yahoogroups.com, "markcavins"  wrote:
> >
> > Hello, 
> > 
> > 
> > I am having problems getting my flex application to refresh data once
> > it has been updated on the server side and believe it is a caching
> issue.
> > 
> > In my PHP I set the caching to no cache
> > 
> > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");  // Date in
> > the past
> > header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); //
> > always modified
> > header("Cache-Control: no-cache, must-revalidate");//
HTTP/1.1 
> > 
> > but the flash player doesn't seem to respect it.
> > 
> > I have written a function in as that I believe I would have to add the
> > caching into
> > 
> >   private function resetForm():void{
> > 
> > 
> > 
> > tempXML.asset = tempXML.asset;
> > }
> > 
> > 
> > however I'm still a noob and not sure how to get it going.
> > 
> > Any help would be great.
> >
>




[flexcoders] Re: caching issues

2008-01-07 Thread markcavins
But where would you put this? this is the issue that is getting me
confused is where to handle the url

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> The server side solution is iffy. The most reliable solution is to
> append some unique string to the Url.  Some folks use Math.random, but
> more have had success using Date.getTime()
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of markcavins
> Sent: Monday, January 07, 2008 7:03 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] caching issues
> 
>  
> 
> Hello, 
> 
> I am having problems getting my flex application to refresh data once
> it has been updated on the server side and believe it is a caching
> issue.
> 
> In my PHP I set the caching to no cache
> 
> header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in
> the past
> header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); //
> always modified
> header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 
> 
> but the flash player doesn't seem to respect it.
> 
> I have written a function in as that I believe I would have to add the
> caching into
> 
> private function resetForm():void{
> 
> 
> 
> tempXML.asset = tempXML.asset;
> }
> 
> 
> however I'm still a noob and not sure how to get it going.
> 
> Any help would be great.
>




[flexcoders] caching issues

2008-01-07 Thread markcavins
Hello, 


I am having problems getting my flex application to refresh data once
it has been updated on the server side and believe it is a caching issue.

In my PHP I set the caching to no cache

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");  // Date in
the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); //
always modified
header("Cache-Control: no-cache, must-revalidate");// HTTP/1.1 

but the flash player doesn't seem to respect it.

I have written a function in as that I believe I would have to add the
caching into

  private function resetForm():void{



tempXML.asset = tempXML.asset;
}


however I'm still a noob and not sure how to get it going.

Any help would be great.



[flexcoders] A problem with States

2007-12-10 Thread markcavins
I am having problems understanding how states work with a Tile List.
If I separate out the two states I get my desired output of info but
if I try to keep them all contained onto one panel I get the initial
state of a log in screen but once the panel changes then I get no info

Code:

http://www.adobe.com/2006/mxml";
layout="absolute" backgroundGradientAlphas="[1.0, 0.75]"
backgroundGradientColors="[#040404, #040404]"
initialize="getDaysUntil()" >
http://mysite.net/interface.php?username=admin&password=pass&customer=63&action=showopen&operation=defects&format=xml&critcal=both";
/>


























  

.. Other Code to for application (I would post it all but I got chided
by another member the last time I did.)

Any help would be great.

Thanks



[flexcoders] A way to Timer

2007-12-10 Thread markcavins
Hello,

I have a very functional timer here that I am using but I would like
to get some advice on how to make it better.

Code:

private function getDaysUntil():void {
// creates a new five-minute Timer
var minuteTimer:Timer = new Timer(1000, 300);

// designates listeners for the interval and completion events
minuteTimer.addEventListener(TimerEvent.TIMER, onTick);
minuteTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);

// starts the timer ticking

minuteTimer.start();
}

public function onTick(evt:TimerEvent):void {
var minuteTimer:Timer = evt.target as Timer;
lblTimeUntil.text = minuteTimer.currentCount.toString();
}

public function onTimerComplete(evt:TimerEvent):void
{
var minuteTimer:Timer = evt.target as Timer;
minuteTimer.reset();

minuteTimer.start();
}


I would like to be able to split the time into minutes and seconds.

Also I would like to get it to count down instead of up.




[flexcoders] Re: new to FLEX

2007-12-07 Thread markcavins
How do they store the data? Is it stored server side? 

--- In flexcoders@yahoogroups.com, "dengelwood" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
> 
> I am new to FLEX development, but am quite excited about the 
> possiblities of this IDE. Question: My company is using hand held USB 
> bar code scanners to enter user data into one or more text fields. Is 
> it possible in FLEX to capure such scanned data? Anything to point me 
> in the right direction would be helpful. Thanks!
> 
> rad
>




[flexcoders] Issues with my App

2007-12-07 Thread markcavins
Hello everyone,

I have been working on this little project and it is almost complete
but I am running into some problems

I will show you the code.

[CODE]

http://www.adobe.com/2006/mxml";
layout="absolute" backgroundGradientAlphas="[1.0, 1.0]"
backgroundGradientColors="[#040404, #040404]"
initialize="getDaysUntil()">
http://misitenet/interface.php?username=admin&password=pass&customer=63&action=showopen&operation=defects&format=xml&critcal=both";
/>

























  

 


  
  















https://mysite.net/interface.php"; >


{customer.text}


{username.text}


{password.text}


















[/CODE]

Now the problems I am having are the flash player I think hates the
script data for the countdown on login 

So is there a way of hiding this until they have logged in?

Also my counter is supposed to count down and right now it counts up
(besides this is there a way to format this my minutes and seconds?)

The XML List that was showing data but now with the addition of the
log in it is not showing up

And once the timer is up it should refresh all of the XML data not
just the timer.

These are the problems I am running into. If any one has any ideas I
would love to here them.

Thanks 



[flexcoders] Debugging code

2007-12-07 Thread markcavins
Hello everyone,

I have been working on this little project and it is almost complete
but I am running into some problems

I will show you the code.

[CODE]

http://www.adobe.com/2006/mxml";
layout="absolute" backgroundGradientAlphas="[1.0, 1.0]"
backgroundGradientColors="[#040404, #040404]"
initialize="getDaysUntil()">
http://misitenet/interface.php?username=admin&password=pass&customer=63&action=showopen&operation=defects&format=xml&critcal=both";
/>

























  

 


  
  















https://mysite.net/interface.php"; >


{customer.text}


{username.text}


{password.text}


















[/CODE]

Now the problems I am having are the flash player I think hates the
script data for the countdown on login 

So is there a way of hiding this until they have logged in?

Also my counter is supposed to count down and right now it counts up
(besides this is there a way to format this my minutes and seconds?)

The XML List that was showing data but now with the addition of the
log in it is not showing up

And once the timer is up it should refresh all of the XML data not
just the timer.

These are the problems I am running into. If any one has any ideas I
would love to here them.

Thanks 



[flexcoders] Taming Time and Date in Flex

2007-11-01 Thread markcavins
I am looking to find some examples to create a clock that counts down
from 3 minutes to zero and when the clock hits zero it will refresh
the application. I would also like this clock to be clickable so that
it to would refresh the app.

I have looked all over the net but have not seen any time/date
examples anywhere.

any help would be great



[flexcoders] Help with XML Data

2007-10-30 Thread markcavins
Ok so here's the skinny:

I have this flex app that works fine

http://www.adobe.com/2006/mxml";
layout="absolute" width="100%" viewSourceURL="srcview/index.html">



 http://development.company.net/interface.php?username=user&password=pass&customer=customer&action=showopen&operation=defects&format=xml&critcal=both";
/>


 
   
   
   
   
   
   
   
   
   

   


However they now want to just display the asset and not in a data grid
but as a horizontal list and I have tried and tried to look for an
effective example of this and how to make it work.
I have tried Horizontal List, Vertical List, HBox, and VBox but all I
want the thing to do for now is to just display data 
Horizontally.

any help would be great