[flexcoders] Re: RTE when setting spark gridcolumn visible property (f

2011-10-07 Thread bhaq1972
Thanks

I feel a bit stupid now because I just realized its only affecting IE6 ...which 
is obviously a very out of date browser.








--- In flexcoders@yahoogroups.com, Alex Harui aharui@... wrote:

 I'm sure it is just a bug.  Please file it.
 
 I would try doing it on creationComplete and follow up with a validateNow() 
 call.
 
 
 On 10/6/11 1:11 AM, bhaq1972 mbhaque@... wrote:
 
 
 
 
 
 
 The problem doesn't exist if the code is executed in the preintialize or 
 creationComplete event. However, I didn't want to mention that because it 
 takes the focus away from what looks like a bug in initialize. Why would one 
 column give a runtime error and the other not?
 Halo datagrid doesnt have this problem.
 
 In our scenario, some columns have no relevance to certain customers. Instead 
 of removing the column from the mxml, we store the column info (in this case 
 make invisible) in the database.
 During the datagrid initialze we make it invisible. The creationcomplete 
 event would be too late because by then the column would have rendered (for a 
 split second).
 
 Preinitialize would be ok...but other parts of my code (unrelated to this 
 problem) are failing because preinitialize is too early. i can't bare any 
 more code rewrites(but i suppose it keeps me in a job).
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 valdhor valdhorlists@ wrote:
 
  The column probably hasn't been created yet. Try the creationcomplete event 
  of the datagrid.
 
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
  bhaq1972 mbhaque@ wrote:
  
   I get a runtime error when I set the gridcolumn.visible property during a 
   datagrid initialize event. There is no problem's
   if its the first gridcolumn. Looks like a bug?
  
   Can anyone suggest a workaround?
  
  
   s:DataGrid initialize=makeColumnInvisible()
 s:columns
   s:ArrayList
   s:GridColumn id=gc0 dataField=col0 headerText=col0/
   s:GridColumn id=gc1 dataField=col1 headerText=col0/
  
   ..
   public function makeColumnInvisible():void
   {
  gc1.visible = false;  // causes a RTE
  gc0.visible = false;  // doesnt give a problem
   ..
  
  
   RangeError: Error #1125: The index 1 is out of range 0.
   at 
   spark.components.gridClasses::GridDimensions/setTypicalCellWidth()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\gridClasses\GridDimensions.as:1325]
   at 
   spark.components.gridClasses::GridDimensions/columns_visibleChangedHandler()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\gridClasses\GridDimensions.as:1840]
   at 
   spark.components.gridClasses::GridDimensions/columnsCollectionChanged()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\gridClasses\GridDimensions.as:1800]
   at 
   spark.components::Grid/columns_collectionChangeHandler()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\Grid.as:4429]
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at spark.components.gridClasses::GridColumn/set 
   visible()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\gridClasses\GridColumn.as:1564]
   ...
  
 
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui





Re: [flexcoders] help with a repeater

2011-10-07 Thread Gustavo Duenas

thanks for your help
here is the error log

Error: Repeater is not executing.
	at mx.core::Repeater/get currentItem()[C:\autobuild\3.3.0\frameworks 
\projects\framework\src\mx\core\Repeater.as:305]
	at iglesiaFls/openWindowVimeo()[/Users/gustavoduenas/Documents/Flex  
Builder 3/iglesiaFls/src/iglesiaFls.mxml:17]
	at iglesiaFls/__vimeoButton_click()[/Users/gustavoduenas/Documents/ 
Flex Builder 3/iglesiaFls/src/iglesiaFls.mxml:51]


On Oct 7, 2011, at 12:47 AM, Tandon, Rishi wrote:



You missed the most important thing in message, the error log.
Send over that.

From: Gustavo Duenas gdue...@leftandrightsolutions.com
To: flexcoders@yahoogroups.com
Sent: Friday, October 7, 2011 9:47 AM
Subject: [flexcoders] help with a repeater


I have a repeater which reads a xmllist from vimeo, it works and do  
the repeat but when I tried to pass info from the repeater to the  
title window, something happens and I have an as3

errror. this is  my code.

mx:Script
![CDATA[
import mx.managers.PopUpManager;
import mx.containers.*;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import flsWindow;

private function openWindowVimeo(event:MouseEvent):void{
var myVimeoWindow:TitleWindow=  
TitleWindow(PopUpManager.createPopUp(this, flsWindow, true));
myVimeoWindow.title=vimeoService.lastResult.video.title;///this  
is the one using the xmlList,
it works but only the last title and with tags there is a way that  
my different video titles will be in the opened windows?

also when I try using the repeater like:
myVimeoWindow.title=vimeo.currentItem.title
is always giving me and error.

}

///here is my repeater, it works, but I cannot open the window as I  
want.
mx:HTTPService id=vimeoService url=http://vimeo.com/api/v2/iglesiafls/videos.xml 
 resultFormat=e4x fault=onFault(event)/
mx:XMLListCollection id=myVimeoList  
source={vimeoService.lastResult.video}/

mx:VBox width=340 height=334 x=699 y=422
mx:Repeater id=vimeo dataProvider={myVimeoList}
		mx:Image source={vimeo.currentItem.thumbnail_medium}  
width=200 height=150/
		mx:Text text={vimeo.currentItem.title} color=#F5FBFC  
fontSize=14 width=300/
		mx:Text text={vimeo.currentItem.description} color=#F5FAFB  
width=300/
		mx:LinkButton label=ver video click=openWindowVimeo(event)  
id=vimeoButton enabled=true/


/mx:Repeater
/mx:VBox

Could someone help me out

gus








[flexcoders] is there another flexcoders list?

2011-10-07 Thread Gustavo Duenas
Hi, is there another list, it's been ages since someone just answer  
me...it is just me or everyone else has migrated to some other list?

Gus


Re: [flexcoders] is there another flexcoders list?

2011-10-07 Thread Jeffry Houser


 This list started to die after Adobe launched their new forums.  I 
think that was a couple of years ago.  Adobe, basically, stopped 
directing people to this list and instead started directing them to the 
forums.


 So, that is where you'll find the traffic.

On 10/7/2011 9:44 AM, Gustavo Duenas wrote:


Hi, is there another list, it's been ages since someone just answer
me...it is just me or everyone else has migrated to some other list?

Gus





--
Jeffry Houser
Technical Entrepreneur
203-379-0773
--
http://www.flextras.com?c=104
UI Flex Components: Tested! Supported! Ready!
--
http://www.theflexshow.com
http://www.jeffryhouser.com
http://www.asktheflexpert.com
--
Part of the DotComIt Brain Trust



Re: [flexcoders] is there another flexcoders list?

2011-10-07 Thread Gustavo Duenas

thanks man I will try there

Gus
On Oct 7, 2011, at 9:57 AM, Jeffry Houser wrote:



 This list started to die after Adobe launched their new forums.  I  
think that was a couple of years ago.  Adobe, basically, stopped  
directing people to this list and instead started directing them to  
the forums.


 So, that is where you'll find the traffic.

On 10/7/2011 9:44 AM, Gustavo Duenas wrote:



Hi, is there another list, it's been ages since someone just answer
me...it is just me or everyone else has migrated to some other list?

Gus



--
Jeffry Houser
Technical Entrepreneur
203-379-0773
--
http://www.flextras.com?c=104
UI Flex Components: Tested! Supported! Ready!
--
http://www.theflexshow.com
http://www.jeffryhouser.com
http://www.asktheflexpert.com
--
Part of the DotComIt Brain Trust






[flexcoders] Re: using a coldfusion proxy to show twitter feed in flex app

2011-10-07 Thread ZIONIST
Hi guys below is the code i came up with but i get this error 
faultCode:Server.Processing faultString:'Unable to invoke CFC - The method 
'getTweets' in component 
C:\ColdFusion9\wwwroot\twiiterCFlex\src\cfcs\twitter.cfc cannot be accessed 
remotely.' faultDetail:''

flex code
=


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

mx:Script
![CDATA[
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.managers.CursorManager;
[Bindable]
private var tweetAr:ArrayCollection;

private function tweetResult(event:ResultEvent):void
{
tweetAr=event.result as ArrayCollection;
}
]]
/mx:Script

mx:RemoteObject id=tweetSvc
 destination=ColdFusion
 source=twiiterCFlex.src.cfcs.twitter
 showBusyCursor=true
 
fault=CursorManager.removeBusyCursor();Alert.show(event.fault.message)

mx:method name=getTweets
   result=tweetResult(event)/

/mx:RemoteObject

mx:List id=twitterFeed
 dataProvider={tweetAr}
 itemRenderer=itemRenderers.tweetFeedRenderer/

/mx:Application


coldfusion cfc
===

cfcomponent
cffunction name=getTweets access=public returntype=query
   

cfset var qryGetTweets =  /

cffeed source=http://twitter.com/status/user_timeline/RealtrOnline; 
properties=meta query=qryGetTweets /

cfreturn qryGetTweets /
/cffunction
/cfcomponent

What am i missing?



[flexcoders] Re: help with a repeater

2011-10-07 Thread valdhor
I have had better results with a repeater if I bundle all the components in the 
repeater into a single component and then repeat that. You can create public 
variables in this custom component to hold values you need to pass in.

--- In flexcoders@yahoogroups.com, Gustavo Duenas gduenas@... wrote:

 I have a repeater which reads a xmllist from vimeo, it works and do  
 the repeat but when I tried to pass info from the repeater to the  
 title window, something happens and I have an as3
 errror. this is  my code.
 
 mx:Script
   ![CDATA[
   import mx.managers.PopUpManager;
   import mx.containers.*;
   import mx.controls.Alert;
   import mx.rpc.events.FaultEvent;
   import mx.rpc.events.ResultEvent;
   import flsWindow;
   
   private function openWindowVimeo(event:MouseEvent):void{
   var myVimeoWindow:TitleWindow=  
 TitleWindow(PopUpManager.createPopUp(this, flsWindow, true));
   
 myVimeoWindow.title=vimeoService.lastResult.video.title;///this is  
 the one using the xmlList,
 it works but only the last title and with tags there is a way that my  
 different video titles will be in the opened windows?
 also when I try using the repeater like:
 myVimeoWindow.title=vimeo.currentItem.title
 is always giving me and error.
   
   }
   
 ///here is my repeater, it works, but I cannot open the window as I  
 want.
 mx:HTTPService id=vimeoService 
 url=http://vimeo.com/api/v2/iglesiafls/videos.xml 
  resultFormat=e4x fault=onFault(event)/
 mx:XMLListCollection id=myVimeoList  
 source={vimeoService.lastResult.video}/
   mx:VBox width=340 height=334 x=699 y=422
   mx:Repeater id=vimeo dataProvider={myVimeoList}
   mx:Image source={vimeo.currentItem.thumbnail_medium} 
 width=200  
 height=150/
   mx:Text text={vimeo.currentItem.title} color=#F5FBFC  
 fontSize=14 width=300/
   mx:Text text={vimeo.currentItem.description} color=#F5FAFB 
  
 width=300/
   mx:LinkButton label=ver video click=openWindowVimeo(event) 
  
 id=vimeoButton enabled=true/
   
   /mx:Repeater
   /mx:VBox
 
 Could someone help me out
 
 gus





[flexcoders] Re: is there another flexcoders list?

2011-10-07 Thread valdhor
Of course, all the most knowledgeable people are still here because they can't 
stand the chatter over there ;-}

--- In flexcoders@yahoogroups.com, Jeffry Houser jeffry@... wrote:

 
   This list started to die after Adobe launched their new forums.  I 
 think that was a couple of years ago.  Adobe, basically, stopped 
 directing people to this list and instead started directing them to the 
 forums.
 
   So, that is where you'll find the traffic.
 
 On 10/7/2011 9:44 AM, Gustavo Duenas wrote:
 
  Hi, is there another list, it's been ages since someone just answer
  me...it is just me or everyone else has migrated to some other list?
 
  Gus
 
  
 
 
 -- 
 Jeffry Houser
 Technical Entrepreneur
 203-379-0773
 --
 http://www.flextras.com?c=104
 UI Flex Components: Tested! Supported! Ready!
 --
 http://www.theflexshow.com
 http://www.jeffryhouser.com
 http://www.asktheflexpert.com
 --
 Part of the DotComIt Brain Trust





[flexcoders] Re: using a coldfusion proxy to show twitter feed in flex app

2011-10-07 Thread valdhor
This is a CF error. I don't know much about CF but the error is saying that you 
are not allowed to access that method remotely.

Is there some setting in CF that tells it which methods are remotely 
accessible? Is the crossdomain file set up correctly?

From my point of view, it has to be some configuration problem with CF.

Of course, I could be wrong (And probably are) so any CF masters like to jump 
in here?

--- In flexcoders@yahoogroups.com, ZIONIST stinasius@... wrote:

 Hi guys below is the code i came up with but i get this error 
 faultCode:Server.Processing faultString:'Unable to invoke CFC - The method 
 'getTweets' in component 
 C:\ColdFusion9\wwwroot\twiiterCFlex\src\cfcs\twitter.cfc cannot be accessed 
 remotely.' faultDetail:''
 
 flex code
 =
 
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
   layout=absolute
   creationComplete=tweetSvc.getTweets()
 
   mx:Script
   ![CDATA[
   import mx.rpc.events.ResultEvent;
   import mx.rpc.events.FaultEvent;
   import mx.collections.ArrayCollection;
   import mx.controls.Alert;
   import mx.managers.CursorManager;
   [Bindable]
   private var tweetAr:ArrayCollection;
 
   private function tweetResult(event:ResultEvent):void
   {
   tweetAr=event.result as ArrayCollection;
   }
   ]]
   /mx:Script
 
   mx:RemoteObject id=tweetSvc
destination=ColdFusion
source=twiiterCFlex.src.cfcs.twitter
showBusyCursor=true

 fault=CursorManager.removeBusyCursor();Alert.show(event.fault.message)
 
   mx:method name=getTweets
  result=tweetResult(event)/
 
   /mx:RemoteObject
 
   mx:List id=twitterFeed
dataProvider={tweetAr}
itemRenderer=itemRenderers.tweetFeedRenderer/
 
 /mx:Application
 
 
 coldfusion cfc
 ===
 
 cfcomponent
 cffunction name=getTweets access=public returntype=query

 
 cfset var qryGetTweets =  /
 
 cffeed source=http://twitter.com/status/user_timeline/RealtrOnline; 
 properties=meta query=qryGetTweets /
 
 cfreturn qryGetTweets /
 /cffunction
 /cfcomponent
 
 What am i missing?





Re: [flexcoders] Re: help with a repeater

2011-10-07 Thread Gustavo Duenas

can you point me how?

thanks

gus


On Oct 7, 2011, at 12:04 PM, valdhor wrote:

I have had better results with a repeater if I bundle all the  
components in the repeater into a single component and then repeat  
that. You can create public variables in this custom component to  
hold values you need to pass in.


--- In flexcoders@yahoogroups.com, Gustavo Duenas gduenas@... wrote:

 I have a repeater which reads a xmllist from vimeo, it works and do
 the repeat but when I tried to pass info from the repeater to the
 title window, something happens and I have an as3
 errror. this is my code.

 mx:Script
 ![CDATA[
 import mx.managers.PopUpManager;
 import mx.containers.*;
 import mx.controls.Alert;
 import mx.rpc.events.FaultEvent;
 import mx.rpc.events.ResultEvent;
 import flsWindow;

 private function openWindowVimeo(event:MouseEvent):void{
 var myVimeoWindow:TitleWindow=
 TitleWindow(PopUpManager.createPopUp(this, flsWindow, true));
 myVimeoWindow.title=vimeoService.lastResult.video.title;///this is
 the one using the xmlList,
 it works but only the last title and with tags there is a way that  
my

 different video titles will be in the opened windows?
 also when I try using the repeater like:
 myVimeoWindow.title=vimeo.currentItem.title
 is always giving me and error.

 }

 ///here is my repeater, it works, but I cannot open the window as I
 want.
 mx:HTTPService id=vimeoService 
url=http://vimeo.com/api/v2/iglesiafls/videos.xml
  resultFormat=e4x fault=onFault(event)/
 mx:XMLListCollection id=myVimeoList
 source={vimeoService.lastResult.video}/
 mx:VBox width=340 height=334 x=699 y=422
 mx:Repeater id=vimeo dataProvider={myVimeoList}
 mx:Image source={vimeo.currentItem.thumbnail_medium} width=200
 height=150/
 mx:Text text={vimeo.currentItem.title} color=#F5FBFC
 fontSize=14 width=300/
 mx:Text text={vimeo.currentItem.description} color=#F5FAFB
 width=300/
 mx:LinkButton label=ver video click=openWindowVimeo(event)
 id=vimeoButton enabled=true/

 /mx:Repeater
 /mx:VBox

 Could someone help me out

 gus







RE: [flexcoders] help with a repeater

2011-10-07 Thread Gordon Smith
This poorly-worded message is trying to explain that you cannot access the 
'currentItem' of a Repeater, as your code vimeo.currentItem.title in 
openWindowVimeo() is doing, after the Repeater has already created all the 
repeated components. As each repeated component is created, 'currentItem' is 
the item in the dataProvider that is creating that particular component. So 
what would the 'currentItem' of the Repeater be after all the components have 
been created? It doesn't make sense, and therefore is an error.

Once a repeated component has been created, you can use its getRepeaterItem() 
method to get the item in the dataProvider that created it.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Gustavo Duenas
Sent: Friday, October 07, 2011 5:28 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] help with a repeater



thanks for your help
here is the error log

Error: Repeater is not executing.
at mx.core::Repeater/get 
currentItem()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\core\Repeater.as:305]
at iglesiaFls/openWindowVimeo()[/Users/gustavoduenas/Documents/Flex 
Builder 3/iglesiaFls/src/iglesiaFls.mxml:17]
at 
iglesiaFls/__vimeoButton_click()[/Users/gustavoduenas/Documents/Flex Builder 
3/iglesiaFls/src/iglesiaFls.mxml:51]

On Oct 7, 2011, at 12:47 AM, Tandon, Rishi wrote:




You missed the most important thing in message, the error log.
Send over that.


From: Gustavo Duenas 
gdue...@leftandrightsolutions.commailto:gdue...@leftandrightsolutions.com
To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Sent: Friday, October 7, 2011 9:47 AM
Subject: [flexcoders] help with a repeater

I have a repeater which! reads a xmllist from vimeo, it works and do the repeat 
but when I tried to pass info from the repeater to the title window, something 
happens and I have an as3
errror. this is  my code.

mx:Script
![CDATA[
import mx.managers.PopUpManager;
import mx.containers.*;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import flsWindow;

private function 
openWindowVimeo(event:MouseEvent):void{
var myVimeoWindow:TitleWindow= 
TitleWindow(PopUpManager.createPopUp(this, flsWindow, true));
!
myVimeoWindow.title=vimeoService.lastResult.video.title;///this is the one 
using the xmlList,
it works but only the last title and with tags there is a way that my different 
video titles will be in the opened windows?
also when I try using the repeater like:
myVimeoWindow.title=vimeo.currentItem.title
is always giving me and error.

}

///here is my repeater, it works, but I cannot open the window as I want.
mx:HTTPService id=vimeoService 
url=http://vimeo.com/api/v2/iglesiafls/videos.xml; resultFormat=e4x 
fault=onFault(event)/
mx:XMLListCollection id=myVimeoList 
source={vimeoService.lastResult.video}/
mx:VBox width=340 height=33! 4 x=699 y=422
mx:Repeater id=vimeo dataProvider={myVimeoList}
mx:Image source={vimeo.currentItem.thumbnail_medium} 
width=200 height=150/
mx:Text text={vimeo.currentItem.title} 
color=#F5FBFC fontSize=14 width=300/
mx:Text text={vimeo.currentItem.description} 
color=#F5FAFB width=300/
mx:LinkButton label=ver video 
click=openWindowVimeo(event) id=vimeoButton enabled=true/

/mx:Repeater
   /mx:VBox

Could someone help me out

gus






[flexcoders] Re: using a coldfusion proxy to show twitter feed in flex app

2011-10-07 Thread ZIONIST
I changed access to 'remote' on the cfc and when i run it i get this error 
faultCode:Server.Processing faultString:'Unable to invoke CFC - Unable to 
parse the feed: Either source specified is invalid or feed is malformed.' 
faultDetail:'Error: Invalid XML'



Re: [flexcoders] Re: using a coldfusion proxy to show twitter feed in flex app

2011-10-07 Thread Kevin Bowers


 Try setting the CF function access to remote, rather than public



From: valdhor valdhorli...@embarqmail.com
To: flexcoders@yahoogroups.com
Sent: Friday, 7 October 2011, 17:17
Subject: [flexcoders] Re: using a coldfusion proxy to show twitter feed in flex 
app


  
This is a CF error. I don't know much about CF but the error is saying that you 
are not allowed to access that method remotely.

Is there some setting in CF that tells it which methods are remotely 
accessible? Is the crossdomain file set up correctly?

From my point of view, it has to be some configuration problem with CF.

Of course, I could be wrong (And probably are) so any CF masters like to jump 
in here?

--- In flexcoders@yahoogroups.com, ZIONIST stinasius@... wrote:

 Hi guys below is the code i came up with but i get this error 
 faultCode:Server.Processing faultString:'Unable to invoke CFC - The method 
 'getTweets' in component 
 C:\ColdFusion9\wwwroot\twiiterCFlex\src\cfcs\twitter.cfc cannot be accessed 
 remotely.' faultDetail:''
 
 flex code
 =
 
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
   layout=absolute
   creationComplete=tweetSvc.getTweets()
 
   mx:Script
   ![CDATA[
   import mx.rpc.events.ResultEvent;
   import mx.rpc.events.FaultEvent;
   import mx.collections.ArrayCollection;
   import mx.controls.Alert;
   import mx.managers.CursorManager;
   [Bindable]
   private var tweetAr:ArrayCollection;
 
   private function tweetResult(event:ResultEvent):void
   {
   tweetAr=event.result as ArrayCollection;
   }
   ]]
   /mx:Script
 
   mx:RemoteObject id=tweetSvc
destination=ColdFusion
source=twiiterCFlex.src.cfcs.twitter
showBusyCursor=true

 fault=CursorManager.removeBusyCursor();Alert.show(event.fault.message)
 
   mx:method name=getTweets
  result=tweetResult(event)/
 
   /mx:RemoteObject
 
   mx:List id=twitterFeed
dataProvider={tweetAr}
itemRenderer=itemRenderers.tweetFeedRenderer/
 
 /mx:Application
 
 
 coldfusion cfc
 ===
 
 cfcomponent
 cffunction name=getTweets access=public returntype=query
 
 
 cfset var qryGetTweets =  /
 
 cffeed source=http://twitter.com/status/user_timeline/RealtrOnline; 
 properties=meta query=qryGetTweets /
 
 cfreturn qryGetTweets /
 /cffunction
 /cfcomponent
 
 What am i missing?



 

Re: [flexcoders] help with a repeater

2011-10-07 Thread Gustavo Duenas
Thank you my friend, you are really good. I guess I should have read  
more the book. It totally works.


Gustavo

On Oct 7, 2011, at 12:21 PM, Gordon Smith wrote:



This poorly-worded message is trying to explain that you cannot  
access the ‘currentItem’ of a Repeater, as your code  
vimeo.currentItem.title in openWindowVimeo() is doing, after the  
Repeater has already created all the repeated components. As each  
repeated component is created, ‘currentItem’ is the item in the  
dataProvider that is creating that particular component. So what  
would the ‘currentItem’ of the Repeater be after all the components  
have been created? It doesn’t make sense, and therefore is an error.




Once a repeated component has been created, you can use its  
getRepeaterItem() method to get the item in the dataProvider that  
created it.




Gordon Smith

Adobe Flex SDK Team



From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]  
On Behalf Of Gustavo Duenas

Sent: Friday, October 07, 2011 5:28 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] help with a repeater





thanks for your help

here is the error log



Error: Repeater is not executing.

at mx.core::Repeater/get currentItem()[C:\autobuild 
\3.3.0\frameworks\projects\framework\src\mx\core\Repeater.as:305]


at iglesiaFls/openWindowVimeo()[/Users/gustavoduenas/ 
Documents/Flex Builder 3/iglesiaFls/src/iglesiaFls.mxml:17]


at iglesiaFls/__vimeoButton_click()[/Users/gustavoduenas/ 
Documents/Flex Builder 3/iglesiaFls/src/iglesiaFls.mxml:51]




On Oct 7, 2011, at 12:47 AM, Tandon, Rishi wrote:








You missed the most important thing in message, the error log.

Send over that.



From: Gustavo Duenas gdue...@leftandrightsolutions.com
To: flexcoders@yahoogroups.com
Sent: Friday, October 7, 2011 9:47 AM
Subject: [flexcoders] help with a repeater



I have a repeater which! reads a xmllist from vimeo, it works and do  
the repeat but when I tried to pass info from the repeater to the  
title window, something happens and I have an as3


errror. this is  my code.



mx:Script

![CDATA[

import mx.managers.PopUpManager;

import mx.containers.*;

import mx.controls.Alert;

import mx.rpc.events.FaultEvent;

import mx.rpc.events.ResultEvent;

import flsWindow;



private function  
openWindowVimeo(event:MouseEvent):void{


var  
myVimeoWindow:TitleWindow=  
TitleWindow(PopUpManager.createPopUp(this, flsWindow, true));


!

myVimeoWindow.title=vimeoService.lastResult.video.title;///this is  
the one using the xmlList,


it works but only the last title and with tags there is a way that  
my different video titles will be in the opened windows?


also when I try using the repeater like:

myVimeoWindow.title=vimeo.currentItem.title

is always giving me and error.



}



///here is my repeater, it works, but I cannot open the window as I  
want.


mx:HTTPService id=vimeoService url=http://vimeo.com/api/v2/iglesiafls/videos.xml 
 resultFormat=e4x fault=onFault(event)/


mx:XMLListCollection id=myVimeoList  
source={vimeoService.lastResult.video}/


mx:VBox width=340 height=33! 4 x=699 y=422

mx:Repeater id=vimeo  
dataProvider={myVimeoList}


mx:Image  
source={vimeo.currentItem.thumbnail_medium} width=200  
height=150/


mx:Text text={vimeo.currentItem.title}  
color=#F5FBFC fontSize=14 width=300/


mx:Text  
text={vimeo.currentItem.description} color=#F5FAFB width=300/


mx:LinkButton label=ver video  
click=openWindowVimeo(event) id=vimeoButton enabled=true/




/mx:Repeater

   /mx:VBox



Could someone help me out



gus














Re: [flexcoders] Re: using a coldfusion proxy to show twitter feed in flex app

2011-10-07 Thread Paul Hastings
On 10/7/2011 10:38 PM, ZIONIST wrote:
 Hi guys below is the code i came up with but i get this error
 faultCode:Server.Processing faultString:'Unable to invoke CFC - The method
 'getTweets' in component
 C:\ColdFusion9\wwwroot\twiiterCFlex\src\cfcs\twitter.cfc cannot be accessed
 remotely.' faultDetail:''

 coldfusion cfc ===

 cfcomponent cffunction name=getTweets access=public
 returntype=query

access=remote


[flexcoders] Re: using a coldfusion proxy to show twitter feed in flex app

2011-10-07 Thread ZIONIST
any help guys. Am kinda stuck here.



[flexcoders] facebook status on air app

2011-10-07 Thread Gustavo Duenas
Hi guys, I'm making an air app and so far I need to grab a facebook  
status or feed into a mx:repeater, does anyone knows how,
it is not like creating a facebook app with flex, is something more  
easy (in theory), does anyone knows how? or at least point me where  
the xml or rss facebook file is.

gus


RE: [flexcoders] help with a repeater

2011-10-07 Thread Gordon Smith
BTW, you should consider moving to Spark components and using a Spark DataGroup 
rather than a Repeater. A DataGroup is more efficient when you have many data 
items that need to be rendered because it only creates item renderers for the 
data items that are visible. Repeater always creates all of them.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Gustavo Duenas
Sent: Friday, October 07, 2011 9:51 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] help with a repeater



Thank you my friend, you are really good. I guess I should have read more the 
book. It totally works.

Gustavo

On Oct 7, 2011, at 12:21 PM, Gordon Smith wrote:




This poorly-worded message is trying to explain that you cannot access the 
'currentItem' of a Repeater, as your code vimeo.currentItem.title in 
openWindowVimeo() is doing, after the Repeater has already created all the 
repeated components. As each repeated component is created, 'currentItem' is 
the item in the dataProvider that is creating that particular component. So 
what would the 'currentItem' of the Repeater be after all the components have 
been created? It doesn't make sense, and therefore is an error.

Once a repeated component has been created, you can use its getRepeaterItem() 
method to get the item in the dataProvider that created it.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Gustavo Duenas
Sent: Friday, October 07, 2011 5:28 AM
To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Subject: Re: [flexcoders] help with a repeater



thanks for your help
here is the error log

Error: Repeater is not executing.
at mx.core::Repeater/get 
currentItem()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\core\Repeater.as:305]
at iglesiaFls/openWindowVimeo()[/Users/gustavoduenas/Documents/Flex 
Builder 3/iglesiaFls/src/iglesiaFls.mxml:17]
at 
iglesiaFls/__vimeoButton_click()[/Users/gustavoduenas/Documents/Flex Builder 
3/iglesiaFls/src/iglesiaFls.mxml:51]

On Oct 7, 2011, at 12:47 AM, Tandon, Rishi wrote:





You missed the most important thing in message, the error log.
Send over that.


From: Gustavo Duenas 
gdue...@leftandrightsolutions.commailto:gdue...@leftandrightsolutions.com
To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Sent: Friday, October 7, 2011 9:47 AM
Subject: [flexcoders] help with a repeater

I have a repeater which! reads a xmllist from vimeo, it works and do the repeat 
but when I tried to pass info from the repeater to the title window, something 
happens and I have an as3
errror. this is  my code.

mx:Script
![CDATA[
import mx.managers.PopUpManager;
import mx.containers.*;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import flsWindow;

private function 
openWindowVimeo(event:MouseEvent):void{
var myVimeoWindow:TitleWindow= 
TitleWindow(PopUpManager.createPopUp(this, flsWindow, true));
!
myVimeoWindow.title=vimeoService.lastResult.video.title;///this is the one 
using the xmlList,
it works but only the last title and with tags there is a way that my different 
video titles will be in the opened windows?
also when I try using the repeater like:
myVimeoWindow.title=vimeo.currentItem.title
is always giving me and error.

}

///here is my repeater, it works, but I cannot open the window as I want.
mx:HTTPService id=vimeoService 
url=http://vimeo.com/api/v2/iglesiafls/videos.xml; resultFormat=e4x 
fault=onFault(event)/
mx:XMLListCollection id=myVimeoList 
source={vimeoService.lastResult.video}/
mx:VBox width=340 height=33! 4 x=699 y=422
mx:Repeater id=vimeo dataProvider={myVimeoList}
mx:Image source={vimeo.currentItem.thumbnail_medium} 
width=200 height=150/
mx:Text text={vimeo.currentItem.title} 
color=#F5FBFC fontSize=14 width=300/
mx:Text text={vimeo.currentItem.description} 
color=#F5FAFB width=300/
mx:LinkButton label=ver video 
click=openWindowVimeo(event) id=vimeoButton enabled=true/

/mx:Repeater
   /mx:VBox

Could someone help me out

gus








[flexcoders] Re: using a coldfusion proxy to show twitter feed in flex app

2011-10-07 Thread valdhor
OK, so now it doesn't like the XML you are sending to the CFC.

What does Charles show as the XML string that is actually being sent? Does that 
XML pass a validation check? Does it look right?

--- In flexcoders@yahoogroups.com, ZIONIST stinasius@... wrote:

 I changed access to 'remote' on the cfc and when i run it i get this error 
 faultCode:Server.Processing faultString:'Unable to invoke CFC - Unable to 
 parse the feed: Either source specified is invalid or feed is malformed.' 
 faultDetail:'Error: Invalid XML'





[flexcoders] Self Signed SSL Certificates

2011-10-07 Thread David Nester
Greetings!  I am trying to write a Flex desktop application which connects to a 
SOAP-based service.  Question is - the server uses self-signed certificates and 
there is no way around having the server listen on an additional (non-ssl) 
port.   I have read that with the desktop applications - connecting over ssl is 
not an option.  

Any way around this?

Thanks!

David



[flexcoders] Adobe captivate and flex

2011-10-07 Thread kapil_saggi
Hi everyone,

I am trying to load a captivate generated swf file in my flex project.

As we know, we can create a password protected swf file using Adobe 
Captivate. Is there any way in which we can load that file automatically using 
Flex? Here automatically means that my flex application provides the password 
at the time of loading by calling some captivate API, and the user should not 
need to enter the password explicitly.

Any help/pointers in this regard would be really helpful.

Regards,
Kapil



[flexcoders] load password protected captivate file in flex

2011-10-07 Thread kapil_saggi
Hi everyone,

I have a query, to which I could not find a solution over google.

As we know, we can create a password protected swf file using Adobe 
Captivate. My question is that can we load that file automatically using Flex? 
Here automatically means, that my flex application provides the password at the 
time of loading by calling some captivate API, and the user should not need to 
enter the password.

Any help/pointers in this regard would be really helpful.

Regards,
Kapil



Re: RV: [flexcoders] combobox problem

2011-10-07 Thread ANIBAL Benalcazar
please help with generate pdf structured who contract from forms and datagrid  

 

[flexcoders] Parsing Soap Response

2011-10-07 Thread David Nester
Greetings!
 
I have a SOAP response from a webservice that i am trying to parse to a 
datagrid.  The information that comes back to the result handler is in the 
format of:
 
SOAPENV:ENVELOPE
-- soapenv:body
ns2:serviceResponse
--ns2:return
ns1:data
 
 
I'm trying to figure out how to grab everything in ns1 and populate that 
information to a grid.  I'm very new to flex - anyone out there who can help?
 
Thanks so much!



[flexcoders] How much load a Red5 server can handle?

2011-10-07 Thread mulchand12345
Hi

I have created a user video recording application which is hosted on red5 
server and it uses oflademo code to capture and save the video.

My query is how much load a red5 server can handle? I mean it is just a tomcat 
server. If it goes live and hundreds of user started using it, what are the 
chances of breakdown? Is red5 server really good for production level use?

What approach would you suggest in this case? Is it a good idea to use Red5 
server in production environment?
What server do other video capturing/ streaming application must be using in 
production environment?

Thanks in advance

Regards,
MulC




[flexcoders] Possible to specify a fallback font without breaking font embedding in Flex4?

2011-10-07 Thread stiggler1

I posted this question on stackoverflow.com a few months back and
unfortunately haven't gotten any responses. Any help would be much
appreciated!

http://stackoverflow.com/questions/6435042/is-it-possible-to-specify-a-f\
allback-font-without-breaking-font-embedding-in-flex

Here's the question as it appears on SO:

Seemingly against all sense, specifying more than just your embedded
font in a font-family property breaks the font embedding and has your
app jump to the proceeding fonts in the font family. For example:

Embed works:
global { font-family: HelveticaEmbedded; }
Embed no longer works:
global { font-family: HelveticaEmbedded, sans-serif; }
Is there a known fix or workaround to this? My problem is essentially
that for characters in the deep unicode ranges (other alphabets,
symbols), I'm unable to display anything but the actual unicode sequence
(\u), presumably because I lack a font-fallback.

For reference, this is how my font is embedded:
@font-face {  src: url(/fonts/HelveticaLTStd-Roman.otf); 
font-family: HelveticaEmbedded; embed-as-cff: true;
font-weight: normal; font-style: normal; font-lookup:
embeddedCFF; font-anti-alias-type: advanced; unicode-range:
U+0041-005A, /* Upper-Case [A..Z] */ U+0061-007A, /* Lower-Case
a-z */ U+0030-0039, /* Numbers [0..9] */ U+002E-002E; /*
Period [.] */ }


Re: [flexcoders] Re: using a coldfusion proxy to show twitter feed in flex app

2011-10-07 Thread ilugroupmultimedia_mks
Googling bro..:D

South Sulawesi Information Technology Corporate

-Original Message-
From: ZIONIST stinas...@yahoo.com
Sender: flexcoders@yahoogroups.com
Date: Fri, 07 Oct 2011 16:31:52 
To: flexcoders@yahoogroups.com
Reply-To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: using a coldfusion proxy to show twitter feed in flex 
app

I changed access to 'remote' on the cfc and when i run it i get this error 
faultCode:Server.Processing faultString:'Unable to invoke CFC - Unable to 
parse the feed: Either source specified is invalid or feed is malformed.' 
faultDetail:'Error: Invalid XML'




[flexcoders] Bar Graph basic doubt!

2011-10-07 Thread Venkat M
  
Hi Group,
 
I have a basic doubt on bar graphs in flex.
For a bar graph I bind the data provider with an array collection. This array 
collection will be populated dynamically with the values 0,1 or 2.
 
So the bar graph is showing fine, but the interval lines are at 0, 
0.2,0.4,0.6,0.8,1,1.2,1.4,1.6,1.8,2 meaning: at intervals of .2.
I want it to be only integers, meaning: 0,1,2 that’s it. How do I do it?
 
Please help.
 
Thanks
 
Best Regards,
Venkat. 

[flexcoders] Re: RTE when setting spark gridcolumn visible property (f

2011-10-07 Thread valdhor
If that is the use case I would have built that data grid and columns on the 
fly in ActionScript. Why bother having columns in memory that you don't use?

--- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@... wrote:

 The problem doesn't exist if the code is executed in the preintialize or 
 creationComplete event. However, I didn't want to mention that because it 
 takes the focus away from what looks like a bug in initialize. Why would one 
 column give a runtime error and the other not?
 Halo datagrid doesnt have this problem.
 
 In our scenario, some columns have no relevance to certain customers. Instead 
 of removing the column from the mxml, we store the column info (in this case 
 make invisible) in the database.
 During the datagrid initialze we make it invisible. The creationcomplete 
 event would be too late because by then the column would have rendered (for a 
 split second).
 
 Preinitialize would be ok...but other parts of my code (unrelated to this 
 problem) are failing because preinitialize is too early. i can't bare any 
 more code rewrites(but i suppose it keeps me in a job).
 
 
 
 
 --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
 
  The column probably hasn't been created yet. Try the creationcomplete event 
  of the datagrid.
  
  --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote:
  
   I get a runtime error when I set the gridcolumn.visible property during a 
   datagrid initialize event. There is no problem's
   if its the first gridcolumn. Looks like a bug?
   
   Can anyone suggest a workaround? 
   
   
   s:DataGrid initialize=makeColumnInvisible()
 s:columns
   s:ArrayList
 s:GridColumn id=gc0 dataField=col0 headerText=col0/
 s:GridColumn id=gc1 dataField=col1 headerText=col0/
   
   ..
   public function makeColumnInvisible():void
   {
  gc1.visible = false;  // causes a RTE
  gc0.visible = false;  // doesnt give a problem
   ..   
   
   
   RangeError: Error #1125: The index 1 is out of range 0.
 at 
   spark.components.gridClasses::GridDimensions/setTypicalCellWidth()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\gridClasses\GridDimensions.as:1325]
 at 
   spark.components.gridClasses::GridDimensions/columns_visibleChangedHandler()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\gridClasses\GridDimensions.as:1840]
 at 
   spark.components.gridClasses::GridDimensions/columnsCollectionChanged()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\gridClasses\GridDimensions.as:1800]
 at 
   spark.components::Grid/columns_collectionChangeHandler()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\Grid.as:4429]
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at spark.components.gridClasses::GridColumn/set 
   visible()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\gridClasses\GridColumn.as:1564]
   ...
  
 





Re: [flexcoders] Possible to specify a fallback font without breaking font embedding in Flex4?

2011-10-07 Thread Alex Harui
If you want to use font-fallback for an embedded font, even the fallback fonts 
have to be embedded.


On 10/5/11 7:58 PM, stiggler1 pmow...@gmail.com wrote:






I posted this question on stackoverflow.com a few months back and unfortunately 
haven't gotten any responses. Any help would be much appreciated!

http://stackoverflow.com/questions/6435042/is-it-possible-to-specify-a-fallback-font-without-breaking-font-embedding-in-flex

Here's the question as it appears on SO:

Seemingly against all sense, specifying more than just your embedded font in a 
font-family property breaks the font embedding and has your app jump to the 
proceeding fonts in the font family. For example:

Embed works:
global { font-family: HelveticaEmbedded!
 ; }
Embed no longer works:
global { font-family: HelveticaEmbedded, sans-serif; }
Is there a known fix or workaround to this? My problem is essentially that for 
characters in the deep unicode ranges (other alphabets, symbols), I'm unable to 
display anything but the actual unicode sequence (\u), presumably because I 
lack a font-fallback.

For reference, this is how my font is embedded:
@font-face
{
src: url(/fonts/HelveticaLTStd-Roman.otf);
font-family: HelveticaEmbedded;
embed-as-cff: true;
font-weight: normal;
font-style: normal;
font-lookup: embeddedCFF;
font-anti-alias-type: advanced;
unicode-range:
U+0041-005A, /* Upper-Case [A..Z] */
U+0061-007A, /* Lower-Case a-z */
U+0030-0039, /* Numbers [0..9] */
U+002E-002E; /* Period [.] */
}





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