Re: [flexcoders] Re: How to debug PHP side in AIR applications?

2011-08-09 Thread Pete

Hi there,

I use Nusphere PHPEd and when set up properly it works well, every 
time.  This is using amfphp to make remote procedure calls btw.  It can 
be on a remote server, with the dbg extension installed, or on localhost 
(I use xampp).


I have found that the only safe way to break into the code is to put a 
debugbreak() command in, I don't know what happens, but when the command 
is executed, it seems to try really hard to find the debugger!  Works 
with cli php code too, even if it's run from the command line.


Unfortunately it costs money...

But the final environment, stepping through client side as3 on one 
screen and server side php on the other is pretty productive and well 
worth the small outlay.


Regards,
Pete

On 09/08/2011 13:15, enridp wrote:


Hi johannes, I think I can't catch what you said, my projects are 
separated of course, but the problem, from what I see, is that the PHP 
debugger needs a browser (because it adds a lot of query strings for 
sessions and php debugging).
In AIR we don't have any browser, I have my PHP project, I have 
breakpoints in the PHP project of course too, even more, I have my AIR 
project linked with my PHP project in FB 4.5 for PHP.

But the PHP debug doesn't work with AIR

Did you tested it?
I mean, are you debugging PHP in AIR applications?

--- In flexcoders@yahoogroups.com 
mailto:flexcoders%40yahoogroups.com, Johannes Nel johannes.nel@... 
wrote:


 split your projects, put a break point in the php code.

 On Mon, Aug 8, 2011 at 8:08 PM, enridp enridp@... wrote:

  **
 
 
  Hi ! I think I can't explain it better than my subject :)
 
  Flash Builder 4.5 for PHP it's wonderful for debugging both, Flex 
and PHP

  side at the same time, but it doesn't work with AIR applications.
 
  Does somebody know a workaround for this?
 
 
 



 --
 j:pn
 \\no comment





Re: [flexcoders] Could AIR create an automation app?

2011-08-08 Thread Pete
In short, I don't think so, you are pretty much in a sand box as you run 
an Air app. I haven't checked the state of play with 4.5, things have 
maybe improved.


I think that Adobe are terrified that someone will write a virus in 
Air!  So they keep you away from all that system level stuff...  All a 
little bit nanny state to my mind, Air should have access to the system 
to be a viable language IMO, no-one blames Microsoft for all the VB 
malware out there!


I mentioned FlourineFX as a last week, it provides access to .NET but I 
think it only works on Windows (although it is compatible with Mono).  
Might be a way to do it?  I'm not a .NET guy so don't know what's in 
there :)


Regards,
Pete



On 08/08/2011 05:07, MicC wrote:


Does AIR have enough hooks to the os to create an automation app? 
Programs like Automate and WinAutomation script mouse position and 
clicks to control an app's gui, and Automate automatically recognizes 
menus and buttons etc if the app to be controlled conforms to 
something - not sure what.


I really need the power of actionscript to control a widget intensive 
music gui. TIA,


Mic.




Re: [flexcoders] Launch a .bat

2011-08-05 Thread Pete
Actually, there was something nagging at me all day yesterday and I 
remembered what it was today.


There is a windows specific way maybe...  Might only work in Air...

Check out
http://www.fluorinefx.com/

I use it to do AutoDial on voip phones using the appropriate command 
line options.  I guess it'd do a batch file too.  Windows specific 
because it needs you to install some dll's.


Regards
Pete

On 03/08/2011 15:54, cjacquel73 wrote:


Hello,

Is it possible to launch a .bat from the web application in Flex ?

Thx,
Chris,




Re: [flexcoders] Launch a .bat

2011-08-03 Thread Pete
I think you'd need to install a protocol handler in a web browser and use 
gotourl to go to that protocol.

I've used the same technique to start scripts on a mac at the client... It's a 
pain, you need to do it even in Adobe Air.

Regards,
Pete 

cjacquel73 chjacque...@gmail.com wrote:

Hello,

Is it possible to launch a .bat from the web application in Flex ?

Thx,
Chris,




Re: [flexcoders] out of office

2010-06-08 Thread Pete

Lol - real soon!

I've put you in my blocked list for now!

Pete

On 08/06/10 10:33, Ignacio Romero Colomo wrote:


Hope you come back soon

On 8 June 2010 10:29, m...@thewebforge.co.uk 
mailto:m...@thewebforge.co.uk wrote:


I will be running a training course on 8 June and will have no
email access. Please accept my apologies for any slow response.
Many thanks

Matt Wicks





Re: [flexcoders] Installed Flash Player Is Not a Debugger

2009-11-19 Thread Pete
I get that on Windows too, same scenario FB3 and debugging flash player 
v10, I usually have to restart FB to make it go away.  Happens 
intermittently after a long (all day) programming session, memory leak 
maybe?


Pete


Joel Stransky wrote:
 


Everytime I debug in Flex Builder I get this alert box.

/Library/Internet Plug-Ins/Flash Player.plugin

Flex Builder cannot locate the required debugger version of Flash 
Player. You might need to install the debugger version of Flash Player 
9 or reinstall Flex Builder.


Do you want to try to debug with the current version?

But I have FP10 debugger installed. I'm using OSX Snow Leopard.
How do I fix this?

--
--Joel Stransky
stranskydesign.com http://stranskydesign.com






Re: [flexcoders] sdk 3.4 with flex builder 3

2009-11-13 Thread Pete

Hi there,

I assume you can't use the ADG since you upgraded your SDK?

If so, look here: -
http://old.nabble.com/Flex-3.3-SDK-and-AdvancedDataGrid-td22321220.html

It's for 3.3, but the principal is the same.  I copied the libs from my 
old sdk for ages, rather than downloading new.


Sorry I can't find anything else now, am mid office move!

HTH
Pete


flexdev wrote:
 

After I switched to sdk 3.4 from 3.2 with flex builder 3, I am getting 
an error on AdvancedDataGrid. Is there any way to resolve this error?







Re: [flexcoders] AMFPHP problem

2009-11-11 Thread Pete
As you probably know, NetConnection.Call.BadVersion means that an error 
was thrown in the php script, usually a syntax error, but your script 
runs fine on other servers.


I would suspect something in the php config on the server is causing you 
trouble.


I have the same problem every time I move to a new server because I try 
and transfer too much info and not enough memory is allocated ro running 
php scripts on the server.


Check your php.ini

HTH
Pete

gotgoose09 wrote:
 

I have been running my Flex applications just fine on my local 
computer and a remote server. I have been tasked with transferring 
them to a new server. Now whenever I execute a RemoteObject call I get


[RPC Fault faultString=Send failed 
faultCode=Client.Error.MessageSend 
faultDetail=Channel.Connect.Failed error 
NetConnection.Call.BadVersion: : url: 
'https://server/path/to/gateway.php 
https://server/path/to/gateway.php']


I know my PHP code works locally. I know it works on the old server. 
Even the AMFPHP service browser does not work and gives me the same 
issue. I know that the gateway.php works since I can view it in a web 
browser with no errors. I am wondering if the HTTPS is causing the 
problem, but I'm not sure.


What can I do to solve this or figure out how to solve this? Any help 
would be greatly appreciated!


- Ben






Re: [flexcoders] Re: AMFPHP problem

2009-11-11 Thread Pete
A quick check of my php.ini file and a default one, I spotted the 
following differences: -


max_execution_time = 1200 ; Maximum execution time of each script, 
in seconds
max_input_time = 1200; Maximum amount of time each script may spend 
parsing request data
memory_limit = 256M  ; Maximum amount of memory a script may consume 
(16MB)

implicit_flush = On
output_buffering = Off
post_max_size = 64M
upload_max_filesize = 64M ; I think this was done to enable an upload 
routine to work, not to allow amfphp to run


Also noticed [eAccelerator] block which was commented out, but I think 
that was so I could develop on this box, I think it's OK on deployment 
(though watch the memory again).


Please note that none of this is fine tuned, I tried it, it worked, I 
left it alone!  There was enough RAM on the servers in question to run 
with these settings...  Looking again, those execution times look way to 
big...


Regards,
Pete



gotgoose09 wrote:
 

So you would suggest increasing the memory allocation for scripts in 
php.ini? Are there any other settings I should check?


--- In flexcoders@yahoogroups.com 
mailto:flexcoders%40yahoogroups.com, Pete pe...@... wrote:


 As you probably know, NetConnection.Call.BadVersion means that an error
 was thrown in the php script, usually a syntax error, but your script
 runs fine on other servers.

 I would suspect something in the php config on the server is causing 
you

 trouble.

 I have the same problem every time I move to a new server because I try
 and transfer too much info and not enough memory is allocated ro 
running

 php scripts on the server.

 Check your php.ini

 HTH
 Pete

 gotgoose09 wrote:
 
 
  I have been running my Flex applications just fine on my local
  computer and a remote server. I have been tasked with transferring
  them to a new server. Now whenever I execute a RemoteObject call I get
 
  [RPC Fault faultString=Send failed
  faultCode=Client.Error.MessageSend
  faultDetail=Channel.Connect.Failed error
  NetConnection.Call.BadVersion: : url:
  'https://server/path/to/gateway.php 
https://server/path/to/gateway.php
  https://server/path/to/gateway.php 
https://server/path/to/gateway.php']

 
  I know my PHP code works locally. I know it works on the old server.
  Even the AMFPHP service browser does not work and gives me the same
  issue. I know that the gateway.php works since I can view it in a web
  browser with no errors. I am wondering if the HTTPS is causing the
  problem, but I'm not sure.
 
  What can I do to solve this or figure out how to solve this? Any help
  would be greatly appreciated!
 
  - Ben
 
 







Re: [flexcoders] dmv with flex4 and flexbuilder3 causes direction style problem

2009-06-18 Thread Pete Siviter

Hi Thomas,

Glad it worked.  I am afraid I don't really use httpservice as I am  
using amfphp for my server communications (which seems to work out the  
box in flex 4), but my only suggestions are to try other relative  
paths like ./path/to/file to see if that works?  Or use a function to  
find the absolute path of the default location to return to the client  
(php script would do it I think). Just random ideas...


Of course, it should be compatible, so maybe file a bug?

Regards,
Pete


On 18 Jun 2009, at 08:43, thomas parquier wrote:




Hi Pete,

Thank you, the application compiles fine now.
But there seems to be a problem with httpservice url property, which  
seems to work only with a '/path/to/file' format ( != 'path/to/file,  
which used to work with flex3 ).


thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net
téléphone portable : +33601 822 056



2009/6/17 Pete Siviter petesivi...@googlemail.com




Hi there,

I think you'd need to take the datavisualization.swc from  
flashbuilder 4.0.0 sdk (presumably installed under your drive_c in  
wine) and use it in your sdk folder under flexbulder linux.


I spent quite a bit of time looking at the same problem and re- 
compiled datavisualization after editing the source.  This stopped  
the compiler errors with direction but caused problems further down  
the line (though I was working in gumbo which I think isn't  
compatible with datavisualzations from earlier versions).


I fixed the problem once I copied the correct datavisualization.swc  
from the 4.0.0 folder.


There's a whole bunch of files you need to copy, but you can google  
it if you've never done it before.


HTH,
Pete


On 16 Jun 2009, at 20:32, thomas parquier wrote:




Hello,

I've just moved a charting app to flex4 but a problem with a  
Gridlines style (direction) prevents from compiling.
As said on Adobe forum, flashbuilder seems to not raise error and  
compile fine, but I'm using linux and flashbuilder works  
episodically (with wine).


TIA,
thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net
téléphone portable : +33601 822 056











Re: [flexcoders] dmv with flex4 and flexbuilder3 causes direction style problem

2009-06-17 Thread Pete Siviter

Hi there,

I think you'd need to take the datavisualization.swc from flashbuilder  
4.0.0 sdk (presumably installed under your drive_c in wine) and use it  
in your sdk folder under flexbulder linux.


I spent quite a bit of time looking at the same problem and re- 
compiled datavisualization after editing the source.  This stopped the  
compiler errors with 'direction' but caused problems further down the  
line (though I was working in gumbo which I think isn't compatible  
with datavisualzations from earlier versions).


I fixed the problem once I copied the correct datavisualization.swc  
from the 4.0.0 folder.


There's a whole bunch of files you need to copy, but you can google it  
if you've never done it before.


HTH,
Pete
P.S. Apologies if this goes to the list more than once, new member woes.



On 16 Jun 2009, at 20:32, thomas parquier wrote:




Hello,

I've just moved a charting app to flex4 but a problem with a  
Gridlines style (direction) prevents from compiling.
As said on Adobe forum, flashbuilder seems to not raise error and  
compile fine, but I'm using linux and flashbuilder works  
episodically (with wine).


TIA,
thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net
téléphone portable : +33601 822 056






Re: [flexcoders] dmv with flex4 and flexbuilder3 causes direction style problem

2009-06-17 Thread Pete Siviter


Hi there,

I think you'd need to take the datavisualization.swc from flashbuilder  
4.0.0 sdk (presumably installed under your drive_c in wine) and use it  
in your sdk folder under flexbulder linux.


I spent quite a bit of time looking at the same problem and re- 
compiled datavisualization after editing the source.  This stopped the  
compiler errors with direction but caused problems further down the  
line (though I was working in gumbo which I think isn't compatible  
with datavisualzations from earlier versions).


I fixed the problem once I copied the correct datavisualization.swc  
from the 4.0.0 folder.


There's a whole bunch of files you need to copy, but you can google it  
if you've never done it before.


HTH,
Pete


On 16 Jun 2009, at 20:32, thomas parquier wrote:




Hello,

I've just moved a charting app to flex4 but a problem with a  
Gridlines style (direction) prevents from compiling.
As said on Adobe forum, flashbuilder seems to not raise error and  
compile fine, but I'm using linux and flashbuilder works  
episodically (with wine).


TIA,
thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net
téléphone portable : +33601 822 056







[flexcoders] Re: localconnection data encrypted?

2009-01-28 Thread Pete Appleby
It would seem that there is a network connection being used, but I
have not been able to find out for sure.

The localconnection allows different versions of the Flash player to
communicate via AMF0. This leads me to believe that the network is
being used as opposed to a shared memory model. It would be nice to
know for sure, but it is now a moot point for my applications.

I have taken the time to implement RSA encryption in my communication
classes so that the two AIR applications exchange public keys at the
time of the first Send command.

Once the handshaking of public keys has been completed, the future
messages are encrypted and pushed out through the use of the Send method. 

The receiving app then decrypts the message using its private keys. I
am storing the keys in the encrypted local store. That brings up the
question of just how secure is the encrypted local store?

Pete




[flexcoders] Re: localconnection data encrypted?

2009-01-28 Thread Pete Appleby
Thanks for the info! I have not been able to find out much about this
out there.

I have implemented my localconnection between AIR apps like you
describe, with Send and ack/nack from the receiving apps.

This is all working great. I am passing data back and forth from one
app to another. In my first case we have an order entry system. The
second app is a financial calculator. I can push the info back and
forth if needed to calculate the financing. Both apps can be used
standalone, but it is great to have them working in tandem when needed.

Since I was not able to find the answer, I have used the as3crypto
library to implement RSA encryption. The two apps do a quick handshake
of public keys at the beginning, then all remaining Sends are encrypted.

The only weakness I can see in this is that I am using the Encrypted
Local Store to save the RSA keys. I intend to use this same technique
in communicating sensitive with back end web services. Which brings up
the next question: How secure is the Encrypted Local Store? If someone
can get the private key from there, it's all for nothing.

Thanks!

Pete




[flexcoders] localconnection data encrypted?

2009-01-26 Thread Pete Appleby
I am using localconnections to pass information from one AIR
application to another. All of this is working fine.

I understand that AMF0 is being used behind the scenes to pass the
information through the localconnection send() method.

Is the data encrypted? If not, I assume that I must encrypt sensitive
information myself. 

Hope someone can help with this.

Pete




[flexcoders] Re: Flex. AIR and IPhone

2009-01-26 Thread Pete Appleby
Guy, I agree with your comments. I've been in computing for 30 years,
and it is unfortunate, but in my opinion you hit the nail on the head. 

The old Not Invented Here syndrome is at work. Microsoft can keep
SilverFish and IE. 

I am sticking with Flex and AIR. The day the Microsoft buys Adobe is
the day that I retire.

Sorry for the rant!


Pete



[flexcoders] Re: LocalConnection issue in AIR to AIR application

2009-01-20 Thread Pete Appleby
Hi, Kevin!

To answer your earlier question, yes, the error was coming from the
Send side. The error only occurs if the listening ( Connected )
application is not running and connection or if the Send( name )
specifies an incorrect name.

The problem was the difficulty of the PublisherId not being available
in the debugger for my Sending app while my real listening app was
running ( not in the debugger ).

I will try your suggestion to use the -PubId argument to ADL.

It has been painful doing deployment builds to test the code, since
there is no debugger available. I resorted to adding debug code to
write to a log file.

I now am succesfully communicating bidirectionally between my two
applications and have built the handshaking, acknowlegments, etc.
needed to make it useful.

Thanks for the help!

Pete




[flexcoders] Re: LocalConnection issue in AIR to AIR application

2009-01-16 Thread Pete Appleby
Hi, Kevin. Thanks for the pointer. I looked at the example in the
arthropod debugger class. Unfortunately, it is only the send half of
the equation. It did point me into the direction of verifying that the
domain name is correct.

The error I receive from the Send status event is:

type=status bubbles=false cancelable=false eventPhase=2 code=null
level=error

There is not much to go with. My test sample applications display the
names used in the Connect and Send, everything seems to be in order.

Not sure how I can post code here.

A google search found only a few hits on the above error. One was the
same post a few times about using in FLASH when the receiving swf file
was not running. Another was in German, and my high school German was
over 30 years ago.

Any ideas about this are appreciated!

Pete




[flexcoders] Re: LocalConnection issue in AIR to AIR application

2009-01-16 Thread Pete Appleby
Ok, I have found the issue.

It seems that this event is thrown if the Send connection name does
not match the name of an application that is currently accepting
messages. In other words, the connection name used in Connect command
on the receiver does not match, or the receiving application is not
running.

What was confusing to me was the way to get at the correct connection
name for the Send command.

On the receiver's Connect command, I used this: _InterCommAppTestB.

It gets combined with app# then the domain name, in my case
com.applebysw.test then the application name, InterCommAppTestB,
followed by . then the publisher id, then : and then the
connection name used in the Connect command, _InterCommAppTestA.

The receiver's local connect .domain property gives you most of that,
you just need to append the : and then the connection name.

In my case, the domain is:

app#com.applebysw.test.InterAppCommB.publisher id hex digits

The connection name on the Send must then be:

app#com.applebysw.test.InterAppCommB.publisher id hex
digits._InterAppCommTestB


Note that this will not work in the Flex debugger, since the publisher
id is an empty string until the AIR app is signed and published.
Perhaps it would work if you ran both the sending and receiving apps
in the debugger at the same time, I don't have any more time for
experiments with this.

I was not able to make the connection work unless I used the _
prefix on the connection name.

On the receiver, I also had to use either

.allowDomain(*) 

or

.allowDomain(
app#com.applebysw.test.InterAppCommA.publisher id hex digits)

Note that the above is the domain name of the sending app.

This was confusing to me, but it worked.

I hope that this saves someone else some time, it was a long day
yesterday...

Pete



[flexcoders] Re: LocalConnection issue in AIR to AIR application

2009-01-16 Thread Pete Appleby
Please note a correct to a typo in the fourth paragraph above:

It gets combined with app# then the domain name, in my case
com.applebysw.test then the application name, InterCommAppTestB,
followed by . then the publisher id, then : and then the
connection name used in the Connect command, _InterCommAppTestB.

The last word previously was _InterCommAppTestA, and was not correct.




[flexcoders] LocalConnection issue in AIR to AIR application

2009-01-15 Thread Pete Appleby
Hi, all. 

I am attempting to get started with two AIR applications talking to
each other.

Unfortunately, the StatusEvent basically just says error in the
event.level after the Send request.  How do I go about debugging this?

I am not getting any Security or Async errors from the send.

Where can I dig deeper into this?

Thanks!

Pete




[flexcoders] Re: Need functions like Excel NPV, IRR, NPER

2008-12-30 Thread Pete Appleby
First, Thanks! to all who helped.

The biggest issues are NPV and IRR. NPV is a bit more complex than the
PV. IRR is an iterative solution that uses NPV to get result.

I have the equations, I just did not want to reinvent the wheel if
there was already a library out there. I have not found one yet, so I
will be coding them myself. Just a minor pain when you are short on
hours in the day.

Regards,

Pete


--- In flexcoders@yahoogroups.com, aphexyuri yuriv...@... wrote:

 i used the following in a previous project, maybe it might help you:
 
 (for calculating payments)
 
 public function calculatePMT(PV:Number, IR:Number,
YEARS:Number):Number {
 
 var newIR:Number = IR/12;
 var newNP:Number = YEARS*12;
 
 return Math.round((PV*(newIR/100)) / (1-Math.pow(1+(newIR/100),
-newNP)));
 }
 
 
 (for calculating present value)
 
 public function calculateBond(PMT:Number, IR:Number,
 YEARS:Number):Number {
 
 var newIRb:Number = (IR/100)/12;
 var newNPb:Number = YEARS*12;
 
 var v:Number = Math.pow(1+newIRb, -newNPb);
 var pv:Number = PMT*(1-v)/newIRb;
 
 return Math.round(pv);
 }
 
 --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
 
  Do a google search for your requirements. For example, searches on NPV
  and IRR yielded the following:
  
  http://www.ehow.com/how_2187130_calculate-net-present-value-npv.html
  http://www.s-anand.net/Calculating_IRR.html
  
  You will then need to convert these algorithms to Actionscript (I
  could not find any Actionscript examples).
  
  
  --- In flexcoders@yahoogroups.com, Pete Appleby boneoh@ wrote:
  
   Hi, everybody!
   
   I need to find   Flex 3 functions to calculate NPV, IRR, and
NPER just
   like in Excel. Are these out there anywhere? I don't want to
reinvent
   the wheel.
   
   Thanks!
   
   Pete
  
 





[flexcoders] Re: DataGrid and XMLListCollection - newbie question

2008-12-30 Thread Pete Appleby
Hi, Tracy.

It seems that the problem was my gridInitXML had Steps ... /Steps
which caused the issue. When I removed the tags, it worked!

Thanks!

Pete


--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 Ah, I see a couple issues:
 
 When you add a step, you want to only add the step node.  In your init
 function you are calling addChiled but passing the entire steps node.
 
  
 
 Do you specifically want a Payments row to start out with?  It should
 not be necessary.  But if so, initialize the DG like this:
 
  gridData = new XMLListCollection(gridInitXML.step ); //that expression
 returns an XMLList with a single step node.
 
  
 
 In your addStep function do:
 
 gridData.addItem(Step Payments= Amount=0);
 
  
 
 Note, if you want to move the user to the new row and start them editing
 a cell, use, I believe, editedItemPosition.  You probably need to use
 callLater to invoke that because you need to give the DG time to render
 the new row before performing actions on it via the UI.
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Tracy Spratt
 Sent: Monday, December 29, 2008 12:47 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] DataGrid and XMLListCollection - newbie
 question
 
  
 
 Looks pretty close.  What is not working?
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Pete Appleby
 Sent: Friday, December 26, 2008 1:51 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] DataGrid and XMLListCollection - newbie question
 
  
 
 Hi. I am trying to get a very simple datagrid up and going. I need to
 be able to populate this from an XMLListCollection. This seems very
 simple, but I am obviously missing the point somewhere in this. It
 seems that all of the books and online searchs show web services, etc.
 as source. 
 
 I need to be able to start at a simpler point. I have tried setting
 things up both in ActionScript and mxml. The ActionScript is commented
 out at this point. Either way would be fine. The best would be able to
 see it work in both ways.
 
 The purpose of this snippet is:
 
 1. Initialize the grid with a single row. When the app starts, I have
 an empty grid. I need to start with a default row in the grid.
 2. Allow the user to click the Add Step button to add a new row to the
 bottom of the grid.
 3. Allow the user to click the Clear Steps button to remove all
 existing rows and then add the default row.
 4. Later in the development of this, I will extract the bound data
 from the grid to create a payment schedule.
 
 Here is the code.
 
 Thanks!
 
 Pete
 
 ?xml version=1.0 encoding=utf-8?
 mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml 
 layout=absolute applicationComplete=initApp() 
 mx:Script
 ![CDATA[
 import mx.collections.XMLListCollection;
 
 /*
 [Bindable]
 public var gridData:XMLListCollection;
 
 private const gridInitXML:XML =
 Steps
 Step Payments=1 Amount=100 /
 /Steps ;
 */ 
 private function initApp():void{
 
 // initialize the data grid
 
 // gridData = new XMLListCollection( );
 // gridData.addItem( gridInitXML ); 
 }
 
 private function handleAddStep():void {
 gridData.addItem(gridInitXML);
 }
 
 private function handleClearSteps():void {
 gridData.removeAll();
 gridData.addItem(gridInitXML);
 }
 
 ]]
 /mx:Script
 
 mx:XMLListCollection id=gridData source={Steps} /
 mx:XMLList id=Steps xmlns=
 Step Payments=1 Amount=100 /
 /mx:XMLList
 
 mx:XML id=gridInitXML 
 Steps
 Step Payments=1 Amount=100 /
 /Steps 
 /mx:XML
 
 mx:Button x=10 y=10 label=Add Step width=86 id=btnAddStep
 click=handleAddStep() /
 mx:Button x=114 y=10 label=Clear Steps width=96
 id=btnClearSteps click=handleClearSteps()/
 
 mx:DataGrid id=dgSteps editable=true enabled=true
 dataProvider={gridData}
 x=10 y=38 width=200 height=190 
 mx:columns
 mx:DataGridColumn headerText=Payments dataField=Payments
 width=75 textAlign=right/
 mx:DataGridColumn headerText=Amount dataField=Amount 
 textAlign=right/
 /mx:columns
 /mx:DataGrid
 
 /mx:WindowedApplication





[flexcoders] Need functions like Excel NPV, IRR, NPER

2008-12-28 Thread Pete Appleby
Hi, everybody!

I need to find   Flex 3 functions to calculate NPV, IRR, and NPER just
like in Excel. Are these out there anywhere? I don't want to reinvent
the wheel.

Thanks!

Pete



[flexcoders] DataGrid and XMLListCollection - newbie question

2008-12-28 Thread Pete Appleby
Hi. I am trying to get a very simple datagrid up and going. I need to
be able to populate this from an XMLListCollection. This seems very
simple, but I am obviously missing the point somewhere in this. It
seems that all of the books and online searchs show web services, etc.
as source. 

I need to be able to start at a simpler point. I have tried setting
things up both in ActionScript and mxml. The ActionScript is commented
out at this point. Either way would be fine. The best would be able to
see it work in both ways.

The purpose of this snippet is:

1. Initialize the grid with a single row. When the app starts, I have
an empty grid. I need to start with a default row in the grid.
2. Allow the user to click the Add Step button to add a new row to the
bottom of the grid.
3. Allow the user to click the Clear Steps button to remove all
existing rows and then add the default row.
4. Later in the development of this, I will extract the bound data
from the grid to create a payment schedule.

Here is the code.

Thanks!

Pete

?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute applicationComplete=initApp() 
mx:Script
![CDATA[
import mx.collections.XMLListCollection;

/*
[Bindable]
public var gridData:XMLListCollection;

private const gridInitXML:XML =
Steps
Step Payments=1 Amount=100 
/
/Steps ;
*/  
private function initApp():void{

// initialize the data grid

// gridData = new XMLListCollection(  );
// gridData.addItem( gridInitXML ); 

}

private function handleAddStep():void {
gridData.addItem(gridInitXML);
}

private function handleClearSteps():void {
gridData.removeAll();
gridData.addItem(gridInitXML);
}

]]
/mx:Script

mx:XMLListCollection id=gridData source={Steps} /
mx:XMLList id=Steps xmlns=
Step Payments=1 Amount=100 /
/mx:XMLList

mx:XML id=gridInitXML  
Steps
Step Payments=1 Amount=100 
/
/Steps 
/mx:XML

mx:Button x=10 y=10 label=Add Step width=86 id=btnAddStep
click=handleAddStep()  /
mx:Button x=114 y=10 label=Clear Steps width=96
id=btnClearSteps click=handleClearSteps()/

mx:DataGrid  id=dgSteps editable=true  enabled=true
dataProvider={gridData}
  x=10 y=38 
width=200 height=190 
mx:columns
mx:DataGridColumn headerText=Payments 
dataField=Payments
width=75 textAlign=right/
mx:DataGridColumn headerText=Amount   
dataField=Amount 
textAlign=right/
/mx:columns
/mx:DataGrid

/mx:WindowedApplication






[flexcoders] Re: SWFLoader doesn't fire complete event

2008-06-02 Thread Pete Miller

Thanx to all who suggested help. The answer was that using @Embed doesn't cause 
a 'complete' event to fire.  I tried all combinations of attaching a listener 
for the complete event inside of creationComplete, preinitialize, etc, and 
complete never fired.  What works is to load without embedding:

mx:SWFLoader id='thisSWF' width=1200 height=400
  source='deleteme.swf'
  complete=onComplete(); /

The reason I want to know when the SWF is completely loaded is so that I can 
then open a localConnection to send data to the swf at startup.  I'm curious 
what event could be used for this purpose if the swf had to be embedded.

P.


_
E-mail for the greater good. Join the i’m Initiative from Microsoft.
http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ GreaterGood

[flexcoders] SWFLoader doesn't fire complete event

2008-06-01 Thread Pete Miller

I have problems with getting the 'complete' event to occur in an application 
I'm working on, so I wrote this:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute

mx:Script
![CDATA[
import mx.events.*;
import mx.controls.Alert;

public function onComplete():void {
Alert.show('Complete!', '', Alert.OK, this);
}
]]
/mx:Script

mx:SWFLoader source='@Embed(source=deleteme.swf)' 
complete='onComplete()' /

/mx:Application


This doesn't work either.  If I can see the swf on the screen, then why don't I 
get the 'complete' event?

P.

_
Keep your kids safer online with Windows Live Family Safety.
http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_WL_Refresh_family_safety_052008

Re: [flexcoders] Error #2038: File I/O Error when uploading file

2008-01-15 Thread Pete Mackie

Charles:  http://www.xk72.com/charles
and
ServiceCapture: http://kevinlangdon.com/serviceCapture

are both excellent network sniffing proxies and are nominally priced  
(free trials). Both are well supported by their authors too.


You will be curiously surprised by what flows back and forth over the  
client to server wire.


Personally, I can't imagine developing and debugging Flex code on the  
client without fully viewing the outgoing and incoming packets. I can  
guarantee that you will soon wonder who you ever work without a  
network sniffing proxy.


Pete Mackie
-
On Jan 14, 2008, at 2:45 PM, Seth Hodgson wrote:

Use a network sniffer to monitor the Http traffic for you upload and  
the Http response. The plugin API exposed by Firefox doesn’t provide  
any useful Http error information to the player in many situations,  
and when this happens the player dispatches a generic 2038 error  
which is the best it can do given the circumstances. Inspecting the  
network traffic should let you identify the underlying issue.




Best,
Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]  
On Behalf Of tuomas.glad

Sent: Monday, January 14, 2008 7:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Error #2038: File I/O Error when uploading file

Hi,

I'm trying to upload file to server with Firefox and I'm getting error
2038. With IE everything seems to be fine.

Any ideas what might cause this?

Thanks,
Tuomas








[flexcoders] Validator Error Message Position

2006-10-18 Thread Pete Capra





Hi all, 


Does anyone know how 
to position the error message from a validator? Mine are running off the 
screen...

Thanks in 
advance,

Pete

Pete CapraInformation Systems CoordinatorNational 
Institute of Trainingp. (617) 3208 9455m. 0411 043 305f. (617) 
3208 9855a. PO Box 1744 Springwood Q 
4127www.niot.com.au[EMAIL PROTECTED] 


__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



RE: [flexcoders] Re: Sending an array from Flex to PHP

2006-10-11 Thread Pete Capra
I am using WebORB for PHP, and it's fantastic.. Worth checking out 


Pete Capra
Information Systems Coordinator
National Institute of Training

p. (617) 3208 9455
m. 0411 043 305
f. (617) 3208 9855
a. PO Box 1744 Springwood Q 4127

www.niot.com.au
[EMAIL PROTECTED] 


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Piller
Sent: Thursday, 12 October 2006 10:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Sending an array from Flex to PHP

Have you looked into WebORB for PHP? 
http://www.themidnightcoders.com/weborb/php/index.htm

With WebORB you can use RemoteObject, invoke a method in your PHP class and
pass ArrayCollection as an argument. WebORB will then invoke the function in
the server-side class and the parameter will be a PHP array.

Cheers,
Mark

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

 How do I send an ArrayCollection to PHP? I would prefer not to use 
 AMFPHP if it is at all possible. This is probably more of a PHP 
 question on how do I receive it, so whatever you have I would 
 appreciate it.
 
 Thanks






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







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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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



[flexcoders] Code Hinting in Flex Builder 2

2006-10-11 Thread Pete Capra





Hi there, 


I've been working on 
an app in Flex Builder 2 and my code hinting seems to have dropped out. Does 
anyone know how to turn this back on?

Rgds,

Pete

Pete CapraInformation Systems CoordinatorNational 
Institute of Trainingp. (617) 3208 9455m. 0411 043 305f. (617) 
3208 9855a. PO Box 1744 Springwood Q 
4127www.niot.com.au[EMAIL PROTECTED] 


__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



[flexcoders] ProgressBar itemRenderer

2006-10-09 Thread Pete





Hi all, 


I'm having a fair 
amount of trouble getting an itemRenderer for a DataGrid to work correctly. I 
have a drop down combo box that the users selects an option from then retrieves 
data from a database based on that option. The data is then returned to the Flex 
app and dropped in the ModelLocator (Cairngorm). I have a DataGrid that's 
dataProvider property is bound to the ModelLocator. Everything in the datagrid 
displays correctly except a ProgressBar itemRenderer. It will work for the first 
execution, but if a different set of data (or even the same data, returned 
again) is retrieved from the database it won't display correctly. I have tried 
throwing an alert in the itemRenderer so I can see when it is being called, and 
it seems that it is only run properly on the first execution, every attempt 
after that, it doesn't fire for every record that is returned. I have tried 
calling invalidateDiplayList() and validateNow() from the datagrid, but to no 
avail. Does anyone have any ideas? I have posted the code for the itemRenderer 
below. I put it in a HBox so that I can position it 
correctly.

?xml 
version="1.0"?mx:HBox width="100%" height="22" 
xmlns:mx="http://www.adobe.com/2006/mxml" 
verticalAlign="middle" 
horizontalAlign="center"creationComplete="initialiseProgressBar()"mx:Script 
![CDATA[private 
function initialiseProgressBar():void { 
 if (data) 
{  
 if 
(data.progress == 0) { 
pbModuleProgress.indeterminate = 
true;  
} else 
{pbModuleProgress.setProgress(data.progress,100); 
} 
pbModuleProgress.label= String(data.progress) + 
"%"; } 
} ]] 
/mx:Script  mx:ProgressBar 
fontWeight="normal" width="90%" id="pbModuleProgress" labelPlacement="center" 
minimum="0" maximum="100" 
mode="manual"/ 
/mx:HBox

Thanks in 
advance,

Pete

Pete CapraInformation Systems CoordinatorNational 
Institute of Trainingp. (617) 3208 9455m. 0411 043 305f. (617) 
3208 9855a. PO Box 1744 Springwood Q 
4127www.niot.com.au[EMAIL PROTECTED] 


__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



[flexcoders] Catching Events from a Flex 2 App in a SWFLoader

2006-10-04 Thread Pete





Hi there, 


I'm trying to catch 
an event from a Flex 2 App that isembedded in my app. I'm using a 
SWFLoader to embed the swf file and I'm using SystemManager to communicate back 
and forth.. Except the communicate is one way at the moment! If anyone has any 
suggestions, that'd be great! 

Thanks, 
Pete

Here's the 
code:

// Parent 
App

?xml 
version="1.0" encoding="utf-8"?
mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
 
height="100%"
 
width="100%"
 
mx:Script
 
![CDATA[ 

 import 
mx.managers.SystemManager;[Bindable] 
public var 
quizSM:SystemManager;private 
function completeHandler():void 
{ 
mx.controls.Alert.show('huzzah!');}private 
function initNestedQuiz():void 
{ quizSM = 
SystemManager(quizLoader.content); 
quizSM.application.addEventListener("complete", 
completeHandler);// this code is not 
working!} 

 
]]
 
/mx:Script mx:SWFLoader id="quizLoader" 
width="100%" height="100%" 
source="/Quiz/QuizContainer.swf"//mx:Canvas

// Nested 
App

?xml 
version="1.0" encoding="utf-8"?
mx:Applicationxmlns:mx="http://www.adobe.com/2006/mxml" 
mx:Metadata 
[Event(name="complete", type="flash.events.Event")] 
/mx:Metadatamx:Script 
![CDATA[ 
import 
mx.controls.Alert;private 
function quizComplete(event:Event):void 
{ 
Alert.show('Completed in 
Quiz'); 
var event:Event = new 
Event("complete");this.dispatchEvent(event);}]]
 !-- Views are here that call 
quizComplete --/mx:Application
Pete CapraInformation Systems CoordinatorNational 
Institute of Trainingp. (617) 3208 9455m. 0411 043 305f. (617) 
3208 9855a. PO Box 1744 Springwood Q 
4127www.niot.com.au[EMAIL PROTECTED] 


__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



[flexcoders] DataGrid Redraw ItemRenderers

2006-09-24 Thread Pete





Hi all, 


I'm having some 
difficulty redrawing a DataGrid at run-time. The DataGrid is in a pop-up 
TitleWindow, but I don't think that should make a difference. I have a button 
next to it that is calling validateNow() on the DataGrid but it's not working.. 
Does anyone have any clues? I'm using Flex 2 btw.

Thanks in 
advance,

Pete

Pete CapraInformation Systems CoordinatorNational 
Institute of Trainingp. (617) 3208 9455m. 0411 043 305f. (617) 
3208 9855a. PO Box 1744 Springwood Q 
4127www.niot.com.au[EMAIL PROTECTED] 


__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



RE: [flexcoders] Panel Windows Title Icon

2006-09-14 Thread Pete Capra
Hi Jeremy,

You can do it by nesting the Panel inside a Canvas with an image:

mx:Canvas width=100%
mx:Panel id=sample title=Sample Panel width=100%
!--content here--
/mx:Panel
mx:Image right=10 width=22 height=22 y=4
source=icon.gif/ 
/mx:Canvas

The image will be placed on top of the panel wherever you specify..

Hope that helps,

Pete


Pete Capra
Information Systems Coordinator
Capra Ryan Online Learning

p. (617) 3208 9455
m. 0411 043 305
f. (617) 3208 9855
a. PO Box 1744 Springwood Q 4127

www.capraryan.com
[EMAIL PROTECTED] 


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeremy Rottman
Sent: Friday, 15 September 2006 10:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Panel Windows Title Icon

I am working on styling my application, and I have searched throught the
live docs/help files for flex. But I cant seem to find how to set the
titleIcon to the right side of the window. Is there anyway to do this?






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






 





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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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





[flexcoders] Cairngorm - Call function inside View Component

2006-09-13 Thread Pete Capra





Hi all, 


I'm current 
developing a Flex 2 app using Cairngorm and I'm not sure what the best practice 
is for the following scenario:

I have a view 
component that is nested inside the application, and it has a public function 
that selects an item on a Tree (manually, instead of the user doing it). I want 
the function to be called after a result handler fires from a RPC. How should I 
call this function? I'm not quite sure how to reference the function.. 


Thanks in 
advance!

Pete

Pete CapraInformation Systems CoordinatorCapra Ryan 
Online Learningp. (617) 3208 9455m. 0411 043 305f. (617) 3208 
9855a. PO Box 1744 Springwood Q 
4127www.capraryan.com[EMAIL PROTECTED] 


__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



[flexcoders] WebORB for PHP with Flex

2006-09-11 Thread Pete Capra





Hi there, 


I've just started 
using WebORB for PHP with Flex to enable Flash Remoting to PHP functions. So far 
I've found it's pretty neat. Has anyone else come across WebORB? I'd just like 
to know what people think about it.. Any comments or 
criticism?

Thanks,

Pete

Pete CapraInformation Systems CoordinatorCapra Ryan 
Online Learningp. (617) 3208 9455m. 0411 043 305f. (617) 3208 
9855a. PO Box 1744 Springwood Q 
4127www.capraryan.com[EMAIL PROTECTED] 


__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



[flexcoders] Cairngorm Tree selectedIndex

2006-09-07 Thread Pete Capra





Hi there, 


I'm 
developinga Flex 2 app using Cairngorm and I wanted to check the best 
practice for this problem:

I'm retrieving the 
XML structure for a Tree component from ColdFusion and I'm using the Tree 
component as a navigation menu. I'm also retrieving from ColdFusion the Tree 
item that the user last accessed. When both results are returned I want to 
manually select the Tree item that the user last accessed. 

Does anyone have any 
ideas on the best method to solve this problem?

Thanks in 
advance,

Pete

Pete CapraInformation Systems CoordinatorCapra Ryan 
Online Learningp. (617) 3208 9455m. 0411 043 305f. (617) 3208 
9855a. PO Box 1744 Springwood Q 
4127www.capraryan.com[EMAIL PROTECTED] 


__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



[flexcoders] FW: Set a LinkButton icon class at run time

2006-09-05 Thread Pete Capra





Hi there, 

Does anyone know if 
it is possible to set a LinkButtons icon class at runtime? I want to set an icon 
depending on the data that is sent to it (I have it set up as a custom 
component).

Kind 
Rgds,

Pete

Pete CapraInformation Systems CoordinatorCapra Ryan 
Online Learningp. (617) 3208 9455m. 0411 043 305f. (617) 3208 
9855a. PO Box 1744 Springwood Q 
4127www.capraryan.com[EMAIL PROTECTED] 


__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



RE: [flexcoders] FW: Set a LinkButton icon class at run time

2006-09-05 Thread Pete Capra





Hi 
Hilary,

Thanks for your help, it worked a 
treat!

Kind Rgds,

Pete

Hi Pete,
Not sure about the LinkButton, but I have set the icon of a PopUpButton at 
runtime.

I embeded the icon:
[Embed(source='AeonGraphical.swf', 
symbol='BusyCursor')]private var loadingIcon:Class;

and then used setStyle to show and remove it:
componentInstance.setStyle("icon",loadingIcon);
componentInstance.setStyle("icon",null);

Hilary
www.bridel.org

On 9/5/06, Pete Capra 
[EMAIL PROTECTED] 
wrote: 

  
  
  Hi there, 
  
  
  Does anyone know if it is possible to set a 
  LinkButtons icon class at runtime? I want to set an icon depending on the data 
  that is sent to it (I have it set up as a custom component). 
  
  
  Kind Rgds,
  
  Pete
  
  Pete CapraInformation Systems CoordinatorCapra 
  Ryan Online Learningp. (617) 3208 9455m. 0411 043 305 f. (617) 
  3208 9855a. PO Box 1744 Springwood Q 4127www.capraryan.com[EMAIL PROTECTED] 
  -- 
Hilary--  
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___