actionscript

Create a Notification window in Adobe AIR Application

余生颓废 提交于 2019-12-12 15:52:25
问题 I want to create an AIR application in which i need to show the notification that when AIR application is minimize then at some interval of time message shows from the system tray similar like giving information. I have visited this LINK, its a nice component but tutorial is not that much good as component. I need to create a component like that or source is available from this site so modification in this component will also be acceptable. so please help me. EG: When you minimize the Yahoo

compiling actionscript in linux

萝らか妹 提交于 2019-12-12 12:03:05
问题 I'm working on a website that requires a flash mp3 player. I have absolutely no idea the procedures from messing with flash/actionscript/flex etc., however I need to edit the flash very slightly (I need to add two lines of code). There are a multitude of tutorials out there for setting up a flash (or flex or whatever) development environment but, as my needs are so simple, I'd like to go a little more light-weight than that (also, many seem outdated). I guess what I'm saying is I'm looking

Flex PopUpManager: How can I detect the existence of a modal popup?

孤人 提交于 2019-12-12 11:48:19
问题 My Flex 3 application has some modal dialogs displayed via the PopUpManager, but there are times when I'd like other view components to know there is popup displayed. The PopUpManager doesn't have any method for actually checking the existence of popups. Is there any other way to detect this in flash/flex without writing my own global manager? (also systemManager.popUpChildren.numChildren == 0 even when there's a modal popup) Cheers. 回答1: I think it depends on the way you are adding the popup

How do you convert a String into a Boolean in ActionScript?

心不动则不痛 提交于 2019-12-12 11:15:11
问题 I have the following code: var bool:String = "true"; Without an if block or switch statement, how can this be converted into a Boolean object? 回答1: You can use: var boolString:String = "true"; var boolValue:Boolean = boolString == "true"; // true var boolString2:String = "false"; var boolValue2:Boolean = boolString2 == "true"; // false Edit A comment below suggests using var boolValue:Boolean = (boolString == "true") ? true : false; This is just complicating the code for no reason as the

How do i know if the request came from flash swf?

こ雲淡風輕ζ 提交于 2019-12-12 10:42:34
问题 I have an application developed in flash, and I need to access some php files. so the php file return some data if the access is came from swf. How can i identify if the request came from flash or not? without passing get/post variables to php. 回答1: User agent/Referer possibly. Keep in mind that requests can easily be forged 回答2: I don't think there really is a reliable way of detecting whether Flash made the request. Flash doesn't allow you to set the user-agent, and there are a lot of

Using Actionscript 3 to connect to a database

雨燕双飞 提交于 2019-12-12 10:06:57
问题 I'm looking for advice on how to dynamically create content in flash based on a database. Initially I was thinking that we would export the database to an XML file and use the built in Actionscript XML parser to take care of that, however the size of the XML file may prove prohibitive. I have read about using an intermediary step (PHP, ASP) to retrieve information and pass it back as something that Actionscript can read, but I would prefer not to do that if possible. Has anyone worked with

Flex: Call function from included component

自作多情 提交于 2019-12-12 09:53:28
问题 This is similar to my previous posting. But this time I want to call a function that exists on the main mxml page. This is my main mxml page: main.mxml <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="*"> <mx:Script> <![CDATA[ public function changeText(currentText:String):void{ switch (currentText){ case "changeText": lblOne.text = "More Text"; } } ]]> </mx:Script> <mx:HBox x="137.5" y="10" width="100%" height="100%"> <ns1:menu id="buttons"> </ns1:menu>

Specifying a unicode range in an actionscript regular expression

孤街醉人 提交于 2019-12-12 09:47:53
问题 I have been trying to write a regular expression that would match all unicode word character something like : /[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\w]/gi But this completely fails and doesn't match anything. I have tried a variety of expressions and it seems that as soon as I try to specify a range it fails. As anyone been luckier than me? I wish actionscript would offer something like \p{L}, but if there's anything in the like, I couldn't find it in the doc. 回答1: You can use String

open and display a pdf file using actionscript for mobiles (iOS)

强颜欢笑 提交于 2019-12-12 09:18:22
问题 Currently I am working with Adobe AIR and getting practice with ActionScript. My aim is to display a PDF file in a view (iPad view in specific). To do so, I was using URLRequest to specify the location of the PDF and HTMLLoader for load the PDF. However is not working, I read in the documentation the following: HTMLLoader class. AIR profile support: This feature is supported on all desktop operating systems, but is not supported on mobile devices or on AIR for TV devices. For this reason I

Actionscript: How do I rotate a text field?

两盒软妹~` 提交于 2019-12-12 08:04:04
问题 How do you rotate a text field in actionscript 3.0? As soon as I change the rotation property of the text field, it does not display. for example: var txtFld:TextField = new TextField(); txtFld.x = 100; txtFld.y = 100; txtFld.width = 300; txtFld.height = 300; txtFld.text = "Test String"; txtFld.rotation = 90; addChild(txtFld); 回答1: Some more info supporting Christophe Herreman : ActionScript - Rotating Text 回答2: In order to see rotated text, you'll have to embed the font. 回答3: an alternative