actionscript-3

Can't install my app on IPAD (freeze at “installing”)

走远了吗. 提交于 2019-12-19 11:35:16
问题 I've created an AS3 app with Adobe Flash CC. I'm using AIR 3.9. It works great on android devices but when I've created an .ipa file and transfer it to my Ipad (with IO7), my app is visible but freeze on "installing" (nothing's happening.) Do you know what could be the problem ? Thank you very much for your answers, EDIT : I'm using the ALPACA Source engine (Infos Here) 回答1: This happens when an improper certificate and/or mobile provisioning file was used to compile the app (and is a known

Can't install my app on IPAD (freeze at “installing”)

北城余情 提交于 2019-12-19 11:35:02
问题 I've created an AS3 app with Adobe Flash CC. I'm using AIR 3.9. It works great on android devices but when I've created an .ipa file and transfer it to my Ipad (with IO7), my app is visible but freeze on "installing" (nothing's happening.) Do you know what could be the problem ? Thank you very much for your answers, EDIT : I'm using the ALPACA Source engine (Infos Here) 回答1: This happens when an improper certificate and/or mobile provisioning file was used to compile the app (and is a known

Collision Detection of Sprites in Actionscript 3.0 Flash

回眸只為那壹抹淺笑 提交于 2019-12-19 11:29:50
问题 I am making an achtung die kurve-like game in AS3.0. So far I've done the movements of the 4 different players, and it works alright. I am now to make collision detection, in order to test if a 'worm'-so to speak, is colliding with eachother or its own tail. As I understand it, if I use hitTestObject(); it will use the registration area of the whole object, which would be a huge problem, seeing since this registration makes a 4-sided registration that contains all of the object. So if this is

capture permission granted complete event

守給你的承諾、 提交于 2019-12-19 11:27:00
问题 I'm creating an app using flash cc. I needed storage permission. It turns out I needed to ask user the permission for using storage devices. I can ask user for permission and it is working fine. I use examples from this website: https://helpx.adobe.com/flash-player/release-note/fp_24_air_24_release_notes.html But my problem is I wasn't able to capture the complete event for accessing the storage permission. Because of that I couldn't run codes after I get access to storage. Is it possible to

How to pass a String from a SWF into another SWF

与世无争的帅哥 提交于 2019-12-19 10:47:11
问题 hoping this is an easy enough question :) Some details: I am using Flash CS5, never touched Flex. Also the SWF that is doing the loading will be a client SWF, so hoping for a solution that could work with a simple couple of lines. Basically inside the SWF I am working on contains just a simple string: var theString = "theString"; trace("theString = "+theString); Now I've been working on a test loader SWF that will load my String SWF and get the variable in the simplest way. Any thoughts?

ActionScript - Read Only Property and Private Set Method?

☆樱花仙子☆ 提交于 2019-12-19 10:42:10
问题 one thing i've never really understood about AS3 is that you can't have a private set method and a public get method together. from within my class i would like to assign values that would call a private set function: myNumber = 22 ; but i need to pass that number as a parameter to a function myNumber(22); for example: package { //Imports import flash.display.Sprite //Class public class NumberClass extends Sprite { //Properties private var myNumberProperty:Number //Constructor public function

Getting current URL in Flash from JavaScript using ExternalInterface and IE

邮差的信 提交于 2019-12-19 10:28:38
问题 I'm trying to get the current URL that the Flash player is on. Not the URL of the .swf file, but the URL that the browser is pointing to. Thus far I've used: var st:String = ExternalInterface.call("window.location.href"); Unfortunately this doesn't work in IE. From my research, I can see that it won't work with IE either way. The only other thing I found around the Internet is putting an 'id' tag on the tag. So I'm trying to find out if and/or how I can: Somehow make a call using the

Is there a way to get the actual bounding box of a glyph in ActionScript?

戏子无情 提交于 2019-12-19 10:21:59
问题 I'm learning ActionScript/Flash. I love to play with text, and have done a lot of that kind of thing with the superb Java2D API. One of the things I like to know is "where, exactly, are you drawing that glyph?" The TextField class provides the methods getBounds and getCharBoundaries , but these methods return rectangles that extend far beyond the actual bounds of the whole text object or the individual character, respectively. var b:Sprite = new Sprite(); b.graphics.lineStyle(1,0xFF0000); var

To execute Flex cleanup function when browser is closed by user

柔情痞子 提交于 2019-12-19 09:27:09
问题 I have a Flex client application. I need a clean up function to run in Flex when the user closes the browser. I found the following solution on the net, but it only works half-way for me. How could I fix it? Thanks in advance for any responses! Symptoms CustomEvent triggered, but not executed. >> EventHandler for CustomEvent.SEND_EVENTS is defined by a Mate EventMap. All the handler does is to call an HTTPServiceInvoker . In debug console, I'm able to see the handler and HTTPServiceInvoker

Flex: Impossible to resize the external loaded SWF's content

人走茶凉 提交于 2019-12-19 08:58:23
问题 I have an application where I try to load an external SWF. So, we have: My application: The Stage's dimensions are 768x1280. ScaleMode = EXACT_FIT. External SWF: It's another application where its stage is: 800x600. ScaleMode = EXACT_FIT. The problem is that the external SWF does not modify its size although I apply "scaleX, scaleY", change its width and so on. I also tried to insert it into a Canvas container (as "How to resize an external SWF to fit into a container?" ) but it didn't solve