Re: [flexcoders] scale9grid question

2011-08-12 Thread Technusiast
My specific requirement is skinning the scrollbar thumb.  It is drawn in Flash 
as a vector shape (the thumb itself) containing another shape (a rectangle) in 
the middle of the first one.  When the scrollbar resizes (stretches), I don't 
want the middle shape to stretch as well, but retain its shape.  Since the 
shapes are used for skinning and embedded in Flex, I don't have code to manage 
them.  So I'm still at a loss on how to prevent the resizing of the inner shape.




From: kris range krisra...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Friday, August 12, 2011 8:19 AM
Subject: Re: [flexcoders] scale9grid question


  
scale9grid only works in clips that only contain vector shapes...so
you can't have sub-movieclips or sprites. i don't really know your
requirements but one solution would be to create a container clip,
insert both clips as children of that one and manage both that way.

On Fri, Aug 12, 2011 at 12:57 AM, technusiast technusi...@yahoo.com wrote:
 I am working with Flex 3, and import a movieclip symbol from a SWF.  The 
 symbol is rectangular and has scale9 grid enabled because it has rounded 
 corners.  Inside the area of the grid where objects resize both horizontally 
 and vertically, I placed another symbol.  But I do not want this 2nd symbol 
 to resize.  I tried enabling scale9 on the 2nd symbol, and just reduce its 
 grid to a zero area (in the center) with the hope that the 2nd symbol does 
 not resize.  But the 2nd symbol still resizes when inside the first one.

 Any ideas how this can be done?



 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links





 

[flexcoders] scale9grid question

2011-08-11 Thread technusiast
I am working with Flex 3, and import a movieclip symbol from a SWF.  The symbol 
is rectangular and has scale9 grid enabled because it has rounded corners.  
Inside the area of the grid where objects resize both horizontally and 
vertically, I placed another symbol.  But I do not want this 2nd symbol to 
resize.  I tried enabling scale9 on the 2nd symbol, and just reduce its grid to 
a zero area (in the center) with the hope that the 2nd symbol does not resize.  
But the 2nd symbol still resizes when inside the first one.

Any ideas how this can be done?  



Re: [flexcoders] Re: The lifespan of flex.

2010-07-03 Thread Technusiast
For its completeness and integration of solutions, no one can hold a candle to 
Adobe: Photoshop, illustrator, flash cs5, flash builder, actionscript, air, 
coldfusion.  Is there any other company that provides class-leading products in 
each and every component (both design and run-time) of an Internet application??

And no, I'm not an Adobe employee, to be clear :). 

Sent from my iPhone - until Android 2.2 makes it to my HTC Evo

On Jul 2, 2010, at 11:01 AM, Rajan ilikef...@yahoo.com wrote:

In coming year most of the website will be Flex or Silver Light.

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

 Believe me, if you saw how many people and how much money is invested in 
 Flex, it would be clear that Adobe is committed.
 
 See the showcase on the adobe site and various testimonials. There are many 
 large companies using Flex.
 
 
 On 7/2/10 5:15 AM, Wesley Acheson wesley.ache...@... wrote:
 
 
 
 
 
 
 Hi,
 
 One of our clients is expressing concerns over the over all lifespan of flex.
 
 Some of his specific worries are to do with the way flash isn't allowed on 
 certain apple mobile devices and the initial implementations of HTML5 which 
 is obviously backed by the W3C. Their concern is that flex won't be a 
 supported product 5 years down the line and/or the changes in browser 
 technology by that point will render flash obsolete.
 
 Have any studies been done about the long term feasibility of flex? Are Adobe 
 commited to a long term existence of the product? Is there any public 
 evidence of large firms using it successfully?
 
 Regards,
 
 Wesley Acheson
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui







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

2010-06-29 Thread Technusiast
Hello,

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

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

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

Thanks.




Re: [flexcoders] Wheres my scrollbars gone? mx:Application to s:Application

2010-06-25 Thread Technusiast
I did that, by adding the Scroller in a skin file.  Scrollbar appears, but not 
responsive to mouse wheel.  Where should I look?

On Jun 25, 2010, at 10:28 AM, Alex Harui aha...@adobe.com wrote:

You have to add a Scroller to get scrollbars.


On 6/25/10 3:09 AM, Clark Stevenson a.scots...@gmail.com wrote:



 
 
   

Hey everyone.

A second post in a single day!

I have been working with the Flex SDK again although i have only
really been experimenting this week.

I managed to finish off a current module and its working great but the
main thing concerning me is no scrollbars.

mx:Application would just created scrollbars if the content required
it. However Spark does not have this functionality.

I wrapped my component in a

s:Group clipAndEnableScrolling=true

And now i get a little 300x200ish window with scrollbars which has
destroyed my comonent layout..

Killed with frustration, i attempted to change back to mx:Application
but of course, s:DropDownList is a spark component and so if i go back
to mx:application then i break my component.

How does one simply make s:Application contain scrollbars for the
browser ala mx:Application style?

Thanks.

Clark.
 
   



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





[flexcoders] openplug

2010-06-11 Thread Technusiast
Just wondering if anyone else here has also tried OpenPlug (http://developer. 
openplug. com/), and what you think of the product.__ 



Re: [flexcoders] Re: Modify binding event

2010-06-10 Thread Technusiast
I believe you can listen for the change event dispatched by the associated 
textinput as the user edits.  This event should fire for each keystroke applied 
to the textinput that changes its value.  Assuming that the textinput value is 
valid, you can then make changes to the model.




From: rinogo2 warpr...@warproof.com
To: flexcoders@yahoogroups.com
Sent: Wednesday, June 9, 2010 17:10:44
Subject: [flexcoders] Re: Modify binding event

  
Update:

Clicking on the buttons yields the correct behavior.  The model is updated as 
expected, even if the button is held down.  (The model updates every time the 
value 'steps' higher or lower).

The functionality that isn't quite what I desire is when the user clicks in the 
associated text input box and types in a value.  The model is only updated once 
the value is committed (e.g. enter is pressed or the stepper loses focus).  
However, I'd like the model to be updated on every keypress.  Thoughts?

Thanks,
-Rich

--- In flexcoders@yahoogroups.com, rinogo2 warpr...@... wrote:

 Hello, all!
 
 I have a NumericStepper bound to my data model.  I'd like the model to be 
 updated *while* NumericStepper changes (e.g. while the user clicks and holds 
 the 'up' button) instead of only making the change once the stepper loses 
 focus.
 
 I have a feeling this requires some use of the following format:
 
 [Bindable(event=myCustomEvent)]
 
 My best guess is that I need to write listeners for the 
 mousedown/mouseup/keydown/keyup events to detect when the user is making 
 changes to the stepper.  These listeners will dispatch 'myCustomEvent' which 
 will cause the data model to be updated.  Is this the right approach?
 
 Thanks! :)
 -Rich



 



Re: [flexcoders] DataGrid error when scrolling to last row and starting item edit

2010-06-07 Thread Technusiast
Hi Alex,

It turned out, the error below is caused by setting the 
DataGrid.editedItemPosition property with an object that has invalid rowIndex 
attribute value.
For example, having a rowIndex greater than the number of rows in the datagrid.

In retrospect it would have been more helpful to get an error message directly 
indicating the invalid row (or column) index.
Nonetheless I'm glad to have root-caused it.

Should this be filed as a bug, if it hadn't been yet?

Thanks.





From: Alex Harui aha...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Thursday, June 3, 2010 22:02:43
Subject: Re: [flexcoders] DataGrid error when scrolling to last row and 
starting item edit

  
Can you reproduce the problem with a  generic two-column DataGrid?


On 6/3/10 3:48 PM, technusiast technusiast@ yahoo.com wrote:



 
 
   

Hi,

I have a subclass of the DataGrid, with two columns, each with its own 
renderer. One renderer has a button, which when clicked, starts item edit 
(consisting of a TextInput).

Consistently, when there are too many rows for one pageful, scrolling down to 
the last row and starting item edit, results in this error:

TypeError: Error #1010: A term is undefined and has no properties.
at mx.controls: :DataGrid/ commitEditedItem Position( )[E:\dev\ 
4.0.0\frameworks \projects\ framework\ src\mx\controls\ DataGrid. as:4064]
at mx.controls: :DataGrid/ updateDisplayLis t()[E:\dev\ 4.0.0\frameworks 
\projects\ framework\ src\mx\controls\ DataGrid. as:1804]
...

Any inputs on how to solve this greatly appreciated!

Line 4064 of the DataGrid class is:
var item:IListItemRende rer = actualContentHolder .listItems[ actualRowIndex] 
[actualColIndex] ;

 
   



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



[flexcoders] DataGrid error when scrolling to last row and starting item edit

2010-06-03 Thread technusiast
Hi,

I have a subclass of the DataGrid, with two columns, each with its own 
renderer. One renderer has a button, which when clicked, starts item edit 
(consisting of a TextInput).

Consistently, when there are too many rows for one pageful, scrolling down to 
the last row and starting item edit, results in this error:

TypeError: Error #1010: A term is undefined and has no properties.
at 
mx.controls::DataGrid/commitEditedItemPosition()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:4064]
at 
mx.controls::DataGrid/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:1804]
...

Any inputs on how to solve this greatly appreciated!

Line 4064 of the DataGrid class is:
var item:IListItemRenderer = 
actualContentHolder.listItems[actualRowIndex][actualColIndex];



[flexcoders] incorrect component focus when returning to Flex app

2010-04-28 Thread technusiast
Hello,

In my FB4 app, I click on an item renderer, which puts the focus on the text 
input field within the item renderer.  
I then click on another component X in the same app.  The focus is now 
correctly in the last component I clicked on.
I then click away from the FB4 app browser, on another app (FB4 IDE, Email 
client, etc).
I then click back on the FB4 app browser, making it the active window again.
At this point, the focus is consistently on the text input field I mentioned 
above, which is undesired behavior.
If anything, the focus should be on component X, which is the last control I 
clicked on before leaving the FB4 app.
Can anyone explain this behavior, and the corresponding fix?  Thanks in advance.




[flexcoders] FB4: editing one project, not finding classes from another referenced project

2010-04-27 Thread technusiast
Hi FlexCoders,

I'm using Flashbuilder 4 and have 2 different projects that are both open.  
Project A is set up so that it references the source folder of Project B.  When 
editing files from A, the code hints show the classes from B.  I just inherited 
this setup.

I just added new classes in Project B, and noticed that these new classes are 
not visible from Project A.  The code hints do not show these new classes, and 
compiling A results in errors stating that the class is not found.  I've looked 
at all the location for specifying project properties for A, but couldn't seem 
to find  the fix for this problem.

Any ideas what the fix to this problem is?

Thanks,
Henry