apache-flex

Giving a border to Canvas

…衆ロ難τιáo~ 提交于 2019-12-19 05:04:44
问题 In Flex, I am using var canvasEdit:Canvas = new Canvas(); canvasEdit.setStyle("borderColor", 0x0134FF); canvasEdit.setStyle("borderThickness", 3); But I am not able to put border on the sides of the Canvas. 回答1: Try adding the following line: canvasEdit.setStyle("borderStyle","solid"); ...for example, here is a full application file example: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()"> <mx:Script>

Encrypt/Decrypt Image in ActionScript 3

守給你的承諾、 提交于 2019-12-19 04:03:27
问题 I am developing a mobile app that involves (essentially) picture messaging as a feature. I need the images to be encrypted/decrypted with a simple, plain-text password. Due to the nature of the images being captured, it is /critical/ that the encryption and decryption processes happen on the device. After sitting through a presentation on mobile development in Flex, I have decided to create my app with the Flex SDK, which means I will be implementing the client application in ActionScript 3

Flash Builder 4.5: s:WindowedApplication does not initialize

北慕城南 提交于 2019-12-19 03:56:49
问题 There is a really similar question here, but the provided answer does not work for me. This is what I'm doing: Create a Flex (airTest) project and chose Desktop as application type using 4.5 SKD. Add a Button to the main application and change the background color. Compile the project. I don't see anything. I have to kill adl from the Task Manager. If I go and edit the airTest-app.xml and change the visible from the default to true, when i compile i get to see the chrome with the correct

How to restart a standalone Adobe Air/Flex application

99封情书 提交于 2019-12-19 03:14:43
问题 How can I get a standalone Adobe Air/Flex application to restart itself? It doesn't work with the suggested solution on: http://www.colettas.org/?p=267. Any help would be great, Thanks. 回答1: package { import mx.core.Application; import mx.core.WindowedApplication; import adobe.utils.ProductManager; public function reboot():void { var app:WindowedApplication = WindowedApplication(Application.application); var mgr:ProductManager = new ProductManager("airappinstaller"); mgr.launch("-launch " +

Could not resolve <s:Sequence> to a component implementation after adding AIR 3.6

☆樱花仙子☆ 提交于 2019-12-19 03:09:40
问题 Since changing to the AIR 3.6 I'm getting many errors such as: Could not resolve <s:Sequence> to a component implementation. If I switch to the built in Flex SDK 4.6.0 it works fine. I'm using Flash Builder 4.6. UPDATE I think that this is because there is a new compiler for ActionScript and that new compiler is included with the SDK and that is causing problems for Flex projects. I read this on the AIR SDK download page (which I did not notice before): Note : Flex users will need to download

Detect AIR versus Flash Player from an actionscript library

独自空忆成欢 提交于 2019-12-19 02:38:14
问题 I have an swc which needs to operate slightly differently depending on whether it is being hosted by AIR or not. I've seen two suggestions on the internet: Test Application.application for WindowedApplication. Test Security.sandboxType for Security.APPLICATION. However, these don't seem to work in my .swc as the compiler can't find WindowedApplication or Security.APPLICATION. My library doesn't need any other AIR features so I assume it's not being linked to the AIR libraries, and I assume

Online Image Editor - Ajax or Flex / Flash?

我与影子孤独终老i 提交于 2019-12-19 02:06:13
问题 I am working on a plan to build an online image editor with just some basic functions. It should (obviously) contain a canvas working area and support the following functions: 1. Upload an image from your computer or submit a link 2. Resize image (by dragging the corner) 3. Rotate and flip 4. Drag / move / pan 5. Layering (if more then one image is on the canvas, select vertical order) 6. And very important: it should be able to do some sort of background deletion using simple edge detection.

displayed insecure content from http://fpdownload.adobe.com/crossdomain.xml

江枫思渺然 提交于 2019-12-19 02:03:30
问题 So recently I noticed a flash video player I created started running in to insecure content issues when played through an https URL. I spent quite some time going through all the measures to make sure everything within the source code of my document as well as the embed and video URLS all adapted to the https protocol. Obviously on https URLs it's important to keep the page from loading any insecure content, but I also found for IE7 users the player is unable to load (and sadly I cannot

displayed insecure content from http://fpdownload.adobe.com/crossdomain.xml

╄→гoц情女王★ 提交于 2019-12-19 02:02:54
问题 So recently I noticed a flash video player I created started running in to insecure content issues when played through an https URL. I spent quite some time going through all the measures to make sure everything within the source code of my document as well as the embed and video URLS all adapted to the https protocol. Obviously on https URLs it's important to keep the page from loading any insecure content, but I also found for IE7 users the player is unable to load (and sadly I cannot

Warning: CSS type selectors are not supported in components 'sparks.component.TextInput'

爷,独闯天下 提交于 2019-12-19 02:01:51
问题 I am trying to do a simple CSS declaration. However, I have got the warning above and not sure how to solve it. I thought s|(type) should declare the style for me. <fx:Style> @namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/mx"; s|TextInput{ color:#313131; } </fx:Style> <s:Panel width="600" height="480" skinClass="skins.CustomPanel"> <s:layout> <s:VerticalLayout paddingTop="7"/> </s:layout> <s:TextInput text="TextInput CSS not working"/> <mx:Form>