flex3

How to calculate the size of a sprite?

旧巷老猫 提交于 2019-12-11 19:45:48
问题 I have a sprite that I do some custom drawing in, but I would like the container to know where to position the sprite properly. To do this, the container needs to know how big the sprite is. UIComponents go through a measure stage, but sprites don't . How do I calculate the size that a sprite will be? Edit: I'm doing the drawing in Event.ENTER_FRAME, and it's animated, so I can't tell ahead of time how big it's going to be. The UIComponent has a measure function and I'd like to create

how to embed audio in flex 3?

浪子不回头ぞ 提交于 2019-12-11 16:16:44
问题 i want to play a sound when user click on the button in flex 3. My flex application will generate the images one by one. For each image, one sound should come in background. Any ideas? thanks in advance 回答1: You should be able to write something like this: [Embed(source="myfile.mp3")] [Bindable] //Not required. Just an example of using multiple meta tags. public var soundCls:Class; This will give you the ability to reference the file via the class name 回答2: The official documentation created

Flex advanced datagrid styling

早过忘川 提交于 2019-12-11 13:24:40
问题 I'm using an advanced datagrid in a system I'm building. the design PSD from the designer includes a special background on rollover. So, I need the background of the cells in a row to get the background from an image, only when the mouse rolls over a specific row. is this even possible? can a row get the background from an image (CSS) 回答1: There is a method available in DataGrids (and Lists) called drawRowBackgrounds() that is responsible for drawing a simple highlight into a row in response

Retrieving a single cell value from a datagrid in Adobe Flex

与世无争的帅哥 提交于 2019-12-11 12:49:10
问题 I'm using CF to retrieve values from a database that are then being stored in a datagrid in Flex. I then want to selectively take the value from one cell of the datagrid and store it as a string variable. I've searched around, but I haven't been able to come about a solution. The users will not be interacting at all with the datagrid as it will be hidden to them. Any help? 回答1: Why are you bothering to use a DataGrid if it is hidden to the user? Store your data in an ArrayCollection of

Grails dependency injection no longer working after upgrade to Grails 1.3.3

妖精的绣舞 提交于 2019-12-11 12:14:23
问题 Project setup is Flex 3-BlazeDS-Spring Flex Integration-Grails Dependency injection in my Service classes was working just fine with Grails 1.2.1, when service methods were called from my flex client. When I upgraded my project to 1.3.3 yesterday using the regular 'grails upgrade' command, everything went well but once I started the app, dependency injection no longer seems to work in my Grails Service classes. I did not change the BlazeDS nor Spring Integration setup. When I call the exact

Iframe Javascript call to Flex

故事扮演 提交于 2019-12-11 10:59:47
问题 I have a flex application with an iframe layered on top. I want to make a call from the iframe to flex with javascript. So far i have tried this: This is the Object containing the swf embed in the ROOT document <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="IPRS_Dispatcher" width="1400" height="1000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"> <param name="movie" value="DispatcherMain.swf" /> <param name="quality" value="high" /> <!--

how to validate textinput within itemrenderer?

我的梦境 提交于 2019-12-11 08:45:49
问题 I have textinput within list itemrenderer like main.mxml <s:List id="videoAttachmentsList" itemRenderer.normalView="com.engage.discussion.attachment.renderers.VideoAttachmentRenderer" > <mx:button label="add" click=addevent(Event) /> VideoAttachmentRenderer.as <TextInput styleName="commonTextInput" prompt="Enter a video header" id="headerText" x="75" width="185" height="21" bottom="5" fontSize="10" maxChars="30"/> <fx:Declarations> <mx:StringValidator source="{headerText}" property="text"

flex builder 3 compiler won't show errors or compile specific pages

你说的曾经没有我的故事 提交于 2019-12-11 07:50:43
问题 In flexbuilder 3 for some mxml files I can purposely put in syntax errors and the compiler will seem to compile the specific page(but actually not compile it) or report any errors for that page. Is there any way that you know of to get the compiler to report the errors to me so I can get it to compile the page. I've tried rebuilding all and cleaning the project already. 回答1: Sounds like you're not actually using that page in your application anywhere. mxmlc only compiles classes that are

How can I get a mx:textarea height to be the same as the content

烂漫一生 提交于 2019-12-11 07:48:50
问题 The initial height of a text area is much larger than the content, I cannot find a way of making it always the same height as the text content: <mx:TextArea id="textarea" borderStyle="solid" width="100%" wordWrap="true" selectable="false" backgroundAlpha="0" focusAlpha="0" text="this is a little test" /> Gives a bordered box that is much taller than needed. This also gives an unintential problem if you have links within the content in that a link 'mouseover' is triggered when nowhere near the