actionscript

How to pass “Null” (a real surname!) to a SOAP web service in ActionScript 3

风流意气都作罢 提交于 2019-12-28 04:37:05
问题 We have an employee whose surname is Null. Our employee lookup application is killed when that last name is used as the search term (which happens to be quite often now). The error received (thanks Fiddler!) is: <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <faultstring>coldfusion.xml.rpc.CFCInvocationException: [coldfusion.runtime.MissingArgumentException : The SEARCHSTRING parameter to the getFacultyNames function is required but was not passed in.]</faultstring> Cute,

Bitmap hittesting in AS3

£可爱£侵袭症+ 提交于 2019-12-25 18:59:13
问题 I'm building a 16 bit game for my final project and have completed all the objects and environments, I exported all the images as png files into flash as well as my character, breaking the environment up into background, objects and foreground. I can't however find a simple tutorial explaining how to do bitmap hit testing or another simple way of making my character not be able to move into the objects. Could someone recommend a simple tutorial or an alternative method of achieving this ?

What is the difference between [object main timeline], stage and root in as3?

断了今生、忘了曾经 提交于 2019-12-25 17:47:22
问题 I want to know the difference between [object main timeline] , stage and root in as3. 回答1: Here is a what seems to be a decent text covering the subject, it's linked to by several people: How stage, root, and MainTimeline Fit Together 来源: https://stackoverflow.com/questions/7295379/what-is-the-difference-between-object-main-timeline-stage-and-root-in-as3

How to check if a number is between two other numbers in Actionscript 3?

人盡茶涼 提交于 2019-12-25 17:05:38
问题 How can i check if a number is between two other numbers like: pseudocode: var = 458; if (var is between 0 and 1000) give positive. if (var is between 1001 and 2000) give negative. if (var is between 2001 and 3000) give negative. in AS3? Thanks in advance. 回答1: If You will check it many times, simply create function : function check(min:Number , value:Number , max:Number):Boolean{ return min > value ? false : ( max < value ? false : true ); } It will return true if value is between min and

Syncing Frames to Audio and channel.position Accuracy

和自甴很熟 提交于 2019-12-25 16:42:35
问题 Calling channel.position on an ENTER_FRAME event, I notice that it's not being updated every frame, but it looks more like every frame and a half. var sound:Sound = new Sound(new URLRequest('music.mp3')); var channel:SoundChannel = sound.play(); // assume the sound is completely, // totally, 100% loaded addEventListener(Event.ENTER_FRAME, function(e:Event):void{ trace( "Position : " + channel.position + " - Frame : " + int(channel.position / 30)); }); will result in something along the lines

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

Turn an XML string into an Object in Actionscript

我只是一个虾纸丫 提交于 2019-12-25 07:50:03
问题 I am pretty new to AS, and I am assuming there is a way to do this and I am just not figuring it out. Basically, I am trying to use a service that returns xml and return an Object regardless of the structure of the xml. In .Net I use the XmlSerializer.Deserialize class... is there equivalent in AS? I was able to find SimpleXMLDecoder but I can't seem to get it to work - it also looks like it might only work with nodes? Either way, the examples out there are sparse and hard to follow, I just

Flash/ActionScript: How to center smaller swf when loaded in a larger one?

梦想与她 提交于 2019-12-25 07:39:03
问题 I am making an interactive storybook project given these specifications: My book has 13 pages, where 1 page = 1 swf loaded externally into the book swf. As you can see, the page swf must be centered in between the 2 buttons that are both 100x450 each. Whenever I try to load the swf, usually it's cut off at some point. In short, how do I center my externally swf when loaded? 回答1: Make the completeHandler Function like given bellow function completeHandler(event:Event):void{ this.container

NetConnect fails silently in Flash when called from SilverLight

时光总嘲笑我的痴心妄想 提交于 2019-12-25 07:27:39
问题 This is a complex question, because there are a lot of moving parts. My apologies in advance. I'm trying to write a Silverlight control that hosts a Flash camera and microphone (since Silverlight doesn't support these things natively, worse luck). I've written a short little Flex application ("WLocalWebCam.swf") which handles the camera, and exposes two external methods: connect(uri:String, streamName:String), and disconnect(). I can call these successfully through JavaScript as follows