flash

SWFObject addParam failure

So I'm simply trying to prevent a flash video from playing on page load but have so far been unsuccessful. The code in question is as follows: <div id="flashcontent">This text is replaced by the Flash movie.</div> <script type="text/javascript"> var so = new SWFObject("link_to_video","mymovie", "350", "400", "8", ""); so.addParam("pl...

swfaddress - multiple levels

there is a basic example of deeplinking in flash that comes with swfaddress; it uses the solution of checking the url with a switch() statement and does something based on that case string. what is the best way to go about linking into multiple levels? i.e. ...url.com#/clients ...url.com#/projects ...url.com#/contact these are simp...

Can I get Actionscript3 to type cast Numbers and ints in XML files as numbers and ints?

Everything seems to be a string right now & that kinda ruins the whole xml as an internal data structure thing, I don't need a big tree of string I need typed data :-/ Are there any changes I can make to either my XML files or my AS3 code that will force it to cast ints as ints and Numbers as Numbers? Or maybe some kind of type schema I ...

AS3 - Accessing Library Items from outside the Document class

How do you access Library items from classes other than the document class? For example, if I create a movie clip in Flash and Export it for Actionscript with the name Foo, I can do this in the document class: var f = new Foo(); this.addChild(f); And it appears on the stage, as it should. But I need to be able to create other instanc...

Can I get Flash CS4 to observe an XML schema? So it may strongly type XML input...

...as it loads and save me having to duplicate the whole data structure by hand and set each type manually. It seems such donkey work should be quite unnecessary in this modern day and age but I can't find a shred of info on the web to help me avoid it! Surely this whole new e4x thingy must support type casting somehow?!? Cheers, Roger...

Flash + PHP to make a submission form?

I have a flash app, and i want to put an in-app pop up that allows users to submit information that will be handled by a PHP backend. I want this to be secure, both mysql injection wise and anti-bot spam captcha wise. Can someone kindly point me towards a couple of tutorials to get me started? I need tutorials for: In-app popup window F...

Sandbox violation - in flash player - crossdomain issue?

I'm wondering if any has solved something similar to this. I have a webpage on site-A which has an embedded swf served from site-B. The swf gives a security sandbox error when trying to a txt file via URLLoader from a folder on site-B. I have a crossdomain policy on site-B (Currently set to ). I'm I missing something here? Where can I...

What's the best practice for tracking events with Google Analytics?

Specifically thinking about the Flash version but I'm sure this applies to the JS version too. Should I cache/queue a number of events before calling the API and then send them all at once or should I simply report them as they happen? I'd like to track a lot of events, say 50 or so per a minute, but I don't want to completely overwhelm...

How do you make flash access hyperlinks for knowing where the user wanted to navigate?

In this web-app, when you supply this link: http://listen.grooveshark.com/#/playlist/Mellow%5FMagic/15982097, it navigates directly to that playlist. How do you do that in flash? ...

Call a method in a WPF app from Flash swf or exe

I'm working on a WPF app that needs to host some Flash content. The plan is create an exe from the Flash content, then invoke the exe from the WPF app (the option of hosting swf content inside a WebBrowser control was discussed but deemed to be too slow for this application). Is it possible for the Flash application to call a method in...

Best flash upload widget

I'm looking to upgrade the upload function of a web app of mine from a fairly simple PHP + javascript uploader to a flash uploader. I've been looking into swfupload from swfupload.org. I'm wondering if anyone has any experience with that library, or if someone can recommend a good pre-built flash upload widget. I don't mind if it req...

Is there a way to programatically turn text into a circle in actionscript?

Has anyone here come up with an elegant way to take a piece of text and make it go around the edge of a line that is warped? (specifically, circular, but I'm sure once it's following the line, the shape is not relevant). I can't find a good resource for how to do this. I assume I'll need to create separate movie clips for each character ...

Referencing dynamically loaded content with Actionscript 2

I currently have a single SWF file that dynamically loads other SWF files with a movieclip named 'container'. However, I am unable to manipulate anything within the dynamically loaded SWF from the main file. I'm simply loading the file with this: _root.container.loadMovie("home.swf",0); I tried getting the loaded SWF to play by usin...

Issues rendering image in flash via Context.Response.Write C# asp.

I am having an issue rendering images in flash via a character array. I am sending it from a webhandler via Context.Response.Write as a Base64CharacterArray. It functions 100% properly in a windows environment, however when using a Mac the image data is not retrieved correctly causing the image to appear incorrectly. It does not affec...

Actionscript 3.0 Color Interpolation Question

In Actionscript 3.0, the Color class has a method called interpolateColor. It seems strange to me, but the method takes two unsigned integers for the colors as opposed to two instances of Color. Additionally, it returns an unsigned integer for the resultant color. Anyhow, I don't see anything in the API for converting a Color to an un...

use flash capture webcam image?

Is there any open source flash utility that i can embed on a webpage and use it to capture user webcam image or short duration clips and do "POST" to my server servlet ? i do not looking for streaming video and so i do not need red5 or flash server. can you folks elaborate ...? ...

flash + phone camera

for website that embed flash to capture camera (red5..etc). may i know is there any handset that currently support flash and can used to capture image from handset camera? ...

Adding a node to an xml trace causes no data to appear

I have this actionscript so far: var xmlLoader:URLLoader = new URLLoader(); var xmlData:XML = new XML(); xmlLoader.addEventListener(Event.COMPLETE, LoadXML); xmlLoader.load(new URLRequest("nav.xml")); function LoadXML(e:Event):void { xmlData = new XML(e.target.data); ParseBooks(xmlData); } function ParseBooks(bookInput:XML):void {...

Jquery Make Flash 100% fit to DIV

Hi Folks, I've managed to rewrite a script wich makes Images resize to 100% width of their parent Div Container To a Script that now lets Swf embed objects resize (Original Image resize Script by Oliver Boermans ollicle.c o m/eg/jquery/imagefit/ ) All i did is replaced the img with an "embed" in all lines where the parameters of the im...

Why doesn't variable img increase?

I can upload image but the sprite name remains pict1 each time I upload another image. Why doesn't imgVal function increase? function imgVal() { img += 1; trace("image: pict" + img); } imgVal(); _fla.lights_mc.visible=false; _fla.lights_mc.stop(); _fla.pre_mc.fill_mc.stop(); _fla.pre_mc.visible=fals...