What is the difference between event.result and event.message.body in Flex.
private function resultHandler(evt:ResultEvent):void
{
result_text.text = evt.message.body.toString();
}
private function resultHandler(evt:ResultEvent):void
{
result_text.text = evt.result.toString();
}
when I debug a flex application in the properties of display objects i also see variables that start with a dollar sign, like: $alpha, $width, $x, etc..
what are they?
are they different from the "normal" alpha, width, x properties?
Hi,
I have to detect avtivityLevel of microphone in Flex. I am using the activityLevel property of Microphone class but as I found out it always return -1 even if I have done Microphone.getMicrophone().
To detect activity level we have to set microphone.setLoopback = true;
Does anybody know how to do this without using loop back as I do not want to hear my sound back just monitor the activity level
Thanks
I have something like
public class Controller {
[Observer("fetchEmployeesEvent")]
public function fetchEmployees() : void {
//doSomething
}
}
and I want something like
public class Controller {
public static const FETCH_EMPLOYEES_EVENT : String = "fetchEmployeesEvent";
[Observer(FETCH_EMPLOYEES_EVENT)]
public function fetchEmployees() : void {
//doSomething
}
}
My problem is that only the first code snippet works. Flex seems to ignore the constant FETCH_EMPLOYEES_EVENT in the metadata-tag.
My question is: Is it somehow possible to use constant strings in metadata?
I have a flex grid where I have the verticalScrollPolicy="auto".But every time when the scrollbar appears all the columns get pushed to the left, making the columns not align as they should. I tried setting minWidth on all the columns to prevent this, but that doesn't seem to work. Any ideas?
Hi all,
I'm quite new to flex/actionscript and I was wondering if there is an equivalent for php's (and other languages) FILE and LINE identifiers?
Basicly I want to do some custom error logging and would like to something like:
var mymessage:String = 'Oops, a hiccup occured at ' + __FILE__ + ', line: ' + __LINE__;
Where file and line would ofcourse be substituted for their values at compile time.
Is this possible?
Hi folks,
after rotating a label in flex the text still is a little bit blurry. I've made up a small example to show what I mean:
http://pixelpilots.de/dev/testThings/
How can I avoid this? Thanks for any help!!
Hello I have a Flex datagrid linked to an array collection that gets filled from a FileReferenceList for uploading images to a server. I want to show a thumbnail of the image in one of the grid columns as a preview. I have seen a lot of examples of doing this with an Item Render but those examples where using images on the server. These images are on the client pc waiting to be uploaded?
I have a container that contains an image that I need to drag from one container to the other. The Flex language references don't specify anything useful, nor did I find a tutorial for how to do this. How do I manually add drag and drop support for elements like images? Any help would be greatly appreciated.
Hi,
I've made a library in flex with different components and my CSS I want to use in different projects (the goal of a library....).
BUT even if I can use my components, I can't use my CSS file which is in the library.
When I try <mx:Style source="assets/style.css" />, it wasn't found :(
So, how I should do to have a CSS file in my library which can be use in a project ??
Thanks for all your help
Hi,
I am developing a static flex application which does not have a database connection, all the values are hardcoded(its just a prototype for the original app). Now when i click the save button, i need to get a message like saving in progress... please wait, I need to display this message for 3 seconds.
Please let me know how could this be done.
Thanks!
Cheers,
Deena
Flex Effects include "isPlaying" property to check whether Effect is currently playing or not. But is there a way to find out what is the direction of playback (whether the play was started with playReversedFromEnd)?
Buttons in flex can be pressed with the space key, but a client would like to press enter instead of space. This can be achieved by programming each button, but it would be very time consuming.
Does anyone have an idea how to do this in the less amount of time?
thanks.
Whenever I add paddingRight to a column in the flex grid, it adds the padding to the header as well.
Is anyone familiar with how I can add paddingRight just to the column and not to the header? Below is the column code where I was specifying the padding.
<mx:DataGridColumn width="60" headerText="Type" dataField="Grade" headerStyleName="headerLeft" textAlign="left" draggable="false" resizable="false" headerRenderer="GridHeaderRenderer" paddingRight="5"/>
Hi all,I am trying to build a UDP application(P2P) of Large file transfer in Flex. My back end is C++. How can I transfer my client's files to server without any middle server. If I use stratus services..how to connect that to C++. Please help me, if possible with source code. Thank you.
Hi everyone,
I wanted to know if anyone here knows how to import a 3D Object (i.e. Maya 3D Model) into Adobe Flex Application? I needed to create a simple Flex application which will allow me to rotate the 3D Object by dragging but I cannot seem to start doing it because I'm having a hard time trying to figure out how I can import my 3D model into Flex.
This is exactly what I wanted to do: 3D Object in Flex
I hope someone can help me. Thanks a lot :)
hello
i am working in application of twitter in flex 3 and action script 3 , this in the text area when the user write my application automatically change http address to a short address but i don't know find the address within the text you can help me please..
thanks in advance
Hi,
How can I give a specific color (Let's say red) to the border of dropdown menu of Flex PopUpButton.
Also if how can I set text properties (text should be bold) of dropdown Menu of PopUpButton.
Thanks in advance
- Atul
Hi All,
I have a small flex application.
What I want to achieve is, I want my user to pass the script as a parameter. so he has the flexibility to do anything with the buttons-like add event, hide the other buttons.
Something like this(below)
<param name="script" value="import flash.events.Event;\n private function printMessage(event:Event):void {\nmessage.text += event.target.label + " pressed" + "\n";\n}">
Thanks.
I want my web service to call a callback in my Flex client when it finishes a batch job that I have submitted already using a web method. What will I need to change on both server and client sides? I am using Java on server side.
Hello,
I would like to have a variable transparency for a Flex UI container.
The upper half of the container should be completely opaque but the lower part of it should smoothly change from completely opaque to completely transparent.
Any ideas how to achieve it?
Thanks
I have a Flex repeater that has a complex item template. When a checkbox is clicked, I need to toggle the visibility of a sibling button contained in the same repeater template. Since I can't add binding expressions to event handlers, I can't pass in the repeater item's index.
How can I access sibling components inside a repeater item?
Hi,
Is it possible to have a data grid within a tree structure in flex? Reverse of what advanced datagrid provides{where you can have a tree structure within a data grid}.