flash

away3d remove from memory

Hello, I am building a website which loads some collada objects for each area. But I couldn't manage to clean the memory. It seems impossible to kill the objects. I've found some samples implementing destroy() methods for away3d internal classes, but they're not working as well. I really don't know if this is a problem with player's g...

Flash AS3 ExternalInterface call to function inside jQuery document ready

From a button in Flash I just want to call a function written in jQuery.When I place the function outside jQuery's $(document).ready it works fine: *btw I use SWFObject to embed Flash. AS3: import flash.external.ExternalInterface; function test_fnc(event:Event):void { ExternalInterface.call("jsFunction", "hello world"); } test_mc.a...

EnterFrame tween calculation returning unexpected result

I have the following bit of code: protected function onEnterFrame(e:Event):void { var diff:Number; // position map/tree if (x != _targetX) { diff = _targetX - x; // get the difference x += diff * 0.2; // tween x position diff = diff < 0 ? -diff : diff; // get absolute value if (diff < 0.05) ...

Map Java architecture stack to Microsoft

Coming from Java background, I am now working in a Microsoft shop where we use MS technologies only. Can you please map this architecture stack to the MS world? I am not looking for equivalents to specific layers of the stack, but a proven end-to-end stack that is known to work in the real world: Thanks! Architecture Stack: Hibernate S...

can a flash object be exported to a java application ?

Hi all, Is it possible to play a Flash object/file into a jframe < netbeans > / any java application ? If so , how ? ...

Vidéo not displayed on Mozilla and IE7, but works on chrome

Hi I have in my page a movie that i call with : <object width="500" height="405"><param value="http://www.youtube.com/v/_wKFwii6LF0&amp;amp;hl=fr_FR&amp;amp;fs=1&amp;amp;color1=0x2b405b&amp;amp;color2=0x6b8ab6&amp;amp;border=1" name="movie"></object> In Chrome it is displayd, in IE and Mozilla, there is an error...How can i debug... ...

AJAX call that returns flash video

Hi I have an AJAX web service call that returns a chunk of HTML that I then apply to a DIV element on my page. This works fine for any html element except a flash video which comes up with 'Movie not loaded'. I've double-checked the html that is being returned and it's all fine, and it works if I don't use AJAX, but when I use AJAX an...

Questions about javascript and flash

Hi, I have a website to develop for a company and, in their instructions, the website must work even the javascript is disabled. Before beginning the development, I visited this company's main website and it works even the javascript is turned off. But, they are using Flash on their main page and it still run even javascript is turned of...

Problems with fetching variable from flash with javascript in IE8

I'm creating a quiz and as a timer in the quiz I have a flash movie (an animated clock). I poll the clock every second to see if the time for the quiz has run out. The code for this functionality looks like this: (simplified) $(window).load(function() { var flashMovie = getFlashMovieObject(flashId); var timeElapsed = flashMovie...

how to load a movie at the end of another movie clip in AS3?

how to load a movie[.swf] at the end of another movie[.swf] in AS3? thanks ...

Flash CS4 <b> tag in with htmlText

Wow, this one is really weird. I have the following setup: Two textfields on the stage with Arial normal and Arial bold, both embedded. I then have another textfield which I am setting like so: tb.htmlText = "Test <b>Test</b>"; For some reason, the bold text is not displaying as bold, but as regular weight. I have tried embedding th...

How to build a game entity list custom data structure

I'm writing a game in Flash (player 10) and need to come up with a good way to manage the list of objects/entities/actors in the game (player character, obstacles, enemies, etc.). It has these requirements: Iterable Objects addable and removable while iterating. Argument to remove() function would be the object to remove, not an index...

Simple flash form, SWF size problem, AS3 and CS4

Hello, I want to do a little form in AS3, with CS4. So I create a new fla, I drop a ComboBox, an InputText, a CheckBox and a Button and the size of the binary (SWF) is 42KB (compressed). It is too much! I want to do a landing page and 42KB just for 4 components is too much. I need to cut the size, I can't stop using any of the componen...

How to create a vertical color gradient (or any other angle besides a flat horizontal gradient)

Hey everyone, my first time trying to draw a multi-color gradient in actionscript 3. So I got this code from the help docs, but I can't seem to get a vertical gradient, whatever formula or number I use for rotate, it stays stuck on the default horizontal gradient :( You can view my gradient here My Code: You can see in the traces the...

Method for exporting drawn flash/flex UIComponent to vector based print file

Hi, I am creating a flex application where I am using the built in graphics package of flex 3 to draw shapes and things to a UIComponent. I want to be able to export this vector image UIComponent to a vector based file, pdf, eps etc. Are there any tools, libraries, or methods for doing so? I looked at AlivePDF - which works very sl...

counter and displaylist AS3

How can I connect my counter to my display list?I've got a counter and a displaylist working, but I need help with everything in between. Try to explain I finished a Snowflake tutorial. The snowballs are children that are called to the stage. When connected to a dynamic variable, they move around and look like snow. I want my counter to...

How many streams are possible?

I'm looking into the possibility in creating a multi person chat (a conference you could say) with Flash and Flash Media Server. My question is: how many live streams is possible (given the users have connections with at least 2mbps up/down). Obviously 2 is ok, but would say 5 work? Does anyone know of any example of this? Thank you. ...

AxShockwaveFlash.CallFunction() Help (VB 2008)

I'm trying to use CallFunction() to call a function inside a flash file, but no matter what I do it throws a HRESULT E_FAIL error. Any clues why? My flash version is 10 if you need it. ...

How can I delete something from my Flash template?

I want to edit some templates but the problem is when I am trying to delete the blue bar the result is the text will not be shown. Here is a picture of what I have: I don't know where to delete the blue bar (Graphics, sprite, or image?) I want to remove that bar and the text is the only one to be shown and of course I can edit the tex...

Why does flex builder insist on a Main class in the root of the source folder?

Why does FlexBuilder insist on a main class in the root of the source folder? By insist I mean that if I create an Actionscript project called MainTest. A file called MainTest.as will be placed in the root of the src folder. if I now create a package/folder called some/package and place the MainTest.as in it (and adjust the package s...