apache-flex

spring blazeds integration: IllegalArgumentException: ServletContext must not be null

南笙酒味 提交于 2019-12-25 03:37:12
问题 I am trying to get dpHibernate 2.0 RC6 running on an Apache Tomcat 7.0.12 with BlazeDS 4.0.0.14931, Spring 3.0.5 and Spring-BlazeDS-Integration 1.5.0.M2 I got pretty far with my configuration, the services are parsed fine, annotation based Entities and Datamodel are good, I can list the services in FlashBuilder DCD, but as soon as I am calling a service method (just a simple void method) the server returns following Exception. Not really sure where in my configuration I could have missed

Flex4: How to add a child to spark Scroller in AS

核能气质少年 提交于 2019-12-25 03:36:05
问题 I want to convert the following code to ActionScript (mxml works fine): <mx:Panel title="Some Title" width="400" height="300"> <s:Scroller width="100%" height="100%"/> <mx:ColumnChart id="myChart" attribute="..." /> This doesn't work straight forward: setupChart(); //setup myChart var scroll:Scroller = new Scroller(); scroll.percentWidth = 100; scroll.percentHeight = 100; scroll.viewport = myChart; 回答1: adding a group first works for me setupChart(); var grp:Group = new Group(); grp

Rewrite (or hijack) an absolute URL request made from a flash (swf) file in a browser

喜夏-厌秋 提交于 2019-12-25 03:34:15
问题 Is there a way to rewrite (or hijack) an absolute URL request made from a flash (swf) file in a browser? Eg I have a flash application that is requesting http://example.com/myImage.png The code in the flash application cannot be changed but I want to be able to either use another flash or some javascript to write that URL as the image is beging requested - to something like example.com/myImage.png?u=123456 回答1: You could have a chance of doing it your are talking about an AS2 swf. The AVM1 is

Programming synchronous web service calls in flex

蓝咒 提交于 2019-12-25 03:34:10
问题 Web service calls are asynchronous in flex, but I wanted to wrap a web service call in a class to provide synchronous encapsulation. Something like the below - the user could call getMyMethodResult and get the result returned by the web service. I expected the thread that recieved the soap response would populate the variable _result and mean that getMyMethod would, after a time, find _result is not longer null. But it doesn't! Can anyone explain why this does not work? public class myClass {

Flex 4 + Django: Testing and Release Options

与世无争的帅哥 提交于 2019-12-25 03:16:49
问题 I am creating a django-based site that will serve flash apps that occasionally access data via pyamf. I need to be able to easily test the flash in the context of the django framework, i.e. with all the login cookies and everything available, so that when I make a pyamf call, it has all the user context there. And I need to be able to test and release both the swf's and the wrapper html's in a sane way. However: The html templates in flex are already templates, so if I put template code in

Adobe Flex: toolTip of a spark component with enabled=false

不羁的心 提交于 2019-12-25 03:14:32
问题 I have a Spark Component (a Group) which doesn't behave as wanted. The tooltip is only shown when the component is enabled=true which the following example shows: <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="init(event)"> <s:layout> <s:HorizontalLayout /> </s:layout> <s:Group toolTip="test" enabled="false"> </s:Group> <mx:Canvas toolTip="test" enabled="false"> </mx:Canvas> </s

Can a flex web app access a sqlite database?

主宰稳场 提交于 2019-12-25 03:10:58
问题 I'm making an application (web based) using flex and i have a requirment to access the SQLite database on the local system. There is no server running and i've decided to give them the link to the html file and see how that works out. So in the root directory, there will be all required swf, html files, etc and a .db file. Can i access that database thro the flex web application ? Please help. 回答1: No. Flex can access an SQLite database via the Air SDK, but you are out of luck when running

flex: 1120 access to undefined property

a 夏天 提交于 2019-12-25 03:03:42
问题 I was trying to place some simple effects on an image using HBox using Hslider/Checkbox. I am unable to incorporate the required effects on the image.I an getting the errors "120 access to undefined property" ....poinying to "HSlider/change". What can be the error/solution to this? <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:HBox top="10" left="10"> <mx:HSlider top="-10" left="100" value="-10" toolTip="Rotation"

Flex 4: Enumerating Spark List items

ⅰ亾dé卋堺 提交于 2019-12-25 03:02:35
问题 How to enumerate items of Spark List component after setting dataProvider property? I mean accessing them as DisplayObject instances. 回答1: Iterate over list.dataGroup.numElements , calling list.dataGroup.getElementAt(i) : var i:int = 0; var n:int = list.dataGroup.numElements; for (i; i < n; i++) { // getElementAt returns an IVisualElement, but most displayobjects // in a list will be IVisualElement (which a UIComponent implements) var displayObject:DisplayObject = list.dataGroup.getElementAt

How I get all the children nodes from Xml data? [duplicate]

老子叫甜甜 提交于 2019-12-25 03:00:24
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: how I get child node from each parent node seperately? I have Some XML data..I want to create certain component based on this XML.My XML data is given below <main> <TabNavigator x="27" y="11" width="455" height="376" id="gh" backgroundColor="#A4B6E9"> <NavigatorContent width="100%" height="100%" label="Client" id="clientTab"> <Label x="10" y="30" width="52" height="25" text="Name:"/> <Label x="10" y="127"