flash

AS3, loading in a SWF as a custom type

假如想象 提交于 2019-12-23 12:57:25
问题 Fundamental question here. Typically in AS3 you load in a SWF via the Loader, and what you get is some sort of pseudo MovieClip that is of type "Loader". Is there any holy way under the sun to cast this loaded SWF to a custom type that extends MovieClip and not Loader, assuming the SWF was published with a base class of the custom type? Without data loss? Alternatively, let's say you can't, can you even cast it from a custom type that extends Loader itself? 回答1: You can do something like this

Flash Builder 4 suddenly stops doing auto-complete for some classes

怎甘沉沦 提交于 2019-12-23 12:45:05
问题 A project we've been working on for weeks in Flash Builder suddenly has stopped being navigable: all the nice features of Flash Builder like auto-completion, jump to definition, even search for References are only partially working -- they work for some classes but not for others. I've tried restarting Flash Builder, closing and opening the project, re-creating the project, but this bad situation persists. Moreover, it happened at about the same time for 2 other developers on the same project

Client Java vs (Adobe) Flash for web applications, what to choose and when

こ雲淡風輕ζ 提交于 2019-12-23 12:27:07
问题 A few years ago client Java was unsuitable for web development because a remarkable part of web users did not have Java installed. ( I don't remember exact numbers, more than 10%). Now I see the Google Analytics stats for a big site and it tells that >98% of users have Java installed. Is these stats very biased by Javascript usage? As I understand Google Analytics measure only users that has Javascript. Is the picture similar on other big sites? Does client Java have really "stopper"

How to handle right to left languages in Flash (pre version 10)?

丶灬走出姿态 提交于 2019-12-23 12:26:55
问题 We are currently working with Flex creating a web application. We are having trouble taking Arabic text from the user and displaying correctly (like in a chat feature). While presumably Flash 10 will solve this problem, we don't want to force our users to upgrade. Flash flips the order of the sentence's words. so if I wrote something like "Hello World" in the text field, it will appear as "World Hello" in the chat area. Is there a standard way to work with Right to Left languages in Flash?

Uploadify (flash file upload) & Integrated Windows Authentication

戏子无情 提交于 2019-12-23 11:49:21
问题 I'm running into an issue with Uploadify and I hope someone can help. I have put Uploadify into my app and all works fine in dev (using the VS web server). All worked fine and checked until I deployed the app into my test environment which uses Integrated Windows Authentication. When I actually go to upload the file, the browser brings up a login prompt. At this point, even if you type in the correct username and password, the request seems not to complete and even if you tell the browser to

Check if users flash player has audio capabilities. (Capabilities.hasAudio)

一曲冷凌霜 提交于 2019-12-23 10:55:11
问题 Is it possible to check if the user has a sound card? I found Capabilities.hasAudio but dont know if that is the value I should look at. trace(Capabilities.hasAudio) "Specifies whether the system has audio capabilities. This property is always true . 回答1: The docs are unclear on this, but I think that the properties in the Capabilities class tells you what the capabilities of the player is, not necessarily the system. For instance, the desktop players will always return true for hasAudio,

How to force/allow the user to download multiple files? (client side)

南楼画角 提交于 2019-12-23 10:27:34
问题 The input is a variable number of URLs (remote), all linking image resource. It is desired to allow user to allow to download all of these URLs in one batch. Since we are talking about 1000-2000 image resources, asking user to click "Save As..." for every URL is not feasible. My original attempt was to download all the images into a blob (How to read loaded image into a blob?, did not work because of the same-origin policy), archive the file and allow the user to download it (all of this

Can an embedded Flash object access the DOM of its parent document?

隐身守侯 提交于 2019-12-23 10:18:10
问题 I'm just curious if it's possible that Flash objects can access the DOM of the document that has embedded it. 回答1: Yes, through the ExternalInterface class. You can make calls to Javascript from within the Flash movie and get back any public information about the page that your heart desires. Addendum Looking at this a year and a half later, i decided to add some examples: Say you have a JS function on your client page like this: function foo(bar,type) { // do something with bar and type }

Simulate a mouse click in Flash using JavaScript

a 夏天 提交于 2019-12-23 10:10:28
问题 Background: I'm developing Greasemonkey scripts for a website. I do not control the Flash file. Question: Is it possible to simulate a mouse click on a button/movie clip in a Flash object embedded in a web page? Googling only shows ways to simulate a mouse click on a DOM element, and ways that require the ActionScript to be changed to implement a JavaScript interface. Or is this simply impossible? 回答1: It's not possible unless the SWF implements ExternalInterfaces and opens up a function to

URL encode variable in AS3?

落爺英雄遲暮 提交于 2019-12-23 09:07:06
问题 I get the following error when trying to pass variables via URLRequestMethod.POST; Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. Is there a method for string URL Encoding? 回答1: Solution to this problem is: You have to set URLLoaderDataFormat to URLLoaderDataFormat.TEXT not URLLoaderDataFormat.VARIABLES. Because VARIABLES means different types of data, not multiple items in URLVariables . 回答2: There are escape()