[flexcoders] Spark layout / horizonal and vertical centered button

2009-10-20 Thread Markus
Hello, 

this might be an easy question but at the moment I am not sure how to do this. 
I want to use the new Spark layout and display a button that is horizontal and 
vertical centered in the middle. 

I have tried the following code but it didn't work.

?xml version=1.0 encoding=utf-8?
s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; 
xmlns:s=library://ns.adobe.com/flex/spark 
xmlns:mx=library://ns.adobe.com/flex/halo minWidth=1024 minHeight=768

s:Group width=100% height=100%
   s:HGroup verticalAlign=middle width=100% height=100% 

   s:VGroup width=100% height=100% horizontalAlign=center
  s:Button label=button1/
/s:VGroup
/s:HGroup
 /s:Group
/s:Application

Any suggestions or examples?

Regards Markus

BTW: Does anybody know where to get the source code from Glenn Ruehle's 
presentation about Spark layouts on the MAX 2009?




RE: [flexcoders] 2 strange issues for begginer in action script ref

2009-10-20 Thread dennis
Thank you for your help, developing flex projects all of then components are
available.

 

dennis

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Gordon Smith
Sent: Tuesday, October 20, 2009 2:09 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] 2 strange issues for begginer in action script ref

 

  

Issue 1: It looks like you want to create a Flex button. If so, you want
mx.controls.Button, not mx.core.ButtonAsset. But you can't take a Flex
Button and have it work inside a plain old Sprite, which is what a pure
ActionScript-based app is. Flex is an application framework, and Flex
controls expect to be inside of Flex containers. So you have to start by
creating, in MXML, an mx:Application or an s:Application. Once you have
that, you can do everything else in AS rather than MXML if you really don't
like MXML. But it's a lot easier to just write mx:Button.

 

Issue 2: Again, it looks like your problem is that you're expecting Flex
controls to work inside of pure ActionScript apps.

 

Gordon Smith

Adobe Flex SDK Team

 

 



[flexcoders] Re: Spark layout / horizonal and vertical centered button

2009-10-20 Thread Markus
Just found the link to the slides and sources for Glenn Ruehle's presentation 
about Spark layouts at the Official Flex Team Blog:

http://blogs.adobe.com/flex/

--- In flexcoders@yahoogroups.com, Markus kram...@... wrote:

 Hello, 
 
 this might be an easy question but at the moment I am not sure how to do 
 this. I want to use the new Spark layout and display a button that is 
 horizontal and vertical centered in the middle. 
 
 I have tried the following code but it didn't work.
 
 ?xml version=1.0 encoding=utf-8?
 s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; 
 xmlns:s=library://ns.adobe.com/flex/spark 
 xmlns:mx=library://ns.adobe.com/flex/halo minWidth=1024 
 minHeight=768
   
 s:Group width=100% height=100%  
s:HGroup verticalAlign=middle width=100% height=100%   
 
s:VGroup width=100% height=100% horizontalAlign=center
   s:Button label=button1/
 /s:VGroup
 /s:HGroup
  /s:Group
 /s:Application
 
 Any suggestions or examples?
 
 Regards Markus
 
 BTW: Does anybody know where to get the source code from Glenn Ruehle's 
 presentation about Spark layouts on the MAX 2009?





[flexcoders] Re: inline item editor component grow when selected?

2009-10-20 Thread mr_william_clark
I guess I will answer my own question:

On the DataGrid column, use editorHeightOffset and EditorWidthOffset to set the 
larger size cell.

You can also use editorXOffest and editorYOffset to move the itemEditor cell a 
little bit off the top of the edited cell.

--- In flexcoders@yahoogroups.com, mr_william_clark cl...@... wrote:

 How can I make my inline component grow to a size larger than the datagrid 
 cell when a user selects it?
 
 Many thanks for any ideas.
 Bill





[flexcoders] 1067: Implicit coercion of a value of type Array to an unrelated type __AS3__.vec:Vector.Object

2009-10-20 Thread |Mirko

Hi,

Recently i used Flash Builder Beta 1 for my project but since Beta 1 expired
i installed Beta 2 and imported my project. Now, i have a following error
which didn't exist in previous Beta 1 version and i am not sure how to solve
this. The error is for this line of code:

List(SectionItem(sectionItems[i]).sectionText_List).selectedItems =
selectedTextItemsArray;

Where i am assigning selected values for List component and that worked just
fine in Flash Builder Beta 1 but now i keep getting this erroe:

1067: Implicit coercion of a value of type Array to an unrelated type
__AS3__.vec:Vector. 

Can someone please help me to solve this? :/


Thanks in advance,
Best regards
-- 
View this message in context: 
http://www.nabble.com/1067%3A-Implicit-coercion-of-a-value-of-type-Array-to-an-unrelated-type-__AS3__.vec%3AVector.%3CObject%3E-tp25974201p25974201.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: PHP service classes in a different directory besides Weborb's Services dir

2009-10-20 Thread valdhor
The Services path is set in the weborb-config.xml file in the Weborb directory.

I have never tried changing it but that is the first place I would try.

--- In flexcoders@yahoogroups.com, Keith Sutton keith_sutton...@... wrote:

 Weborb seems to restrict you to putting service classes in the /Services 
 directory. It would be nice in some cases to have an applications service 
 classes in a subdirectory of the deployed application directory (i.e 
 www.myhost.com/myApp/PHP/MyService.php). Has anyone successfully done this ? 
 What -config.xml file magic have you used ?





[flexcoders] calling new CSSStyleDeclaration

2009-10-20 Thread djhatrick
causes all my components to flash, is there a way to avoid this?

Thanks,
Patrick



[flexcoders] RPC Fault when calling remoteObject / cfc

2009-10-20 Thread janjohannes...@rocketmail.com
Hi,

I have had a problem for a long time now. It happens when I  run applications 
from Flex Builder 3 that call remoteObjects that  again calls coldFusion 
cfc-files. The first time I run the applications after I have started Flex 
Builder, it always works ok. But after 10 minutes or so of using Flex Builder, 
I often get an error after the browser has loaded the swf-file. If I utdate the 
browser, it works fine most of the time.

This error only happens on my local coldFusion development server (built in). 
When I deploy the applications, everything works fine all the time. 

The error I get is as follows:

An ActionScript error has occurred:

[RPC Fault faultString=java.lang.NullPointerException 
faultCode=Server.Processing faultDetail=null]
at 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:220]
at 
mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
at 
mx.rpc::AsyncRequest/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
at 
NetConnectionMessageResponder/statusHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:569]
at 
mx.messaging::MessageResponder/status()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\MessageResponder.as:222]


Can anybod help me on this one?

Thanks




[flexcoders] Re: HTML in text control

2009-10-20 Thread janjohannes...@rocketmail.com
I found that this probleme occors because of embedded fonts. So when I embedded 
the fonts with one swf-file for each embedded font, the broblem was solved.

--- In flexcoders@yahoogroups.com, janjohannes...@... d...@... wrote:

 I forgot to mention that the string that comes from the MySQL database is 
 like this:
 TEXTFORMAT LEADING=2P ALIGN=LEFTFONT FACE=Verdana SIZE=10 
 COLOR=#CC LETTERSPACING=0 KERNING=0This is a test 
 string/FONT/P/TEXTFORMATTEXTFORMAT LEADING=2P ALIGN=LEFTFONT 
 FACE=Verdana SIZE=12 COLOR=#404040 LETTERSPACING=0 
 KERNING=0/FONT/P/TEXTFORMAT
 
 
 --- In flexcoders@yahoogroups.com, janjohannessen@ data@ wrote:
 
  Hi, thank you for your response.
  I am quite new to flex, so I am not sure what you mean by inspecting. But 
  I have put on a trace function activated from Button and even if the 
  text-contol do not render the html code in text mode, the trace function 
  show the string from the database correct.
  
  Here are the code for the flex component:
  
  ?xml version=1.0 encoding=utf-8?
  mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml;
  bottom=20 right=20 left=20  top=95
  styleName=ViewStack
  cornerRadius=6
  creationComplete=init();
  width=100% height=100%
  
  mx:Script
  ![CDATA[
  
  import jansInternal.ObjectProxyToAC;
  import mx.collections.ArrayCollection;
  import mx.controls.Alert;
  import mx.rpc.events.ResultEvent;
  
  
  private var dreamData:ArrayCollection;
  private var dreamDataX:ArrayCollection;
  [Bindable]
  private var FinalText:String;
  private var jjACProxy:ObjectProxyToAC = new 
  ObjectProxyToAC;
  
  
  private function init():void {  
  ro_1.getData_1(1,1);
  // starts remote object ro_1
  }
  
  private function getDreamData(e:ResultEvent):void { 
  
  dreamData = e.result as ArrayCollection;
  // Returdata fra Dream.cfc
  dreamDataX = 
  jjACProxy.resultHandler(dreamData);// jjACProxy puts 
  ArrayCollection in OblectProxy
  FinalText = 
  dreamDataX.getItemAt(0).sidetekst_1;//stores arraycollection
  
  }
  
  ]]
  /mx:Script
  
  !-- Remote object for å jobbe med tabellen TheSpaceOfLight --
  mx:RemoteObject id=ro_1
  destination=ColdFusion
  showBusyCursor=true
  source=FLEX_CC.TheSpaceOfLight.src.assets.cfc.Dream
  mx:method
  name=getData_1
  result=getDreamData(event) /
  /mx:RemoteObject
  
  mx:Panel 
  width=699
  layout=horizontal
  right=20 bottom=20 top=20
  mx:Text id=dreamText
  width=100% height=100% 
  htmlText={FinalText} 
  /mx:Text
  
  /mx:Panel
  mx:Button
  x=104 y=597
  label=Button
  click=trace(dreamText.htmlText)/
  
  /mx:Canvas
  
  PS: I use the same prinsiple in my first application that update tde 
  tatabase. So when i load data from the database to the RichTextEditor via 
  the htmlText propery, it works fine. The only difference is that the the 
  data from the database is first received as a dataprovider for a dataGrid 
  ann then sent to the RTE by selecting the datagrid.
  
  Tnaks again.
  
  Jan Johannessen
  Norway
  
  
  --- In flexcoders@yahoogroups.com, Gordon Smith gosmith@ wrote:
  
   When you inspect dreamText.htmlText and dreamText.text, are they what you 
   expect or are they empty Strings?
   
   Gordon Smith
   Adobe Flex SDK Team
   
   From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
   Behalf Of janjohannessen@
   Sent: Monday, September 14, 2009 10:02 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] HTML in text control
   
   
   
   I have made two applications:
   1. Stores text in a MySQL database. I use RichTextEditor to make the 
   text, and then stores the text in the database vith all the HTML tags.
   2. The other application is a private homepage that loads the text from 
   the database. I use mx:text controls to display the text.
   
   When I bind the receiving input variable from the database to the text 
   control using the text-property, the text control fills up nicely... but 
   with html-coded text. When I bind the input variable from the 

[flexcoders] Re: Question?? Best method for plotting a Moving Average

2009-10-20 Thread jc_bad28
How are you receiving your price data to plot? Price feed? Static file? What 
you could do is create a function to loop through the array and perform the 
moving average calculation and add the result as an extra column in the 
array.  Are you plotting the full historic price data set?  If so, your MA will 
begin at the nth bar where n is your MA period setting.  eg.. a 20 day MA won't 
start until the 20th day into the data set.

If you're using a static dataset, you could do the calculation in Excel and 
then save the entire datset as XML and just bring that into flex and plot the 
MA from the existing values.

--- In flexcoders@yahoogroups.com, cjsteury2 cra...@... wrote:

 Hi all,
 
 I am stumped.
 
 If I want to add an additional data series to a HLOC Chart that is a line 
 series of a simple 20 day moving average for the closing price (Close) 
 value in an array collection (Array_Tickers)... how would I perform that 
 calculation in Flex?
 
 mx:lineSeries id=mavg 
  dataprovider=Array_Tickers
  ySeries=Close /
 
 How would I calculate Close as {The SUM for the Value of Close for the 
 previous 20 days / divided by 20}...





Re: [SPAM] [flexcoders] Web Service not returning all XML elements.

2009-10-20 Thread jc_bad28
Thanks for the reply.  After doing some searches, I see you've answered this 
question a few jillion times. :)

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

 The default resultFormat, object causes Flex to try to convert the xml
 into a tree of dynamic objects.  This is somewhat of a blackbox process and
 you have no control over it.
 
  
 
 It is also the worst of both worlds; Dynamic objects have performance
 issues, (as does xml) and searching/filtering that object tree is much
 harder than using e4x expressions.
 
  
 
 Best practice is to get your data as e4x, then process it yourself into an
 ArrayCollection of strongly typed value objects.
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of jc_bad28
 Sent: Wednesday, October 14, 2009 3:01 PM
 To: flexcoders@yahoogroups.com
 Subject: [SPAM] [flexcoders] Web Service not returning all XML elements.
 
  
 
   
 
 Hi, I've created a simple Web Service for retrieving 25 columns. The ws is
 setup to return the data as type object. When I go into debug mode and
 inspect the results only show about 1/2 of the columns are being returned.
 
 If I invoke the service from my java client, all of the expected columns are
 returned. Inspecting the returned XML in the java client doesn't show
 anything out of the ordinary. 
 
 In Flex if I set the return type to e4x, all of the elements are returned. 
 
 Just curious as to why Flex isn't returning all of the elements as objects.
 
 Below is the wsdl and a sample of the java invoked xml.
 
 - wsdl:definitions xmlns:wsdl=http://schemas.
 http://schemas.xmlsoap.org/wsdl/ xmlsoap.org/wsdl/
 xmlns:ns1=http://ws.wso2. http://ws.wso2.org/dataservice org/dataservice
 xmlns:wsaw=http://www.w3. http://www.w3.org/2006/05/addressing/wsdl
 org/2006/05/addressing/wsdl xmlns:http=http://schemas.
 http://schemas.xmlsoap.org/wsdl/http/ xmlsoap.org/wsdl/http/
 xmlns:ax21=S2 xmlns:xs=http://www.w3. http://www.w3.org/2001/XMLSchema
 org/2001/XMLSchema xmlns:soap=http://schemas.
 http://schemas.xmlsoap.org/wsdl/soap/ xmlsoap.org/wsdl/soap/
 xmlns:mime=http://schemas. http://schemas.xmlsoap.org/wsdl/mime/
 xmlsoap.org/wsdl/mime/ xmlns:soap12=http://schemas.
 http://schemas.xmlsoap.org/wsdl/soap12/ xmlsoap.org/wsdl/soap12/
 targetNamespace=http://ws.wso2. http://ws.wso2.org/dataservice
 org/dataservice
 - wsdl:types
 - xs:schema attributeFormDefault=qualified elementFormDefault=qualified
 targetNamespace=S2
 - xs:element name=GetAllSched
 - xs:complexType
 xs:sequence / 
 /xs:complexType
 /xs:element
 - xs:complexType name=Jobs
 - xs:sequence
 xs:element maxOccurs=unbounded minOccurs=0 name=Job nillable=true
 type=ax21:Job / 
 /xs:sequence
 /xs:complexType
 xs:element name=Jobs type=ax21:Jobs / 
 - xs:complexType name=Job
 - xs:sequence
 xs:element minOccurs=0 name=jobnum nillable=true type=xs:string / 
 xs:element minOccurs=0 name=SpecialShipping nillable=true
 type=xs:string / 
 xs:element minOccurs=0 name=OriginalMailDate nillable=true
 type=xs:string / 
 xs:element minOccurs=0 name=maildate1 nillable=true type=xs:string
 / 
 xs:element minOccurs=0 name=mailqty nillable=true type=xs:string /
 
 xs:element minOccurs=0 name=clientname nillable=true type=xs:string
 / 
 xs:element minOccurs=0 name=ProductionComplete nillable=true
 type=xs:string / 
 xs:element minOccurs=0 name=ShopNote nillable=true type=xs:string
 / 
 xs:element minOccurs=0 name=creatdue nillable=true type=xs:string
 / 
 xs:element minOccurs=0 name=creatdone nillable=true type=xs:string
 / 
 xs:element minOccurs=0 name=ListDue nillable=true type=xs:string /
 
 xs:element minOccurs=0 name=ListDone nillable=true type=xs:string
 / 
 xs:element minOccurs=0 name=Outsource nillable=true type=xs:string
 / 
 xs:element minOccurs=0 name=ActualQty nillable=true type=xs:string
 / 
 xs:element minOccurs=0 name=Press2clr nillable=true type=xs:string
 / 
 xs:element minOccurs=0 name=Press4clr nillable=true type=xs:string
 / 
 xs:element minOccurs=0 name=Press10Env nillable=true type=xs:string
 / 
 xs:element minOccurs=0 name=Press9Env nillable=true type=xs:string
 / 
 xs:element minOccurs=0 name=Press4clrEnv nillable=true
 type=xs:string / 
 xs:element minOccurs=0 name=LaserRoom nillable=true type=xs:string
 / 
 xs:element minOccurs=0 name=FlowMasterMM nillable=true
 type=xs:string / 
 xs:element minOccurs=0 name=FlowMasterSTD nillable=true
 type=xs:string / 
 xs:element minOccurs=0 name=Inserting nillable=true type=xs:string
 / 
 xs:element minOccurs=0 name=InkJet nillable=true type=xs:string / 
 xs:element minOccurs=0 name=LaserLetter nillable=true
 type=xs:string / 
 /xs:sequence
 /xs:complexType
 /xs:schema
 /wsdl:types
 - wsdl:message name=GetAllSchedRequest
 wsdl:part name=parameters element=ax21:GetAllSched / 
 /wsdl:message
 - wsdl:message name=GetAllSchedResponse
 wsdl:part name=parameters element=ax21:Jobs / 
 /wsdl:message
 - 

RE: [flexcoders] calling new CSSStyleDeclaration

2009-10-20 Thread Alex Harui
Try validateNow

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of djhatrick
Sent: Tuesday, October 20, 2009 6:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] calling new CSSStyleDeclaration



causes all my components to flash, is there a way to avoid this?

Thanks,
Patrick



Re: [flexcoders] 1067: Implicit coercion of a value of type Array to an unrelated type __AS3__.vec:Vector.Object

2009-10-20 Thread |Mirko

I solved this Vector problem but now i found more problems because of
transfer to Beta 2. 

Is it possible somehow to use that same Flex 4.0 (build 7219) sdk which was
in Beta 1 where my project worked correcly now in Flash Builder Beta 2? I
tried adding that same sdk from Beta 1 to Beta 2 but then Flash Builder Beta
2 started crashing due to Internal error :/


Thanks,
Cheers

-- 
View this message in context: 
http://www.nabble.com/1067%3A-Implicit-coercion-of-a-value-of-type-Array-to-an-unrelated-type-__AS3__.vec%3AVector.%3CObject%3E-tp25974201p25979867.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: calling new CSSStyleDeclaration

2009-10-20 Thread djhatrick

ok, thanks, Where do I call this, on my module in initialize?


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

 Try validateNow
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of djhatrick
 Sent: Tuesday, October 20, 2009 6:41 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] calling new CSSStyleDeclaration
 
 
 
 causes all my components to flash, is there a way to avoid this?
 
 Thanks,
 Patrick





[flexcoders] transparent overlay with mouseover events passed throught - how to??

2009-10-20 Thread pauli159000
I'm using a chart component, and I want to implement a drill down that will 
overlay the summary chart.  I'm an experienced developer, but new to 
Flex/ActionScript.  I'm using the Axiis Datavis Library, although I don't think 
it matters for my questions.

I currently have an application with this structure:

ApplicationWindow
--ApplicationControlBar
--Canvas
--ControlBar

If I add a DrillDown Canvas with a transparent background and visual status set 
to false, I can update the dataprovider to the appropriate filtered detail and 
make it visible in the itemClick handler of the main chart Canvas.  And I can 
make it invisible again in the itemClick handler of the drill down canvas.  I'm 
thinking like this:

ApplicationWindow
--ApplicationControlBar
--Canvas itemClick=displayDrillDown();
--DrillDownCanvas visible=false backgroundAlpha=0 
itemClick=removeDrillDown();
--ControlBar


But what I'm not sure about, and haven't found any clear tutorial for, is:

* how to ensure that the drilldown canvas size and screen position will be 
identical to the main canvas, given potential application window resizing that 
the user may have done while it's visible status is false?

* how to ensure that the drilldown canvas is on top of the main canvas, so that 
it can intercept click events before they hit the main canvas?  Is it defined 
by the declaration order in the MXML code?

* how to allow mouseover events to pass through, if there is no chart element 
on the drilldown canvas, so that tooltips will display for chart items on 
either canvas -- or even if this is possible?

I appreciate any assistance you can provide, even if it's to tell me that my 
approach is all wrong!





[flexcoders] Scaling issues.

2009-10-20 Thread flexaustin
I am using a library that has a built in scaling so you create an object from 
the library and when you scale everything in the object will scale. Think 
Google maps.  

So the issue I am having is that I am using a TransformTool Senocular's that 
is. So when a transform tool is in side the framework object it gets scaled as 
well ending up with a giant transformtool.  How can I keep the Transformtool 
from scaling?  Or counter it.

Something like

transformtool.scaleX = 1 - frameworkObject.scaleX;
transformtool.scaleY = 1 - frameworkObject.scaleY;

Thanks, J



[flexcoders] Re: onMouseOver buttons - how to ? as in Flex Store

2009-10-20 Thread thaagen...@ymail.com

The application you linked has view source available.  The effect in
this example is achieved by using a custom style.  Two custom styles
actually.  The first style is for the overall button bar.  You can call
it anything you like.  You call the style inline with
styleName=myCustomStyle which you declare in a css file.  In
'myCustomStyle' you then add the property buttonStyleName:
mySecondCustomStyle.  You can then reference your own actionscript
classes for drawing on the buttons with properties 'selectedOverSkin',
'selectedUpSkin', and 'overSkin'.

I recommend checking the source for more specifics on how they drew the
effects for these buttons.  It primarily revolves around drawing a
different rectangle graphic depending on which property was passed in
'selectedOverSkin', 'selectedUpSkin', or 'overSkin'.


--- In flexcoders@yahoogroups.com, tex_learning_flex
tex.learning.f...@... wrote:

 Can anyone point me to an explanation of how to achieve the effect of
 buttons appearing onMouseOver as in the Flex Store

http://examples.adobe.com/flex2/inproduct/sdk/flexstore/flexstore.html
  app (
 http://examples.adobe.com/flex2/inproduct/sdk/flexstore/flexstore.html

http://examples.adobe.com/flex2/inproduct/sdk/flexstore/flexstore.html
 - Products page)

 many, many thanks in advance,

 Tex






[flexcoders] RemoveChild not removing instance from memory

2009-10-20 Thread Brandon Krakowsky
Hello there.  I've got a VBox into which I'm dynamically adding multiple 
instances of a custom UIComponent.  When I try to remove them, and add new 
instances, the old instances seem to hang around in memory, as well as the 
assets contained within - UITextFields, Radio Buttons, etc.

I remove all listeners and have no other references to the custom 
UIComponents.  I've tried removeAllChildren() as well as iterating through each 
child and using removeChildAt(0).

The instances just build up in memory as I load new instances.  Garbage 
Collection does not clean them up.

Thanks,
Brandon



  

[flexcoders] Re: Yahoo! Groups: Welcome to flexcoders. Visit today!

2009-10-20 Thread Timothy Haagenson
Sending a message so that I may start posting messages to the group.





From: flexcoders Moderator flexcoders-ow...@yahoogroups.com
To: thaagen...@ymail.com
Sent: Tue, October 20, 2009 2:32:18 PM
Subject: Yahoo! Groups: Welcome to flexcoders. Visit today!


Hello,

Welcome to the flexcoders group at Yahoo! Groups, a free, easy-to-use email 
group service. Please take a moment to review this message.

To learn more about the flexcoders group, please visit 
http://www.flexcoders.org or
http://groups.yahoo.com/group/flexcoders

To start sending messages to members of this group, simply send email to 
flexcoders@yahoogroups.com

If you do not wish to belong to flexcoders, you may unsubscribe by sending an 
email to 
flexcoders-unsubscr...@yahoogroups.com

To see and modify all of your groups, go to
http://groups.yahoo.com/mygroups


Regards,

Moderator, flexcoders




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


  

RE: [flexcoders] Re: calling new CSSStyleDeclaration

2009-10-20 Thread Alex Harui
For performance reasons I'd call it on the highest level thing that is 
flickering.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of djhatrick
Sent: Tuesday, October 20, 2009 11:18 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: calling new CSSStyleDeclaration



ok, thanks, Where do I call this, on my module in initialize?

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 Try validateNow

 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of djhatrick
 Sent: Tuesday, October 20, 2009 6:41 AM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] calling new CSSStyleDeclaration



 causes all my components to flash, is there a way to avoid this?

 Thanks,
 Patrick




re[flexcoders] size checkbox/radioButton?

2009-10-20 Thread coder3

Hi All,

I want to shrink the checkbox or radioButton but keep the size of the
lable/text. 
i tried this:
mx:radioButton scaleX=0.8 scaley=0.8 fontsize=13/

scalex/y makes the button and text smaller, so i increase the fontsize, but
it seems that the label shows 80% of it.

is there another way to made the checkbox smaller by using css and keep the
font.

thanks!
C
-- 
View this message in context: 
http://www.nabble.com/resize-checkbox-radioButton--tp25982366p25982366.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] transparent overlay with mouseover events passed throught - how to??

2009-10-20 Thread Alex Harui
Even if visible=false, the component will be layed out.  If both canvases have 
width/height=100% they will overlap

Declaration order sets depth

Instead of a Canvas, you might need to use UIComponent.  Canvas has code that 
blocks mouse events if you listen for any mouse events on it.  UIComponent is 
lower-level.  In Flash there is a difference between a transparent pixel and  
an area in a Sprite that hasn't been drawn on at all.  So, instead of a 
transparent background, you don't want a background at all, just draw the hit 
targets.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of pauli159000
Sent: Tuesday, October 20, 2009 12:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] transparent overlay with mouseover events passed throught 
- how to??



I'm using a chart component, and I want to implement a drill down that will 
overlay the summary chart. I'm an experienced developer, but new to 
Flex/ActionScript. I'm using the Axiis Datavis Library, although I don't think 
it matters for my questions.

I currently have an application with this structure:

ApplicationWindow
--ApplicationControlBar
--Canvas
--ControlBar

If I add a DrillDown Canvas with a transparent background and visual status set 
to false, I can update the dataprovider to the appropriate filtered detail and 
make it visible in the itemClick handler of the main chart Canvas. And I can 
make it invisible again in the itemClick handler of the drill down canvas. I'm 
thinking like this:

ApplicationWindow
--ApplicationControlBar
--Canvas itemClick=displayDrillDown();
--DrillDownCanvas visible=false backgroundAlpha=0 
itemClick=removeDrillDown();
--ControlBar

But what I'm not sure about, and haven't found any clear tutorial for, is:

* how to ensure that the drilldown canvas size and screen position will be 
identical to the main canvas, given potential application window resizing that 
the user may have done while it's visible status is false?

* how to ensure that the drilldown canvas is on top of the main canvas, so that 
it can intercept click events before they hit the main canvas? Is it defined by 
the declaration order in the MXML code?

* how to allow mouseover events to pass through, if there is no chart element 
on the drilldown canvas, so that tooltips will display for chart items on 
either canvas -- or even if this is possible?

I appreciate any assistance you can provide, even if it's to tell me that my 
approach is all wrong!



RE: [flexcoders] Scaling issues.

2009-10-20 Thread Alex Harui
1/framworkObject.scaleX

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of flexaustin
Sent: Tuesday, October 20, 2009 1:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Scaling issues.



I am using a library that has a built in scaling so you create an object from 
the library and when you scale everything in the object will scale. Think 
Google maps.

So the issue I am having is that I am using a TransformTool Senocular's that 
is. So when a transform tool is in side the framework object it gets scaled as 
well ending up with a giant transformtool. How can I keep the Transformtool 
from scaling? Or counter it.

Something like

transformtool.scaleX = 1 - frameworkObject.scaleX;
transformtool.scaleY = 1 - frameworkObject.scaleY;

Thanks, J



RE: [flexcoders] RemoveChild not removing instance from memory

2009-10-20 Thread Alex Harui
The profiler will show you what is still hanging on to those objects.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Brandon Krakowsky
Sent: Tuesday, October 20, 2009 1:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RemoveChild not removing instance from memory


Hello there.  I've got a VBox into which I'm dynamically adding multiple 
instances of a custom UIComponent.  When I try to remove them, and add new 
instances, the old instances seem to hang around in memory, as well as the 
assets contained within - UITextFields, Radio Buttons, etc.

I remove all listeners and have no other references to the custom UIComponents. 
 I've tried removeAllChildren() as well as iterating through each child and 
using removeChildAt(0).

The instances just build up in memory as I load new instances.  Garbage 
Collection does not clean them up.

Thanks,
Brandon






[flexcoders] Re: transparent overlay with mouseover events passed throught - how to??

2009-10-20 Thread pauli159000
OK -- got it.  

Thanks for saving me the time it would have taken to find out that it wouldn't 
work.

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

 Instead of a Canvas, you might need to use UIComponent.  Canvas has code that 
 blocks mouse events if you listen for any mouse events on it.  UIComponent is 
 lower-level.  In Flash there is a difference between a transparent pixel and  
 an area in a Sprite that hasn't been drawn on at all.  So, instead of a 
 transparent background, you don't want a background at all, just draw the hit 
 targets.




[flexcoders] Re: Huge impact of Class and Function on memory usage

2009-10-20 Thread gtb104
Anyone?

--- In flexcoders@yahoogroups.com, gtb104 gtb...@... wrote:

 I'm seeing similar results.  We're taking great pains to reduce the memory 
 footprint of our application.  We're getting the memory requirement down 
 slowly, but BitmapData is humongous!
 
 After running a test case 7 times, and finding the loitering objects, we see 
 the following (sorted by Memory usage):
 
 Class   Package InstancesMemory
 BitmapData  flash.display   466(0.91%)   24820752(81.27%)
 Function4275(8.37%)1429405(4.68%)
 String  7768(15.21%)582830(1.91%)
 Class   179(0.35%)  507919(1.66%)
 Object  7386(14.47%)424292(1.39%)
 
 
 Over 81% of the memory is tied up in BitmapData.  Doesn't this seem wrong?  
 I've scoured the internet looking for information on this topic, but am 
 coming up blank.
 
 My guess is that this BitmapData is internal snapshots of the UI that it 
 might be using for transitions/effects/skins/etc.  We skin our application 
 using PNG assets.  There are also two Image tags that get updated 
 alternatively with output from a mapping application on the back-end.
 
 I'd really appreciate an explanation of what generates the BitmapData, and 
 how to remove it from memory, as our application memory usage grown over time 
 and eventually crashes the browser.
 
 Thanks,
 Geoff
 
 --- In flexcoders@yahoogroups.com, cesarerocchi cesarerocchi@ wrote:
 
  Nobody??
  
  --- In flexcoders@yahoogroups.com, cesarerocchi cesarerocchi@ wrote:
  
   Hi,
   
   in profiling my application, when I visualize the loitering objects, my 
   classes have an 
  impact 
   of the 5% on memory usage. I think it is not much, but I see a huge 
   impact of Class, 
  Function, 
   Bitmapdata, Object, String.
   
   Are these classes generating memory leaks?
   
   --
   Cesare Rocchi
   http:/spreadingfunkyness.com
  
 





[flexcoders] DateTimeAxis not displaying all values in collection

2009-10-20 Thread c0mpl3xxx

I'm having an issue when trying to use the DateTimeAxis to map a set of values 
to a ColumnChart. The dataProvider for my chart includes a months worth data 
(currently 31 days). I setup my DateTimeAxis with a minimum date for the 1st of 
the month, and a maximum date for the 31st of the month. I have setup a 
parseFunction to ensure that all my dates times are zeroed out (i.e. 
initializing each date with zero prior to assigning the date values). I had to 
do this to get the chart elements to line up properly. 

The issue now seems to be with the displayLocalTime property. When I set this 
property to false, all the chart elements line up nicely (i.e. they align to 
the tick marks and space out evenly); however, the last date in the data set 
(the 31st) does not show up in the chart. If I set the property to true, all of 
the dates show up; however, the alignment of the data points does not match up 
with the tick marks and looks sloppy.

The only hack that I've seemed to get to work thus far is to set the maximum 
date to be one day past the date that I want to be my actual maximum (in this 
case that would be the 1st of the next month).

Has anyone else run into this?

Thanks!

-Kyle




Re: [SPAM] [flexcoders] How to call a Actionscript function in a UI child from UI father ?

2009-10-20 Thread Alen Balja
Also you would want to make all functions public that are to be accessed by
outside objects. I see you marked getFileSize as private.

On Thu, Oct 15, 2009 at 10:11 AM, Tracy Spratt tr...@nts3rd.com wrote:



  Don’t use binding braces in actionscript (the event handler declaration
 is actionscript)



 Try:

 click=getFileSize(data.filesize)



 That assumes the data object is created and has that property.



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *polo_enzo
 *Sent:* Wednesday, October 14, 2009 2:11 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [SPAM] [flexcoders] How to call a Actionscript function in a UI
 child from UI father ?






 when I try to call the getFileSize with the param: {data.filesize}, it does
 not work ? I am quite new in Flex Technology... Can somebody tell me what is
 wrong ?

 --- FlickrRIA.mxml
 mx:Script
 ![CDATA[

 private function getFileSize(filesize:String):void {
 imageText.text = filesize;
 }

 ]]
 /mx:Script

 --- FlickrThumbnail.mxml
 mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;
 width=125 height=125
 horizontalAlign=center
 horizontalScrollPolicy=off verticalScrollPolicy=off
 paddingBottom=5 paddingLeft=5 paddingRight=5 paddingTop=5



 mx:Image
 width=75 height=75
 source={data.thumbnail.url}
 click=getFileSize({data.filesize})/
 mx:Text
 id=imageText
 text={data.credit} /

 /mx:VBox

 thx,
   



[flexcoders] How to write a multiuser type game?

2009-10-20 Thread luvfotography
Are there any good books or postings or examples on how to write a multiuser 
Flex game?  
Just looking for a basic type game like poker.
thanks,




[flexcoders] Flex resources Search?

2009-10-20 Thread luvfotography
Are there any good search engines that just search Flex sites?



[flexcoders] Line spacing (style leading) behaves weirdly for multiline UITextfield

2009-10-20 Thread m_koks
Hi All,

I have to provide the support for the style leading (which is used for line 
spacing) for UItextField component. Problem is that the line spacing doesn't 
get applied to the last line of a multiline text.
Interestingly, if if it is a single line text then it works fine.

Run the following example to get the idea about the problem I'm facing.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
creationComplete=onC()
mx:Script
![CDATA[
import mx.core.UITextField;

private var u1:UITextField;
private var u2:UITextField;

override protected function createChildren():void
{
u1 = new UITextField()
u2 = new UITextField()
super.createChildren()
}
private function onC():void
{
u1.border = true;
u1.multiline = true;
u1.wordWrap = true;
u1.width = 50;
u1.text = Mahesh Mahesh Mahesh Mahesh Mahesh Mahesh

u2.border = true;
u2.multiline = true;
u2.wordWrap = true;
u2.width = 50;
u2.text = Mahesh
h1.addChild(u1);
h1.addChild(u2);

setStyle(leading,20)
}
]]
/mx:Script
mx:HBox verticalAlign=bottom id=h1/
/mx:Application


I need the line spacing to get applied for all the line of the text including 
the last one. Does anyone have any idea about the workaround?

TIA

-Mahesh Kokadwar