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
] *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
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
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
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
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:
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:
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
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).
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
/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
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
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
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
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
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
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:
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 {
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
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
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
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
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
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
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
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]
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
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,
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
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
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
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.
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',
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
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
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
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
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
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];
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
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
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
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
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:
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
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
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.
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
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
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
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
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
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
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
__._,_.___
--
/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
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
401 - 469 of 469 matches
Mail list logo