Re: [flexcoders] can NOT change value of cell in grid while in edit mode

2010-06-29 Thread Sefi Ninio
Sounds like the price is calculated value and should not be editable to the
user..
If that is the case, try making the price column non-editable.

On Mon, Jun 28, 2010 at 11:41 PM, Bruce boy_tr...@yahoo.com wrote:



 I have 3 fields, Quantity, UM and Price, the price is calculated after I
 tab out of the UM field. It requires some database lookups and takes about a
 second. the problem is, I tab OUT of UM and INTO price, and it will NOT
 update the value once the cursor goes to the Price field and is in edit
 mode. Any suggestions?

 Thanks
 Bruce

  



Re: [flexcoders] SecurityError: Error #2121

2010-06-29 Thread Clark Stevenson
I allowed every single combination i could think of:

domain.com http://domain.com; http://www.domain.com; www.domain.com
and so on, even *

Still the same error :(



On 29 June 2010 06:35, Alex Harui aha...@adobe.com wrote:



 In Flash, “domin” is not “domain” is not “domain.com”


 On 6/28/10 3:34 PM, Clark Stevenson a.scots...@gmail.com wrote:







 Hi everyone.

 My problem seems pretty simple. Im trying to load a SWF into a SWFLoader in
 FB4.

 I get this error in the debug view locally, but also when on the test
 server.

 SecurityError: Error #2121: Security sandbox violation: Loader.content:
 http://domin/dir/tool.swf/[[DYNAMIC]]/2http://domin/dir/tool.swf/%5B%5BDYNAMIC%5D%5D/2cannot
  access
 http://domain/dir/dir/2.swf. This may be worked around by calling
 Security.allowDomain.

 I am not trying to pull SWFs from any other swf.

 I have a * in my crossdomain.xml

 I have set:

 Security.allowDomain(domain.com http://domain.com );


 In the creation complete event.


 Hmm does anyone know how i can solve this? I googled it and went through
 the first 2 pages, tried loading a policy file, and a few other things.

 Its a new server, so maybe i have missed something in my setup as i have
 never run into this before.

 Thanks.







 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui
  



[flexcoders] Any PHP developers who knw ColdFusion and can help me convert this php code

2010-06-29 Thread ZIONIST
hi guys i am developing an eCommerce app using flex and ColdFusion and i would 
like to use PayPal as a way to make payments. i stumbled on a very nice 
tutorial on how to Integrate PayPal Express Checkout with Flex and Adobe AIR 
(http://www.adobe.com/devnet/flex/articles/flex_paypal_02.html). the only 
problem is that he uses php as the server side language and i would like to use 
ColdFusion. can someone please help me to convert the following code to 
ColdFusion. here it is

[b]startPaymentFlex.php[/b]

?php
require_once 'ppNVP/CallerService.php';
require_once 'ppNVP/constants.php';

session_start ();

$token = $_REQUEST ['token'];
if (! isset ( $token )) {
$serverName = $_SERVER ['SERVER_NAME'];
$serverPort = $_SERVER ['SERVER_PORT'];
$url = dirname ( 'http://' . $serverName . ':' . $serverPort . $_SERVER 
['REQUEST_URI'] );

function getMovieAmount($movieId) {
//you can replace this function with a more sophisticated one
return 1;
}


$paymentAmount = getMovieAmount($_GET['movieId']); //$_REQUEST 
['paymentAmount'];
$currencyCodeType = 'USD'; //$_REQUEST ['currencyCodeType'];
$paymentType = 'Sale'; //$_REQUEST ['paymentType'];


/* The returnURL is the location where buyers return when a
payment has been succesfully authorized.
The cancelURL is the location buyers are sent to when 
they hit the
cancel button during authorization of payment during 
the PayPal flow
*/

$returnURL = urlencode ( $url . 
'/GetExpressCheckoutDetails.php?currencyCodeType=' . $currencyCodeType . 
'paymentType=' . $paymentType . 'paymentAmount=' . $paymentAmount );
$cancelURL = urlencode ( $url/cancel.php?paymentType=$paymentType );

/* Construct the parameter string that describes the PayPal payment
the varialbes were set in the web form, and the 
resulting string
is stored in $nvpstr
*/

$nvpstr = Amt= . $paymentAmount . PAYMENTACTION= . $paymentType . 
ReturnUrl= . $returnURL . CANCELURL= . $cancelURL . CURRENCYCODE= . 
$currencyCodeType;

/* Make the call to PayPal to set the Express Checkout token
If the API call succeded, then redirect the buyer to 
PayPal
to begin to authorize payment.  If an error occured, 
show the
resulting errors
*/
$resArray = hash_call ( SetExpressCheckout, $nvpstr );
$_SESSION ['reshash'] = $resArray;

$ack = strtoupper ( $resArray [ACK] );

if ($ack == SUCCESS) {
// Redirect to paypal.com here
$token = urldecode ( $resArray [TOKEN] );
$payPalURL = PAYPAL_URL . $token;
header ( Location:  . $payPalURL );
} else {
//Redirecting to APIError.php to display errors. 
$location = APIError.php;
header ( Location: $location );
}

} else {
/* At this point, the buyer has completed in authorizing payment
at PayPal.  The script will now call PayPal with the 
details
of the authorization, incuding any shipping information 
of the
buyer.  Remember, the authorization is not a completed 
transaction
at this state - the buyer still needs an additional 
step to finalize
the transaction
*/

$token = urlencode ( $_REQUEST ['token'] );

/* Build a second API request to PayPal, using the token as the
ID to get the details on the payment authorization
*/
$nvpstr = TOKEN= . $token;

/* Make the API call and store the results in an array.  If the
call was a success, show the authorization details, and 
provide
an action to complete the payment.  If failed, show the 
error
*/
$resArray = hash_call ( GetExpressCheckoutDetails, $nvpstr );
$_SESSION ['reshash'] = $resArray;
$ack = strtoupper ( $resArray [ACK] );

if ($ack == SUCCESS) {
require_once GetExpressCheckoutDetails.php;
} else {
//Redirecting to APIError.php to display errors. 
$location = APIError.php;
header ( Location: $location );
}
}

?



Re: [flexcoders] SecurityError: Error #2121

2010-06-29 Thread Clark Stevenson
Hey your right :)

If i goto http://domain.com/tool.html

It will throw errors when loading SWFs but if i goto:

http://www.domain.com/tool.html

It works perfectly.

Never seen that before so its new to me.

Thanks for your input.

Clark.

On 29 June 2010 09:09, Clark Stevenson a.scots...@gmail.com wrote:


 I allowed every single combination i could think of:

 domain.com http://domain.com; http://www.domain.com; www.domain.com
 and so on, even *

 Still the same error :(




 On 29 June 2010 06:35, Alex Harui aha...@adobe.com wrote:



 In Flash, “domin” is not “domain” is not “domain.com”


 On 6/28/10 3:34 PM, Clark Stevenson a.scots...@gmail.com wrote:







 Hi everyone.

 My problem seems pretty simple. Im trying to load a SWF into a SWFLoader
 in FB4.

 I get this error in the debug view locally, but also when on the test
 server.

 SecurityError: Error #2121: Security sandbox violation: Loader.content:
 http://domin/dir/tool.swf/[[DYNAMIC]]/2http://domin/dir/tool.swf/%5B%5BDYNAMIC%5D%5D/2cannot
  access
 http://domain/dir/dir/2.swf. This may be worked around by calling
 Security.allowDomain.

 I am not trying to pull SWFs from any other swf.

 I have a * in my crossdomain.xml

 I have set:

 Security.allowDomain(domain.com http://domain.com );


 In the creation complete event.


 Hmm does anyone know how i can solve this? I googled it and went through
 the first 2 pages, tried loading a policy file, and a few other things.

 Its a new server, so maybe i have missed something in my setup as i have
 never run into this before.

 Thanks.







 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui
  





Re: [flexcoders] Flex version of excel spreadsheet?

2010-06-29 Thread dorkie dork from dorktown
all your questions will be answered with google spreadsheets and google
domain key...

On Mon, Jun 28, 2010 at 8:51 AM, Paul Andrews p...@ipauland.com wrote:



 I have a potential client who has an excel spreadsheet they'd like to
 make into a proper application, delivered via a web page. Problem is
 that they are protective of the formulas used in the spreadsheet and
 don't want them running on the client (I may talk to them about that
 again). As far as I know the only way to make use of what they have is
 to build a Java calculation engine that runs on the server and takes
 inputs from the Flex front end and returns the outputs.

 I'm no Excel specialist so as far as I know there's no alternative to
 taking excel out of the equation for a web delivered solution.

 Any other ideas?

 Paul
  



RE: [flexcoders] Working with date/Time in FB

2010-06-29 Thread Scott
Thanks for your help everyone.  I found the issue and it's fixed.  The
JVM has a bug in it and required upgrading it on the server.  Now if I
can stop getting these silly timewasting bugs I can finish my project!
=)

 

Thanks a ton!

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Monday, June 28, 2010 6:41 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Working with date/Time in FB

 

  

I am using remoteobject.

 

The following code returns the same timezone information as my
workstation is in.

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Paul Hastings
Sent: Sunday, June 27, 2010 10:59 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Working with date/Time in FB

 

  

 mx:DataGrid x= 68  y= 446  id= dataGrid  dataProvider= {
 getAlltblreservationResult.lastResult }  visible= false  

uh, are you using a web service instead of remote object?

how did you confirm your cf server's in the same tz as your w/s? it's
possible 
that the OS  JVM that cf's running under are using different tz. what
dos the 
following snippet tell you?

cfscript
jre=createObject(java,java.lang.System);
JREname=jre.getProperty(java.runtime.name);
JREversion=jre.getProperty(java.runtime.version);
tz=createObject(java,java.util.TimeZone).getDefault();
tzName=tz.getDisplayName(true,tz.LONG);
dstSavings=tz.getDSTSavings()/360;
writeoutput(jre:=#JREname# #JREversion#brtz:=#tzName#brdst 
savings:=#dstSavings#brin DST:=#tz.inDaylightTime(now())# );
/cfscript


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[flexcoders] Problem with custom cursor in AIR

2010-06-29 Thread reflexactions
So I have a flex web based app and an AIR app, both use some custom cursors 
(FB4/SDK3.2/AIR2). 

The images for the cursors are in an external runtime loaded CSS.

The web app loads the CSS from it start directory, the AIR app picks them up 
straight from the installation directory, they are both loaded into the current 
ApplicationDomain on startup only difference the SecurityDomain setting is null 
for AIR and current for the web (because AIR wont let me set it as current).

Everything else is the same.

They both then load a module that needs a custom cursor. 

The web one displays, the AIR one doesn't.

I have checked and the image is there in the CSS, I can see it has a value when 
it goes to set the cursor but it never displays in AIR.

I assume this is some domain issue but how to fix it. The odd thing is this 
just seems to effect cursors, Button icons which are also in the CSS display 
without a problem in the module.

Thoughts?



[flexcoders] Video Fullscreen problem

2010-06-29 Thread venkat eswar
I have done a Video chat application.I have added full screen options to all 
videos.My problem is on clicking the Fullscreen button, the Application will be 
in Fullscreen Mode not the video. How to solve this. Code is shown below

In my Videopod component i have given like this

 private function fullScreen():void
 {
    try {
    switch ( Application.application.stage.displayState ) {
    case StageDisplayState.FULL_SCREEN:
    // switch to displayState = normal
    Application.application.stage.displayState = 
StageDisplayState.NORMAL;
    break;
    default:
    // switch to displayState = full
    Application.application.stage.displayState = 
StageDisplayState.FULL_SCREEN;
    break;
    }
    } catch ( e:SecurityError ) {
    // ignore
    Alert.show( cannot go to fullscreen mode. try setting: 
'allowfullscreen = true' in HTML container, security error );
    }
        //setCorners();
     VideoChatEventsDispatcher.getInstance().dispatchEvent( new 
VideoChatEvent(VideoChatEvent.ON_FULLSCREEN_CLICK, this ) );
 }
        ]]
    /mx:Script
mx:Fade id=fadeIn alphaFrom=0.0 alphaTo=1.0 /   
mx:Fade id=fadeOut alphaFrom=1.0 alphaTo=0.0 /
    mx:Canvas rollOver=showControls() rollOut=hideControls()
        view:VideoContainer id=videoDisplay width=200 height=170/
        mx:HBox  x=0 y=0 width=100%
            mx:Label id=broadcastUserName  color=#E8F4F6 fontSize=15 
fontWeight=bold visible=false/
        /mx:HBox
        mx:HBox id=controls horizontalAlign=right 
styleName=controllerStyle  width=100% alpha=0.0 y=144 paddingRight=5
            mx:HSlider id=volumeSlider x=59 y=142 width=103 
                snapInterval=1 value=50 maximum=100
             thumbDrag=updateVolume(event); 
dataTipFormatFunction=formatVolumeToolTip
        liveDragging=true toolTip=Volume/
    mx:Button id=muteButton toolTip=Mute height=20 width=20 
styleName=mute toggle=true  click=toggleSound() x=170 y=142/
    mx:Button id=fScreenBut click=fullScreen() 
styleName=fullscreen toggle=true height=30 width=35 
toolTip=Fullscreen/
        /mx:HBox
    /mx:Canvas




And in the main file i gave like this,


private function fullScreen():void
        {
             Application.application.stage.addEventListener( 
FullScreenEvent.FULL_SCREEN, fullScreenHandler );
 //screenMode = Application.application.stage.displayState;
        }
        
         private function fullScreenHandler( e:FullScreenEvent ):void 
         {
    //screenMode = Application.application.stage.displayState +  ( 
fullScreen= + e.fullScreen.toString() + );
    if (e.fullScreen) {
    // do stuff for full screen mode
    
    } else {
    // do stuff for normal screen mode
    }
    }



  

Re: [flexcoders] Flex version of excel spreadsheet?

2010-06-29 Thread Paul Andrews

On 29/06/2010 10:43, dorkie dork from dorktown wrote:



all your questions will be answered with google spreadsheets and 
google domain key...


The idea is that the user has a slick UI and doesn't have access to the 
formulas, so I'm not sure Google Spreadsheets helps.


Ideally I need a spreadsheet engine that is accessible to/controllable 
by a flex front end.


Paul


Re: [flexcoders] Send SMS

2010-06-29 Thread Tom Chiverton
On Sunday 27 Jun 2010 09:37:59 you wrote:
 The API should be able to access the COM port for it, AFAIK there aren't no
 solution for that yet,

You can bundle native programs with AIR2, and use that to provide a bridge to 
the COM port.

-- 
Tom Chiverton
Helping to confidentially create third-generation principle-centered e-
commerce as part of the IT team of the year 2010, '09 and '08



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 together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. 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.

Re: [flexcoders] Flex version of excel spreadsheet?

2010-06-29 Thread Andriy Panas
Have a look at AS3XLS library

http://code.google.com/p/as3xls/

Example of the usage:
http://ippblog.intuit.com/blog/2010/06/flex-to-excel-or-excel-to-flex-now-that-is-the-question.html

--
Best regards,
Andriy Panas



On 29 June 2010 17:10, Paul Andrews p...@ipauland.com wrote:



 On 29/06/2010 10:43, dorkie dork from dorktown wrote:

 all your questions will be answered with google spreadsheets and google
 domain key...


 The idea is that the user has a slick UI and doesn't have access to the
 formulas, so I'm not sure Google Spreadsheets helps.

 Ideally I need a spreadsheet engine that is accessible to/controllable by a
 flex front end.

 Paul

  



Re: [flexcoders] Flex version of excel spreadsheet?

2010-06-29 Thread Tom Chiverton
On Monday 28 Jun 2010 14:51:29 you wrote:
 As far as I know the only way to make use of what they have is
 to build a Java calculation engine that runs on the server and takes
 inputs from the Flex front end and returns the outputs.

As long as they don't mind telling someone else (under NDA / no-compete) it 
should be easy enough to replicate the calculations in any server side 
language of your choice.

-- 
Tom Chiverton
Helping to enormously restore dynamic out-of-the-box real-time edge-of-your-
seat metrics as part of the IT team of the year 2010, '09 and '08



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 together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. 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.

RE: [flexcoders] Flex version of excel spreadsheet?

2010-06-29 Thread Gregor Kiddie
How about running open office on your back end, having it open the
spreadsheet on request and doing the work there?

 

Gk.



Re: [flexcoders] Flex version of excel spreadsheet?

2010-06-29 Thread Jeffry Houser

Paul,

 I'd love to find out more off-list.  The next Flextras component will 
be a Spreadsheet; however your described use case is not something we 
considered.  We've been designing it so that formulas are easily 
accessible; just like Excel.  Our implementation does support disabled 
cells, so as long as users aren't entering data in a formula cell it 
may be possible disable formula cells and enable others to make this 
work for you.


 [But, I'm not completely sure].  I can get you into the prerelease if 
you wanted to explore.


On 6/29/2010 10:10 AM, Paul Andrews wrote:


On 29/06/2010 10:43, dorkie dork from dorktown wrote:

all your questions will be answered with google spreadsheets and 
google domain key...


The idea is that the user has a slick UI and doesn't have access to 
the formulas, so I'm not sure Google Spreadsheets helps.


Ideally I need a spreadsheet engine that is accessible to/controllable 
by a flex front end.


Paul




--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



Re: [flexcoders] Flex version of excel spreadsheet?

2010-06-29 Thread Paul Andrews

On 29/06/2010 15:20, Andriy Panas wrote:



Have a look at AS3XLS library

http://code.google.com/p/as3xls/

Example of the usage:
http://ippblog.intuit.com/blog/2010/06/flex-to-excel-or-excel-to-flex-now-that-is-the-question.html

--
Best regards,
Andriy Panas

That's an interesting idea, but I need to have a remote service that 
runs the excel formulas on demand - not quite the same thing.


Thanks for posting it.

Paul




On 29 June 2010 17:10, Paul Andrews p...@ipauland.com 
mailto:p...@ipauland.com wrote:


On 29/06/2010 10:43, dorkie dork from dorktown wrote:

all your questions will be answered with google spreadsheets and
google domain key...


The idea is that the user has a slick UI and doesn't have access
to the formulas, so I'm not sure Google Spreadsheets helps.

Ideally I need a spreadsheet engine that is accessible
to/controllable by a flex front end.

Paul









Re: [flexcoders] Flex version of excel spreadsheet?

2010-06-29 Thread Paul Andrews

On 29/06/2010 15:49, Tom Chiverton wrote:



On Monday 28 Jun 2010 14:51:29 you wrote:
 As far as I know the only way to make use of what they have is
 to build a Java calculation engine that runs on the server and takes
 inputs from the Flex front end and returns the outputs.

As long as they don't mind telling someone else (under NDA / 
no-compete) it

should be easy enough to replicate the calculations in any server side
language of your choice.


Yes, you're right. They aren't quite in that mindset yet - basically I 
have an Excel expert but not a software developer and the expectation 
was that it would be an easy translate  still using Excel at heart.


Paul




--
Tom Chiverton
Helping to enormously restore dynamic out-of-the-box real-time 
edge-of-your-

seat metrics as part of the IT team of the year 2010, '09 and '08



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 together with a list of those non members who 
are referred to as partners. We use the word ?partner? to refer to a 
member of the LLP, or an employee or consultant with equivalent 
standing and qualifications. 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 
http://www.Halliwells.com.









[flexcoders] Re: can NOT change value of cell in grid while in edit mode

2010-06-29 Thread Bruce

Sorry, you did not understand my problem.  I DO want to allow the user to edit 
the field.  BUT I want to calculate a DEFAULT value.  My problem is that once 
the cursor in on this CELL and I try to changed the value in action script 
(dgOrders.selectedItem.price = XXX), it does NOT update the grid.

Bruce



Re: [flexcoders] Flex version of excel spreadsheet?

2010-06-29 Thread Paul Andrews

On 29/06/2010 15:53, Gregor Kiddie wrote:



How about running open office on your back end, having it open the 
spreadsheet on request and doing the work there?




It's an interesting idea. I'll check it out.

Paul


Gk.








Re: [flexcoders] Re: can NOT change value of cell in grid while in edit mode

2010-06-29 Thread Tom Chiverton
On Tuesday 29 Jun 2010 16:42:16 you wrote:
 Sorry, you did not understand my problem.  I DO want to allow the user to
 edit the field.  BUT I want to calculate a DEFAULT value.  My problem is
 that once the cursor in on this CELL and I try to changed the value in
 action script (dgOrders.selectedItem.price = XXX), it does NOT update the

Change the data provider, not the selectedItem.

-- 
Tom Chiverton
Helping to dynamically repurpose high-end interdependent bandwidth as part of 
the IT team of the year 2010, '09 and '08



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 together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. 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] DataGrid decides not to render on some occasions

2010-06-29 Thread atomilux
We're dynamically instantiating components 1 or more times in our application 
depending on user inputs. In some instances, the component's DataGrid decides 
not to render. I know the DataGrid IS there because it can be accessed and can 
have its height manipulated, accept additions to the dataProvider 
(ArrayCollection) and we can see the surrounding UI elements react to these 
manipulations. 

I tried to use:
DataGrid.invalidateList()
DataGrid.invalidateDisplayList()
in a variety of ways (even with an ENTER_FRAME) and they seem to have no effect 
on getting the DataGrid to render itself.

In this buggy state, a copy of the exact same Component is instantiated with 
the exact same logic and renders its DataGrid fully. 

If anyone else has found encountered this shy DataGrid behavior please let me 
know.



[flexcoders] Re: DataGrid decides not to render on some occasions

2010-06-29 Thread atomilux
Other oddities I forgot to mention:
1) It renders fine when I build and test locally but only does the crash and 
burn when it's online.

2) Sometimes the aforementioned DataGrid never even renders.



[flexcoders] Pass two arraycollections to one component

2010-06-29 Thread Liam
I need to pass two separate arraycollections to one component. I'm sure this is 
possible but I can't find anything online as to how to do this.

I thought I could do this but it only displays the last arraycollection:

From main application:
components:ApplData beginners={beginners}/
components:ApplData transfers={transfers}/

With such little information, any suggestions?  Can I do this?

Thanks,
Liam



[flexcoders] Switch from Flex 3.2 SDK to 3.5 causing problems

2010-06-29 Thread pestrada2k
Hi,

We recently rebuilt our app using the Flex 3.5 SDK (from 3.2), and now the app 
hangs. After trial and error commenting out code, setting the data used by the 
AdvancedDataGrid data provider seems to be the problem but no errors are 
displayed and the app eventually times out. I searched the bug database and 
online but no one else seems to have encountered this. Any suggestions would be 
appreciated.

-Pedro 



[flexcoders] list event listener(s) for an event type?

2010-06-29 Thread Technusiast
Hello,

These are more of AS3 questions, but probably useful for Flex:

Is it possible to have more than one active event listener for the same event 
type on the same event dispatcher instance?

Is it possible to list all the listener functions ( 1 or all ) for a particular 
event type?

Thanks.




[flexcoders] Re: Pass two arraycollections to one component

2010-06-29 Thread turbo_vb
Have you tried just one instance of the component?

components:ApplData beginners={beginners} transfers={transfers}/

-TH

--- In flexcoders@yahoogroups.com, Liam ldnew...@... wrote:

 I need to pass two separate arraycollections to one component. I'm sure this 
 is possible but I can't find anything online as to how to do this.
 
 I thought I could do this but it only displays the last arraycollection:
 
 From main application:
 components:ApplData beginners={beginners}/
 components:ApplData transfers={transfers}/
 
 With such little information, any suggestions?  Can I do this?
 
 Thanks,
 Liam





[flexcoders] How to check if display object is visible to the user?

2010-06-29 Thread dorkie dork from dorktown
Let's say I have 10 images in a list. Only one is visible to the user.
If I have a fade in effect I want to add to that image on load
complete is there a way to see if the component is visible to the user
so then on those instances i'm not running the fade in effect?

JP


Re: [flexcoders] How to check if display object is visible to the user?

2010-06-29 Thread Oleg Sivokon
Something like:
root.getRect(stage).intersects(clip.getRect(stage))  clip.visible 
clip.alpha

I'm not sure about mask / clipRect / ColorMatrixFilter (they all may make
the clip appear as invisible) + of course, there may be another display
object on top of the clip, which you can roughly check by
getObjectsUnderPoint() providing all 4 points of the rectangle generated
from intersection of the clip and root rectangles, but this may not work
most of the time, if clips aren't rectangles by themselves / are rotated
etc...