I'm learning ActionScript/Flash. I love to play with text, and have done a lot of that kind of thing with the superb Java2D API.
One of the things I like to know is "where, exactly, are you drawing that glyph?" The TextField class provides the methods getBounds and getCharBoundaries, but these methods return rectangles that extend far ...
If I have the following XML in actionscript 3:
<xml>
<element1 x="10" y="10" width="200" height="200">
<child>text</child>
<child x="0" y="0" width="100" height="100">
content
</child>
</element1>
<element2 x="10" y="10" width="200" height="200">
</element2>
<element3>
</element3>
</xml...
Hi
I am trying to make tile wallpaper in flex. I did stretch or normal use the backgroundSize as 100% and "auto". But i have no idea about how to create tile.
Can someone help me with source, instruction or the best would be a source code.
Regards
Zeeshan
...
I wrote a class that performs an asynchronous loop. It needs a package name. I already have a util package, but feel resistant to put half of my classes in that package. If it really belongs there, I'll put it there, but I'd feel much better if I can find a more appropriate/specific package. What do you think?
...
I just can across some code where they've got an implicit setter, but no getter eg:
public class Person {
//no getter!
public function set food(value:Food):void {
// do something with food.
this.processFood(value);
this.dispatchEvent(new Event(FoodEvent.EATEN));
}
}
This smells bad to me. Hacky. W...
There are dashes in attributes of an xml, and I don't know how to filter them:
Here you can see a simple example of the xml:
<posts>
<post>
<photo-url max-width="1280">http://blabla.tumblr.com/photo/98</photo-url>
</post>
</posts>
Because also the photo-url-tag has a dash, I needed to parse it with …child("photo-url").
T...
Hi all,
can anyone please help me on this.
attached is the fla which has a part of code i am working on for a project.
with help of mouse you can draw a circle on the image, but for some reasons the mouse up event does not work. it works fine when the eventlisteners is attached to the stage, but does not work when its attached to the mo...
Hi
currently I'm having some problems with my preloader.
I have an as3 class website with the following code:
public function Website() {
addEventListener(Event.ENTER_FRAME, PreloaderStart);
}
private function PreloaderStart(e:Event):void {
var bt:int=loaderInfo.bytesTotal;
var bl:int=loaderInfo.bytesLoaded;
trace(bl/bt);
...
Hi Friends,
Is there some way in flex to parse strings to date. I want it to support custom formats similar to 'dateformatter'. Using 'dateformatter' class we can parse date object in various string formats as specified by 'formatString property'. I want it other way round, from string to date. The parse method 'Date.parse(my_string)' do...
I'm always open to using new frameworks, especially if they allow greater flexibility when the need arises to make changes and additions.
At the same time I don't want to add an additional layer of complexity unless it's use is warranted.
Has anyone used the asaplibrary recently on a project? Was it useful? Would you use it again?
...
Hello!
I have a simple DataGrid in Flex 3:
<mx:DataGrid width="{indexW - 20}" height="100%"
headerHeight="0" resizableColumns="false"
dataProvider="{itemsList}"
itemClick="itemKlik(event)"
dataTipFunction="displayTooltip">
<mx:columns>
<mx:DataGridColumn id="col1" dataField="title" showDataTips="true"/>
<m...
Hi,
I am now developing a Flex application in which I need to control each pixel of my control of Flex. I want to calculate that how width and how height of some text used in my control and do some layout stuff.After some searching I find that the only way to draw text in Flex is to use something like TextField. So, I use TextField to ...
In php there's a function called uniqid. It generates unique identifiers based on the current time. I was wondering if something like that was available in ActionScript.
...
When I listen for key up and key down events with wmode="transparent", I receive 2 key down events followed by a single key up event for the following keys: F-keys, arrow keys, ins, del, home, end, page up, page down, pause, print screen, application key, windows key, and the equivalent numeric keypad keys. The other keys work normally...
Currently I am using nochump library for unzipping files. But its very slow(around 30 seconds for 2 mb file). Is there any other libraries available which are fast. Or is thaere any better way to unzip by communicating with os?
I have used FZip, but it wont work in mac. So cant use it.
...
I'm building a website with several menu options. I use thumbnail panel scroll examples and modified it to achieve what I want to do. Loading dynamically each photography items.
Ex: Book 1 ==> Loading 5 images
Book 2 ==> Loading 2 images
...
As matter of fact, when clicking Book 1 the total width is larger than Book 2.
The pro...
Hello,
I know very little about Flash so I apologize in advance for asking what is possibly a dumb question, although I did a fair bit of research before posting.
Our current Flash app, written in AS3.0, is able to display a standard OS browse dialog for the purpose of allowing a user to select files. We are using http://livedocs.adobe...
Is there a way I can programmatically determine the filename of the .swf my class is running in?
Thanks!
...
I am working on a flex site,
I want to parse the string below:
http://virtual.s1.c7beta.com/rpc/raw?c=Pictures&m=download%5Fpicture&key=a4fb33241662c35fe0b46c7e40a5b416&session%5Fid=2b7075f175f599b9390dd06f7b724ee7
and remove the &session_id=2b7075f175f599b9390dd06f7b724ee7 from it.
How should i do it.
also later on wh...
Try to compile:
var object:Object = {};
object.one = "foo";
object.two = "foo";
object.three = "foo";
object.four = "foo";
for(var key:String in object)
{
trace(key);
}
... you will get:
one
four
two
three
Why the messed up order?
...