flash

Actionscript and xml - a Guru should make mince meat of this question :-)

Hi there, I were hoping that someone can help me with this Actionscript (2) I want to load an image into my flash file, and then assign a image from a folder using the xml file - and then make it link to the url in the xml xmlData = new XML(); xmlData.ignoreWhite = true; xmlData.onLoad = function(loaded) { if (loaded) { loadMovie(...

AS3: How to get all XML-Nodes with a special attribute? (With sourch)

Hi there The Challenge: i d like to collect all nodes with the attribute "id". The Problem: The code doenst work with nested nodes. <?xml version="1.0" encoding="utf-8"?><contentmap><fonts id="fonts"> fonts/Arial.swf swf/library_main.swf private function onXMLLoader(event : Event) : void { _xml = _loader.getXML(event.targ...

Tiny Flash Question

I have this flash code - I need to add getURL(this.mainurl, "_self"); so that this.mainurl is a dynamic value from an XML file. Can anybody maybe show me how to make the getURL value dynamic myPhoto = new XML(); myPhoto.ignoreWhite = true; myPhoto.onLoad = function(success) { //portfolioTag = this.firstChild; numimages = this.first...

C#: Loading an embeded swf into an flash activex without a temporary file.

My project requires that my final application be completely self contained in a single exe. I am already combining the executable and dlls using ILMerge (assmebly merge utility). I am hosting an flash active x control in a C# application and I have embedded the one swf i need to load into the flash control into the c# application as an e...

How to open Flash file from USB automatically on Win/Mac

I need to have a flash file be opened and viewed from a USB automatically on both Win and Mac. I read about various solutions depending on the format of the flash output: autorun.inf if Flash published as exe(Win)/app(Mac)) which seems to be working only on Win; html embedding if Flash is published as swf, but this turns into a proble...

Make a parent function return in ActionScript3? (or make addEventListener return)

Basically I've got a code which should load a lot of images so I need a function to load them. The problem is that addEventListener requires a function which it will call when the event have been raised. I need to find a way to either make the loadImage function return ONLY after the event was raised or make the function raised in addE...

JW Player embedded flash player not playing properly

PROBLEM: when i press play the audio starts but the video does not. CODE: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>JW Player for Flash</title> </head><body> <script type="text/javascript" src="swfobject.js"></script> <script type="text/javascript">...

Parsing FLV header (duration) of remote file in Java

I'm looking for an example of parsing an FLV header for duration specifically in Java. Given the URL of an FLV file I want to download the header only and parse out the duration. I have the FLV spec but I want an example. Python or PHP would be OK too but Java is preferred. ...

Setting up Actionscript 3 compiling on Mac

I would like to do some Flash development on my MacBook, utilizing the Flex 3 SDK to compile Actionscript 3 into SWF movies. How would I set up my Mac to do this? I would also like to understand how the flash compiler interprets package names into a directory structure. I took a Flash class in high school, but it relied very heavily o...

Flash Video Chat SDK/Component

Hello, I am looking to integrate video chat functionality in our existing web-app. Now I have the following three solutions: Develop my own in flash Tokbox.com Oovoo.com Any other services? Does anyone have any experience (good/bad) using the above services or would like to suggest any other service? I only want one-to-one chat (pre...

Playing concatinated mp3 files through flash with as3

Hi! I have a list of mp3 files which I automatically build together to different, larger, mp3 files with the *nix command 'cat'. They work fine to play in any installed mp3 player I've tested them in, but I have also written a small, easy-to-use mp3 player in ActionScript 3 where I wanted to play my (concatinated) mp3 files over the web...

How to rotate gradient along with sides of 3D cube in Flash - actionscript 3.0

Hello I got goal to achieve, 3d cube manipulated with mouse with gradient filling on each wall. I found some source codes coresponding to gradients and 3d rotating cube but here is the problem: When i put these two things together the effect looks like the cube was a wireframe with transparency to some gradient background hidden behind...

Flash Player and VoIP

I found Flash Player 10 supports VoIP but I couldn't find serious documentation about this feature. Could you post some decent link? :-) ...

How to submit data of a flash form? [python]

Hi. I would like to know if it is possible to submit a flash form from python and, if it is, how? I have done form submitting from python before, but the forms were HTML not flash. I really have no idea on how to do this. In my research about this I kept getting 'Ming'. However, Ming is only to create .swf files and that's not what I in...

use actionscript 3.0 to detect class of symbol that is clicked

Hi, I am trying to create a simple drag and drop Flash program where a user can drag xmas ornaments onto a tree. Instead of being able to drag the ornament once, I want a function so that every time an ornament is clicked on, it adds a new ornament of the same class to the stage where the ornament is clicked. Currently I have this worki...

How can I set Html object height same as window height?

I have flash object embedded to my page and it should act as background animation. I have trouble setting height of object element, because firefox doesn't understand height="100%" value. <object classid="my_class_id" width="100%" height="100%" id="my_id"> <blaa blaa /> </object> ...

Actionscript 3.0 image scaling problems

I am currently building a Flash AS 3.0 application that allows a user to load images into a container, move and scale them and the outputs to a DB. Once the user has uploaded and scaled the images, they are directed to an album viewer which gets the photos out of the DB and puts them into heads. The issue i am having is that once the i...

AMFPHP over SSL problem

I seem to be having a problem running AMFPHP under SSL in our development environment. I created a self-signed cert under CentOS and got everything working, but whenever I go to the page in Firefox I get warned that the certificate is self-certified and therefore cannot be accepted. This then seems to affect the AMFPHP calls from flas...

Actionscript if / else syntax Question

Which of the following best translates the English statement "If it's rainy, we will watch a movie. Otherwise we will go to the park." a. if (rainy = true) { gotoAndStop ("movie"); } b. if (rainy == true) { gotoAndStop ("movie"); } c. if (rainy = true) { gotoAndStop ("movie"); } else { gotoAndStop ("park"); } d. if (rainy =...

Flex reverse proxy issues

I'm currently working on setting up a reverse proxy for testing a flex-based web application. The current setup is using mod_proxy (with mod_proxy_http) to reverse proxy to another host. Everything seems to work except for requests made from the flash player, which result in an error message that says "Security error accessing url". ...