flash

JavaScript / jQuery Flash AS3 interaction

試著忘記壹切 提交于 2020-01-06 12:44:19
问题 I am designing a music player using JavaScript (jQuery) and HTML5, with Flash AS3 to fall back. Basically what I want to do is to be able to click HTML control elements and have them interact with the flash in order to play/pause and skip tracks in the playlist (playlist JSON file read by JavaScript, passes file ID to AS3, AS3 reads another JSON file to get URL, then plays audio) This enables me to only use the Flash to play the audio, thus creating the same user experience regardless of

Adobe Air - How to detect LAN servers (listening to a specific port)

亡梦爱人 提交于 2020-01-06 12:41:02
问题 I wonder how I can detect LAN servers. I made a client/server app and it all works fine but you have to manually enter the IP address of the server. Currently I'm trying to use a DatagramSocket on the client/server. The server will send a packet containing its IP address so the client can connect to that address. The packet is send it to its local broadcast IP (192.168.1.255) port 4444. The client will listen to port 4444. Then receive the packet. This works if I'm on the same computer (so

MOUSE_OUT events not firing on child when parent is mouseEnabled=false, mouseChildren=false

大兔子大兔子 提交于 2020-01-06 11:19:08
问题 I make a sprite, then add a child sprite. I add a listener to the child for MOUSE_OUT events. If my mouse is in the child sprite when I set the parent sprite mouseEnabled=false and mouseChildren=false, MOUSE_OUT is not fired on the child. But then, when I move the mouse, MOUSE_OUT is fired on the child. MOUSE_OUT is also fired if I click. MOUSE_OUT is not fired if I mousewheel. So, what's going on here? This is a related question. After studying back2dos' code, I discovered what I am doing

MOUSE_OUT events not firing on child when parent is mouseEnabled=false, mouseChildren=false

血红的双手。 提交于 2020-01-06 11:18:25
问题 I make a sprite, then add a child sprite. I add a listener to the child for MOUSE_OUT events. If my mouse is in the child sprite when I set the parent sprite mouseEnabled=false and mouseChildren=false, MOUSE_OUT is not fired on the child. But then, when I move the mouse, MOUSE_OUT is fired on the child. MOUSE_OUT is also fired if I click. MOUSE_OUT is not fired if I mousewheel. So, what's going on here? This is a related question. After studying back2dos' code, I discovered what I am doing

MOUSE_OUT events not firing on child when parent is mouseEnabled=false, mouseChildren=false

假如想象 提交于 2020-01-06 11:18:12
问题 I make a sprite, then add a child sprite. I add a listener to the child for MOUSE_OUT events. If my mouse is in the child sprite when I set the parent sprite mouseEnabled=false and mouseChildren=false, MOUSE_OUT is not fired on the child. But then, when I move the mouse, MOUSE_OUT is fired on the child. MOUSE_OUT is also fired if I click. MOUSE_OUT is not fired if I mousewheel. So, what's going on here? This is a related question. After studying back2dos' code, I discovered what I am doing

Can Adobe AIR app communicate with iPhone calendar

五迷三道 提交于 2020-01-06 09:02:44
问题 Hey all, I'm mighty new to Adobe AIR and Flex, Flash etc I've been looking through the Adobe AIR APIs, and could not find a class that will allow a Flex\Flash app to communicate to the calendar, (more specifically, the iPhone calendar via the iPhone packager) am i missing out something here? or has adobe not implemented an API for the Flex apps to communicate to the calendar? Are there other iPhone specific APIs that Adobe has not implemented? Thanks! 回答1: i've found the answer right here:

separating data in an array for display in Flex

不问归期 提交于 2020-01-06 08:48:09
问题 I'm new to flex/flash builder, i need to read in data from a text document, then slice it into pieces i set out in my custom class. all of this so far worked var theCustomer:Customer=new Customer(name,address,phoneNo,comment,custNo); custArray.addItem(theCustomer); So now what i want to do is display only the name from each entry of the array into a combobox - and then on close it will display all the details into a list box If i just bind the custArray to the combobox it displays name

scrollbars in chrome

余生长醉 提交于 2020-01-06 08:43:24
问题 why does the following page give me scrollbars in chrome but works fine in every other browser? i am pasting everything, just in case. though i think it is unrelated to the java applet since i get the same problem with a flash movie. <!doctype html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Java</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script src="jquery-1.6.2.min.js"></script> <script type="text/javascript">

IE8 Flash arrow keys scroll screen. How to fix it?

江枫思渺然 提交于 2020-01-06 08:27:07
问题 I've a flash games site, and Im having a lot of difficulties to make it show in internet explorer 8. When you are playing any flash, the arrow keys that should belong to the flash scroll the page up and down (probably left and right too). This was happening in both ie7 and ie8. I placed the flash inside an iframe, that fixed to IE7, but the problem persists on IE8. If I change the flash wmode from transparent to window, the page stops scrolling, but this breaks all my menus and banners, that

Flex/Flash 4 ExternalInterface.call - trying to get a string from HTML to Actionscript

让人想犯罪 __ 提交于 2020-01-06 07:20:14
问题 I need to obtain a string from HTML and put it into Actionscript. the actionscript: import flash.external.ExternalInterface; protected function getUserName():void{ var isAvailable:Boolean = ExternalInterface.available; var findUserName:String = "findUserName"; if(isAvailable){ var foundUserName:String = ExternalInterface.call(findUserName).toString(); Alert.show(foundUserName);}} the javascript: function findUserName() { var label = document.getElementById("username-label"); if(label.value !=