flash

Use ArrayCollection in Flash CS5

一笑奈何 提交于 2019-12-25 13:29:22
问题 is there any way to use ArrayCollection (from mx.collections.*) in Flash CS3/4/5? How? 回答1: Not sure if you can use the Flex libs in Flash. For collections in AS3, though, check out this open source project. It rocks. 回答2: This question was asked before. It seems that there is: How can I use ArrayCollection like feature in ActionScript 3.0 Flash IDE? 来源: https://stackoverflow.com/questions/4333065/use-arraycollection-in-flash-cs5

Data sharing between users using flash and php

让人想犯罪 __ 提交于 2019-12-25 13:26:30
问题 I'am searching how to send variables from a php webpage to a flash animation that it will be integrated into another webpage Little example : An user enter his name in an input in a php page then when he clicks submit button, his name will be shown in a flash animation Any suggestions? 回答1: If I understood right, you want to have some sort of form processed with user data, then on submit load a different page that holds a flash animation that needs the user data,right? You can look into

Data sharing between users using flash and php

女生的网名这么多〃 提交于 2019-12-25 13:21:24
问题 I'am searching how to send variables from a php webpage to a flash animation that it will be integrated into another webpage Little example : An user enter his name in an input in a php page then when he clicks submit button, his name will be shown in a flash animation Any suggestions? 回答1: If I understood right, you want to have some sort of form processed with user data, then on submit load a different page that holds a flash animation that needs the user data,right? You can look into

Resizing div with js from flash makes flash appear to freeze in chrome?

三世轮回 提交于 2019-12-25 13:07:16
问题 I have flash resizing it's container div by using external interface to call the javascript: function expandbottomNav() { document.getElementById('bottomNav').style.height = '400px'; } function shrinkbottomNav() { document.getElementById('bottomNav').style.height = '31px'; } Now this appears to work fine in every browser except chrome. For some reason after the div is shrunk back down to size, the flash player looks like it's frozen. It's actually not frozen because if you resize the window

HitTest trigger new scene

[亡魂溺海] 提交于 2019-12-25 12:48:32
问题 This is my code: onClipEvent(enterFrame){ if(_root.char.hat.hitTest(this)){ _root.gotoAndStop(6); _root.char._y +=50; _root.grav = 20; } } How to make the hitTest trigger new scene ? 回答1: To go to another scene , you can use gotoAndPlay() or gotoAndStop() : gotoAndPlay([scene:String], frame:Object) : Void. gotoAndStop([scene:String], frame:Object) : Void So your code can be like this, for example : onClipEvent(enterFrame) { if(_root.char.hat.hitTest(this)){ // ... gotoAndPlay("Scene 2", 1); }

create variable from array actionscript 3

大城市里の小女人 提交于 2019-12-25 12:42:04
问题 I'm currently trying to make a dynamic menu via an array and a loop. So when someone clicks on the first item of the array, "menu_bag_mc" it will link to the content "menu_bag_mc_frame" (or some name that will be unique to this array) that is another movieclip that will load. Below is the code I have so far: //right here, i need to make a variable that I can put in the "addchild" so that //for every one of the list items clicked, it adds a movieclip child with //the same name (such as menu

Select random item from an array with certain probabilities and add it to the stage

女生的网名这么多〃 提交于 2019-12-25 12:14:07
问题 Its quite a big task but ill try to explain. I have an array with a list of 200 strings and I want to be able to randomly select one and add it to the stage using code. I have movieclips exported for actionscript with the same class name as the strings in the array. Also, if it is possible, would I be able to select the strings with predictability such as the first has a 0.7 chance the second a 0.1 etc. Here is what i have currently var nameList:Array=["Jimmy","Bob","Fred"] var instance

DataStore in flex

末鹿安然 提交于 2019-12-25 10:50:31
问题 I am having problems in my program... Please advice me of what is right this is the error code of my prog mx.data::Conflict { cause = mx.data.messages::DataMessage { body = [["lessonid"], { lessonid = 17 lessonplanid = 1 status = "active" studentid = 4 }, valueObjects::Lessonplan { lessonid = 18 lessonplanid = 1 status = "active" studentid = 4 }] clientId = null correlationId = "" destination = "lessonplanRPCDataManager" headers = { newReferencedIds = null prevReferencedIds = null } identity

swfbridge and large files

泪湿孤枕 提交于 2019-12-25 10:49:10
问题 I have a C project that I'm using with Alchemy. The project has some post-build command-line tests that I'd like to run using the swfbridge. These tests run, but they're extremely slow. The problem is that they read some moderately large files (~3MB) into memory. Running these same tests with the same files via regular Alchemy (e.g., not using swfbridge but using supplyFile from AS) is very fast. I think the bottleneck is the swfbridge. More specicially, in the way that swfbridge loads files.

Submitting scores from AS3 to PHP/SQL - #Error 2101

本秂侑毒 提交于 2019-12-25 09:43:36
问题 I was having problems posting scores from a Flash CC AS3 game to a PHP page with SQL database . I was receiving ERROR #2101 messages in my output window. After a lot of time searching this problem I was advised to check if PHP was the problem. I have created a very simple Flash file, the code (I have replaced my actual site address below) is : import flash.events.MouseEvent; import flash.net.URLRequest; import flash.net.URLVariables; import flash.net.URLLoader; import flash.events.Event; var