[flexcoders] Context dependent non modal pop p. How?

2009-12-13 Thread Sergey Kovalyov
Hi All!

Sometimes I have to create popup in some view and it belongs to this view.

So I want it to be automatically hidden when view is not visible and shown
again when view is visible again.

In my particular case this view is the child of tab navigator that in its
turn is the part of the view that is child of another tab navigator.

How to handle this properly?

If I have simple one level nesting visual hierarchy, I would probably add
listeners to show and hide event and will switch the pop up visibility.

Things are different when I have the situation I have described above, so,
for instance, if the user change the selected tab in the topmost tab
navigator my nested view knows nothing about that and the popup remains
visible.

Currently I handle all those cases in parent views controllers, though maybe
better apprach exists?

Thank you in advance!

Sergey.


Re: [flexcoders] Runtime fonts embedding in AIR

2009-11-11 Thread Sergey Kovalyov
But it seems that in this case loaded SWF resides in the different
applcation domain and thus its Font.registerFont() call does nothing for the
parent application.

On Wed, Nov 11, 2009 at 1:25 AM, Alex Harui aha...@adobe.com wrote:



  I think most folks load the SWF as a byteArray using URLLoader then use
 Loader.loadBytes() to load the SWF.



 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 *Sergey Kovalyov
 *Sent:* Tuesday, November 10, 2009 5:54 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Runtime fonts embedding in AIR





 Hi All!



 Probably the most popular approach to load fonts runtime is to generate SWF
 files either in Flash or in Flex where font is registered via
 Font.registerFont(fontClass).



 In Flash you normally add it to the library.



 In Flex you embed it via [Embed] metatag.



 And we have used this approach for a while as a guideline for content
 developers.



 In our Flex application this works perfect.



 But now we need to show the same content in the AIR application.



 And since all SWF fonts are in the local-with-file sandbox, their
 Font.registerFont() calls are just ignored.



 In other words, when I create text fields upon the SWF font loading and use
 that loaded font, it just does not work.





 *private* *function* onEmbeddedFontComplete() : *void* {

 *trace*(Font.enumerateFonts().length); *// Output 0;*

 *var* textField : UITextField = *new* UITextField();

 textField.htmlText =

 *font face='SegoeScript'Segoe Script/font*;

 textField.rotation = 30;

 box.addChild(textField);

 }

 ...

 mx:SWFLoader

 id=embeddedFont complete=onEmbeddedFontComplete() /

 I suppose this should be quite common problem when you are creating some
 text editing software that works with runtime loaded fonts which are not
 deployed along with the application, but created by users, and eventually
 you need to migrate to AIR.



 Any ideas how to avoid the problem without modification to the content (we
 already have a lot of font files in use and we can not enforce users to
 redevelop all)?



 Sergey.

  



[flexcoders] Runtime fonts embedding in AIR

2009-11-10 Thread Sergey Kovalyov
Hi All!

Probably the most popular approach to load fonts runtime is to generate SWF
files either in Flash or in Flex where font is registered via
Font.registerFont(fontClass).

In Flash you normally add it to the library.

In Flex you embed it via [Embed] metatag.

And we have used this approach for a while as a guideline for content
developers.

In our Flex application this works perfect.

But now we need to show the same content in the AIR application.

And since all SWF fonts are in the local-with-file sandbox, their
Font.registerFont() calls are just ignored.

In other words, when I create text fields upon the SWF font loading and use
that loaded font, it just does not work.



*private* *function* onEmbeddedFontComplete() : *void* {

*trace*(Font.enumerateFonts().length); *// Output 0;
*

*var* textField : UITextField = *new* UITextField();

textField.htmlText = *font face='SegoeScript'Segoe Script/font*;

textField.rotation = 30;

box.addChild(textField);

}

...

mx:SWFLoader id=embeddedFont complete=onEmbeddedFontComplete() /
I suppose this should be quite common problem when you are creating some
text editing software that works with runtime loaded fonts which are not
deployed along with the application, but created by users, and eventually
you need to migrate to AIR.

Any ideas how to avoid the problem without modification to the content (we
already have a lot of font files in use and we can not enforce users to
redevelop all)?

Sergey.


Re: [flexcoders] How to handle keyboard shortcut globally?

2009-07-07 Thread Sergey Kovalyov
Maybe because in my case the application is in full screen mode?


On Mon, Jul 6, 2009 at 11:15 PM, Tracy Spratt tr...@nts3rd.com wrote:



  Why do you say using systemManager does not work?  It does for me.



 Tracy Spratt,

 Lariat Services, development services available
  --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Sergey Kovalyov
 *Sent:* Monday, July 06, 2009 11:04 AM
 *To:* flexcoders@yahoogroups.com; flexcompone...@yahoogroups.com
 *Subject:* [flexcoders] How to handle keyboard shortcut globally?






  Hi All!



 We want our projector to be full screen always. To do that we add the
 keyboard event listener to the stage and then if the user has pressed Esc
 button, turn full screen mode on:



 *switch* (event.keyCode) {

 *case* Keyboard.ESCAPE :

 *try* {

 stage.displayState = StageDisplayState.FULL_SCREEN;

 }

 *catch* (e : Error) {}

 *break*;



 But this event handler does not work when some pop up is focused.
 Subscription to systemManager does not fix the problem either.



 mx:Application

 xmlns:mx=http://www.adobe.com/2006/mxml;

 layout=absolute

 applicationComplete=onApplicationComplete()

 mx:Script

 ![CDATA[

 *import* mx.controls.Alert;

 *private* *function* onApplicationComplete() : *void* {

 stage.displayState = StageDisplayState.FULL_SCREEN;

 stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);

 Alert.show(*'Alert!'*);

 }

 *private* *function* onKeyDown(event : KeyboardEvent) : *void* {

 *trace*(*Key down!*);

 }

 ]]

 /mx:Script

 /mx:Application

 Any ideas how to implement really global Esc keyboard button press handler?

 Sergey.

 



[flexcoders] How to handle keyboard shortcut globally?

2009-07-06 Thread Sergey Kovalyov
Hi All!

We want our projector to be full screen always. To do that we add the
keyboard event listener to the stage and then if the user has pressed Esc
button, turn full screen mode on:


*switch* (event.keyCode) {

*case* Keyboard.ESCAPE :

*try* {

stage.displayState = StageDisplayState.FULL_SCREEN;

} *catch* (e : Error) {}

*break*;

But this event handler does not work when some pop up is focused.
Subscription to systemManager does not fix the problem either.


mx:Application

xmlns:mx=http://www.adobe.com/2006/mxml;

layout=absolute

applicationComplete=onApplicationComplete()

mx:Script

![CDATA[

*import* mx.controls.Alert;

*private* *function* onApplicationComplete() : *void* {

stage.displayState = StageDisplayState.FULL_SCREEN;

stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);

Alert.show(*'Alert!'*);

}

*private* *function* onKeyDown(event : KeyboardEvent) : *void* {

*trace*(*Key down!*);

}

]]

/mx:Script

/mx:Application

Any ideas how to implement really global Esc keyboard button press handler?
Sergey.


[flexcoders] How to determine the minimum container size while scroll bars still not needed

2009-05-24 Thread Sergey Kovalyov
Hi All!

There is mx_internal::getScrollableRect() method and the value it returns
does not change when you make the container smaller at some moment when
scroll bars appears.

But I need to know those values at any given time.

Finally what I want to achieve is to have resize handle in the right bottom
corner that allows to resize the container, but does not allow to make it
smaller than the size when all children fit and no scroll bars are needed.

Any ideas?

Sergey.


Re: [flexcoders] Tree is not correctly updated when dragging and dropping item twice when using XML data provider

2009-01-07 Thread Sergey Kovalyov
Thanks, Manish!

I will try this.

Sergey.

On Tue, Jan 6, 2009 at 6:58 PM, Manish Jethani manish.jeth...@gmail.comwrote:

On Tue, Jan 6, 2009 at 10:27 PM, Manish Jethani
 manish.jeth...@gmail.com manish.jethani%40gmail.com wrote:

  function doWorkaround() {
  var e = new CollectionEvent(collectionChange);
  e.kind = update;

 Hey, I meant:

 e.kind = reset;

 That'll refresh everything.

  myXMLListCollection.dispatchEvent(e);
  }

 Manish

 



[flexcoders] Re: Tree is not correctly updated when dragging and dropping item twice when using XML data provider

2009-01-05 Thread Sergey Kovalyov
Sorry for intruding, but still... are there any ideas?

On Tue, Dec 30, 2008 at 4:22 PM, Sergey Kovalyov 
skovalyov.flexcod...@gmail.com wrote:

 Hi All!

 *Steps to reproduce:*

1. Create an application with the Tree component instance and
XMLListCollection dataProvider binded to it that contains 5 items:
   - private var itemsXML : XML =
items
 item name=Item 1 isBranch=true /
 item name=Item 2 isBranch=true /
 item name=Item 3 isBranch=true /
 item name=Item 4 isBranch=true /
 item name=Item 5 isBranch=true /
/items;
2. Expand Item 4.
3. Drag and drop Item 5 from the root to the Item 4.
4. Drag and drop Item 5 from the Item 4 to the root.


 *Expected result:* Item 5 is deleted from the Item 4 and appears on the
 root in the drop position.

 *Actual result:* Item 5 actually appears on the root in the drop position,
 but it is not removed from the Item 4, so there are 2 same elements in the
 hierarchy intead of one.

 *Details:* I have realized that HierarchicalCollectionView.parentMap hash
 is not correctly updated and upon 1st drag and drop still contains nulls for
 all items within the collection. Thus DefaultDataDescriptor.getParent()
 returns wrong value and removeChildItem() in Tree.dragDropHandler() does not
 work as expected.

 You can find the test application source attached.

 Sergey.



[flexcoders] Tree is not correctly updated when dragging and dropping item twice when using XML data provider

2008-12-30 Thread Sergey Kovalyov
Hi All!

*Steps to reproduce:*

   1. Create an application with the Tree component instance and
   XMLListCollection dataProvider binded to it that contains 5 items:
  - private var itemsXML : XML =
   items
item name=Item 1 isBranch=true /
item name=Item 2 isBranch=true /
item name=Item 3 isBranch=true /
item name=Item 4 isBranch=true /
item name=Item 5 isBranch=true /
   /items;
   2. Expand Item 4.
   3. Drag and drop Item 5 from the root to the Item 4.
   4. Drag and drop Item 5 from the Item 4 to the root.


*Expected result:* Item 5 is deleted from the Item 4 and appears on the root
in the drop position.

*Actual result:* Item 5 actually appears on the root in the drop position,
but it is not removed from the Item 4, so there are 2 same elements in the
hierarchy intead of one.

*Details:* I have realized that HierarchicalCollectionView.parentMap hash is
not correctly updated and upon 1st drag and drop still contains nulls for
all items within the collection. Thus DefaultDataDescriptor.getParent()
returns wrong value and removeChildItem() in Tree.dragDropHandler() does not
work as expected.

You can find the test application source attached.

Sergey.


tree.mxml
Description: Binary data


[flexcoders] commitProperties() and navigation container children

2008-12-24 Thread Sergey Kovalyov
Hi All!

Long time ago I have asked the question regarding commitProperties()
implementation in the container that might be a navigation container child:
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg47993.html

Unfortunately, I have not got any answer.

Though we, in our team, use kind of workaround:

 override protected function commitProperties() : void {
 super.commitProperties();

 if (processedDescriptors) {
  // Do all properties deferred processing here.
 } else {
  _commitPropertiesPostponed = true;
 }
}

...

private function onInitialize() : void {
 if (_commitPropertiesPostponed)  {
  _commitPropertiesPostponed = false;
  invalidateProperties();
 }
}
Thus if the commitProperties() is executing and there are no children
created yet (this happens for navigation containers childrent and can be
verified via processedDescriptors), we set the _commitPropertiesPostponed
flag to true and then in initialize event handler reset it and call
invalidateProperties() to execute commitProperties() once again.

Though it looks like a hack.

May be we are doing something wrong and better solution exists?

Sergey.


[flexcoders] Does anybody know why FlashPaper is not supported anymore and what to expect instead?

2008-12-23 Thread Sergey Kovalyov
Hi All!

Since FlashPaper is not supported anymore, integrating FlashPaper documents
into Flex application would still remain into the headache.

Yes, solution exists (
http://www.darronschall.com/weblog/2006/11/how-to-load-flashpaper-documents-in-flex-2.cfm),
but unfortunately it is not as transparent as it might be with AVM2 content,
since it uses LocalConnection for AVM1 and AVM2 crossscripting.

Maybe, Adobe plans to support PDF embedding into the Flash content? I do not
know...

Sergey.


[flexcoders] Cast XMLList with 1 child to XML

2008-07-13 Thread Sergey Kovalyov
Hi All!

Is it correct to cast XMLList with 1 child to XML like this:

var myXMLList : XMLList = sourceXML..item.(@id == 1); // It is guaranteed
that only one node with name == item and attribute id == 1 exists in
sourceXML.
var myXML : XML = XML(myXMLList);

Actually it works and it fails only when I change the sourceXML thus there
are more then one node with name == item and attribute id == 1 in it. In
this case exception is thrown. But I would like to know is it correct
approach in general or not.

Sergey.


[flexcoders] Clicking BACKSPACE button in TextField (and thus TextArea) does not fire change event when the character removed is ENTER (char code 13)

2008-07-09 Thread Sergey Kovalyov
Hi All!

Clicking backspace button in TextField (and thus TextArea) does not fire
change event when the character removed by backspace is enter (char code 13)

Run the example below in the debug mode and perform this scenario:

1. Click on the text area to set focus on it.
2. Click 1, ENTER, 2, ENTER, 3, BACKSPACE, BACKSPACE.
3. As a result the change event is not fired after the last BACKSPACE click.

Is it bug or feature? I assume that it is a bug, because the text length
actually changes and the textField height changes also if the TextField has
autoSize property set to other value than none.

Sergey.


?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

mx:Script

![CDATA[

*private* *function* onTextAreaChange() : *void* {

*trace*(*new* Date().time, textArea.length,
textArea.text.charCodeAt(textArea.text.length - 1));

}

]]

/mx:Script

mx:TextArea id=textArea

width=200

height=200

change=onTextAreaChange() /

/mx:Application


Re: [flexcoders] Re: Cannot access a property or method of a null object reference at mx.controls::Tree/::buildUpCollectionEvents()

2008-07-02 Thread Sergey Kovalyov
Probably, you have not selected the first item before clicking on a button.
That's why new item has not been added. See this:

var parentXML : XML = XML(tree.selectedItem);
var newItemXML : XML = item label=My Leaf isBranch=true /;
tree.dataDescriptor.addChildAt(parentXML, newItemXML, parentXML.length());

On Wed, Jul 2, 2008 at 2:50 AM, Josh McDonald [EMAIL PROTECTED] wrote:

   I'm not getting an exception, tried in 2.0.1HF1 and HF3. I'm not getting
 any change on screen though.

 On Tue, Jul 1, 2008 at 11:08 PM, valdhor [EMAIL PROTECTED] wrote:

 I don't use Flex 2.0.1 (I use Flex 3).

 I ran your app in Flex 3 and it works fine  - ie. no exception is thrown.

 Could this be a bug in Flex 2.0.1?


 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]

 



Re: [flexcoders] Re: Cannot access a property or method of a null object reference at mx.controls::Tree/::buildUpCollectionEvents()

2008-07-02 Thread Sergey Kovalyov
May be so. But I want to find relevant workaround. Unfortunately, I have no
possibility to switch the platform.

On Tue, Jul 1, 2008 at 4:08 PM, valdhor [EMAIL PROTECTED] wrote:

   I don't use Flex 2.0.1 (I use Flex 3).

 I ran your app in Flex 3 and it works fine - ie. no exception is thrown.

 Could this be a bug in Flex 2.0.1?
 .

 



[flexcoders] Cannot access a property or method of a null object reference at mx.controls::Tree/::buildUpCollectionEvents()

2008-07-01 Thread Sergey Kovalyov
Hi All!

When I add a new item to the tree node and then open this item by user input
null pointer exceptions is thrown and after that Tree behavior becomes
strange.

Steps to reproduce:

1. Run application.
2. Select My Branch node.
3. Click Add button. As a result My Leaf subnode is created as a child of My
Branch.
4. Click My Leaf disclosure icon to expland this item.
5. Exception mentioned above is thrown.

 I compile this example in Flex 2.01 and run in Flash Player 9.0.47.0.

We have found workaround. The bug can be fixed by setting Tree
openDuration style to 0. But I dislike workarounds. Are there any real
solutions to fix this bug?

Sergey.


?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

layout=vertical

mx:Script

![CDATA[

*import* mx.collections.XMLListCollection;

*private* *static* *const* itemsXML : XML =

root

item label=*My Branch* isBranch=*true* /

/root;

*private* *static* *const* itemsXMLListCollection : XMLListCollection =

*new* XMLListCollection(itemsXML.children());

*private* *function* onAddButtonClick() : *void* {

*var* parentXML : XML = XML(tree.selectedItem);

*var* newItemXML : XML = item label=*My Leaf* isBranch=*true* /;

tree.dataDescriptor.addChildAt(parentXML, newItemXML, parentXML.length());

}

]]

/mx:Script

mx:Tree id=tree

labelField=@label

showRoot=false

dataProvider={itemsXMLListCollection} /

mx:Button label=Add click=onAddButtonClick() /

/mx:Application


[flexcoders] Compiling CSS to SWF on server

2008-03-29 Thread Sergey Kovalyov
Hi All!

Does somebody have experience compiling CSS to SWF on server using Flex
command line compiler?

I want to allow users use their own fonts in application. To do that first
they have to upload TTF true type font to server, then create CSS that
references uploaded font file on the flight and at last compile it to SWF.
Thus it would be possible to load the resulting SWF via StyleManager.

What do you think about this strategy?

Sergey.


[flexcoders] What is the best way to compare two arrays element by element ignoring the order?

2008-02-22 Thread Sergey Kovalyov
What is the best way to compare two arrays element by element ignoring the
order? My solution:

var differs : Boolean =
 (a.length != b.length) ||
 a.some(
  function(item : Object, index : int, array : Array) : Boolean {
   return (b.indexOf(item) == -1);
  });

May be the better solution exists?


Re: [flexcoders] What is the best way to compare two arrayselement by element ignoring the order?

2008-02-22 Thread Sergey Kovalyov
But sorting actually depends on array element type, thus solution can not be
abstract enough. It is bad suprise for me that anonymous functions are bad.
I like them very much for Array methods like filter(), map(), some(), any()
and forEach(). So if I create private methods instead, it would be faster,
right?

On Fri, Feb 22, 2008 at 11:31 PM, Gordon Smith [EMAIL PROTECTED] wrote:

Are you trying to compare two Arrays as sets, where [ 1, 3, 2, 1 ] and
 [ 1, 1, 2, 3 ] are considered the same?

 If so, I would sort() them -- which I would expect to take only O(n ln n)
 -- and then compare them element by element until you found a mismatch or
 reached the end.

 Avoid using anonymous functions. My understanding is that they don't
 perform as well as class methods because they require an activation frame.

 Gordon Smith
 Adobe Flex SDK Team

  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Maciek Sakrejda
 *Sent:* Friday, February 22, 2008 9:23 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] What is the best way to compare two
 arrayselement by element ignoring the order?

Extra points for higher-order function, although that is going to be
 O(n^2) (unless Array.indexOf() has a weird implementation). If you've
 got really, really big arrays (or are doing this in a tight loop) and
 you have O(n) memory to spare, you could consider building a hashmap of
 the values in Array a, and then walking Array b and checking if each
 element is in the hashmap:

 var differs:Boolean = (a.length != b.length);
 if (!differs) {
 var aContents = new Object();
 a.forEach(function(item:Object, index:int, array:Array):void {
 aContents[item] = true;
 });
 differs = b.some(function(item:Object, index:int, array:Array):Boolean
 {
 return aContents[item] == null;
 });
 }

 For small-ish arrays, though, I would expect your solution to be faster
 than mine (I won't define 'small-ish', since I would honestly be pulling
 a number out of my--err, out of thin air).

 Also, neither your solution nor mine handles the case where the same
 item is in one array twice (yours fails for dupes in a and mine for
 dupes in b).

 --
 Maciek Sakrejda
 Truviso, Inc.
 http://www.truviso.com

 -Original Message-
 From: Sergey Kovalyov [EMAIL PROTECTED]skovalyov.flexcoders%40gmail.com
 
 Reply-To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: [flexcoders] What is the best way to compare two arrays element
 by element ignoring the order?
 Date: Fri, 22 Feb 2008 15:37:56 +0200

 What is the best way to compare two arrays element by element ignoring
 the order? My solution:

 var differs : Boolean =
 (a.length != b.length) ||
 a.some(
 function(item : Object, index : int, array : Array) : Boolean {
 return (b.indexOf(item) == -1);
 });

 May be the better solution exists?

 



[flexcoders] How to print ViewStack children as multipage document?

2008-02-20 Thread Sergey Kovalyov
Hi All!

Imagine, I have multipage document represented as ViewStack in application.
Each child is document page. Since default creationPolicy is AUTO, ViewStack
grandchildren (page elements) are created only when the page is selected.
Another problem that it seems FlexPrintJob class can print only view that is
on screen now. Probably I do something wrong, because I have never used Flex
printing features before. So any help and ideas are welcome.

Thank you in advance!

Sergey.


[flexcoders] How to detect maximum Container width and height without scroll bars?

2007-12-17 Thread Sergey Kovalyov
Hi All!

What's the best abstract method to detect maximum width and height of the
container, when its content doesn't force the horizontal and vertical bar to
appear?

For instance, I have VBox and 2 100x100 boxes inside it. In this case
considering the default verticalGap value that is 6, maximum width without
scrollbars is 100 and maximum height without scrollbars is 206. But what I
expect is some generic method to find those values, something similar to
private function createScrollbarsIfNeeded(bounds:Rectangle):Boolean method
from native Container implementation.

Thank you in advance.

Sergey.


[flexcoders] Spacer in MenuBar

2007-12-11 Thread Sergey Kovalyov
Hi All!

Is it possible to add 100% spacer to MenuBar as shown in the file attached
and if so, how would you do that?

Thank you in advance.

Sergey.
attachment: menu.png

Re: [flexcoders] Re: Flex MouseEvent and loaded SWF with mouse handlers problem

2007-12-04 Thread Sergey Kovalyov
Ralph,

Sorry for such a late answer. I have not checked flexcoders for a while. We
have decided to add listener on timer and to track mouse position.

Sergey.

On Oct 15, 2007 10:24 PM, essuark [EMAIL PROTECTED] wrote:

   Hello Sergey,

 Did you figure this out? I am having the same problem, at least
 in my situation, the swf has it's own actionscript so the events are
 not bubbling up to my flex app.

 thanks
 Ralph

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Sergey
 Kovalyov
 [EMAIL PROTECTED] wrote:
 
  Hi All!
 
  I have Canvas instance and SWFLoader inside it. Listener
 onMyCanvasMouseMove()
  is added to this Canvas. It just trace myCanvas.mouseX and
  myCanvas.mouseYactually. Loaded
  test.swf (AVM1 movie) contains some MovieClip instances with
 rollOver
  handlers assigned. The problem is that if mouse is moving over those
  instances, onMyCanvasMouseMove() is not called. In Flex terminology
 it seems
  that Flash mouse listeners call kind of event.stopPropagadion()
  automatically.
 
  mx:Canvas id=myCanvas width=100% height=100%
  mouseMove=onMyCanvasMouseMove()
 
  mx:SWFLoader source=test.swf /
 
  /mx:Canvas
 
  I just need to catch all mouse moves over the canvas indepedently
 on AVM1
  movies loaded into it. Is it possible?
 
  Thank you in advance!
  Sergey.
 

 



[flexcoders] Testing socket applications on localhost. Running patServer locally

2007-06-14 Thread Sergey Kovalyov

Hi All!

Does anybody have an experience running patServer (or may be different php
socket server if any?) on localhost to perform testing your socket
communication code? How do you do that? Any ideas?

Thank you in advance.

Sergey.


[flexcoders] Why replaceText() method of TextField doesn't dispatch Event.CHANGE?

2007-05-30 Thread Sergey Kovalyov

Hi All!

Why replaceText() method of TextField doesn't dispatch Event.CHANGE? Due to
this when I use TextRange class within either TextInput or TextArea, their
respective text and htmlText properties doesn't change until manual input.
TextRange text setter implementation looks like this:


*public* *function* *set* text(value:String):*void
*

{

textField.replaceText(beginIndex,endIndex,value);

endIndex = beginIndex + value.length;

}

Therefore after replaceText() call TextInput and TextArea remain uninformed
about such a change and their _text and _htmlText doesn't change.

Sergey.


[flexcoders] Why GridItem is inherited from HBox, not Box?

2007-05-16 Thread Sergey Kovalyov

Hi All!

Why GridItem is inherited from HBox, not Box? It makes impossible to change
the direction property.

Sergey.


Re: [flexcoders] Cross-scripting availability

2007-05-16 Thread Sergey Kovalyov

Are there any examples?

On 5/15/07, Antoine Malpel [EMAIL PROTECTED] wrote:


  Sergey Kovalyov a écrit :

 Hi All!

Is it possible to load SWF compiled from Flash 8 IDE into Flex application
and access its methods and properties? If so, how?

Thank you in advance!

Sergey.

You can't, or use Flash 9 (avm2 swf), and then you acces prop etc via
SWFLoader.content._mc.prop etc





[flexcoders] Cross-scripting availability

2007-05-15 Thread Sergey Kovalyov

Hi All!

Is it possible to load SWF compiled from Flash 8 IDE into Flex application
and access its methods and properties? If so, how?

Thank you in advance!

Sergey.


[flexcoders] Compile Flex application to .exe

2007-05-14 Thread Sergey Kovalyov

Hi All!

Is it possible to compile Flex application to .exe? If so - how?

Thank you in advance.

Sergey.


[flexcoders] Re: Compile Flex application to .exe

2007-05-14 Thread Sergey Kovalyov

I mean standalone application, but not Apollo at the moment. :)

On 5/14/07, Sergey Kovalyov [EMAIL PROTECTED] wrote:


Hi All!

Is it possible to compile Flex application to .exe? If so - how?

Thank you in advance.

Sergey.



Re: [flexcoders] Re: Compile Flex application to .exe

2007-05-14 Thread Sergey Kovalyov

Thanks a lot! ;)

On 5/14/07, Igor Costa [EMAIL PROTECTED] wrote:


  Yes

Sergey
 open up your .swf in the flash player stand alone not in the browser then
click in the menu File  Create Projector

But otherwise you can create using such as Zinc, SHX.

--
Igor

On 5/14/07, Sergey Kovalyov [EMAIL PROTECTED] wrote:

   I mean standalone application, but not Apollo at the moment. :)

 On 5/14/07, Sergey Kovalyov [EMAIL PROTECTED]  wrote:
 
  Hi All!
 
  Is it possible to compile Flex application to .exe? If so - how?
 
  Thank you in advance.
 
  Sergey.
 




--

Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta





Re: [flexcoders] DataGridColumn sortDescending property doesn't change after first two clicks on header

2007-04-26 Thread Sergey Kovalyov

Thanks! Though everything works even when I postpone calculation to
commitProperties(). :)

On 4/26/07, Manish Jethani [EMAIL PROTECTED] wrote:


  I assume you're cancelling the default sort, which is why the column's
sortDescending is never updated.

You'll have to get the actual sort order from the collection itself.

var descending:Boolean = false;
var s:Sort = collection.sort;
var fields:Array = s.fields;
for (var i = 0; i  fields.length; i++)
if (fields[i].name == dataField)
descending = fields[i].descending

// now you have the value

On 4/25/07, Sergey Kovalyov [EMAIL 
PROTECTED]skovalyov.flexcoders%40gmail.com
wrote:

 Hi All!

 I have defined my own handler for the headerRelease event in order to
 perform custom server-side sorting, since my DataGrid is pagable. In
order
 to do that I get the field from event.dataField and and order from
 DataGridColumn(DataGrid(event.target).columns[event.columnIndex
]).sortDescending,
 though sortDescending is false after first and second clicks. Why?

 Sergey.





[flexcoders] Is it possible to place and compile MXML application not in the root folder, but in subfolder?

2007-04-25 Thread Sergey Kovalyov

Hi All!

Usually we place MXML application (class inherited from Application) in the
root folder of the project. Is it possible to place application not in the
root folder, but in subfolder? Therefore it could be compiled into the
{PROJECT_OUTPUT_FOLDER}/subFolder/.

Sergey.


[flexcoders] DataGridColumn sortDescending property doesn't change after first two clicks on header

2007-04-25 Thread Sergey Kovalyov

Hi All!

I have defined my own handler for the headerRelease event in order to
perform custom server-side sorting, since my DataGrid is pagable. In order
to do that I get the field from event.dataField and and order from
DataGridColumn(DataGrid(event.target).columns[event.columnIndex]).sortDescending,
though sortDescending is false after first and second clicks. Why?

Sergey.


Re: [flexcoders] Is it possible to embed font into the compiled CSS for runtime use?

2007-04-19 Thread Sergey Kovalyov

I get error marker in Flex IDE while everything is ok when I embed font in
the css that is included into the application via mx:Style and not marked
compile to SWF.

On 18 Apr 2007 07:41:27 -0700, Hilary Bridel [EMAIL PROTECTED] wrote:


   Hi Sergey,
I have embeded fonts into compiled css files to use at runtime and it
works ok.

Do you get an error when you use MXMLC to compile the css?

Hilary

www.bridel.org
.





[flexcoders] Is it possible to embed font into the compiled CSS for runtime use?

2007-04-18 Thread Sergey Kovalyov

Hi All!

I have tried to embed font into the compiled CSS for runtime use without any
luck. Everything works well, when I embed it into CSS that is included into
application mxml via mx:Style tag, though it seems there is no way to
compile font into the separate CSS. Am I right?

Sergey.


[flexcoders] Library compilation takes too much time

2007-04-17 Thread Sergey Kovalyov

Hi All!

Each time I change class in library project it takes to much time to
recompile, because all the projects that use this library are recompiled.
Even when there are 3 projects, I have to wait about 30 seconds after each
save (I prefer Build Automatically option checked). Is there any way to
prevent projects that use the library to recompile without unchecking Build
Automatically option? :)

Sergey.


[flexcoders] How to embed Type1 font in CSS?

2007-04-17 Thread Sergey Kovalyov

Hi All!

How to embed Type1 font in CSS? Now I have found only the solution for TTF
fonts. Any ideas?

Thank you in advance.

Sergey.


[flexcoders] How to manage 2 applications with different output folders in one project?

2007-04-16 Thread Sergey Kovalyov

Hi All!

I have two applications: client and administrator area. They have a lot of
common classes, therefore I have created two Flex Projects (MyApplication
and MyApplicationAdmin) and one Flex Library Project
(MyApplicationFlexLibrary) and placed all the classes they use together into
the MyApplicationFlexLibrary. Actually, I consider this method is not easy
to manage when working in a team, because each class added to the library
should be registered within it and developers usually forget about it, so
that I'd prefer to have only 1 project instead of 3 with 2 mxml applications
- index.mxml and indexAdmin.mxml, but I want index.mxml to be published to
http://localhost/myApplication/index.html and indexAdmin.mxml to
http://localhost/myApplication/admin/index.html. Is there any way to make it
possible?

Thank you in advance.

Sergey.


[flexcoders] Does compiler include all the classes from the Flex Library Project used in Flex Project?

2007-04-13 Thread Sergey Kovalyov

Hi All!

I have created separate Flex Library Project with a set of reusable classes,
so that I plan to extend it constantly and use it in different projects.
Since not all the library classes from Flex Library Project will be used in
each and every Flex Project, I worry about optimization - does compiler
include all the classes from the Flex Library Project used in Flex Project
into the resulting SWF or only those which have been used?

Thanks you in advance.

Sergey.


[flexcoders] AMFPHP with multiple projects

2007-03-27 Thread Sergey Kovalyov

Hi All!

How do you usually use AMFPHP with multiple projects? May be creating
separate AMFPHP copy for each and every project or at least separate
gateway.php can help. Whatever, I have some projects from SVN in my
workspace and each of them has its own services codebase (let's say
workspace/[PROJECT_NAME]/php/) and they are referenced via
http://localhost/[PROJECT_NAME]/php/ after compilation, though single AMFPHP
installation at http://localhost/amfphp/ points to the only one services
folder. Are there any ideas how to make multiple projects with services
stored in different locations on localhost working with single AMFPHP
installation?

Thank you in advance.

Sergey.


[flexcoders] Authentication in AMFPHP 1.9

2007-03-27 Thread Sergey Kovalyov

Hi All!

How to implement authentication (session based API securing) in AMFPHP 1.9?

Thank you in advance.

Sergey.


Re: [flexcoders] Passing complex objects (e. g. collection of name-value pairs) to server via either URLLoader or HTTPService using POST method

2007-03-10 Thread Sergey Kovalyov

Can AMFPHP convert Flex ArrayCollection of Objects to PHP Array of PHP
Objects?..

On 09 Mar 2007 16:04:39 -0800, Merrill, Jason 
[EMAIL PROTECTED] wrote:


   SOAP webservices can do that.  You don't have to convert to XML first,
you can send your complex Actionscript object directly to the WDSL method
and it transfers via SOAP (XML) protocol.  You can receive in the same way.


Jason Merrill
Bank of America
Global Technology  Operations
Learning  Leadership Development
eTools  Multimedia Team
.





[flexcoders] DataGridColumn visibility problem. It appears again when dataProvider is replaced

2007-03-09 Thread Sergey Kovalyov

Hi All!

I have a DataGrid and its dataProvider property is binded to
ArrayCollection. When I first hide one column via firstColumn.visible =
false and then binding executes, that column appears again. How to prevent
this unnecessary appearance? Click Hide Middle Name and then Populate in
this example:

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

creationComplete=onCreationComplete()

mx:Script

![CDATA[

*import* mx.collections.ArrayCollection;

[*Bindable*]

*protected* *var* users : ArrayCollection;

*protected* *function* onCreationComplete() : *void* {

users = *new* ArrayCollection();

users.addItem({firstName : *George*, middleName : *W*, lastName : *
Bush*});

}

*protected* *function* onPopulateButtonClick() : *void* {

users = *new* ArrayCollection();

users.addItem({firstName : *Victor*, middleName : *A*, lastName : *
Yuschenko*});

}

]]

/mx:Script

mx:DataGrid dataProvider={users}

mx:columns

mx:DataGridColumn id=firstNameDataGridColumn dataField=firstName
headerText=First Name /

mx:DataGridColumn id=middleNameDataGridColumn dataField=middleName
headerText=Middle Name /

mx:DataGridColumn id=lastNameDataGridColumn** dataField=lastName
headerText=Last Name /

/mx:columns

/mx:DataGrid

mx:Button label=Hide Middle Name** click=
middleNameDataGridColumn.visible = *false* /

mx:Button label=Populate click=onPopulateButtonClick() /

/mx:Application
Sergey.


Re: [flexcoders] DataGridColumn visibility problem. It appears again when dataProvider is replaced

2007-03-09 Thread Sergey Kovalyov

Any known workarounds? :)

On 09 Mar 2007 02:28:17 -0800, Carlos Rovira [EMAIL PROTECTED]
wrote:


  If I'm not wrong that is a bug in 2.0.1 (it was not in 2.0)...
.





[flexcoders] Passing complex objects (e. g. collection of name-value pairs) to server via either URLLoader or HTTPService using POST method

2007-03-09 Thread Sergey Kovalyov

Hi All!

What is the best approach to pass complex objects (e. g. collection of
name-value pairs) to server via either URLLoader or HTTPService using POST
method?

Just for example, I need to send this collection to server:

var collection : Array = [{x : 1, y : a},
{x : 2, y : b},
{x : 3, y : c}]

Is there any way to do that without XML serialization?

Sergey.


Re: [flexcoders] DataGridColumn visibility problem. It appears again when dataProvider is replaced

2007-03-09 Thread Sergey Kovalyov

I use users.removeAll() and then populate users with new data using
addItem() method in the loop now. It works. :)

On 09 Mar 2007 09:16:12 -0800, Alex Harui [EMAIL PROTECTED] wrote:


  There's been a bug filed, and an update is expected to be available
soon (hopefully a week or two).

-Alex

-Original Message-
From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
Behalf Of Tom Chiverton
Sent: Friday, March 09, 2007 6:37 AM
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
Subject: Re: [flexcoders] DataGridColumn visibility problem. It appears
again when dataProvider is replaced

On Friday 09 Mar 2007, Mickael RUELLAN wrote:
 What are doing Adobe for this ? Is there a way to submit bug ?

adobe.com/go/wish

--
Tom Chiverton
Helping to continually grow frictionless paradigms
On: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at St James's Court Brown Street Manchester M2 2JF. A list
of members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged. If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents. If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
8008.

For more information about Halliwells LLP visit www.halliwells.com.

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links





[flexcoders] Links defined in Label or Text htmlText doesn't work upon the first click when in TabNavigator

2007-02-27 Thread Sergey Kovalyov

Hi All!

Take a look at this example:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

mx:TabNavigator width=100% height=100%
 mx:VBox label=Adobe
  mx:Label selectable=true
   mx:htmlText
![CDATA[a
href=http://www.adobe.com;Adobe/ahttp://www.adobe.com%22%3eadobe%3c/a



]]
   /mx:htmlText
  /mx:Label
 /mx:VBox
/mx:TabNavigator
/mx:Application

When you first click Adobe link, nothing happens. Though, if you click it
second time, application redirects you to Adobe website.

Moving this Label instance outside the TabNavigator causes correct behavior.

Any ideas?

Sergey.


Re: [flexcoders] truncateToFit() for Text, not Label

2007-02-18 Thread Sergey Kovalyov

My solution:
http://skovalyov.blogspot.com/2007/02/text-control-with-truncatetofit.html

On 12/26/06, Daniel Freiman [EMAIL PROTECTED] wrote:


  I believe in API docs the description at the top of the Text Class page
says you can't.  However, you could also simply get the pixel location of
the last character and if it is not viewable put the dots in yourself.

- Dan
.





Re: [flexcoders] Re: Calling javascript with navigateToURL

2007-01-10 Thread Sergey Kovalyov

http://livedocs.macromedia.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=passingarguments_086_12.html

On 1/10/07, jensen.axel [EMAIL PROTECTED] wrote:


  That worked great, thanks

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, 
jensen.axel [EMAIL PROTECTED] wrote:

 I'm trying to do a loop, and call a javascript function in flex for
 every loop.

 The loop only seems to call the javascript once the loop is done...
 and it only calls it for the last iteration of the loop.

 To reproduce the issue do the following:

 1. Create a new project in flex

 2. Put a button on the form, and make it's click=test1();

 3. Create a script block like so

 mx:Script
 ![CDATA[
 private function test1():void{
 for (var i:int = 0; i  5; i++){
 var u:URLRequest = new URLRequest(javascript:alert( + \'test
  + i + \'););

 navigateToURL(u,_self);
 trace(i);
 }
 }
 ]]
 /mx:Script

 the button calls this very simple function, and theoretically you
 should get 5 alert boxes, but you don't you get 1 I'm curious if
 these methods can be used like this.






Re: SOLVED: Re: [flexcoders] Re: How to make FormItem labels left aligned?

2007-01-09 Thread Sergey Kovalyov

The final solution is here:
http://skovalyov.blogspot.com/2007/01/left-aligned-label-in-formitem.html

On 12/14/06, Sergey Kovalyov [EMAIL PROTECTED] wrote:


A bit buggy solution, Stas. rawChildren.getChildAt(
rawChildren.numChildren - 1) should be used instead, you know. ;)

On 12/14/06, Stanislav Zayarsky [EMAIL PROTECTED] wrote:

Guys,

 Just use this ExtendedFormItem class instead of default FormItem.

 Here is the code:

 *public* *class* ExtendedFormItem *extends* FormItem {

 *  override* *protected* 
*function*updateDisplayList(unscaledWidth:Number, unscaledHeight:Number) :
 *void* {

 *super*.updateDisplayList(unscaledWidth, unscaledHeight);

 *var* labelObject : Object = rawChildren.getChildAt(1);

 labelObject.x = 0;

   }

 }

 Best regards
 Stanislav


 On 11/10/06, Tim Hoff [EMAIL PROTECTED] wrote:
 
 Hi Andriy,
 
  While I like your example, how do you propose aligning the children of
  the FormItems?  It seems, with this method, that the entire form item
  (including the children - TextInput...),  gets moved to the left with
  the label; at least in my test of this code.  If the label text has
  different lengths, for each form item, the various children get moved
  to the left as well; and don't align.  Preferably, this is something
  that should be handled with a stock CSS property.  but I was wondering if
  you had experienced the same behavior.  Instead of nesting HBox's, for days,
  this would be a very useful technique, for FormItems.
 
  -TH
  __
 
  *Tim Hoff
  *Cynergy Systems, Inc.
  http://www.cynergysystems.com http://www.cynergysystems.comoffice/
  Office: 866-CYNERGY
 
 
  






Re: [flexcoders] Dispatching an Event from a Class

2007-01-09 Thread Sergey Kovalyov

Just call dispatchEvent() (e. g. dispatchEvent(new Event(Event.CHANGE))) in
any class that implements IEventDispatcher (e. g. all the EventDispatcher
successors). Note, that UIComponent and all its successors implement
IEventDispatcher, so dispatchEvent() could be called in any subclass of Box,
ComboBox, Label, TextArea, HSlider, etc:

package {

import mx.controls.HSlider;

public class MyHSlider extends HSlider {

 public function MyHSlider() {
  super();

  dispatchEvent(new Event(instanceConstructed));
 }

}

}
On 1/9/07, Mike Anderson [EMAIL PROTECTED] wrote:


  Hello All,

I am attempting to dispatch an Event from a generic Class File, and I
guess I'm not doing it correctly.

I was hoping, that I could simply do this:

import mx.events.IEventDispatcher

And then in my function, I could simply dispatch the event like this:

IEventDispatcher.dispatchEvent( event );

But it doesn't allow me to do this. In the meantime, I extended my
Class to use the UIComponent, which automatically pulls in all the
EventDispatcher stuff. Of course, it's silly for me to do this, since I
really don't have a need to extend the UIComponent class.

There must be a way, to import the proper Class, in order to simply
dispatch events.

Any advice?

Thanks in advance for your help,

Mike




Re: [flexcoders] What is the best invalidation technique for non-UI classes?

2007-01-03 Thread Sergey Kovalyov

Resolution could be found at
http://skovalyov.blogspot.com/2007/01/invalidation-mechanism-for-non-ui.html
:)

On 8/24/06, Matt Chotin [EMAIL PROTECTED] wrote:


 We use a Timer in our non-visual code for this.

Matt



[flexcoders] Re: Is there any service that format ActionScript code as HTML?

2006-12-28 Thread Sergey Kovalyov

http://www.tohtml.com/ - very good service. I use JS.NET option for
ActionScript code and XML for MXML respectively. The samples could be found
here: http://skovalyov.blogspot.com/


On 12/13/06, Sergey Kovalyov [EMAIL PROTECTED] wrote:


Hi All!

I have created blog and plan to post code samples sometimes. Is there
any service that format ActionScript code as HTML?

Sergey.



[flexcoders] Re: Ctrl+Enter causes line break in TextInput in IE!

2006-12-27 Thread Sergey Kovalyov

Could you please assist? This problem is very important, I think. :)

On 12/22/06, Sergey Kovalyov [EMAIL PROTECTED] wrote:


Did anybody face this problem?

On 12/19/06, Sergey Kovalyov [EMAIL PROTECTED] wrote:

 Run this application in Internet Explorer:

 ?xml version=1.0?
 mx:Application xmlns:mx= http://www.adobe.com/2006/mxml;
width=100%
height=100%
horizontalAlign=center
verticalAlign=middle

mx:TextInput /

 /mx:Application

 Then set focus on TextInput instance and write something, then click
 Ctrl+Enter. TextInput acts almost like TextArea. New line is created.

 Sergey.

 On 12/18/06, Sergey Kovalyov [EMAIL PROTECTED] wrote:
  Hi All!
 
  Pressing Ctrl+Enter causes line break in TextInput in IE! How to fix
  this bug without subclassing TextInput?
 
  Sergey.





Re: [flexcoders] How to force built-in focus manager to auto scroll containers to the focused component?

2006-12-27 Thread Sergey Kovalyov

Hi to Matt and all flexcoders!

I have implemented AutoScrollManager class that do this job:
http://skovalyov.blogspot.com/2006/12/probably-one-of-most-annoying-thing.html

I consider this solution could be changed a bit and added to the native
Container class in future Flex releases or updates. :)

Sergey.

On 11/13/06, Matt Chotin [EMAIL PROTECTED] wrote:


   Capture the focusIn event on your components (it might be a bubbling
event in which case you could have the listener on your parent container).
 In the handler check the y position of the component and then check the
verticalScrollPosition + height of the container to see if the y is within
that range.  If not, adjust verticalScrollPosition.

 Matt
.





[flexcoders] truncateToFit() for Text, not Label

2006-12-26 Thread Sergey Kovalyov

Hi All!

How to make text truncation with ... in Text, not Label possible?

Sergey.


[flexcoders] Does anybody have method that converts relative URL to absolute one?

2006-12-26 Thread Sergey Kovalyov

Hi All!

Does anybody have method that converts relative URL to absolute one?
Sergey.


[flexcoders] Re: Ctrl+Enter causes line break in TextInput in IE!

2006-12-22 Thread Sergey Kovalyov

Did anybody face this problem?

On 12/19/06, Sergey Kovalyov [EMAIL PROTECTED] wrote:


Run this application in Internet Explorer:

?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
   width=100%
   height=100%
   horizontalAlign=center
   verticalAlign=middle

   mx:TextInput /

/mx:Application

Then set focus on TextInput instance and write something, then click
Ctrl+Enter. TextInput acts almost like TextArea. New line is created.

Sergey.

On 12/18/06, Sergey Kovalyov [EMAIL PROTECTED] wrote:
 Hi All!

 Pressing Ctrl+Enter causes line break in TextInput in IE! How to fix
 this bug without subclassing TextInput?

 Sergey.



[flexcoders] Re: Ctrl+Enter causes line break in TextInput in IE!

2006-12-19 Thread Sergey Kovalyov
Run this application in Internet Explorer:

?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
width=100%
height=100%
horizontalAlign=center
verticalAlign=middle

mx:TextInput /

/mx:Application

Then set focus on TextInput instance and write something, then click
Ctrl+Enter. TextInput acts almost like TextArea. New line is created.

Sergey.

On 12/18/06, Sergey Kovalyov [EMAIL PROTECTED] wrote:
 Hi All!

 Pressing Ctrl+Enter causes line break in TextInput in IE! How to fix
 this bug without subclassing TextInput?

 Sergey.


[flexcoders] Ctrl+Enter causes line break in TextInput in IE!

2006-12-18 Thread Sergey Kovalyov
Hi All!

Pressing Ctrl+Enter causes line break in TextInput in IE! How to fix
this bug without subclassing TextInput?

Sergey.


Re: SOLVED: Re: [flexcoders] Re: How to make FormItem labels left aligned?

2006-12-14 Thread Sergey Kovalyov

A bit buggy solution, Stas.
rawChildren.getChildAt(rawChildren.numChildren- 1) should be used
instead, you know. ;)

On 12/14/06, Stanislav Zayarsky [EMAIL PROTECTED] wrote:


   Guys,

Just use this ExtendedFormItem class instead of default FormItem.

Here is the code:

*public* *class* ExtendedFormItem *extends* FormItem {

*  override* *protected* *function*updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number) :
*void* {

*super*.updateDisplayList(unscaledWidth, unscaledHeight);

*var* labelObject : Object = rawChildren.getChildAt(1);

labelObject.x = 0;

  }

}

Best regards
Stanislav


On 11/10/06, Tim Hoff [EMAIL PROTECTED] wrote:

Hi Andriy,

 While I like your example, how do you propose aligning the children of
 the FormItems?  It seems, with this method, that the entire form item
 (including the children - TextInput...),  gets moved to the left with
 the label; at least in my test of this code.  If the label text has
 different lengths, for each form item, the various children get moved to
 the left as well; and don't align.  Preferably, this is something that
 should be handled with a stock CSS property.  but I was wondering if you had
 experienced the same behavior.  Instead of nesting HBox's, for days, this
 would be a very useful technique, for FormItems.

 -TH
 __

 *Tim Hoff
 *Cynergy Systems, Inc.
 http://www.cynergysystems.com http://www.cynergysystems.comoffice/
 Office: 866-CYNERGY






[flexcoders] Is there any service that format ActionScript code as HTML?

2006-12-13 Thread Sergey Kovalyov
Hi All!

I have created blog and plan to post code samples sometimes. Is there
any service that format ActionScript code as HTML?

Sergey.


[flexcoders] How to instantiate SliderThumb out of Slider subclasses?

2006-12-12 Thread Sergey Kovalyov
Hi All!

How to instantiate SliderThumb out of Slider subclasses? I have tried
to create it inside custom component in createChildren() override,
though nothing has been created. I have also tried sizing it in
updateDisplayList() override, but SliderThumb instance
getExplicitOrMeasuredWidth() and getExplicitOrMeasuredHeight() methods
return 0.

Sergey.


[flexcoders] Dead loop in UITextField.tructateToFit()

2006-12-11 Thread Sergey Kovalyov
Hi All!

It seems that setting very long string to the text property of classes
that decorate UITextField (e. g. Label) causes dead loop and time out
exception. Take a look at truncateToFit() method in UITextField class.
You could find this block there:

while (s.length  1  textWidth + TEXT_WIDTH_PADDING  w)
{
s = s.slice(0, -1);
super.text = s + truncationIndicator;
}

It means that actual text is cut char by char until result of its
concatenation with truncation indicator fits into the width available
or only one char left. When text is very long the problem described
above appears. I believe it would work much more faster using
division by 2. In this case even 64K text truncation will take only
16 loop cycles. Hope this will be fixed in future releases.

Sergey.


[flexcoders] Re: Component behavior when child of navigation container

2006-12-04 Thread Sergey Kovalyov
Any comments from Adobe? I have not found any mention of this side
affect while using navigation container nor in Flex component
development presentation from Ely neither in help...

On 12/1/06, Sergey Kovalyov [EMAIL PROTECTED] wrote:
 Hi All!

 I create the component using code behind technique (MXML inherited
 from ActionScript class inherited from framework class, Box in my
 case). The component contains children defined in MXML and has some
 properties that have influence on children behavior. I call
 invalidateProperties() in setters and then assign some cached values
 to particular children properties in commitProperties(). Everything
 works ok, until you place this component instance as a child of
 navigation container, ViewStack in my case - createChildren() and
 commitProperties() are called when ViewStack is created, though its
 grandchildren are not created, so null pointer exception is thrown.
 How to fix it?

 Sergey.



[flexcoders] How to make overSkin and downSkin styles of LinkButton transparent?

2006-12-04 Thread Sergey Kovalyov
Hi All!

How to make overSkin and downSkin styles of LinkButton transparent? I
can set them to true, but it results in strange mouse pointer blinking
when rolling over the edge of the component. You could try this code
to see this side effect:

mx:LinkButton label=My Label overSkin={null} downSkin={null} /

Any suggestions?

Sergey.


[flexcoders] faultCode = Client.Error.RequestTimeout

2006-12-01 Thread Sergey Kovalyov
Hi All!

Is there any constant that contains Client.Error.RequestTimeout
string value in framework classes? Actually it's the value of
fault.faultCode in FaultEvent instance when request timeout happens.

Sergey.


[flexcoders] Component behavior when child of navigation container

2006-12-01 Thread Sergey Kovalyov
Hi All!

I create the component using code behind technique (MXML inherited
from ActionScript class inherited from framework class, Box in my
case). The component contains children defined in MXML and has some
properties that have influence on children behavior. I call
invalidateProperties() in setters and then assign some cached values
to particular children properties in commitProperties(). Everything
works ok, until you place this component instance as a child of
navigation container, ViewStack in my case - createChildren() and
commitProperties() are called when ViewStack is created, though its
grandchildren are not created, so null pointer exception is thrown.
How to fix it?

Sergey.


Re: [flexcoders] Is there any native media player component?

2006-11-30 Thread Sergey Kovalyov

True. :( FLVPlayer was a high-level media player component. Probably, it was
right Adobe decision to get rid of it, because such a high-level components
can't be framework element. Though it was very easy to use. :)


[flexcoders] Entry point to try ... catch ... all the application exceptions thrown

2006-11-30 Thread Sergey Kovalyov
Hi All!

Is it possible to try ... catch ... ALL the application exceptions
thrown in one place?

Sergey.


[flexcoders] Re: Text instance does not calculate its height properly when in scrollable Box

2006-11-28 Thread Sergey Kovalyov
Any suggestions?..

On 11/27/06, Sergey Kovalyov [EMAIL PROTECTED] wrote:
 Hi All!

 When Text instance is in scrollable Box and user scrolls vertical
 scrollbar to the bottommost position, bottom edge of the Text remains
 invisible (cut by mask). How to fix it? Look at the example below that
 reproduces this behavior:



 ?xml version=1.0?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
width=100%
height=100%
horizontalAlign=center
verticalAlign=middle

mx:Box width=300 height=300
mx:Text width=100% condenseWhite=true
mx:htmlText
![CDATA[
 pLorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut
 facilisis adipiscing lectus. Nam placerat. Sed sodales, erat vitae
 commodo malesuada, erat erat ultrices erat, eu eleifend risus magna
 quis nulla. Sed elementum tempor sem. Donec gravida aliquet tellus.
 Aenean vel sapien. Maecenas ullamcorper urna ut neque. Pellentesque
 habitant morbi tristique senectus et netus et malesuada fames ac
 turpis egestas. Nunc nisl lectus, condimentum non, rutrum eu, dapibus
 vel, turpis. Sed lacus quam, aliquam ac, mattis at, scelerisque sed,
 odio. Curabitur arcu ipsum, bibendum eget, porta non, aliquam
 lobortis, felis. Nulla eget velit et urna pulvinar cursus. Morbi
 ornare./pbr /

 pFusce porta ultrices magna. Morbi et mauris. Mauris vel felis.
 Vestibulum tortor lectus, fermentum sit amet, tempus a, dapibus eu,
 sem. Proin id nulla eu odio lobortis dictum. Sed faucibus facilisis
 massa. Quisque blandit posuere eros. Mauris tempus erat vel quam.
 Nulla purus nulla, imperdiet ut, tincidunt id, pharetra in, pede.
 Proin luctus diam sed erat. Vivamus mi. Morbi sodales libero vel
 tortor. Integer et dolor. Praesent semper facilisis orci./pbr /

 pCurabitur vel augue. Nunc ac odio sed justo convallis cursus. Morbi
 eget sapien. Vestibulum euismod, lacus auctor ultrices volutpat, sem
 pede hendrerit enim, non condimentum lectus lorem quis risus. Vivamus
 dictum iaculis sem. Quisque vel nibh. Ut nisl dolor, fringilla quis,
 commodo vel, iaculis quis, ligula. Aenean eleifend. Duis vitae quam
 non massa malesuada bibendum. Integer a urna. Suspendisse fringilla
 sapien sit amet tellus. Vestibulum condimentum auctor nisl./pbr /

 pAenean cursus pellentesque nibh. Phasellus fermentum, pede quis
 molestie sagittis, lectus orci bibendum odio, eu ullamcorper velit
 eros id urna. In feugiat, ante sit amet molestie ultricies, massa elit
 iaculis dolor, porttitor cursus mauris lorem luctus diam. Ut eu felis.
 Etiam quis metus. Nullam tincidunt justo. Maecenas id tellus sit amet
 risus tempor vulputate. Morbi mauris enim, nonummy quis, laoreet at,
 adipiscing sit amet, justo. Cras tincidunt dignissim sem. Fusce
 ultrices tellus sit amet elit. Vivamus blandit velit vel mi. Curabitur
 tellus. Vestibulum mattis, dolor vel commodo condimentum, diam nunc
 venenatis ligula, ac lobortis ipsum sem a lectus. Curabitur eu lorem
 eu dui egestas accumsan. Vestibulum dignissim pede nec ipsum. Etiam
 quis risus nec tortor ornare pretium. Nulla ipsum felis, sagittis in,
 aliquam ut, tempor in, ante. Mauris tempor turpis eget urna. Phasellus
 urna nulla, blandit id, ultrices non, viverra at, ante./pbr /

 pProin feugiat dui interdum urna. Nulla vel sem sit amet velit
 imperdiet euismod. Aenean nunc. Maecenas posuere. Donec elit augue,
 sodales et, vulputate fermentum, venenatis eu, purus. Aenean risus.
 Integer feugiat. Nam volutpat urna vitae diam. In turpis magna,
 malesuada a, cursus eu, facilisis at, augue. Fusce rhoncus commodo
 augue. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam
 in odio. Quisque eget est. Donec congue justo a dui./p
]]
/mx:htmlText
/mx:Text
/mx:Box

 /mx:Application



 Sergey.



[flexcoders] Text instance does not calculate its height properly when in scrollable Box

2006-11-27 Thread Sergey Kovalyov
Hi All!

When Text instance is in scrollable Box and user scrolls vertical
scrollbar to the bottommost position, bottom edge of the Text remains
invisible (cut by mask). How to fix it? Look at the example below that
reproduces this behavior:



?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
width=100%
height=100%
horizontalAlign=center
verticalAlign=middle

mx:Box width=300 height=300
mx:Text width=100% condenseWhite=true
mx:htmlText
![CDATA[
pLorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut
facilisis adipiscing lectus. Nam placerat. Sed sodales, erat vitae
commodo malesuada, erat erat ultrices erat, eu eleifend risus magna
quis nulla. Sed elementum tempor sem. Donec gravida aliquet tellus.
Aenean vel sapien. Maecenas ullamcorper urna ut neque. Pellentesque
habitant morbi tristique senectus et netus et malesuada fames ac
turpis egestas. Nunc nisl lectus, condimentum non, rutrum eu, dapibus
vel, turpis. Sed lacus quam, aliquam ac, mattis at, scelerisque sed,
odio. Curabitur arcu ipsum, bibendum eget, porta non, aliquam
lobortis, felis. Nulla eget velit et urna pulvinar cursus. Morbi
ornare./pbr /

pFusce porta ultrices magna. Morbi et mauris. Mauris vel felis.
Vestibulum tortor lectus, fermentum sit amet, tempus a, dapibus eu,
sem. Proin id nulla eu odio lobortis dictum. Sed faucibus facilisis
massa. Quisque blandit posuere eros. Mauris tempus erat vel quam.
Nulla purus nulla, imperdiet ut, tincidunt id, pharetra in, pede.
Proin luctus diam sed erat. Vivamus mi. Morbi sodales libero vel
tortor. Integer et dolor. Praesent semper facilisis orci./pbr /

pCurabitur vel augue. Nunc ac odio sed justo convallis cursus. Morbi
eget sapien. Vestibulum euismod, lacus auctor ultrices volutpat, sem
pede hendrerit enim, non condimentum lectus lorem quis risus. Vivamus
dictum iaculis sem. Quisque vel nibh. Ut nisl dolor, fringilla quis,
commodo vel, iaculis quis, ligula. Aenean eleifend. Duis vitae quam
non massa malesuada bibendum. Integer a urna. Suspendisse fringilla
sapien sit amet tellus. Vestibulum condimentum auctor nisl./pbr /

pAenean cursus pellentesque nibh. Phasellus fermentum, pede quis
molestie sagittis, lectus orci bibendum odio, eu ullamcorper velit
eros id urna. In feugiat, ante sit amet molestie ultricies, massa elit
iaculis dolor, porttitor cursus mauris lorem luctus diam. Ut eu felis.
Etiam quis metus. Nullam tincidunt justo. Maecenas id tellus sit amet
risus tempor vulputate. Morbi mauris enim, nonummy quis, laoreet at,
adipiscing sit amet, justo. Cras tincidunt dignissim sem. Fusce
ultrices tellus sit amet elit. Vivamus blandit velit vel mi. Curabitur
tellus. Vestibulum mattis, dolor vel commodo condimentum, diam nunc
venenatis ligula, ac lobortis ipsum sem a lectus. Curabitur eu lorem
eu dui egestas accumsan. Vestibulum dignissim pede nec ipsum. Etiam
quis risus nec tortor ornare pretium. Nulla ipsum felis, sagittis in,
aliquam ut, tempor in, ante. Mauris tempor turpis eget urna. Phasellus
urna nulla, blandit id, ultrices non, viverra at, ante./pbr /

pProin feugiat dui interdum urna. Nulla vel sem sit amet velit
imperdiet euismod. Aenean nunc. Maecenas posuere. Donec elit augue,
sodales et, vulputate fermentum, venenatis eu, purus. Aenean risus.
Integer feugiat. Nam volutpat urna vitae diam. In turpis magna,
malesuada a, cursus eu, facilisis at, augue. Fusce rhoncus commodo
augue. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam
in odio. Quisque eget est. Donec congue justo a dui./p
]]
/mx:htmlText
/mx:Text
/mx:Box

/mx:Application



Sergey.


[flexcoders] Is there any native media player component?

2006-11-27 Thread Sergey Kovalyov
Hi All!

I remember FLVPlayer (or some kind of this) component in Flash 8 IDE.
Is there any similar component available in Flex 2? Thank you in
advance.

Sergey.


[flexcoders] Image download progress indicator

2006-11-23 Thread Sergey Kovalyov
Hi All!

What is the best way to create in place image download progress
indicator? Sure, I can create Canvas with two images inside - one is
embeded download indicator and another is dynamic image to be
downloaded, but it does not look like the best solution.

Sure, I would like to have respective style in Image class like a
native brokenImageSkin, so I think about Image subclassing. Am I
wrong?

Sergey.


[flexcoders] How to make the entire Image control mouse sensitive?

2006-11-23 Thread Sergey Kovalyov
Hi All!

Currently only the loaded image itself is mouse sensitive when
scaleContent is set to false, not the entire Image control. How to
change the behavior in order to make the entire Image control mouse
sensitive without decorating it inside Box?

Sergey.


[flexcoders] Is it possible to make multiline Button?

2006-11-23 Thread Sergey Kovalyov
Hi All!

How to subclass the built-in Button class to make its label multiline?
Now only one line (truncated if too long) is supported.

Sergey.


[flexcoders] Implicit coercion of a value of type com.my.controls:TextInputLabel to an unrelated type flash.display:DisplayObject.

2006-11-17 Thread Sergey Kovalyov
Hi All!

Error Implicit coercion of a value of type
com.my.controls:TextInputLabel to an unrelated type
flash.display:DisplayObject. appears in compile time when using
mx:AddChild override. This bug is difficult to reproduce. Sometimes
it happes, sometimes not. Initially I have found it when there was no
mx:target property tag within the child declaration:

mx:AddChild
mx:TextInputLabel /
/mx:AddChild

I have added mx:target:

mx:AddChild
mx:target
mx:TextInputLabel /
/mx:target
/mx:AddChild

And bug disappeared, but only for a while...

Sergey.


[flexcoders] How to make FormItem labels left aligned?

2006-11-08 Thread Sergey Kovalyov
Hi All!

I want FormItem labels to be left aligned in all the Form instances.
What is the best practice to do that?

Sergey.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



[flexcoders] How to force built-in focus manager to auto scroll containers to the focused component?

2006-11-08 Thread Sergey Kovalyov
Hi All!

How to force built-in focus manager to auto scroll containers to the
focused component? I said in message before that it's native behavior
in HTML, so users feel comfortable with this. Are there any solutions
or workarounds?

Sergey.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



Re: [flexcoders] Using DateField control to set birthday

2006-11-06 Thread Sergey Kovalyov



If I disable dates greater than todayusingselectableRange, this restriction does not apply to the dates, entered by keyboard inside the TextInput. What is the best practice for this?
On 9/1/06, Doug Arthur [EMAIL PROTECTED] wrote:


I usually set the following to properties when dealing with DoB's.


yearNavigationEnabled=true editable=true
On 8/31/06, Sergey Kovalyov 
[EMAIL PROTECTED] wrote: 








Hi All!DateField is a great control, though setting birthday even for peoplethat were born in 198* it takes minutes to move through the months inorder to get to the correct date. Does anybody have experience
customizing this control for this particular need (selectingbirthday)?Sergey.


__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



[flexcoders] Focus manager component inside scrollable container

2006-11-06 Thread Sergey Kovalyov
Hi All!

If user is pressing Tab key, scrollable container does not move its
content to make focused component visible. It remains invisible in
some cases, because it's out of the visible part of scrollable
content. How to implement this behaviour (actually native for most
users)?

Sergey.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



[flexcoders] How to set skin style to null in CSS?

2006-11-02 Thread Sergey Kovalyov
Hi All!

How to set skin style to null in CSS?

Sergey.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



Re: [flexcoders] Binding on properties with Class type

2006-11-01 Thread Sergey Kovalyov



Changes are not detected. I will create example that shows it soon and post here.
On 10/31/06, Joan Lafferty [EMAIL PROTECTED] wrote:



Yes, in general, data binding is unable to detect changes to static properties regardless of type. 

Sergey, can you post an example of your code where you say "binding on properties with Class type does not work". Does the initial binding not work or are changes not detected?

Thanks,
Joan Lafferty
Flex SDK QA

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



[flexcoders] Why shadowDirection does not support flexible angles?

2006-10-31 Thread Sergey Kovalyov
Hi All!

I have found that it's impossible to assign shadow direction angle for
containers. Why so? I found in HaloBorder that it's possible, but due
to a lot of private fields and other tricks, it's impossible to hack
it. :(

Sergey.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



[flexcoders] Binding on properties with Class type

2006-10-31 Thread Sergey Kovalyov
Hi All!

It seems that binding on properties with Class type does not work. Is
it correct?

Sergey.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



[flexcoders] How to conduct htmlText string using the styles, defined in CSS?

2006-10-30 Thread Sergey Kovalyov
Hi All!

I have EntryHeader, EntrySubHeader and EntryContent style names,
defined in CSS and I want to conduct htmlText string for Text control
in order to format such a text properly:

My header
My sub header

My content

How to do that?

Sergey.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



[flexcoders] Old data provider icons remain in Menu instance after data provider change

2006-10-30 Thread Sergey Kovalyov
Hi All!

I have PopUpButton instance, its popUp property is binded to menu
getter and menu dataProvider property is binded to menuDataProvider
getter. Each times menuDataProvider changes, old icons remain visible
in menu and new appear over them. How to fix it?

Sergey.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



[flexcoders] Zip-code validation

2006-10-27 Thread Sergey Kovalyov
Hi All!

As far as I understand Flex built-in ZipCodeValidator does not
validate zip codes precisely. In other words it only checks whether
the edited value is 5 digit number. So that 0 is interpreted as
valid. What are the best practices for precise zip code validation?
For now I I'm considering using built-in ZipCodeValidator together
with:

1. Runtime server side validation on text change and/or focus out
and/or form submit.
2. Validate zip code button on the right of the field that triggers
server side validation.
3. Triggering server site validation only upon form submit.

Any other ideas?

Sergey.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



[flexcoders] truncateToFit does not work when percentWidth is defined for Label

2006-10-23 Thread Sergey Kovalyov
Hi All!

I have a container and Label instance inside it. Unfortunately,
truncateToFit does not work if Label instance width is set in percent.
Please, take a look at the example below:

?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
width=100%
height=100%

mx:Box width=25%
mx:Label width=100% text=Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aenean ligula. Sed eget pede sed metus
nonummy rhoncus. Nam congue, tortor nec dignissim tincidunt, augue
odio volutpat sem, non vulputate lectus nulla vitae leo. Vestibulum
aliquet bibendum felis. Aenean in turpis mattis tellus tempus sodales.
Nulla sem. Maecenas lobortis pharetra lacus. Fusce non odio nec massa
auctor pharetra. Aenean vulputate posuere justo. Nulla vitae eros vel
eros aliquet euismod. /
/mx:Box

/mx:Application



On the other hand, if I assign fixed width to Label instance,
everything works ok:



?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
width=100%
height=100%

mx:Box width=25%
mx:Label width=200 text=Lorem ipsum dolor sit amet, 
consectetuer
adipiscing elit. Aenean ligula. Sed eget pede sed metus nonummy
rhoncus. Nam congue, tortor nec dignissim tincidunt, augue odio
volutpat sem, non vulputate lectus nulla vitae leo. Vestibulum aliquet
bibendum felis. Aenean in turpis mattis tellus tempus sodales. Nulla
sem. Maecenas lobortis pharetra lacus. Fusce non odio nec massa auctor
pharetra. Aenean vulputate posuere justo. Nulla vitae eros vel eros
aliquet euismod. /
/mx:Box

/mx:Application



But in my case Label width should be set in percents.

Sergey.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



Re: [flexcoders] truncateToFit does not work when percentWidth is defined for Label

2006-10-23 Thread Sergey Kovalyov



It works! Thank you, Michael. Event setting minWidth to 0 works. I used this trick with minHeight in other cases, but could not imagine it would work here also. :)
On 10/23/06, Michael Schmalle [EMAIL PROTECTED] wrote:

Hi,Add this; (minWidth)mx:Label width=100% minWidth=100 text=Peace, Mike 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   



  



  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



[flexcoders] Complex container sizing problem (100% height and measured maxHeight)

2006-10-17 Thread Sergey Kovalyov
Hi All!

I want my container (e. g. Panel) to be sized by its children, though
its height should not be greater than 100%. When I don't set height,
the container is sized by its children endlessly, but when I set it to
100% it occupies all the space available, so that there is emptiness
below the container content.

How to solve my problem?

I think it's necessary to set height to 100% and bind maxHeight to
getter that would calculate the space required, considering the
current content of container. Is there any transparent way to
calculate it properly regardless of container class?

Are there any other solutions?

Thank you in advance!

Sergey.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



Re: [flexcoders] Complex container sizing problem (100% height and measured maxHeight)

2006-10-17 Thread Sergey Kovalyov



Ok, in other words I want my panel to be sized by its children (no emptiness inside below the children), but this panel height must not be greater than 100% (vertical scroll would appear inside it when there are too much children).

On 10/17/06, Michael Schmalle [EMAIL PROTECTED] wrote:

Hi,I 'think' I just had the same issue as you although I don't quite understand what you wrote.Try setting your parent containers minWidth=100 and minHeight=100;See the long thread on the flexcomponents yahoo mailing list as it is to lengthy to describe what is happening. 
 topLevelSystemManager.getObjectsUnderPoint() :: Scroll BogYeah, bog is supposed to be bug ;-)This might not solve your problem if I am misunderstanding you. 
Peace, Mike

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Why defaultButton do not work when in TabNavigator?

2006-10-16 Thread Sergey Kovalyov
As far as I remember, Adobe knows about this bug and it would be fixed
in upcoming updater release. Also it seems that there is no
workaround...

On 10/13/06, hank williams [EMAIL PROTECTED] wrote:
 I am encountering this same problem, namely that the defaultButton
 feature doesnt work inside a tabnavigator.

 Is this confirmed as a known bug, and is there a work around?

 Hank


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Internationalization best practices

2006-10-12 Thread Sergey Kovalyov
Hi All!

Could you please share some approaches toward internationalization in
Flex 2 applications? Any articles, tutorials and code samples are
welcome!

Sergey.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



[flexcoders] PopUpMenuButton weird behaviour

2006-10-10 Thread Sergey Kovalyov
Hi All!

I launched the simple example of PopUpMenuButton usage, taken from
help. It shows tree menu, but its behaviour is weird. When I mouse
over an item that contains nested menu, it show that menu, but when I
mouse over another item in the root level, the entire menu
disappears. Is it correct?

Sergey.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] OFFTOPIC: Ukraine - Scotland

2006-10-10 Thread Sergey Kovalyov
Hi All!

Does anybody from Macromedia Consulting Europe (former iteration::two)
or other scottish companies plan to visit Ukraine - Scotland soccer
match tomorrow in Kiev? :)

Sergey.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



[flexcoders] How to disable particular LinkBar item?

2006-10-10 Thread Sergey Kovalyov
Hi All!

I want to disable particular LinkBar item and make mouse pointer
looking like arrow, not hand, while over it. How to do that?

Sergey.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] What do I need to force UIComponent calculate its size automatically?

2006-10-04 Thread Sergey Kovalyov
Hi All!

I have UIComponent instance (e. g. Box) myBox. I want to set its width
(e. g. myBox.width = 100), but height should be calculated
automatically, depending on box content. What value should I assign to
height? myBox.height = NaN works ok, but I'm not sure it's stable...

Sergey.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





Re: [flexcoders] What do I need to force UIComponent calculate its size automatically?

2006-10-04 Thread Sergey Kovalyov
True. But if the value is assigned already?

On 10/4/06, Tom Chiverton [EMAIL PROTECTED] wrote:
 On Wednesday 04 October 2006 10:11, Sergey Kovalyov wrote:
  automatically, depending on box content. What value should I assign to
  height? myBox.height = NaN works ok, but I'm not sure it's stable...

 Don't assign anything.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





  1   2   3   >