Re: [flexcoders] determine current function

2006-11-27 Thread Daniel Freiman
take a look at arguments.callee in the top level package. that might be what you're looking for. - Dan On 11/23/06, Ivor [EMAIL PROTECTED] wrote: Hi all I want to determine what the name of the current function in actionscript is. I want to set a string variable equal to the name of that

Re: [flexcoders] Understanding the FocusManager

2006-11-17 Thread Daniel Freiman
] *On Behalf Of *Daniel Freiman *Sent:* Thursday, November 16, 2006 12:18 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Understanding the FocusManager There's not any specific question yet. But I foresee two issues. 1. What prompted the question was that I had a UITextField that wasn't

Re: [flexcoders] Understanding the FocusManager

2006-11-16 Thread Daniel Freiman
with details on it. If you have specific questions I can try to have an engineer respond. Matt -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Daniel Freiman *Sent:* Wednesday, November 15, 2006 8:46 AM *To:* flexcoders *Subject

Re: [flexcoders] Image Scroller

2006-11-08 Thread Daniel Freiman
can check out flash.utils package for more info on Timer class. -Ashish From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Daniel Freiman Sent: Tuesday, November 07, 2006 12:34 PM To: flexcoders Subject: [flexcoders] Image Scroller I

Re: [flexcoders] Re: How do I add superscript text in Flex?

2006-11-08 Thread Daniel Freiman
this for a simple superscript footnotenumber, unfortunately.Does anyone have any other ideas I can try?It seems odd that something so simple should be so impossible!:(Thanks for any help,Pete--- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: to the best of my knowledge

Re: [flexcoders] BindingWatcher and XML

2006-11-08 Thread Daniel Freiman
You are supposed to use the XMLListCollection class which broadcasts events. There isn't a way to bind or listen directly to an XML or XMLList object without using XMLWatcher, XMLNotifier or IXMLNotifiable which are all not documented. - DanOn 11/7/06, tobiaspatton [EMAIL PROTECTED] wrote:

Re: [flexcoders] any way to make VDividedBox remove splitter on child being hidden?

2006-11-07 Thread Daniel Freiman
you could also try:child.includeInLayout = false;child.visible = false;this should work with any number of hidden and visible children (if you have 3 children and hide one you will only be able to see divider between the other two). - DanOn 11/7/06, KP [EMAIL PROTECTED] wrote:

Re: [flexcoders] Re: custom Panels original size

2006-11-07 Thread Daniel Freiman
know you could use this in your script tag. I wasn't sure it would know what this referred to. Thank, J --- In flexcoders@yahoogroups.com mailto: flexcoders%40yahoogroups.com , Daniel Freiman FreimanCQ@ wrote: I'm a little confused at what you are doing. Posting code would probably help

[flexcoders] Image Scroller

2006-11-07 Thread Daniel Freiman
I need an image scroller. It's a standard concept. You have a set of images in a horizontal list and the list is animated to scroll from right to left. It never stops scrolling because the images are looped (it's like the text scrollers people used to make in Java when applets first showed up).

Re: [flexcoders] Re: Escaping textArea HTML to pass back to WebService...

2006-11-06 Thread Daniel Freiman
I don't think you need to escape anything. The webservice should encode and decode the string correctly for you. I'd try it first without editing the data before you spend the effort doing it manually.- Dan On 11/5/06, jamiebadman [EMAIL PROTECTED] wrote: Yeah, I know I can do this but then I

Re: [flexcoders] How do I add superscript text in Flex?

2006-11-06 Thread Daniel Freiman
to the best of my knowledge, there's not a great way to do this. My best idea would be to create a footnote swf and embed it in the textbox with the img tag. Each swf could be passed a number (and/or possibly some formating information) and would simply display that number in a small font in a

Re: [flexcoders] custom Panels original size

2006-11-06 Thread Daniel Freiman
I'm a little confused at what you are doing. Posting code would probably help. But if I understand what you're trying to do correctly, you can probably add the following code to the panel. It should create save the hight before minimizing and then restore it later. You just need to call the two

[flexcoders] Bitmap Analysis

2006-11-03 Thread Daniel Freiman
Does anyone know any resources for advanced bitmap analysis with a flex app. I'm looking through the Bitmap Class but I'm a little in over my head on the algorithms side. There are two things I'm trying to do.First, how can I tell if one object (objects defined by what is drawn not the bounding

Re: [flexcoders] Re: Text editor

2006-11-01 Thread Daniel Freiman
right now I'm doing something vaguely similar right now. I'm going to be using a Tile container to create each page, which for me will be a Canvas. The advantage and disadvantage of using a Tile is that it creates and destroys the children as they are seen, so if you don't have a way to keep

Re: [flexcoders] Anyone know how this is accomplished?

2006-10-27 Thread Daniel Freiman
you could remove the contents and as long as repopulate the objects (the same instances, not just the same type) in the same order and assuming the panel was scaling to it's content (which I don't off the top of my head remember being a feature of a panel) that would work. It's more likely that

Re: [flexcoders] pseudo clipping

2006-10-25 Thread Daniel Freiman
for the try. - DanOn 10/25/06, Igor Costa [EMAIL PROTECTED] wrote: Did you see the properties called hidechildrens at the tag you are trying to do that?Check this and you could solve your problem.Regards. On 10/24/06, Daniel Freiman [EMAIL PROTECTED] wrote: Does

[flexcoders] psuedo clipping

2006-10-24 Thread Daniel Freiman
I have a Tile container. Each item in the Tile is a Canvas which contains an Image. The Image can be moved/dragged within it's parent Canvas. I want to be able to drag the image around it's parent container and if it goes beyond the bounds of the container, I want the area pf the image that is

[flexcoders] pseudo clipping

2006-10-24 Thread Daniel Freiman
Does anyone know of a way to accomplish an effect similar to setting clipContent = true except that instead of cutting off the content completely, we gray out or change the alpha of of the clipped areas. I did ask a similar question earlier, but didn't get a response so I thought I'd simplify

Re: [flexcoders] gloablToLocal , localToGlobal

2006-10-18 Thread Daniel Freiman
My first guess would be that oldPoint isn't correct. If you're getting the local value from the event.localX make sure that event.localX and event.target is what you expect it to be. If that doesn't work, you can also use event.StageX and simply do:desiredpoint = vboxid.globalToLocal(new

Re: [flexcoders] Re: Set Focus on TextInput

2006-10-18 Thread Daniel Freiman
it works if you setFocus after you call addPopUp/createPopUp, so my guess is that the PopUpManager is setting focus to the popup which overriding your call. If you don't have access to the textfield, try putting the setfocus in more creative places, like a listener for when the popup is shown.

Re: [flexcoders] Invalidating a control during a CPU intensive task.

2006-10-16 Thread Daniel Freiman
How does the progress bar know how much progress has been made? Is it bound to something, is it listening for an event, it is being updated directly, etc?- DanOn 10/15/06, Steve Kellogg @ Project SOC [EMAIL PROTECTED] wrote: Hello, I've got a long CPU routine, and I'm

Re: [flexcoders] Text Input color

2006-10-16 Thread Daniel Freiman
I don't think there is one built in. If I'm right about that, and if you're talking about the text and not the highlighting of the text, you could create a custom control and use TextFormat Class to set the correct color on mouseDown/move/up and focusOut. How to do that depends (a little) on

Re: [flexcoders] Invalidating a control during a CPU intensive task.

2006-10-16 Thread Daniel Freiman
it directly. I've also tried replacing the progress bar with a LABEL that just displays text explaining where we're at, but I get the same result. Best regards, Steve From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Daniel Freiman Sent: Monday, October

Re: [flexcoders] System Fonts

2006-10-13 Thread Daniel Freiman
/mx:Application From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Daniel Freiman Sent: Thursday, October 12, 2006 12:37 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] System Fonts Font.enumerateFonts(true) will give you all

Re: [flexcoders] Re: sprites in MXML

2006-10-11 Thread Daniel Freiman
and extends the class sprite.What I believe is if they have given example there should be some wayto use it also... How should I try all those code samples that isgiven in flex builder help.Regardsfl--- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED]wrote: Containers require all children

Re: [flexcoders] System Fonts

2006-10-11 Thread Daniel Freiman
Font.enumerateFonts(true) will give you all embeded and device fonts. If you don't have any embeded fonts that should work or you can take the difference of that result and the list of emebeded fonts. I thought there was a better way than this for device fonts but I can't find it. I'll let you

Re: [flexcoders] Re: sprites in MXML

2006-10-10 Thread Daniel Freiman
Containers require all children to be a UIComponent (or maybe it's implement IUIComponent). I think all other objects that can have children require chlidren to be DisplayObjects. So you can add a DisplayObject as a child to a Sprite, UIComponent, DisplayObjectContainer, etc. I mostly work with

[flexcoders] Multiple Inheritance

2006-10-10 Thread Daniel Freiman
I know that strictly speaking there is no way for an object to inherit from two superclasses, but doesn't anyone know a good workaround to simulate this in actionscript? Being able to write code in interfaces instead of just method definitions would be a perfect solution to this problem, but a

Re: [flexcoders] Multiple Inheritance

2006-10-10 Thread Daniel Freiman
experience. Peace, MikeOn 10/10/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote: Use Interfaces and composition to work around the lack of multiple inheritance.On 10/10/06, Daniel Freiman [EMAIL PROTECTED] wrote: I know

Re: [flexcoders] Missing the ControlBar on my panel...

2006-10-06 Thread Daniel Freiman
controlBar does not seem to be automatically added as a child within the Panel class. You need to do it explicitly at the end of createChildren(). And as a preemptive reminded, make sure controlBar is the last child added if you want it docked. - DanOn 10/6/06, Mark [EMAIL PROTECTED] wrote:

[flexcoders] Accessing Embeded Assets from Super Class

2006-10-06 Thread Daniel Freiman
I don't think this is possible but I wanted to double check. Basically I have a super and sub class. I want a icon variable to be declared in the super class and the image to be embeded in the subclass. The code would look something like this: public class SuperClass extends UIComponent {

Re: [flexcoders] Runtime loading of an SWF with embedded font

2006-10-05 Thread Daniel Freiman
I've gotten this working with fonts but I haven't tried it with other types of assets yet so I don't know if there's a difference. If you serach the flexcoders archive for Embedding fonts at runtime you should find an example that works. Also, to use GetDefinition, the class you are retreiving

Re: [flexcoders] Setting a filter for the UITextField inside a button?

2006-10-04 Thread Daniel Freiman
I forget the exact reason why this is happening, but the workaround is to move your code to the createChildren function.- DanOn 10/3/06, joshuajnoble [EMAIL PROTECTED] wrote:Hi, I'm trying to add a dropShadow to a button like so: public class DropShadowButton extends Button{private var

Re: [flexcoders] Absolute Sizing

2006-10-03 Thread Daniel Freiman
I've seen this issue and didn't figure it out (although it was a lower priority so I doubt I spent too much time on it). If anyone wants to clarify what screenDPI actually means I'd be interested as well. Right now it seems like a constant equal to 72. - DanOn 10/2/06, David Buitenveld [EMAIL

Re: [flexcoders] move an image in front of another?

2006-09-29 Thread Daniel Freiman
Take a look at DisplayObjectContainer.setChildIndex()- Dan FreimanOn 9/29/06, Greg Morphis [EMAIL PROTECTED] wrote: When you add an image to an application with an existing image, thenew one is above the old one. Is there a way to change that? Kindalike the z-index in css?I've got a couple

Re: [flexcoders] Re: To change font weight in renderer class

2006-09-28 Thread Daniel Freiman
in the MenuItemRenderer I think label is actually a UITextField, not a Label. If this is true, you would need to use the following code:var tf:TextFormat = new TextFormat();tf.bold = true;label.setTextFormat (tf);or I think settings a UITextField's parent style will also work so you might just

Re: [flexcoders] Object references within XML

2006-09-28 Thread Daniel Freiman
I'm loading in an xml file. The xml file defines the layout of the movie (think mxml at runtime, but not really for reasons that aren't relevant here). The layout is fairly complex and from the coder's perspective it would be a great help to be able to traverse the original xml document instead

[flexcoders] Object references within XML

2006-09-27 Thread Daniel Freiman
It's a simple question with a simple solution, I just can't seem to find the solution. I want to be able to keep an XML object that will contain references to instances of Objects within the flex movie. My guess is that I actually have to keep the string form of some sort of uinque id for the

Re: [flexcoders] textfield's alpha

2006-09-26 Thread Daniel Freiman
The docs (i think the dev guide specifically) are mostly complete on how to embed fonts and thus which fonts can be embeded. I can't be more specific because I'm about to run out the door. If you can't find it I might be more help later. - DanOn 9/26/06, Bjorn Schultheiss [EMAIL PROTECTED]

Re: [flexcoders] Drill-Downs for ComboBox?

2006-09-25 Thread Daniel Freiman
I haven't seen a control or done it myself, but it should be pretty easy to implement. Simply listen for keystrokes and filter the dataprovider collection. If this is really all you need it might be less than 15 lines of code to do it. On 9/24/06, Mike Anderson [EMAIL PROTECTED] wrote: Hello

Re: [flexcoders] background discoloration when using embedded fonts

2006-09-25 Thread Daniel Freiman
I've never seen this before and work alot with embeded fonts. Exactly what control are you using?On 9/25/06, JClouz [EMAIL PROTECTED] wrote: When I create a text field and use an embedded font I get a discoloration in the text field. Instead of being transparent outside of the text,

Re: [flexcoders] Dynamic font loading (Flex 2)

2006-09-21 Thread Daniel Freiman
if you're looking for how to load embeded fonts at runtime search the archives for Embedding fonts at runtime. Otherwise, I'm not sure exactly what specific part(s) you need help with.- Dan On 9/21/06, Dmitry Kochetov [EMAIL PROTECTED] wrote: Hello everyone,Can somebody help me with this,How

[flexcoders] getDefinitionByName

2006-09-15 Thread Daniel Freiman
I've been using getDefinitionByName to load classes dynamically, however if the class hasn't been previously instantiated it gives meReferenceError: Error #1065: Variable classname is not defined.Is there any way to fix this other than instantiating every class I might want to use with

Re: [flexcoders] background color of a text?

2006-09-11 Thread Daniel Freiman
My guess is that each control acts a little differently, but if it's not listed as a style or property in the docs for the control you want, then you can usually extend the class and set the background color of the UITextField that's actually rendering the text. On 9/9/06, oktay nba [EMAIL

Re: [flexcoders] drawing api

2006-09-08 Thread Daniel Freiman
check the Graphics class. every DisplayObject has a graphics property which holds an instance of the class for that object.On 9/8/06, Chad Callahan [EMAIL PROTECTED] wrote: I need to make a custom class that draws shapes but I can't seem to get the drawing api to work at all.

[flexcoders] Embeding Font unicodeRange Bug?

2006-09-07 Thread Daniel Freiman
I'm trying to embed a font in an actionscript project. That works fine, but if I try to set a specific a unicode range I start fo have problems. The code and error follows: [Embed(systemFont='Arial', fontName='myArial', mimeType='application/x-font',

[flexcoders] Re: getDefinitionByName

2006-09-05 Thread Daniel Freiman
nevermind, got it to work, still can't figure out what I changed.On 9/5/06, Daniel Freiman [EMAIL PROTECTED] wrote:I want to use getDefinitionByName in the flash.utils package to get a class by it's name. I've tried the example in the language reference using Sprite and that works fine

[flexcoders] getDefinitionByName

2006-09-05 Thread Daniel Freiman
I want to use getDefinitionByName in the flash.utils package to get a class by it's name. I've tried the example in the language reference using Sprite and that works fine but when I use flex classes it doesn't seem to work (I've tried classes I've made and mx.controls.ComboBox). Is there a

Re: [flexcoders] Embedding fonts at runtime

2006-08-31 Thread Daniel Freiman
generate a variable in the class, but its not a consistently named variable. I am sure a utility function in the class could be used to ferret out that variable name. Daniel Freiman wrote: I altered the code a little and got it half working.It works if you're setting the imported font using

Re: [flexcoders] Include fonts in RSL Flex2

2006-08-31 Thread Daniel Freiman
We've been working on something similar in a thread called embeding fonts at runtime although i'm not sure it's exactly what you want. Some of it might be useful. First check to see if the font is actually there using Font.enumerateFonts(). Second, we're currently looking into whether the

Re: [flexcoders] Using Embedded fonts in htmlText

2006-08-31 Thread Daniel Freiman
I don't know why that is happening, and I don't know what's causing it exactly, but one workaround that I've seen elsewhere that might work here is to set the fontfamily (Arial, Symbol) to every font you might want to use in that textarea and then you should using html be able to set the the

Re: [flexcoders] Embedding fonts at runtime

2006-08-30 Thread Daniel Freiman
I altered the code a little and got it half working. It works if you're setting the imported font using setStyle, but not if you're setting the font through the TextFormat object. Simply add the lines: var content:DisplayObject = ldr.content; var c:Class = content[myFont];

Re: [flexcoders] Embedding fonts at runtime

2006-08-30 Thread Daniel Freiman
Daniel Freiman wrote: I have this question too but it hasn't reached the top of my to-do list yet. What I'm hoping is that is that you can embed a font in a swf and then load that swf at runtime using a swfloader. On 8/28/06, *Daniel Wabyick* [EMAIL PROTECTED

Re: [flexcoders] Embedding fonts at runtime

2006-08-29 Thread Daniel Freiman
I have this question too but it hasn't reached the top of my to-do list yet. What I'm hoping is that is that you can embed a font in a swf and then load that swf at runtime using a swfloader. On 8/28/06, Daniel Wabyick [EMAIL PROTECTED] wrote: Hey guys,Is there any way to include a font at

Re: [flexcoders] Getting al DisplayObjects under a given global Point

2006-08-28 Thread Daniel Freiman
I've tried using this function and it seems to exclude DisplayObjectContainers (in other words it only returns DisplayObjects, not classes that are a subclass of DisplayObject). Is there any convenient way to get a list of other types of objects, such as UIComponents? On 8/28/06, Gordon Smith

Re: [flexcoders] AS3 bug when 'if' exists within 'switch'

2006-08-28 Thread Daniel Freiman
I ran into problems like this alot with flash 8 and only once since in Flex 2. The Flex 2 one involved puting a return statement in one of a few specific lines in one function. One time I remember I found that might code wasn't exactly perfect (I don't remember how, it was something like using

Re: [flexcoders] restrict length (maxChars) in an editable combobox

2006-08-25 Thread Daniel Freiman
I haven't spent a lot of time on this, but my guess is that you're going to have to extend the combobox. From their you'll have access to textInput, which you can call getTextField() on, which returns a UITextField that has a maxChars Property. On 8/25/06, Lisa Nelson [EMAIL PROTECTED] wrote:

Re: [flexcoders] Adjusting registration point?

2006-08-11 Thread Daniel Freiman
You could try to create a wrapper Container/DisplayObjectContainer for the DisplayObject, and x and y of DisplayObject to the negative of the registration point, and then scale the container. That should work if I have my spacial relations correct in my head. However, if you start to use flex

Re: [flexcoders] calling a method using a string

2006-08-10 Thread Daniel Freiman
You can still do this, however, if the compiler knows the type of 'otherclass' if check to make sure method exists unless the class if dynamic.On 8/10/06, geiger947 [EMAIL PROTECTED] wrote: Can I call a method on another class using a string? in as2 you usedto be able to call

[flexcoders] DisplayObjectContainer.getObjectsUnderPoint()

2006-08-10 Thread Daniel Freiman
The documentation of DisplayObjectContainer.getObjectsUnderPoint(), here, says that it returns all objects under the point given. However, it doesn't specify what objects are. If you pass it a point over a Canvas, it gives you the a haloBorder belonging to the canvas, but not the canvas itself.

Re: [flexcoders] Re: image in text within Alert.show()

2006-08-08 Thread Daniel Freiman
I wanted to extend the Alert Class to create a prompt class few weeks ago. It wasn't worth it. Too many things were marked private or mx_internal. If you really want to try you can, but I would just make your own using a Panel or TitleWindow and some layout containers (Forms or Vbox). On

Re: [flexcoders] Simple TextField Question

2006-08-07 Thread Daniel Freiman
You're trying to add the TextField to a Container which only takes IUIComponent objects. However, I believe UIComponent takes DisplayObjects. So you have two choices: (1) add the TextField to a UIComponent and then add that component to the container, (2) use UITextField which is basically the

[flexcoders] Parent MenuItem Reference

2006-08-03 Thread Daniel Freiman
I have a MenuBar with multiple submens. For example Flex Builder has the File Menu, then the New item has a submenu listing the different types of files. Assuming I have mimicked this structure, if I have a reference to the menu which contains the types of files you can create, is there any way

Re: [flexcoders] Scrolling drawing API content?

2006-08-02 Thread Daniel Freiman
you need to explicitly set the size of lineSprite (and maybe it's parents).lineSprite.width = 200;lineSprite.height = 900;generally you would want this in the createChildren or measure functions if you were creating a new component, but here you just want it before lineSprite is added to it's

[flexcoders] Wierd Debug Out Error Output

2006-08-02 Thread Daniel Freiman
I'm getting a weird error. I don't expect anyone to be able to solve it for me because I think they'd have to go through too much code, but maybe someone can at least tell me what I'm looking at.The error message looks something like this (formated black instead of the normal red): verify

Re: [Junk E-Mail - LOW] Re: [flexcoders] More embedded font fun...

2006-08-01 Thread Daniel Freiman
I haven't actually dealt with this problem in flex 2, but from other experiences in Flash 8 with fonts I'd say look at the fontAntiAliasType and associated (fontGridFitType, fontSharpness) styles. On 8/1/06, juan sanchez [EMAIL PROTECTED] wrote: are you talking about the fuzziness of

[flexcoders] Set Focus When Loaded

2006-08-01 Thread Daniel Freiman
I have noticed that when a Flex app starts up in my browser (i've tested firefox and IE), the browser retains focus. Is there anyway to automatically set focus to app when it loads? I've tried to call focus() in _javascript_, but that doesn't seem to be doing it. Thanks,Dan __._,_.___ --

Re: [flexcoders] Re: antiAliasType null exception with Text instances!

2006-07-28 Thread Daniel Freiman
/06, Daniel Freiman [EMAIL PROTECTED] wrote: I think I had this problem when I created the text field in the constructor. If this is what you're doing, move it to createChildren() instead. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files

Re: [flexcoders] Re: antiAliasType null exception with Text instances!

2006-07-27 Thread Daniel Freiman
I think I had this problem when I created the text field in the constructor. If this is what you're doing, move it to createChildren() instead.On 7/27/06, loftling [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Sergey Kovalyov[EMAIL PROTECTED] wrote: Hi All! Each time I create new

<    1   2   3   4   5