flash

XML for maintaining Flash timeline

Is it possible to define the scenes and the frames in XML in Flash CS4, so that we can parse it in actionscript 3.0 and define the interactivity. I want to define all the UI elements and the event associated with UI like List control or button in XML format (XUL??) and then use actionscript to build the application logic. Are there some ...

ctrl button sometimes block KEY_UP event for 'c' key

Try the following code: myListener = new Object(); myListener.onKeyUp = function() { if (Key.isDown(Key.CONTROL) && Key.getCode() == 67) { //Ctrl+C trace("Ctrl+C key down!"); } }; Key.addListener(myListener); hold ctrl key and start pressing 'c'. From some point you will notice that there is no KEY_UP event fo...

Adjusting Flash 4 Scroller Height to Content

I am having a little difficulty properly sizing a Scroller component in Adobe Flex/Flash 4. As soon as I add an element to the 'widgetsGroup' VGroup, the scroller's height property resizes to match that of its parent border container, even though the content height of the vGroup may be significantly less than this value. This is a proble...

Setting up dynamic images and event handlers for each in Flash Builder

How can I add a set of dynamic images and then add event handlers to each that trigger a different event? My scenario is that I have a remote service that grabs a set of data (ArrayCollection) that has a className, classID and classDescription. I would like the images to have event handlers that trigger a new panel display that would s...

Convert flash project in javascript

Hi guys I need help making this http://0.mk/baner into javascript. The banner only gets the stuff the user wrote in the text fields and redirects him to a website. Thanks ...

Flash panel & JavaScript 'mega-menu' lag/delay in MSIE?

Team, thank you all in advance for your input on this. The client is experiencing an issue that we have not been able to recreate Site: www.pebblebeach.com Issue: Client is experiencing an extended lag/delay in loading the ‘mega-menu’ on the homepage. The mega-menu sits on top a large Flash panel (roughly 1 Meg). Seems to only be an i...

Flex LinkButton selectable

Is it possible to make a LinkButton selectable? That is, the text from the LinkButton can be selected and then copied. LinkButton does not have the selectable property. ...

Should I post Flash exe to web?

Sorry, I don't have a lot of experience with audio and video on the Web. I've been given a Flash tutorial to post to the corporate website that is an .exe file with an embedded Flash player. Users will be on IE, so I guess they would get the run/save prompt. I don't like this and I know it generally isn't done, but I need to know if i...

Playing an MPEG movie, starting and ending in specific places?

I've compiled an MTS video into MP4 format using FFMPEG. The video is 2 minutes long. I want to be able to play the video back but start at 0:15 seconds and end at 0:45 seconds. Effectively I want the playback software to only show 30 seconds of playback available. The software must be a Flash-based application for integration into HTML...

Calling javascript via AS3 externalinterface within a colorbox

I have a swf that opens up inside a colorbox window. When the video finishes playing, I make an externalinterface call to a javascript function to close the colorbox. I'm trying to execute the following AS3 code: ExternalInterface.call('parent.$.fn.colorbox.close()') I can't seem to get this to work. The colorbox won't close. I also ...

AS3: Detect Read-Only Properties

I have a simple AS3 class that just holds private variables. Each private variable has a getter function, but not all of them have setter functions. At runtime, Is there a way of telling which properties do not have setters but are read-only? Then I can decide to give the user an input field to edit the properties that have setters. ...

Flash Lite 1.1 substring question

Could you tell me why both lines print out a? trace(substring("asd", 0, 1)); // == "a" trace(substring("asd", 1, 1)); // == "a" (this prints out s: trace(substring("asd", 2, 1)); // == "s") Does in Flash Lite 1.x the index start with 1? ...

Flash and JavaScript interaction, load timing issue

I've been unable to find information about the timing of loading Flash and JavaScript. I have a page that includes a JavaScript file and has a Flash SWF: <script src="stuff.js"></script> ... <object ...><embed ...> ... <script> // some code </script> The SWF calls a function defined in the JavaScript. Is it possible for the SWF to l...

flash.utils.Dictionary mechanism

The dictionary use strict equals(===) for key comparison, how to change the comparison, so I can use my standard for comparison, for example, I have a class named Student: class Student{ var id:int; var name:String; var age:int; //constructor Student(id:int,name:String,age:int){ this.id = id; ...

url functions in as2

This is from ActionScript 2.0 not a big one, but enough to keep me wondering what is wrong. This code works perfectly when I hit button in original swf file but when I publish it as html or embed it in html document there is no response. What to do? on (release) { URL("aboutus.html"); } ...

how to store registered and guest session login in mysql

hi, i have a highscore system in that i have small doubt like i want to store the user session in the mysql table and also the guest session. like if the user is registered user then that session should be stored in the mysql db. else if the user is not registered i.e guest user then also i need to store with the guest account for my hig...

How to split packets in flash, XMLSocket

Hello I believe my flash client is losing some packets the server sends, because some packets get joined together hence I believe it drops them. Here is my packetHandler in flash private var xmlsock:XMLSocket; this.xmlsock = new XMLSocket(); xmlsock.connect("127.0.0.1", 1234); this.xmlsock.addEventListener(DataEvent.DATA, this....

How to split a string by char 0 / byte 0 / 0x00 / \u0000 in flash

How do I split a string by char 0 / byte 0 / 0x00 / \u0000 in flash actionscript 3 ...

alert dialog not showing the text in flex 4

Hi, I am using Flex 4 and running into some problems displaying a simple alert box. The alert box shows up, but the text seems to be the same color as the background. I know the text is there because if I mouse over in the alert box window to roughly where the text would be, I can see the cursor change. And when I double click and copy-...

How to read JSON using Flash

To read JSON using as3, are there any built in methods? It would be better if we get some code samples ...