[flexcoders] Re: Custom ItemRenderer still not working...

2010-02-07 Thread Laurence
--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Maybe Tracy can figure it out from just the renderer code, but I
 think I need a complete (but small) test case with some sample data.

Can I send it to you via this list?  Or do I have to e-mail you privately 
somehow?  Just let me know where to send it, and I'll put together a small 
test-case for ya sometime in the next couple of days.

 
 The only thing I see that looks unusual (besides calling refrehs()
 is setting both selectedItem and selectedIndex.  One should be good
 enough.

Yeah, one should be good enough, I agree...  If you notice, however, that I set 
selectedItem first, then selectedIndex.  There are times (rare, but it happens) 
when the database has been corrupted or accidentally changed, and none of the 
items match in the selectedItem list.  The boss wants it to default, in that 
case, to whatever is returned by selectedIndex.  Kind of an auto-repair for his 
database.  LOL

Thanks,
Laurence MacNeill
Mableton, Georgia, USA




[flexcoders] Re: Adobe technical support dropped for Flex 3!

2010-02-07 Thread hpatino.rm
Dear Matt

 That sounds very incorrect. We support released software only. 

I bought last week Adobe flex 3 (Adobe standard version)

Called adobe tech support on
Friday February 05, 2010 around 6:00 PM Eastern Time

Transfered to customer service after I was told there is no more tech support 
for adobe.  Even the customer service representative was so surprised to hear 
that, and confirm with someone internally.

Customer service try to help me by asking me to re-install the product and then 
I was transferred again to Tech support.  Another representative try to help me 
with no luck, he dropped the call and never called me back!

I am not making this up.

Kind regards, 

HPatino




[flexcoders] AddCallBack method of Flash's External Interface not Working

2010-02-07 Thread piyasha_roy
Hi,
   Can anybody Please help.I am facing a problem when i am trying to access a 
Flex Function from  
a JSP/HTML page.I am at loss as to why the reference object of th swf 
obtained throws an error saying Object doesn't support this property or 
method when it tries to access the Flex method made callable using 
AddCallBack method of Flash's External Interface.

The mxml code as well as Jsp code is given below :-

JSP***


html
head
/head
body
SCRIPT LANGUAGE=JavaScript

function getMyApp(movieName)
{
  if (window.document[movieName]) 
  {
  return window.document[movieName];
  }
  if (navigator.appName.indexOf(Microsoft Internet)==-1)
  {
if (document.embeds  document.embeds[movieName])
  return document.embeds[movieName]; 
  }
  else 
  {
return document.getElementById(movieName);
  }
}

function callApp()
{   var initName = document.getElementById(txtName).value;
var initAddress = document.getElementById(txtAddress).value; 
alert(**In callApp()*** );
 var flashMovie=getMyApp(mySwf);
 alert(**After getMyApp()***+flashMovie);
 flashMovie.myFlexFunction(initName,initAddress);
 
//flashMovie.SetVariable(/:message,document.UserDetails.txtName.value);
}

form name=UserDetails
table width=60% align=center cellspacing=40 border=0
tr
tdnbsp;/td
td
input type=Button value=Communicate to Third Party 
Application name=btnCommunicate OnClick=callApp()
/td
/tr
/table
/form
form name=flaUserDetails
object id='mySwf' name='mySwf' height='30%' width='40%'
param name='src' value='TextLabel.swf'/
param name='swliveconnect' value='true'/
embed id='mySwf' src='TextLabel.swf' height='30%' width='40%' 
/
/object
/form
/body
/html


MXML**



?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
initialize=initApp()
mx:Script
![CDATA[

import mx.utils.ObjectUtil;
import flash.display.LoaderInfo;
import flash.external.*;


public function initApp():void {

ExternalInterface.addCallback(myFlexFunction,myFunc);
}
public function myFunc(Name:String,Address:String):void 
{
txtName.text=Name;
txtAddress.text=Address;
}
]]

/mx:Script
mx:Form id=myForm width=300 backgroundColor=#909090
!-- Use a FormItem to label the field. --
mx:FormItem label=Name
mx:TextInput id=txtName width=150/
/mx:FormItem
mx:FormItem label=Address
mx:TextInput id=txtAddress width=150/
/mx:FormItem
/mx:Form
/mx:Application

Thanks in Advance,
Piyasha



[flexcoders] Re: AddCallBack method of Flash's External Interface not Working

2010-02-07 Thread Amy


--- In flexcoders@yahoogroups.com, piyasha_roy piyasha_...@... wrote:

 Hi,
Can anybody Please help.I am facing a problem when i am trying to access a 
 Flex Function from  
 a JSP/HTML page.I am at loss as to why the reference object of th swf 
 obtained throws an error saying Object doesn't support this property or 
 method when it tries to access the Flex method made callable using 
 AddCallBack method of Flash's External Interface.
 
 The mxml code as well as Jsp code is given below :-
 
 JSP***
 
 
 html
 head
 /head
 body
 SCRIPT LANGUAGE=JavaScript
   
   function getMyApp(movieName)
   {
 if (window.document[movieName]) 
 {
 return window.document[movieName];
 }
 if (navigator.appName.indexOf(Microsoft Internet)==-1)
 {
   if (document.embeds  document.embeds[movieName])
 return document.embeds[movieName]; 
 }
 else 
 {
   return document.getElementById(movieName);
 }
   }
   
   function callApp()
   {   var initName = document.getElementById(txtName).value;
   var initAddress = document.getElementById(txtAddress).value; 
   alert(**In callApp()*** );
var flashMovie=getMyApp(mySwf);
alert(**After getMyApp()***+flashMovie);
flashMovie.myFlexFunction(initName,initAddress);

 //flashMovie.SetVariable(/:message,document.UserDetails.txtName.value);
   }
 
   form name=UserDetails
   table width=60% align=center cellspacing=40 border=0
   tr
   tdnbsp;/td
   td
   input type=Button value=Communicate to Third Party 
 Application name=btnCommunicate OnClick=callApp()
   /td
   /tr
   /table
   /form
   form name=flaUserDetails
   object id='mySwf' name='mySwf' height='30%' width='40%'
   param name='src' value='TextLabel.swf'/
   param name='swliveconnect' value='true'/
   embed id='mySwf' src='TextLabel.swf' height='30%' width='40%' 
 /
   /object
   /form
 /body
 /html
 
 
 MXML**
 
 
 
 ?xml version=1.0?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 initialize=initApp()
   mx:Script
   ![CDATA[
 
   import mx.utils.ObjectUtil;
   import flash.display.LoaderInfo;
   import flash.external.*;
   
   
   public function initApp():void {
   
 ExternalInterface.addCallback(myFlexFunction,myFunc);
   }
   public function myFunc(Name:String,Address:String):void 
 {
   txtName.text=Name;
   txtAddress.text=Address;
   }
   ]]
 
   /mx:Script
   mx:Form id=myForm width=300 backgroundColor=#909090
   !-- Use a FormItem to label the field. --
   mx:FormItem label=Name
   mx:TextInput id=txtName width=150/
   /mx:FormItem
   mx:FormItem label=Address
   mx:TextInput id=txtAddress width=150/
   /mx:FormItem
   /mx:Form
 /mx:Application
 

I usually add code to the creationComplete handler of the Flex app that adds 
the callback and tells the page that the application is fully loaded.  Then, in 
the JS function that gets called from there, I will make my initialization type 
calls.

HTH;

Amy



RE: [SPAM] [flexcoders] Re: Custom ItemRenderer still not working...

2010-02-07 Thread Tracy Spratt
Post it here, the more eyes that look at it the better for you.

 

Your DataGrid is not editable, correct?  And your render is not set as an
editor, right?

 

I assume you have debugged this and have tested to see that the dataProvider
is set when you set selectedItem?  Maybe there is a timing issue with the
bound dataProvider. Loop over the items to make sure the item exists.  And
make sure it matches the selectedIndex.  I'd probably suggest you do this
any way and use selectedItem always.

 

I would use a conditional, testing for the selectedItem, rather than blindly
setting selectedIndex every time.

 

Finally, I strongly suggest you move that work into commitProperties() The
set data() function gets called much more often than you may realize.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Laurence
Sent: Sunday, February 07, 2010 6:19 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] Re: Custom ItemRenderer still not working...

 

  

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Alex Harui aha...@... wrote:

 Maybe Tracy can figure it out from just the renderer code, but I
 think I need a complete (but small) test case with some sample data.

Can I send it to you via this list? Or do I have to e-mail you privately
somehow? Just let me know where to send it, and I'll put together a small
test-case for ya sometime in the next couple of days.

 
 The only thing I see that looks unusual (besides calling refrehs()
 is setting both selectedItem and selectedIndex. One should be good
 enough.

Yeah, one should be good enough, I agree... If you notice, however, that I
set selectedItem first, then selectedIndex. There are times (rare, but it
happens) when the database has been corrupted or accidentally changed, and
none of the items match in the selectedItem list. The boss wants it to
default, in that case, to whatever is returned by selectedIndex. Kind of an
auto-repair for his database. LOL

Thanks,
Laurence MacNeill
Mableton, Georgia, USA





RE: [SPAM] [flexcoders] Re: Custom ItemRenderer still not working...

2010-02-07 Thread Tracy Spratt
If I am understanding your problem, Array should be fine.  The problem with
array is when you update elements.  The change events should get fired when
the entire array is replaced.  Besides, it sounds like the list part is
working correctly.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Laurence
Sent: Friday, February 05, 2010 3:20 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] Re: Custom ItemRenderer still not working...

 

  

Well, hmmm... I can't rewrite it so data.course_fees is an ArrayCollection
-- when I change the 'EventVO.as' such that course_fees is an
ArrayCollection instead of an Array, it comes back from the database as
null... Perhaps that's a problem with my CF code (EventVO.cfc and
EventDAO.cfc)? How do you get CF to send data back as an ArrayCollection
instead of an Array? I'm thinking that's not possible...

If I leave the EventVO.as alone, and course_fees is an Array, then I still
have the same problem in my ItemRenderer -- doesn't seem to matter if I make
listOfFees an Array or ArrayCollection...

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Laurence lmacne...@... wrote:

 Hmmm... That's an idea... data.course_fees is coming out of the database
as an Array -- perhaps I should rewrite that so it comes out as an
ArrayCollection from the very beginning... I'll give that a shot... (Yes, I
know I can put an Array into an ArrayCollection, but if Array isn't behaving
properly, I shouldn't use it at all, right?)
 
 If I were to do something like:
 listOfFees:ArrayCollection = new ArrayCollection(data.course_fees);
 would that pass a reference to the ArrayCollection, or will that be making
a copy?
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
wrhinfl wrhinfl@ wrote:
 
  I thought array does not broadcast updates nicely (uniformly/as
expected), can you change the declaration of listOfFees from:
  [Bindable]private var listOfFees:Array;
  to:[Bindable]private var listOfFees:ArrayCollection;
 






Re: [flexcoders] Re: Adobe technical support dropped for Flex 3!

2010-02-07 Thread Matt Chotin
I've asked our customer service team to look into this.

Sent from my phone. Please excuse brevity or typos.

On Feb 7, 2010, at 5:59 AM, hpatino.rm 
hpat...@rocketmail.commailto:hpat...@rocketmail.com wrote:



Dear Matt

 That sounds very incorrect. We support released software only.

I bought last week Adobe flex 3 (Adobe standard version)

Called adobe tech support on
Friday February 05, 2010 around 6:00 PM Eastern Time

Transfered to customer service after I was told there is no more tech support 
for adobe. Even the customer service representative was so surprised to hear 
that, and confirm with someone internally.

Customer service try to help me by asking me to re-install the product and then 
I was transferred again to Tech support. Another representative try to help me 
with no luck, he dropped the call and never called me back!

I am not making this up.

Kind regards,

HPatino





[flexcoders] flex ftp client with coldfusion

2010-02-07 Thread ZIONIST
Hi guys anyone who has achieved this please share. i have realized the normal 
flex upload is not that effective when it comes to uploading large files, so i 
would think using ftp would be more effective. i have an upload form in flex 
using coldfusion that uploads videos and converts them to .flv it works 
perfectly but on slow connects breaks, is there a way to have the same done but 
instead use ftp? thanks 



[flexcoders] what is Degraffi?

2010-02-07 Thread markflex2007
Degraffi is Flex library,do you thank the url for it.

I check with google and can not get the site.

Thanks

Mike



Re: [flexcoders] Re: Bitmap with Scale9 in custom border

2010-02-07 Thread Steffen Beyer
On Fri, 5 Feb 2010 14:33:40 +, Steffen Beyer wrote:
 That would not be a problem. The point is, scaling is not applied at all.
 
 border.width = w;
 
 ...has no effect!

Next try:

protected function drawBorder(w:Number, h:Number):void
{
if (w  0)
{
var g:Graphics = graphics;

var border:Bitmap = new borderImage();
border.width = w;

var scaledBorder:BitmapData = new BitmapData(w, border.height);
scaledBorder.draw(border);

g.beginBitmapFill(border.bitmapData);
g.drawRect(0, h - 19, w, 19);
g.endFill();
}
}

I expected BitmapData.draw to apply the scaling -- but it doesn't.  :(

This cannot be so difficult!?

Kind regards,
-- 
Steffen Beyer sbe...@reactor.de

GnuPG key fingerprint: CA00 1611 242B 89D4 E643  E235 05F3 7689 DD3E EB26
Public key available upon request or at http://wwwkeys.de.pgp.net


[flexcoders] How to upload a file in a secure manner.

2010-02-07 Thread Greg Lafrance
I've seen the Flex help examples on uploading files, but what if I have files 
that are confidential to the client, and I want them uploaded in the most 
secure manner possible.

 
I'm new to security in Flex and on the web, so please understand that as you 
form your description.

 
Should I use https? Should I use ssl? Will a certificate be involved?

 
Any links to code examples showing how it is done?

 
Using what you recommend, how secure will the transfer be? Can anyone hack it?




[flexcoders] How to zip a file before uploading?

2010-02-07 Thread Greg Lafrance
I know we don't have much control when uploading files, but can we zip files 
when uploading them from a Flex application?

 
Any code examples or links to such?




Re: [SPAM] [flexcoders] Animating items in a tilelist when filtering arraycollection

2010-02-07 Thread ZIONIST
hi Tracy, i tried doing as you said, i have my dataprovider (dataAr) which i 
filter and then assign the result to another arraycollection (copydataAr) which 
i then use as the dataprovider for my tilelist. this has not worked though. 
maybe there is something am doing wrong. here is the code so far.

[Bindable]
private var dataAr:ArrayCollection = new ArrayCollection;
public function displayResult(event:ResultEvent):void{  
dataAr = new ArrayCollection((event.result as 
ArrayCollection).source);
}

[Bindable]
private var copydataAr:ArrayCollection = cloneCollection(dataAr);

private function filterGrid():void{
dataAr.filterFunction=myFilterFunction;
}

private function myFilterFunction(item:Object):Boolean{
return(item.city == selectedCity || selectedCity == All)  
(item.location == selectedLocation || selectedLocation == All) 
(item.bedrooms == selectedbdrm || selectedbdrm == -- Choose One --) 
 
(item.bathrooms == selectedbathrm || selectedbathrm == -- Choose One 
--) 
(item.category == category.selectedValue)
(!garageSelected || item.garages)
(!tileflrSelected || item.tile_floor)
(!hardwoodflrSelected || item.hardwood_floor)
(!laminateflrSelected || item.laminate_floor)
(!balconySelected || item.balcony)
(!yardSelected || item.backyard)
(!closetSelected || item.closets)
(!poolSelected || item.pool);   
 
}

private function 
cloneCollection(dataAr:ArrayCollection):ArrayCollection{
var copydataAr:ArrayCollection = new ArrayCollection();
copydataAr.source = copydataAr.source.concat(dataAr.source);
return copydataAr;
}

// Syncs destination collection2 to source collection1, removing or 
adding items as necessary. Assumes the source collection is sorted
private function syncCollection(collection1:ArrayCollection, 
collection2:ArrayCollection):void{
var idx:int = 0;

while (idx  collection1.length  idx  collection2.length)
if (collection2[idx]  collection1[idx])
collection2.removeItemAt(idx);
else{
if (collection2[idx]  collection1[idx])

collection2.addItemAt(collection1[idx],idx)
idx++;
}

while (idx  collection1.length)
collection2.addItemAt(collection1[idx],idx++);
while (idx  collection2.length)
collection2.removeItemAt(idx);
}

then on the individual components,

private function cityChangeHandler(event:Event):void{
if( city_cb.selectedItem != null )
selectedCity = city_cb.selectedLabel;
filterGrid();
dataAr.refresh();
syncCollection(dataAr,copydataAr);
currentState = '';
}

private function locationChangeHandler(event:Event):void{
if( lct_cb.selectedItem != null )
selectedLocation = lct_cb.selectedLabel;
filterGrid();
dataAr.refresh();
syncCollection(dataAr,copydataAr);  
currentState = '';
} etc 



Re: [flexcoders] Record audio to the hard drive

2010-02-07 Thread Andriy Panas
Hi Judah,

   You can rely on Adobe Air to record captured sound on the desktop
http://www.addictivetips.com/windows-tips/microphone-free-adobe-air-mp3-audio-sound-recorder/,
 otherwise
you will have to rely on FMS or Red5 or Wowza Media Server to store the
recorded sound locally.

--
Best regards,
Andriy Panas



On 7 February 2010 08:31, dorkie dork from dorktown 
dorkiedorkfromdorkt...@gmail.com wrote:



 Is there a way to record an audio stream (microphone stream) to the users
 hard drive and THEN upload it to the server. I don't want to stream it to a
 server.
  



Re: [flexcoders] what is Degraffi?

2010-02-07 Thread Nick Collins
I think you mean Degrafa, and that would be degrafa.org

On Sun, Feb 7, 2010 at 5:43 PM, markflex2007 markflex2...@yahoo.com wrote:



 Degraffi is Flex library,do you thank the url for it.

 I check with google and can not get the site.

 Thanks

 Mike