Re: [flexcoders] Flex TextArea Autosize issues

2007-05-01 Thread Daniel Freiman
textHeight. - Daniel Freiman nondocs http://nondocs.blogspot.com On 5/1/07, Mark Walters [EMAIL PROTECTED] wrote: Its adding extra whitespace (padding) at the bottom, there are no extra white space characters in the htmlText which I can verify by setting condenseWhite to true, which does get rid

Re: [flexcoders] MouseUP event dont't trigger

2007-04-28 Thread Daniel Freiman
There could be a lot of reasons why this is happening. For starters, check out my FAQ page at: http://nondocs.blogspot.com/2007/04/flexfaqmouseevents.html If none of those things are the problem, then you're going to need to provide some more detail so we can figure out what other weird things

Re: [flexcoders] Finding all TextInputs in a Panel

2007-04-24 Thread Daniel Freiman
for...in iterates over properties. Unless you've subclassed the panel and gave each TextInput child its own variable, then this won't give you a Container's children. What you want is to iterate over the children: for (var i:int = 0; i panel.getChildren().length; i++) { var

Re: [flexcoders] Font-size Bug in Text Area?

2007-04-23 Thread Daniel Freiman
The flash player assumes 1 point per pixel. So it's not as much a bug as a design choice. - Dan Freiman On 4/23/07, iko_knyphausen [EMAIL PROTECTED] wrote: Hi everyone: I think I have found a bug in the text area control and its htmlText property. When you set the fontsize property of an

Re: [flexcoders] How to measure text?

2007-04-23 Thread Daniel Freiman
mx.controls.Label truncates text if it doesn't fit. While this is not what you're looking for, it should be good example code for you to edit to get the behavior you want. Dan Freiman nondocs http://nondocs.blogspot.com On 4/23/07, Shaun [EMAIL PROTECTED] wrote: Does anyone know of an

Re: [flexcoders] BoxDivider docs?

2007-04-23 Thread Daniel Freiman
It's not in the docs. It has the tag [ExcludeClass] which means that the class will not be visible to FlexBuilder's functions, such Content Assist and it also stops ASDocs (the program which compiles the documentation) to ignore the class. There's nothing wrong with you, it's just a class that

Re: [flexcoders] getting UIComponent to react to mouse events

2007-04-21 Thread Daniel Freiman
I've got a FAQ on this on my site, http://nondocs.blogspot.com/2007/04/flexfaqmouseevents.html but the short answer is that you do need to fill in the transparent areas with pixels that are drawn explicitly transparent. So you could do something like this: uicomponent.graphics.beginFill(0,0);

Re: [flexcoders] Re: denying GETs on .NET WSDL web service file...

2007-04-13 Thread Daniel Freiman
double check to make sure you actually have to load the wsdl. It's possible that you can just call the functions and hope you're hitting a function that exists. Unfortunately I don't have time to test this (possibly crackpot) theory right now. - Daniel Freiman nondocs? http

Re: [flexcoders] swap Children?

2007-04-11 Thread Daniel Freiman
check the pieces of the code. What I mean by that is try: var child1 = container.getChildAt(ind); var child2 = container.getChildAt(1); container.setChildIndex(child1,1) container.setChildIndex(child2,ind); see specifically which line is breaking. - Daniel Freiman nondocs? http

Re: [flexcoders] Making system calls from flash

2007-04-11 Thread Daniel Freiman
You might be able to call a function in an ActiveX control\Java Applet\etc through a javascript bridge in the wrapper web page and these controls may have a different security model that will give you access to the system, but you can't do it directly from flex. - Daniel Freiman nondocs? http

Re: [flexcoders] loading image with AS and Loader

2007-04-10 Thread Daniel Freiman
mx.controls.SWFLoader, which is similar to the Loader but a UIComponent. - Daniel Freiman nondocs? http://nodocs.blogspot.com On 10 Apr 2007 00:25:43 -0700, ronnlixx [EMAIL PROTECTED] wrote: I'm trying this example from the documentation: var pictLdr:Loader = new Loader(); var pictURL:String = banana.jpg

Re: [flexcoders] Root sprite not responding to MouseEvent ?

2007-04-09 Thread Daniel Freiman
(keyboard or mouse) listeners to the Application sometimes doesn't work. Try adding them to systemManger instead. - Daniel Freiman nondocs? http://nondocs.blogspot.com On 09 Apr 2007 12:28:09 -0700, Ronnie Liew [EMAIL PROTECTED] wrote: Hi Alex, Thanks for your response. My main class app

Re: [flexcoders] Caret position

2007-04-08 Thread Daniel Freiman
Try setSelection(). - Daniel Freiman nondocs? http://nondocs.blogspot.com On 08 Apr 2007 08:34:45 -0700, Ian Thomas [EMAIL PROTECTED] wrote: Hi folks, Is there any way to set the caret position (or the selection) in a TextField object? All three of the relevant properties - caretIndex

Re: [flexcoders] creating cube

2007-04-06 Thread Daniel Freiman
manually using the Graphics class. Every Sprite has a property graphics of type Graphics. You would would want the drawing to refresh every frame every interval of a Timer class. Mouse or keyboard events would change variables that represent the viewpoint of the user. Good luck, Daniel Freiman

Re: [flexcoders] Bizarre compilation issue.

2007-04-06 Thread Daniel Freiman
?xml version=1.0 encoding=utf-8? should be at the top of every MXML file. My guess is that this line has whitespace in front of it. If that's not doing it you should probably post the entire file. - Daniel Freiman nondocs? http://nondocs.blogspot.com/ On 06 Apr 2007 17:53:29 -0700, jjkruse1

Re: [flexcoders] VerifyError: Error #1030

2007-04-03 Thread Daniel Freiman
versions and compiler output, which can sometimes be caused by linking against old AS code. If you don't have that situation, can you post the example? -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Daniel Freiman *Sent:* Monday, April 02

Re: [flexcoders] y value of UIComponents added inside of VBox

2007-04-02 Thread Daniel Freiman
I think the verticalScrollPosition property is actually a direct mapping to the top viewable y pixel location so you should be able to set the location by setting verticalScrollPosition to the y coordinate. I'm not sure what you mean by you only get 0 for each UIComponent. If you mean that the

[flexcoders] VerifyError: Error #1030

2007-04-02 Thread Daniel Freiman
VerifyError: Error #1030: Stack depth is unbalanced. 1 != 0. This is thrown when I past text into an extension of UITextField. I think it's trying to verify the function that's listening for the KeyboardEvent.KEY_DOWN. For the record, I don't know what that last sentence means. Anybody have a

Re: [flexcoders] flex bug ????

2007-03-30 Thread Daniel Freiman
is CustomComponent already a child of an object (Box2 or another object)? - Dan On 30 Mar 2007 01:41:58 -0700, thierrybertossa [EMAIL PROTECTED] wrote: I have a hierarchie of containers like: Panel -HBox -HDivideBox --Box --Canvas ---VBox ---HDivideBox Box1 Box2 Probleme

Re: [flexcoders] Finding the position of a given character inside a TextArea

2007-03-30 Thread Daniel Freiman
TextField has a function getCharBoundries() which returns the location/width/height/etc of a single character within a textfield. You can gain access to the textField inside a TextArea by extending the TextArea (or calling mx_internal::getTextField()). - Dan Freiman On 30 Mar 2007 11:07:32

Re: [flexcoders] Re: TextArea htmltext parsing

2007-03-29 Thread Daniel Freiman
Another method (that I use): Spell check the text using the text property, for each word, save the formating of the old word using TextFormat, insert the corrected word into the place of the old word, then reapply the TextFormat object to the replaced word. It's a little bit more complicated

Re: [flexcoders] Re: TextArea htmltext parsing

2007-03-29 Thread Daniel Freiman
I'm not sure it will be that helpful because it's pretty integrated with a third party webservice that returns a list of incorrect words, the position of these words, and suggested changes. I iterate through each incorrect word and prompt the user. If they want to replace the word here's what

Re: [flexcoders] Re: Scaling font size with Window size

2007-03-29 Thread Daniel Freiman
I'm not exactly sure what behavior you're expecting, but look into manipulating the scaleX and scaleY properties of a TextField or it's parent's containers. - Dan On 29 Mar 2007 14:18:49 -0700, simonjpalmer [EMAIL PROTECTED] wrote: hmm, any idea what value it takes by default? I don't

Re: [flexcoders] Problem with measureHTMLText when using different font-sizes

2007-03-28 Thread Daniel Freiman
yeah, measureHTMLText will give you trouble for this type of problem. If you're only resizing the height and keeping the same width, you can use textArea.textHeight and resize the textarea to that (plus border, padding, etc). The only thing to look out for is that the textHeight property is up

Re: [flexcoders] Re: VideoDisplay bug?! How to extend to change a private variable?

2007-03-28 Thread Daniel Freiman
mx_internal is easy to access because it's just a namespace. Simply import mx.core.mx_internal. After the imports type the line: use namespace mx_internal; There should be a complete discussion if you just search through the mailing list archives for 'mx_internal' specifically or you can

Re: [flexcoders] Flex RichTextEditor/WYSIWYG editor

2007-03-27 Thread Daniel Freiman
Take a look at textField.useRichTextClipboard. - Dan Freiman On 26 Mar 2007 18:46:20 -0700, nasawebguy [EMAIL PROTECTED] wrote: I've tried pasting from MS Word, Rich Text, HTML pages, etc. into the Flex RichTextEditor, but everything (bullets, bold, colors, links, tables) gets converted to

Re: [flexcoders] Parse Excel in Flex Applications

2007-03-27 Thread Daniel Freiman
It's going to be hard to do this (if possible at all) without bouncing the file off the server. You can only browse the file system using FileReference which uploads a file to the server. Additionally, to get data into a flex movie 99% of the methods have to go through some sort of networking

Re: [flexcoders] Tabbar Icon

2007-03-27 Thread Daniel Freiman
There's not a very simple way to do this, but it has been done before and there are examples out there. Most of them involve adding a close/remove button to the tab. Search the archives and you should find links to two or three examples of how to do this. - Dan On 27 Mar 2007 05:57:52 -0700,

Re: [flexcoders] Error 2025 with images

2007-03-26 Thread Daniel Freiman
I had problems in a project with img tags not refreshing properly. What I had to do was set text or htmlText to and then call validateNow() on the textArea (actually you want to call it on the UITextField within the textArea but I think this will be done by the textArea) and then set the

Re: [flexcoders] Global access in AS3

2007-03-26 Thread Daniel Freiman
Singleton's should work. Some of the mx components even use this method so it has to be possible. Without looking at your code there's not really a good way to guess why the values are being reset. As for the private constructor, most singleton classes that come with docs simply state not to

Re: [flexcoders] Can Ely's Flexbook open by default on a given page?

2007-03-23 Thread Daniel Freiman
I haven't looked at the code, but could you set visible to false, then move to page 3, and then set visible to true? - Dan On 22 Mar 2007 19:22:10 -0700, João [EMAIL PROTECTED] wrote: I am trying the impressive Flexbook that Ely made, and i wasn't able to make it open by default on a given

Re: [flexcoders] Cursor Lag

2007-03-09 Thread Daniel Freiman
First I'd check to make sure your problem isn't in how the the cursor is set. It's possible that you're calling functions you are not aware of: Look into mouseEvent.updateAfterEvent() if you have functions that receive a MouseEvent to speed things up in general. Also I would just continue to

Re: [flexcoders] Anybody experience Child Objects, exceeding the bounds of it's Parent Container?

2007-03-09 Thread Daniel Freiman
When this happened to me the solution was a complicated and very integrated with what I was doing. As a general piece of advice I'd call validateNow() and then scrollChildren() and see if that helps or gets you closer to a solution. - Dan Freiman On 09 Mar 2007 06:47:17 -0800, Mike Anderson

Re: [flexcoders] Mouse events in non-drawn areas?

2007-03-07 Thread Daniel Freiman
draw transparent pixels using the graphics object of the UIComponent: componentInstance.graphics.beginFill(0,0); componentInstance.graphics.drawRect(0,0,componentInstance.width, componentInstance.height); - Dan On 07 Mar 2007 08:49:59 -0800, Roman Protsiuk [EMAIL PROTECTED] wrote: You can

Re: [flexcoders] Is the Graphics class available in the SDK anywhere?

2007-03-07 Thread Daniel Freiman
Extending the functionality of the graphics object is generally done creating a wrapper class that is passed the graphics object and then operates on it. There's an example for this out there that draws dotted lines. I'll see if I can find it. - Dan On 07 Mar 2007 11:49:56 -0800, Rick

Re: [flexcoders] Controlling Content Scrolling inside HBOX without ScrollBars

2007-03-01 Thread Daniel Freiman
First, double check to make sure that verticalScrollPosition and horizontalScrollPosition won't work even if you hide the scrollbars (I don't think they will but I'm not sure). If and when that doesn't work, all scrollbars do is change the scollRect property of a UIComponent. You could

Re: [flexcoders] Re: How do I prevent the user from selecting text in a text area component?

2007-03-01 Thread Daniel Freiman
Good form would tell you to extend the TextArea to get access to the UITextField which i believe has a selectable property. Bad form would tell you to use mx_internal::getTextField().selectable. - Dan On 2/28/07, Paul DeCoursey [EMAIL PROTECTED] wrote: If you don't need any other

Re: [flexcoders] Using Flex Components in an ActionScript Project

2007-02-28 Thread Daniel Freiman
Check to make sure the size of the TextArea (and it's parents) aren't 0. - Dan On 2/26/07, August Gresens [EMAIL PROTECTED] wrote: Hello We're putting together an ActionScript Project with FlexBuilder and would like to use the TextArea component. We've had success including the proper

Re: [flexcoders] how do you call the super's super?

2007-02-28 Thread Daniel Freiman
You can't. I wish you could, but you can't. - Dan On 2/26/07, Anthony Lee [EMAIL PROTECTED] wrote: Hi, Sorry for the lame AS questions, but can anyone tell me how to call the super method of the class I'm extending? ie. the grandparent and not the parent. Thanks, tonio

Re: [flexcoders] text line height

2007-02-28 Thread Daniel Freiman
If you want the height of the entire text component, you can use the textHeight property. If you're looking for a specific line, you going to want to use getLineMetrics(). - Dan On 2/26/07, Pablo Samela [EMAIL PROTECTED] wrote: Hi, I want to know how can I set the line height to a text

Re: [flexcoders] (Simple?) Problem with TextInput component

2007-02-27 Thread Daniel Freiman
The UITextField can be extended, but there is no way to get rid of the border/padding directly. If you really want, you should be able override x, y, width and height of UITextField to fake out the bounds with an offset of 2 in each direction, but overriding those properties can get tricky.

Re: [flexcoders] Subclassing Class: The ABC data is corrupt.

2007-02-21 Thread Daniel Freiman
I don't know the answer to your question. But I am going to attempt to read your mind and suggest that you look at the metadata tag ArrayElementType. Documentation is here:

Re: [flexcoders] Changing TextFormat

2007-02-13 Thread Daniel Freiman
1. subclass mx.core.UITextField. 2. override function set htmlText(value:String) or override whatever other you are using to set the text 3. read the string coming into above function. If it's in an html tag, just call super.html. Otherwise do what you want. - Dan On 2/13/07, mindmillmedia

Re: [flexcoders] Text component that allows tabbing

2007-02-13 Thread Daniel Freiman
The TextFormat object has a property call tabStops. Unfortunately I don't think any component implements them as a property or style so you might have to override a component and manually set the textformat of the UITextField inside it. - Dan On 2/13/07, André Rodrigues Pena [EMAIL PROTECTED]

Re: [flexcoders] Image versus SWFLoader for loading external SWF Files

2007-02-09 Thread Daniel Freiman
Image is a subclass of SWFLoader. Thus SWFLoader is probably more lightweight than Image. Both import JPEG, PNG, GIF, and SWF. The only real difference is that Image implements IDataRenderer../core/IDataRenderer.html, IDropInListItemRenderer listClasses/IDropInListItemRenderer.html,

[flexcoders] Personalized framework ASDocs

2007-02-09 Thread Daniel Freiman
I want to create an ASDoc of the flash and mx packages with my own personal annotations (It just seems like a good place to keep notes and would be a convenient way to publish those notes if there aren't any copyright issues, which I'll have to look into). I've tried running ASDocs on the

Re: [flexcoders] Re: StartDrag() versus DragManager.doDrag()

2007-02-09 Thread Daniel Freiman
I can't speak to Adobe's intent, but I regularly avoid startDrag because I need more fine control over the drag. For example if you want to program a drag that implements snap to functionality, you're going to want to have direct control over the placement of the object, instead of letting the

Re: [flexcoders] please help me

2007-02-08 Thread Daniel Freiman
did you set tabEnabled? - Dan On 2/8/07, h8me4everplus1 [EMAIL PROTECTED] wrote: Please, someone take a look and at least tell me there is no way to do it the way I'm doing it. Setting tabIndex doesn't do anything. I have no idea what to do... --- In flexcoders@yahoogroups.com

Re: [flexcoders] StartDrag() versus DragManager.doDrag()

2007-02-08 Thread Daniel Freiman
Both startDrag and doDrag will most likely continue to be supported because they are for different purposes (also, startDrag is a Sprite method and the flash package is relatively stable). startDrag simple moves and object from point A to point B (based on the cursor position). doDrag uses the

Re: [flexcoders] How to share embedded fonts among applications?

2007-02-06 Thread Daniel Freiman
A good place to start is to search the archives of this list for the thread entitled Embedding fonts at runtime. That should give you some help. After reading it feel free to ask about whatever still doesn't make sense because I'm not sure we covered all errors that could pop up. - Dan On

Re: [flexcoders] Text Character Spacing

2007-02-06 Thread Daniel Freiman
Look into flash.text.TextFormat.letterSpacing. There might be an equivalent style as well on text UIComponents. - Dan On 2/6/07, jwc_wensan [EMAIL PROTECTED] wrote: Is there a way to change the character spacing of text? Without extending the component or custom fonts? In other words,

Re: [flexcoders] Intellectual property or licensing of posted/blogged work

2007-02-06 Thread Daniel Freiman
As for copyrights vs. licenses If you own the code (which if you wrote it you probably do), then you own the copyright. A license is simply giving someone permission (limited or otherwise) to use the copyrighted material. If you give the copyright to the public domain, then no one owns the

Re: [flexcoders] Intellectual property or licensing of posted/blogged work

2007-02-06 Thread Daniel Freiman
I will now pass myself off as a legal expert despite the fact that I haven't attended law school...so anyone with authority should overrule my opinion. Generally speaking, if the owner (which is usually the author) publishes the code on the web, then you are allowed to look at it. They showed

Re: [flexcoders] Clipping of RawChildren ?

2007-02-05 Thread Daniel Freiman
all clipping content does is set the scrollRect of the contentPane. There's no reason why you can't set the scrollRect of the container itself unless the border of the canvas goes beyond the bounds of the canvas. Just set the scrollRect of the canvas equal to a new Rectangle(0,0,canvas.width,

Re: [flexcoders] What is the best way to draw about 10,000 to 15,000 rectangles?

2007-02-01 Thread Daniel Freiman
Assuming the locations are all in some data structure, i'd say keep that structure and just iterate through each item and draw them on a single canvas using the Graphics class/object. Then register a mouse listener for the entire canvas and calculate which container you clicked on based on the x

Re: [flexcoders] binding/watch xml attributes

2007-01-29 Thread Daniel Freiman
Your easiest option will be to wrap your XML in a XMLlistCollection which will throw events you can listen to. If that won't work you can check out mx.utils.XMLNotifier, mx.utils.IXMLNotifiable, and mx.binding.XMLWatcher but keep in mind that these classes were hidden for a reason. I'm sure

[flexcoders] Refreshing html-template

2007-01-29 Thread Daniel Freiman
I'm using flex builder and i'm noticing that for the majority of the time it takes to compile a project the detailed message in the progress window reads refreshing project/html-template. Does anyone know if I'm actually refreshing the html wrapper or if it is common for this message to be

[flexcoders] Removing Slider Thumb

2007-01-26 Thread Daniel Freiman
Does anyone know how to remove a single thumb from a slider without losing the values of the other thumbs? thanks, - Dan

[flexcoders] Re: Removing Slider Thumb

2007-01-26 Thread Daniel Freiman
nevermind, I had a bad splice statement that was screwing something up. For future reference for anyone else who wants to do this, remove the value you don't want from Slider.values and manually update thumbCount. - Dan On 1/26/07, Daniel Freiman [EMAIL PROTECTED] wrote: Does anyone know how

Re: [flexcoders] Scaling Fonts in Flex

2007-01-24 Thread Daniel Freiman
You can't scale a font, but you can scale the component that the font is in by using scaleX and scaleY. However, this might not work in all cases because it will also scale other visual attributes of the component (such as a border). If you have this problem you are going to need to create (or

Re: [flexcoders] Scaling Fonts in Flex

2007-01-24 Thread Daniel Freiman
I tried to send this email once and got a return to sender. Sorry if anyone sees it twice. You can't scale a font, but you can scale the component that the font is in by using scaleX and scaleY. However, this might not work in all cases because it will also scale other visual attributes of the

Re: [flexcoders] Reposition Button label when embedding a font?

2007-01-24 Thread Daniel Freiman
I vaguely remember this problem but I don't think I ever solved it because I decided that I didn't want embeded fonts my button anyway. I think it had something to do with the fact that the button was placing the label by measuring a system font instead of an embeded font. Make sure the embeded

Re: [flexcoders] TextField.embedFont strange behavior

2007-01-23 Thread Daniel Freiman
I hate to ask a stupid question, but are you sure the entire font (or at least the Latin characters) is embedded? How are you embedding the font? - Dan On 1/23/07, polestar11 [EMAIL PROTECTED] wrote: Hi there I'm getting a strange error when dynamically adding a TF and turning on the

Re: [flexcoders] Text Rendering revisited

2007-01-22 Thread Daniel Freiman
I don't think there's a way to draw text without using a component to do it. The lowest level you are going to get is UITextField (which is just and extension of TextField that implements IUIComponent so it shouldn't give you that exception). This is what every mx component renders text. - Dan

Re: [flexcoders] Silent Download

2007-01-22 Thread Daniel Freiman
If i understand this right, you want to copy a swf from server 1 to server 2 and then have a client computer running an swf download the file from server 2 into a flex app. I'd be shocked if you could use file reference silently because it would go against what i understand as the nature of the

Re: [flexcoders] Firefox/PC and Key.isDown()

2007-01-15 Thread Daniel Freiman
take a look at http://www.senocular.com/flash/actionscript.php, specifically com.senocular.utils.KeyObject. Does the Key class even work still? It's not documented. I'd like to know where you read that it was still working. - Dan On 1/14/07, fattymelt [EMAIL PROTECTED] wrote: I have

Re: [flexcoders] Increasing / Decreasing Font Sizes

2007-01-15 Thread Daniel Freiman
i think you'd have to do this manually. You could keep track of each text component and iterate through them or you could recursively iterate through all of the children of the application (which would probably be slow). Other than that, I think you're out of luck. - Dan On 1/14/07, Bruce

[flexcoders] Modules and ActionScript

2007-01-09 Thread Daniel Freiman
The docs say that you should extend from Module if you are using mxml and ModuleBase if you are using Actionscript, but these Classes are drastically different. One is a subclass of EventDispatcher (similar to and Object) and one subclasses LayoutContainer (similar to Container). This is a very

Re: [flexcoders] Customized NumericStepper

2007-01-08 Thread Daniel Freiman
checkValidValue() is marked private which means you can only access that function from within the same class as that function. As far as your subclass is concerned, the function doesn't exist which is why you are getting that error. Take a look at:

Re: [flexcoders] Alert box content

2007-01-04 Thread Daniel Freiman
Your easiest Option would be to add whitespace to the end of the title which should make the alert box wider. If that doesn't work you are going to need to access alert.alertForm.textField (in the mx_internal namespace) and set the size of the textfield manually. You could subclass Alert and

Re: [flexcoders] change markup in richTextEditor

2006-12-29 Thread Daniel Freiman
There are some undocumented methods of the UITextfield that might be useful if you can make use of them. Specifically getTextRuns() and getXMLText() might be useful to you depending on what functionality you are looking for. - Dan On 12/29/06, Brian Dunphy [EMAIL PROTECTED] wrote: When

Re: [flexcoders] Re: Need help about Wysiwyg

2006-12-29 Thread Daniel Freiman
I don't see why this should be very hard. I'm not saying it would be quick, but since flash/flex has a known specification and html has a known specification, the transformation between the two should be fairly obvious. Put another way, if you can save and excel file as HTML, there's no reason

Re: [flexcoders] Re: change the caret

2006-12-29 Thread Daniel Freiman
I doubt there is a built in way to do this. If you really need the functionality you can always detect the caret position yourself using methods from UITextField and draw the block, but I'm not sure how responsive the graphics would be. - Dan On 12/29/06, chmax_flex [EMAIL PROTECTED] wrote:

Re: [flexcoders] Determining VDividedBox heights

2006-12-27 Thread Daniel Freiman
If you want to get the height of children of any container including boxes, you are going to need to look at the size of the children themselves. So if you want the top box in your example, it would be vbox.getChildAt(0).height. However, I do believe that on dividerRelease the child would not

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

2006-12-26 Thread Daniel Freiman
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 On 12/26/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! How

Re: [flexcoders] How do you access data.[param] in component?

2006-12-21 Thread Daniel Freiman
I don't work with datagrids so I'm not sure where the variable data comes from. My only guess is that the initialize event is being thrown too early and that data hasn't been set yet. Try using another event like creationComplete or an event of the parent object. - Dan On 12/20/06,

Re: [flexcoders] Re: E4X and nodes without children

2006-12-21 Thread Daniel Freiman
trace calls toString() on it's arguments which behaves differently on XML depending on whether it has complex content or not. Complex content returns what you would expect. Simple content does not return the outer tag. If you always want the outer tag use toXMLString(). See the API docs on

Re: [flexcoders] dynamic xpath

2006-12-18 Thread Daniel Freiman
Your code works for me when user is strongly typed as XML. The only other things I can think of is that you're expecting to result to be the first node found when really it's is an XMLList of all nodes found. If neither of those issues fix the problem I'd try simpler searches and seeing where

Re: [flexcoders] help needed with TextFields (not updating)

2006-12-18 Thread Daniel Freiman
If this text display is only one line, then you might want to use a label and set truncateToFit = true. It has the effect you want. Otherwise you might just want to use a UITextField instead of a TextFieldAsset. This seems to fix the problem. Using TextFieldAsset is unusual and really

Re: [flexcoders] editable combobox

2006-12-15 Thread Daniel Freiman
text property. This property is read-write in and editable combobox. I think it's read only with non-editable comboboxes. - Dan On 12/15/06, Paul Hastings [EMAIL PROTECTED] wrote: i can't seem to catch hold of where user input data is going for editable comboboxes. i've tried

Re: [flexcoders] editable combobox

2006-12-15 Thread Daniel Freiman
It's a member of ComboBase so if you looked in the API and weren't showing inherited properties then you would have missed it. - Dan On 12/15/06, Paul Hastings [EMAIL PROTECTED] wrote: On 12/15/06, Daniel Freiman [EMAIL PROTECTED] FreimanCQ%40gmail.com wrote: text property. This property

Re: [flexcoders] Continuation dots

2006-12-14 Thread Daniel Freiman
you might want to take a look at Label.truncateToFit() or UITextField.truncateToFit(). - Dan On 12/14/06, jlentz2112 [EMAIL PROTECTED] wrote: Hi, Does anyone know of a component that will automatically add the continuation dots (...) if the browser window is sized too small to fit that

Re: [flexcoders] Canceling Drag Drop

2006-12-13 Thread Daniel Freiman
I haven't tested this, but it looks like you're going to want to do is: var dp:DragProxy = DragProxy.mx_internal::dragProxy; // get drag proxy DragManager.acceptDragDrop(null) // make sure nothing will except the drop dp.mouseUpHandler(new MouseEvent()) // drop, fill mouse event with any data

Re: [flexcoders] Re: HDividedBox

2006-12-12 Thread Daniel Freiman
, but the class is private and so not easily done. Just seems like there should be a simple fix for this. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: Using setChildIndex() works for me. - Dan Freiman On 12/11/06, Lachlan Cotter

Re: [flexcoders] Re: Drag And Drop components from one layout to another

2006-12-12 Thread Daniel Freiman
Try using ObjectUtil.copy() to copy the object and then add the copy to the canvas (in the doDropDrag function). If you add a object to a canvas (or any other displayObjectContainer) it will remove the object from it's current parent and place it on the canvas. There's no way around that. -

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

2006-12-12 Thread Daniel Freiman
I'd ignore the measured sizes right now and focus on if the explicit sizes are getting set. Nowhere inside the tumbslider class is the width or height set so setting the width and height properties, or the explicitWidth and explicityHeight properties, or calling setActualSize() should work.

Re: [flexcoders] Content Clipping, how is it supposed to work?

2006-12-11 Thread Daniel Freiman
clipContent only clips as rectangles, so it won't round the corners. I believe rounded corners refers to the appearance of the border only. If you want to accomplish the effect you're looking for, you're going to have to use a mask. Masks aren't my specialty, but here's what I think you want

Re: [flexcoders] HDividedBox

2006-12-11 Thread Daniel Freiman
Using setChildIndex() works for me. - Dan Freiman On 12/11/06, Lachlan Cotter [EMAIL PROTECTED] wrote: Perhaps there is another way to clip or mask the content without relying on layering it with other components. Cheers, Lach On 10/12/2006, at 5:42 PM, jroblang wrote: Is there any way

Re: [flexcoders] Re: TextFormat Class - need help, embedding fonts in AS -- :(

2006-12-07 Thread Daniel Freiman
You probably don't have textField.embedFonts = true. Note that Sometimes the embedFonts style of the textfield's parent overrides the textfield's property (it's a timing issue of when all the properties/styles are set). The reason why you're getting Times is because it can't find the device font

Re: [flexcoders] TextArea as Console: Controlling cursor position and intercepting arrow keys

2006-12-07 Thread Daniel Freiman
What you're looking for is setSelection() to set the cursor position. Simply put the same value in for the start and end value to place the caret instead of the selection. However I'm not sure this is going to be as responsive as you like. You may want to consider using a different design such

Re: [flexcoders] Re: Access TextField within ComboBox

2006-12-06 Thread Daniel Freiman
First you have to get to the textinput. You have a few options: 1. The cleanest way is to extend the combobox and access the protected textInput variable. 2. You could cycle through all of the children and check if (child is TextInput). Once you have the textinput, you can call

Re: [flexcoders] ActionsScript 3 Cookbook Companion Classes: Number Utilities Bug

2006-12-06 Thread Daniel Freiman
This is a floating point bug. See Gordon's response to Is this a bug? About Number type on Aug 30 for full details. I'll quote the important parts: getting 23.703 isn't a bug; you'd get the same answer in other languages like Java and C++. The imprecision is because Number in

Re: [flexcoders] explorer local file

2006-12-04 Thread Daniel Freiman
Nope. File ref is it. This is for security reasons. Your only other option is write/use an applet or activeX that can access the file system and use javascript to communicate between the flash and the applet. (I've never tried this, but it should work.) - Dan On 12/1/06, Willy Ci [EMAIL

Re: [flexcoders] Best practices for displaying large texts

2006-12-04 Thread Daniel Freiman
Justify Full will work in flash if the text is static. However you normally do this through the flash IDE, so while it must be possible in Flex, but I don't know how. Otherwise, Text or TextArea should be fine. - Dan On 12/2/06, Lachlan Cotter [EMAIL PROTECTED] wrote: Hi Pablo, I'm not

Re: [flexcoders] correct way to create rectangles ?

2006-12-01 Thread Daniel Freiman
The answer to your question is really a question: Can you think of any reason you should be using Sprites. If you are going to want to click on the rectangles, move them, or swap depths, Sprites might make that easier. If they're just going to be drawn and then never change, then using Sprites

Re: [flexcoders] Synchronised TextArea selection

2006-12-01 Thread Daniel Freiman
Option 1: if you add the event listener to the textArea.systemManagerinstead of the textArea it will register the mouseevents outside of the textArea. Option 2 (maybe): can use textArea.selectionBeginIndex/selectionEndIndex as a source in a binding to a function that sets the selection of the

Re: [flexcoders] fit text width height to amount of text

2006-11-30 Thread Daniel Freiman
I might try using TextField.getCharBoundries() on the first and last line of each character. Use getLineOffset() to get the first character and add getLineLength() to get the last. Also, this method allows you to double check if you're measuring at the correct characters because it requires

Re: [flexcoders] Re: How to control depth

2006-11-30 Thread Daniel Freiman
DisplayObjectContainer.setChildIndex() is probably what you are looking for. Alternatively you can use the swapChildren/swapChildrenAt(). - Dan On 11/30/06, elevight [EMAIL PROTECTED] wrote: Does anyone know how to control the z-axis of objects? Here's a very short code snippet to

Re: [flexcoders] Re: adding Bitmap to a container

2006-11-28 Thread Daniel Freiman
as you have said, you can't add a bitmap to a container, if the class doesn't implement UICompoenent. You can the bitmap to a UIComponent which can be added to a Container. Also, you can do directly draw the bitmap on the container using Graphics.beginBitmapFill(), but this creates a fair a

Re: [flexcoders] CSS stylesheets and Textfields

2006-11-27 Thread Daniel Freiman
I'm confused at what you are trying to do. With the exception that the size and color properties shouldn't be Strings, your code is fine. What exactly are you trying to do and how exactly is it not working? Creating a minimal example might help track down what isn't working. - Dan On

<    1   2   3   4   5   >