flash

can you call on the same varible in an instance of multiple movieclips

It might sound confusing so let me explain the situation. I made a movieClip. And in that movieClip I have a dynamic textfield set. I called this textfield "AmmoCount" I dragged this movieClip onto the stage several times and each time I called on the AmmoCount varible in each movieclip and gave it a different value. I get the followin...

Scatter Algorithm

I need to randomly scatter a variable number of objects in a Flash movie. Just randomly choosing locations doesn't result in a visually pleasing output. Objects end up on top of each other, all clumped together on one side, etc. I'm looking for something similar to the algorithm that Photoshop uses to create a Difussion Dither when co...

AS3 / Flash: Is it bad form for child components to call methods on their parent?

I have a pretty simple scenario here and it works, but my instincts tell me I'm making a mistake and would like to run it by some better minds. Here I have a parent class that instantiates a MenuClass and handles transitions between pages. public class ParentClass extends Sprite { public function ParentClass() { setupOp...

MOUSE_OVER Event Attached to Video Object

Hi there, I'm trying to create a video player in AS3 that displays the player controls when the user hovers over the video, however I'm having a hard time getting the MOUSE_OVER event to fire. I've made sure that the video's index is at the top, so that's not the issue. Is there something I'm missing? Is there any reason why this event ...

Flash videos on Sharepoint

We would like to display flash video files (tutorials) on our Sharepoint site. Problem is, we cannot seem to either stop it from auto-playing (using the Windows Media Player) or start it playing by clicking (using flash embed). We have a Content Editor WebPart with this code currently: <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-4445...

AS4 Flash Importing Custom Classes

I am trying to import classes to no avail. test.fla timeline 1: var main:Main = new Main(); main.as package{ import flash.display.MovieClip; public class Main extends MovieClip{ public function Main() { var _myClass:myClass;//this line will fail trace("Main"); ...

Assigning icons to a ComboBox's List using dynamically-loaded external images.

I'm trying to implement this for an instance of ComboBox specifically, which uses a List to display the dropdown menu full of items. Lists can have icons associated with them, as described in the documentation: var comboBox = addChild(new ComboBox()); comboBox.dataProvider = new DataProvider([{label:'item1',iconClass:IconClass1},{label:...

Strange Behavior of AS2 swf breaking when loaded into AS3 swf can any one explain as to why this is?

The ide i am using is flash cs3. the as2 swf contains a tween code using mx transitions. when i remove this tween code and hard code it on the enterframe there seems to be no problem. afaik avm2 should fully supports the as2 and as1 code. so i am unable to understand why this disparity when coding a simple tween in as2 swf. i had made a ...

Where can I find Flash Plugins?

Are there any plugins for Flash CS3 (or greater) that expand Flash's ability. Actually, i'm sure there are, where can I find them? EDIT: Preferably free and from places besides Adobe. (Not that Adobe's bad, but I want variety.) EDIT2: I amreferring to extesions, not components, although references to free component's are also helpfu...

Should I learn Flash or Director?

I just had this conversation with a colleague and I am now turning to the SO community to provide evidence based on fact, not opinion, as to which tool would be ideal to grow into in the current programming environment. Director or Flash? I am deciding if I should stick with Flash or bother learning Director 11.5. He want to know if he ...

Display image above flash object

I am facing a tricky situation here...this is the problem...I have a flash object over which i want to display an image These are the tricks that i tried...1.Playing with z-index(no use) 2.Setting the wmode parameter to transparent/opaque(again no use)3.Using javascript and displaying image only after the page is loaded(still no use) I t...

flex flash xml file

I generated swf file from flex builder but not using AIR i have a data.xml file but flex builder`s generated swf file cant read the data xml file swf file and data.xml file are located into same directory how can i solve file? ...

How to deliver music (progressive/download) over the web without exposing the URL of the mp3s (even in webkit browsers)

I want to be able to deliver music/mp3 using a flash player but I'd like to make it so that the mp3 files cannot be sniffed... i.e. you can't use safari, firebug..etc. to find out the mp3 location using the activity window. I don't have a streaming server. Any idea? If I go with a streaming server, any suggestions on how to go about it...

Flash External Callback Error!

I'm trying to acces a swf function from javascript using External Interface given by adobe and I get the following error. SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller http://media.varheroes.com/flash/flashtest.swf cannot access http://apps.facebook.com/feline-frenzy/flashtest/. at flash.external::Exte...

What is the difference between Flex and Flash CS4?

What differences are there betwee Flash CS4 and Flex, besides the GUI of Flash? ...

Expandable Banner on Mouse over

I am currently working on a website, where my client asked me to place a Banner which expands on Mouse Over. Similar to this website ( http://www.londontown.com/majorcampaigns/ ). When we hover on LondonTown.com Banner it just expands and show rest of the Ad. I tried my level best but i couldn't figure it out, Please help me. ...

How to send a request to javascript in AS2?

How can I pass a variable to javascript in actionscript 2? Thanks. ...

Custom image editor for Google Docs

I am designing a web application that as an end result creates images (graphs plots, etc). These images will get used in Google docs documents. Users also need to be able to edit these images after they already posted to Google docs. In the current version, I add a link around the image with the url to the location of my Flash editor, ...

Flex - Can I retrieve the ByteArray from a FileReference class using Adobe Flash Player 9?

Hey everyone, I am trying to retrieve the ByteArray from a file selected using the FileReference class so that I can pass this to a Web Service call that I am making to Sharepoint. Is there any way I can do this using Flash Player 9 without having to upload to a remote server first and then downloading the file to extract the ByteArray?...

how to embed flash games into Windows Forms application.net compact framework under windows mobile 6

I want develop an application on windows mobile. In this app, i need to show some Flash games to the end user. How should I do? embed an Flash ActiveX Control (in Windows mobile Form application) ? embed an IE control? BTW (because i do not have a windows mobile device now) Can I views flash in IE of the windows mobile device? Tha...