flash

Can A Sprite Contain A MovieClip?

Hmmm... I'm working at creating an AS3 UI library, since most of the ones out there each seem to miss out at least 1 feature I need. In order to keep it lightweight, I created everything from scratch. I use Sprites to render just about anything. But I want to allow the user of the library the possibility of adding a custom graphic for a ...

How to copy something as a pastable bitmap in flash?

How to copy something as a pastable bitmap in flash? So I have simple mxml project - empty page with a panel on it. I want to be able to select some region on my panel and copy it somehow as bitmap pastable to photoshop, word and other programms. How to do such thing? (libs, articles etc) Edit - It may be not possible in FP10 but in...

Math, Counter AS3

This is a counter. I'm making a spread sheet and getting nowhere. How do I measure these variables? V A R I A B L E S timer = speed count = starting number and direction “+-“ fcount = time ramp “fast or slow” MY THOUGHTS - make an equation or spread sheet - use a frame counter, but it's not frame based CODE Define an instance of...

How to dispatch an event in a flash swf that's loaded into Flex via SWF loader

I've a Flex application which loads a Flash swf via SWF loader; the Flash swf is in AS3. the flash swf has code to dispatchEvent a Text Event Flash Code: var re:TextEvent = new TextEvent(TextEvent.TEXT_INPUT,true,true); Flex Code: <mx:SWFLoader source="menu.swf" id="mnu" complete="menuLoaded(event)" /> private var mySwfMve...

URLLoader cancel load on any browser event

Hello, I have a flash element in a page that load a chart based on some complex queries that can take up to a minute to load. I call the query with this code : var chartData:URLLoader = new URLLoader(); chartData.addEventListener(Event.COMPLETE, onLoaded); chartData.addEventListener("httpStatus", onHttpStatus); chartData.load(new URLRe...

AS3 Forbidden protocol in URL

Has anyone ever run into this before? I have the crossdomain.xml set and I've also tried setting the local playback to network only and still no luck. What I'm trying to do is have the user upload an image, then I pass that value over through PHP and a directory is created. After that hits it returns with the path and I try to load the ...

How to run if/else statement to check if XML node is empty?

Hello Stackers! My question today deals with checking an XML file for a specific node. Example: <vid flv="videoName" thumb="thumbnail.jpg" title="Video Title" logo="Path to logo here"> </vid> <vid flv="videoName" thumb="thumbnail.jpg" title="Video Title" </vid> The first vid node contains a path to a logo graphic, I then need...

Is my flash game local or on the internet?

I'm currently developing a flash game and I need to be able to test it on my local machine and also on the web. When running locally I use some dummy test data and when online it is joined to an API. While in development I would like to be able to detect where I'm running so I can switch between these automatically. Is there a way to d...

Help with flash collision detection. Rotating and hiting at the same time

What I want to do is rotate the object and have its collision box rotate with it. I want the rectangle to rotate so it looks like a diamond and have one of its sides hit the object in a per pixel fashion. From my reading of some books and websites it seems that normal rectangular collision and hitTestObject collision won't do for this pr...

animate external swf

I need more examples animating external files. My ball in the external swf is suppose tick across the stage. How do I get "ldr.swf" to load "ball.swf" and tell it to move the ball across the stage? var bgLoader:Loader = new Loader(); bg_mc.addChild(bgLoader); var bgURL:URLRequest = new URLRequest("ball.swf"); bgLoader.load(bgURL); ...

Play mp3 using JavaScript and swf

Is there a Flash MP3 player that would allow me to do following to pass URL to mp3 file and get it automatically played. To help out with answer - here is detailed code that describes what I would like to do: <object id="mp3PlayerSwf" type="application/x-shockwave-flash" data="mp3Player.swf"> <param name="movie" value="mp3Player.swf">...

safari displays javascript source instead of executing

i have a web application that has javscript interspersed through the page. What happens is that safari will dump the source of the javascript code instead of executing it. I can reproduce this consistently. The page is a mashup of different forms of content: it loads flash videos using osflv and is generated via a php script on the se...

How do you set up a run/game loop in Flash?

Currently, I have all my variable initialization and function definitions in the timeline's first frame, my logic in the second frame, and a command to 'go to the second frame' in the third frame. This seems very sloppy to me, and I assume Flash developers have a better way of creating a run loop. Thanks! -S ...

Actionscript 3D how to rotate around 3d coordinates

I wanted to write a simple 3d image rotating around the y-axis as the Image carousel. I can place all the photo around the axis but I can't get the main image facing towards the screen. I mean the z-axis isn't pointing towards the screen. Instead, the z-axis is towards the top left corner. How do i make the z-axis pointing perpendicula...

Why doesn't AIR start full size?

I have an AIR application set to 800px wide and 600px high. When I launch it, the window starts too small with horizontal and vertical scrollbars? Isn't this dumb? What am I missing? Test.mxml: <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="800" height="...

which platform should I use for developing animation/simulation of computer networks?

I'm supposed to develop animations/simulations to illustrate Computer Network concepts (Algorithms etc..).Some thing like this: http://www3.rad.com/networks/2004/sliding_window/detect.html . After done with this, I'm also supposed to develop similar animations for Operating System Concepts too. Its part of an educational program. I'm un...

Is it possible to pass the dimension of a Loader object to another class?

I have a class (ImageLoader) that extends Sprite container and loads an external image to its instance. When i instantiate an object of this class from another (Main) class i want to have the dimensions (width, height) of the loaded image being known to this (Main) class. It seems that is difficult for me as the dimensions are known afte...

Load custom font in actionscript 3

I want to display "Hello World" with calibri.ttf using only AC3. How would I do that? ...

Please recommend one or more of the best Chart component,Flash or javascript

I am looking for a suitable charting component use in my Web project,Please help me! Thanks! ...

Flash link.......

Right now i m working with flash. in flash i m making a menu. in that menu i have 1 text. on that i have to give a tweeter link.. how can i give a link on that text. and one more thing when my mouse over the text then i can see it underlined.. how to do this,, pease reply.... ...