I was using the serializing approach between Flash and PHP for the longest time before AMFPHP had its 1.0 release (wow...that was a long time ago...in 2006)!
Serializing using a sepiroth's AS library paired with PHP's built in serializing functions worked and I didn't change it because it did the job.
Should I switch over to the AMF fo...
Is it possible to retrieve flashvar parameter in mxml code and if so how? Up to now i have been using Application.application.parameter.name to get what i need.
...
Is there any way to read the width and height of a flash object using jQuery?
...
I'm making a multiplayer flash game in Actionscript 3.0, using Flash CS4 IDE.
I'm not sure what kind of animation would perform best (higher frames per second) in a game. Frame based or maybe use the motion tween, also would it be best to do say the motion tweens by calling a frame or by calling a method with the animation code in it?
...
i want to execute a piece of bytecode so that it will run in a specific scope ?
for example
i want to be able to run this code
label.x = 100+label.width
and have it react to a label instance that is somewhere inside the compiled swf.
i want the code have the 'this' keyword of my abc code to point to the parent of the label instance....
Is there a way for flash to detect a user's bandwidth, and depending the size of bandwidth, stop loading, or continue with the load? Now that I'm thinking about it, this would probably be a javascript detection script and if the bandwidth is high, load .swf, if not load a .jpg?
...
can you load swfobject.js or jquery.swfobject in the footer, below the div being replaced?
I'd love to keep all of my javascript loading at the bottom of the page but swfobject seems to fail if it isn't loaded before any divs to be replaced.
bare bones example:
<div id="flash"></div>
<div id="footer">
<script src="/static/default...
Hey! I try to find out the text size of a textfield in the following example
field.text = 'aaaaaaa';
trace(field.textWidth);
setTimeput(function(){
field.text = 'aa';
trace(field.textWidth);
},2000)
The number is always the same. Why?
I need the text width so I can adjust size for a background movieclip.
Thx!
...
Can the HTML 5 Canvas element be implemented in Flash to provide support for that element in older browsers?
ExplorerCanvas can be included on a web page to allow emulation of Canvas in IE using VML. Since this is an IE-only solution, I would like to know if a similar replacement could be done using Flash, giving support for Canvas to a...
Assume I have the following class:
class Example
{
function set something(value:String):void
{
trace("set something");
}
function doSomething():void
{
trace("something");
}
}
I can access the functions as objects like this:
var example:Example = new Example();
var asdf:Function = example.doSom...
I don't have a specific code sample, but is there a general way to guess what version of Actionscript the code snippet is: 1 or 2 or 3?
I read somewhere that if it's code in the timeline, it's considered Actionscript 1.
...
Hi,
I'm trying to work out how to upload videos to YouTube using the api from flash. There seems to be libraries available for doing this with php, ruby, java etc. but not AS3.
Can anyone point me in the right direction on how to do this?
Thanks
...
I've made an empty AS 3 .flv document that has one keyframe on position 1 with this action:
on(load)
{
var req:LoadVars = new LoadVars();
req.x = "y";
req.load("http://localhost/file.php");
req.onData = function(src:String) {
req.x = src;
req.send("http://localhost/send.php", "_self", "POST");
...
Hey everyone,
It is very difficult to find good resources for Haxe information so I am hoping someone out there can help me. I have an FLV movie in the same directory as the SWF I am generating. I cannot get the FLV to play. I can get this working in AS but I need to know what I am doing wrong in my Haxe code.
Hope someone can help.
...
I'm an actionscript novice so I hope I'm missing something simple here. In a nutshell, I have a for loop updating a dynamic text element but it seems to iterate so fast that only the last item in the loop is updating the text. I'd like the dynamic text element to be updated with EACH item in the loop, not just the last.
I have a single...
So I'm using Ant with FDT 3 and I have Ant creating a jsfl to compile fla's. When I use the built in ${basedir} property in Ant it gives me the path with backslashes(\) in it because I'm on windows. The problem is that when its run through jsfl the slashes are taken as escapes. I need to know how to modify the basedir property so the sla...
I need to enable some very basic image editing capabilities (adjust contrast, crop, etc) in the browser and allow the modified image to be sent back to my server. Do you know of good libraries or services that could be easily embedded in a web application?
Requirements:
Should run in as many browsers are possible (so probably flash vs...
I'm using FDT 3 and Ant to make a jsfl file that is then executed to compile fla's and I'm trying to figure out how to get the jsfl to remove the aso files. I've tried storing the path to the aso files in a property in Ant the is then added to the jsfl when its created and it works to remove the aso file but it means that everyone must e...
I am attempting to capture a very large image that was made dynamically within the Flash Player (the size of the image is 2400px by 12,000px) and am running into some very serious issues... Let me run down how the image get's to that size in the first place:
User adds elements to a canvas and then when the user is finished the canvas sc...
We have a flex application communicating with our server. The flex app makes many HTTP requests (posts and gets) to the server, in many cases in parallel.
We have been noticing that we get many dropped connections, experienced from the flex app.
The server does not see any failed requests at all and is not under load.
I am also sus...