Re: [flexcoders] Re: is there another flexcoders list?

2011-10-12 Thread John Fletcher
I only came to this list because I tried posting on the forums and never got
a single reply. And I saw heaps other unanswered questions. Hopefully they
are getting better...

John

2011/10/7 valdhor valdhorli...@embarqmail.com

 **


 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] spark datagrid drag drop question

2011-10-12 Thread bhaq1972
Does anyone know if the drag drop functionality will feature in the next 
release of spark datagrid? 




[flexcoders] Re: Chart data disappears when printing with a print-specific output format

2011-10-12 Thread John Fletcher
aha I figured it out, the series array is getting mucked up/changed around
by the print specific line chart. You have to duplicate it, see
http://www.saltwebsites.com/2011/flex-print-specific-chart
John

2011/10/11 John Fletcher

 I followed the advice at
 http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7c80.html
  to
 print using a print-specific output format in Flex 4.5, however this
 causes the data to disappear from my chart! Try the code below - is this a
 bug or is there a simple solution? One interesting side-effect is that after
 you print and the data disappears from your chart, you can still hover over
 the empty chart and get the dataTips pop up! :-)

 John


 ?xml version=1.0 encoding=utf-8?
 s:WindowedApplication xmlns:fx=http://ns.adobe.com/mxml/2009;
 xmlns:s=library://ns.adobe.com/flex/spark
 xmlns:mx=library://ns.adobe.com/flex/mx
 width=800
 height=600

  fx:Script
   ![CDATA[
import mx.charts.LineChart;
import mx.printing.FlexPrintJob;
import mx.collections.ArrayCollection;

[Bindable]
public var expensesAC:ArrayCollection = new ArrayCollection( [
 { Month: Jan, Profit: 2000, Expenses: 1500, Amount: 450 },
 { Month: Feb, Profit: 1000, Expenses: 200, Amount: 600 },
 { Month: Mar, Profit: 1500, Expenses: 500, Amount: 300 },
 { Month: Apr, Profit: 1800, Expenses: 1200, Amount: 900 },
 { Month: May, Profit: 2400, Expenses: 575, Amount: 500 } ]);

protected function button1_clickHandler(event:MouseEvent):void {
 var printJob:FlexPrintJob = new FlexPrintJob();
 if (printJob.start()) {
  var lc:LineChart = new LineChart();
  lc.height = mlc.height;
  lc.width = mlc.width;
  lc.dataProvider = mlc.dataProvider;
  lc.series = mlc.series;
  lc.seriesFilters = mlc.seriesFilters;
  lc.horizontalAxis = mlc.horizontalAxis;
  lc.verticalAxis = mlc.verticalAxis;

  addElement(lc);

  printJob.addObject(lc);
  printJob.send();
  removeElement(lc);
 }
}
   ]]
  /fx:Script
 s:HGroup
  mx:LineChart id=mlc dataProvider={expensesAC} showDataTips=true
   mx:horizontalAxis
mx:CategoryAxis categoryField=Month/
   /mx:horizontalAxis

   mx:series
mx:LineSeries yField=Profit form=curve displayName=Profit/
mx:LineSeries yField=Expenses form=curve displayName=Expenses/
mx:LineSeries yField=Amount form=curve displayName=Amount/
   /mx:series
  /mx:LineChart

  s:Button label=print click=button1_clickHandler(event)/
 /s:HGroup
 /s:WindowedApplication




[flexcoders] https, amf, load balancer

2011-10-12 Thread kelley80209
I'm struggling trying to get our app to communicate over SSL in our production 
environment. 

Environment
--
- Flex 2.0.1
- AMF/Remote Objects to Java app
- Load Balancer/SSL accelerator (strips SSL before gets to app server)

Would like to be able to support QA and Production with single build if 
possible. QA could be https, but we want to support http.

remoting-config.xml
---

default-channels  
channel ref=my-secure-amf/  
channel ref=my-amf/ 
/default-channels

services-config.xml


channel-definition id=my-amf 
class=mx.messaging.channels.AMFChannel   
endpoint 
uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amf; 
class=flex.messaging.endpoints.AMFEndpoint/  
properties
add-no-cache-headersfalse/add-no-cache-headers
polling-enabledfalse/polling-enabled
 /properties  
/channel-definition


channel-definition id=my-secure-amf 
class=mx.messaging.channels.SecureAMFChannel  
endpoint 
uri=https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure;
 class=flex.messaging.endpoints.SecureAMFEndpoint/ 
properties
add-no-cache-headersfalse/add-no-cache-headers
polling-enabledfalse/polling-enabled
/properties   
/channel-definition


thoughts/questions?


1. Does this configuration work for both http and https for both build and 
runtime? If I need to have two builds, that's fine (not ideal). I would just 
like someone (or have some link) to defines steps a, b, c on what to do in each 
case.

2. From another post, I tried changing the secure endpoint from 
SecureAMFEndpoint to just AMFEndpoint since by the time it hits our server, SSL 
is stripped. However, I received some error saying that I needed to have a 
secure endpoint with a secure (https) URL. 


Any help is appreciated.







[flexcoders] accessing buttons on button bar

2011-10-12 Thread Gustavo Duenas
Hi I have this code, for a title bar, so far I can add behaviours to  
the main buttoms but I come with the ideo to add new

sub-buttoms and I'm lost how can I put eventlisteners to them?

here is the code of my buttom bar

mx:MenuBar width=1079.697 height=40.151516 id=mBar  
labelField=@label creationComplete=init() fontSize=14  
fillAlphas=[0.26, 0.26, 0.26, 0.26] fontWeight=bold  
cornerRadius=6 color=#071243 fontFamily=Arial  
verticalCenter=-4 left=9.05

mx:dataProvider
mx:XMLListCollection
mx:XMLList xmlns=
item label=Petici—n de Oraci—n/
item label=Petici—n de Visita/
item label=Cont‡ctenos/
item label=Publicaciones
item label=La Biblia Antiguo 
Testamento/
item label=La Biblia Nuevo 
Testamento/
item label=Concordancia Tem‡tica de la 
Biblia/
item label=Doctrina Cristiana/
/item
item label=Iglesia FLS Blog/
item label=Donaciones/
/mx:XMLList
/mx:XMLListCollection
/mx:dataProvider


here is the code of the CDATA script.

protected function init():void{

var mbiBlog:MenuBarItem= mBar.menuBarItems[4] 
as MenuBarItem;
mbiBlog.addEventListener(MouseEvent.CLICK, 
openWindowBlog);

}

the buttoms I'd like to know how can I put the eventListeners are
item label=La Biblia Antiguo Testamento/
item label=La Biblia Nuevo 
Testamento/
item label=Concordancia Tem‡tica de la 
Biblia/
item label=Doctrina Cristiana/

Some help will be appreciated.

Gustavo



[flexcoders] Granite Data Services 2.3.0 RC1 Released

2011-10-12 Thread fwolff999
Hi all,

Granite Data Services 2.3.0 Release Candidate 1 is out and available for
download here http://www.graniteds.org/confluence/display/DOWNLOAD .
Many (59!) bugfixes, improvements and new features are coming with this
new release and the full change log can be found on GraniteDS'Jira
http://www.graniteds.org/jira/secure/IssueNavigator.jspa?reset=truejql\
Query=project+%3D+GDS+AND+fixVersion+%3D+%222.3.0.RC1%22+AND+status+%3D+\
Resolved+ORDER+BY+priority+DESCmode=hide .

Among many other things, GraniteDS 2.3.0 brings:

* Reverse lazy-loading.
* Clustering improvements.
* JMS integration fixes.
* Hibernate 4 / JBoss 7 / Flex 4.5 support.

Read this post
http://www.granitedataservices.com/more-details-on-the-new-features-in-\
graniteds-2-3/  about these new features on our blog.


Franck Wolff.



[flexcoders] Re: accessing buttons on button bar

2011-10-12 Thread valdhor
Add an event listener for the menubar rather than each item then check the 
label of the item that was clicked in the event.

See http://livedocs.adobe.com/flex/3/html/help.html?content=menucontrols_6.html 
for an example.


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

 Hi I have this code, for a title bar, so far I can add behaviours to  
 the main buttoms but I come with the ideo to add new
 sub-buttoms and I'm lost how can I put eventlisteners to them?
 
 here is the code of my buttom bar
 
 mx:MenuBar width=1079.697 height=40.151516 id=mBar  
 labelField=@label creationComplete=init() fontSize=14  
 fillAlphas=[0.26, 0.26, 0.26, 0.26] fontWeight=bold  
 cornerRadius=6 color=#071243 fontFamily=Arial  
 verticalCenter=-4 left=9.05
   mx:dataProvider
   mx:XMLListCollection
   mx:XMLList xmlns=
   item label=Petici—n de Oraci—n/
   item label=Petici—n de Visita/
   item label=Cont‡ctenos/
   item label=Publicaciones
   item label=La Biblia Antiguo 
 Testamento/
   item label=La Biblia Nuevo 
 Testamento/
   item label=Concordancia Tem‡tica de 
 la Biblia/
   item label=Doctrina Cristiana/
   /item
   item label=Iglesia FLS Blog/
   item label=Donaciones/
   /mx:XMLList
   /mx:XMLListCollection
   /mx:dataProvider
 
 
 here is the code of the CDATA script.
 
 protected function init():void{
   
   var mbiBlog:MenuBarItem= mBar.menuBarItems[4] 
 as MenuBarItem;
   mbiBlog.addEventListener(MouseEvent.CLICK, 
 openWindowBlog);
   
   }
 
 the buttoms I'd like to know how can I put the eventListeners are
 item label=La Biblia Antiguo Testamento/
   item label=La Biblia Nuevo 
 Testamento/
   item label=Concordancia Tem‡tica de 
 la Biblia/
   item label=Doctrina Cristiana/
 
 Some help will be appreciated.
 
 Gustavo





[flexcoders] Transitions - How to

2011-10-12 Thread Davidson, Jerry
I asked about this over in the forum a couple of days ago and refreshed
the post to re-add it to the first page, but no one has an answer.

 

What is happening is when the user clicks a button on the input form it
is replaced with a result form.  This is done by switching states and
works.  What I want to happen is the input form fade out and the result
form fade in.

 

I have tried several things with this being the latest (going against a
textarea) - transition:

 

  s:transitions

s:Transition fromState=Input toState=*

  s:Fade 

target=fsPageTitle duration=2000
alphaFrom=1 alphaTo=0/

/s:Transition

s:Transition fromState=Results toState=*

  s:Fade 

target=fsPageTitle duration=2000
alphaFrom=1 alphaTo=0/

/s:Transition

  /s:transitions

 

Here are the parts I want to fade in/out:

s:BorderContainer

  id=inputFormBC

  width=100% 

  includeIn=Input

  backgroundColor=#DEDACF 

  chromeColor=#DEDACF 

  borderVisible=false

  s:Group

horizontalCenter=0

width=100%

DHSComp:InputForm 

  id=inputForm

  width=100% /

  /s:Group

/s:BorderContainer

 

s:BorderContainer

  id=resultFormBC

  width=100% 

  includeIn=Results

  backgroundColor=#DEDACF 

  chromeColor=#DEDACF 

  borderVisible=false 

  s:Group

horizontalCenter=0

width=100%

DHSComp:ResultForm 

  id=resultForm

  width=100% /

  /s:Group

/s:BorderContainer

I've tried using the BorderContainer or the component.  I've tried going
against a control just to see if something simple works:

  s:TextArea 

id=fsPageTitle

alpha=1

text={pageTopText.pageTitleText}

styleName=pageTitle 

width=60% height=25

textAlign=center 

tabIndex=10 

contentBackgroundColor=#dedacf 

horizontalCenter=0 

fontSize=16 

top=0 

borderVisible=false

verticalAlign=middle/

 

In this last test, I got this error:

Error: Property alpha is not a property or a style on object
fsPageTitle: TypeError: Error #1006: value is not a function..

  at
spark.effects.supportClasses::AnimateInstance/setupStyleMapEntry()[E:\de
v\4.x\frameworks\projects\spark\src\spark\effects\supportClasses\Animate
Instance.as:994]

  at
spark.effects.supportClasses::AnimateInstance/setValue()[E:\dev\4.x\fram
eworks\projects\spark\src\spark\effects\supportClasses\AnimateInstance.a
s:1009]

  at
spark.effects.supportClasses::AnimateInstance/applyValues()[E:\dev\4.x\f
rameworks\projects\spark\src\spark\effects\supportClasses\AnimateInstanc
e.as:510]

  at
spark.effects.supportClasses::AnimateInstance/animationUpdate()[E:\dev\4
.x\frameworks\projects\spark\src\spark\effects\supportClasses\AnimateIns
tance.as:669]

  at
spark.effects.animation::Animation/sendUpdateEvent()[E:\dev\4.x\framewor
ks\projects\spark\src\spark\effects\animation\Animation.as:811]

  at
spark.effects.animation::Animation/start()[E:\dev\4.x\frameworks\project
s\spark\src\spark\effects\animation\Animation.as:1304]

  at
spark.effects.animation::Animation/play()[E:\dev\4.x\frameworks\projects
\spark\src\spark\effects\animation\Animation.as:1011]

  at
spark.effects.supportClasses::AnimateInstance/play()[E:\dev\4.x\framewor
ks\projects\spark\src\spark\effects\supportClasses\AnimateInstance.as:49
1]

  at
spark.effects.supportClasses::FadeInstance/play()[E:\dev\4.x\frameworks\
projects\spark\src\spark\effects\supportClasses\FadeInstance.as:174]

  at
spark.effects.supportClasses::AnimateInstance/startEffect()[E:\dev\4.x\f
rameworks\projects\spark\src\spark\effects\supportClasses\AnimateInstanc
e.as:422]

  at
mx.effects::Effect/play()[E:\dev\4.x\frameworks\projects\framework\src\m
x\effects\Effect.as:1214]

  at
mx.core::UIComponent/commitCurrentState()[E:\dev\4.x\frameworks\projects
\framework\src\mx\core\UIComponent.as:10088]

  at
mx.core::UIComponent/setCurrentState()[E:\dev\4.x\frameworks\projects\fr
amework\src\mx\core\UIComponent.as:9961]

  at
components::InputForm/swapToResultsState()[C:\FSCalc\Flex\FSCalc\src\scr
ipts\FSUtil.as:71]

  at

[flexcoders] Any difference between instantiating in declaration vs. init()

2011-10-12 Thread luvfotography
Hi, 
Is there any difference between initializing a variable in the declarations vs. 
in the creationComplete function?

private var scrollTimer:Timer = new Timer(500,1);
 
 or

private var scrollTimer:Timer;

private function init():void {
 scrollTimer = new Timer(500,1);
}

When/Why should I use one vs. the other?
thanks,




[flexcoders] Re: Transitions - How to

2011-10-12 Thread Scott Fanetti
It's not clear from your example what's is going on. Is the textArea even 
created by the time the outer container changes state?  

Sent from my iPhone