<script type="text/javascript" src="swfobject/swfobject.js"></script>
<script language="javascript" >
swfobject.registerObject("myId", "10.0.0");
function execute(){
return a;
}
</script>
<body style="margin:0">
<object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="500">
<param name="movie...
Hi, I'm having some difficulty getting my cross domain policy to work.
I have an swf at http://www.server.com/ that loads in XML and other files. I want to be able to embed that swf in other HTML pages (YouTube stylee) that aren't in the same domain. It works fine when access via it's local server http://www.server.com/my.swf or http://w...
Hi,
I am developing an application in flex in which I need to calculate checksum of different files. I would like to know if there is a direct method in actionscript to calculate that or do I have to go for any external libraries?
Thanks in advance :)
...
Hi guys,,,
I was wondering if there are anyways to get the fixed size swf file when I build my AS3 only project in Flex environment. I can't use scaleMode="noScale" since my swf is very small. I don't want it expand it to full browser winder either. Are there anyways to do it? Thanks for the help!
...
How can I set up a project in Flash Builder for creating a collection of classes that is not an application by itself? When creating an Actionscript project it forces having a main application file, as well as sets up the whole bin-debug folder and such.
For instance, if you wanted to start coding something like Tweener, Papervision, or...
I am using a titleWindow as a container for a popup (flex 3.5). I want to set the title of the window using a variable. Any idea, how do we do that?
...
I need to make an item draggable (dragable?) Sorry if my terminology is not right!
I have a class where I will store variable and do calculations:
package Classes
{
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class PrintItem extends MovieClip
{
public var imageLoader:Loade...
Is it possible to set a listener or something like it to run a function once the flash movie itself has finished loading?
So something like:
When this flash movie has finished loading, activate function.
Btw. I'm not trying to do this with a swf file loaded into another flash movie. I need this to be done by the movie once it self has ...
I have two FLA files, call them MAP.fla and ANI.fla, that I have to merge. One way I tried was to load the ANI.swf in MAP.swf during runtime using the normal way of doing it, using Loader and URLRequest. However, when I try to run it, flash detects errors about methods I have included in ANI.swf.
I do know that the Loader and URLRequest...
I'm trying to get an actionscript code used in a Flash CS5 example and make a ActionScript class using it in Flash Builder. And I'm trying to understand the _root property.
This page have a brief explanation about the _root property, but it is too vague.
My question is: What is the "_root" that exists only when the ActionScript is plac...
I'm an experienced AS developer, but this is something very basic about flex that I can't figure out. In the class below, I'm not sure why the function imageLoaded would not be executed when the image loads a url. Is there a race condition happening here? The application is completely loaded by the time this object is created and setPict...
Hi,
Is there a way to add text programmatically in as3 to a Sprite or a MovieClip without using the class TextField
TextField inherits from InteractiveObject which is kind of heavy for what I want to do: just display text (i.e. I don't want to interact with the text).
Note: I'm aware that there is a property selectable to make the te...
This is making me feel stupid :-). Say I start at a leaf node, and I traverse up the tree by using .parent(). I need an exit condition once it hits root. At the moment, I'm using parent.@name != "root", where name is just an attribute, but shouldn't I be able to check the type of element as well? How? Also, is there another way to en...
Hi guys..I was wondering which IDE choice you flash developer use to write the code....I use Flex Builder for my AS3 only project so the code below will display nicely with coloring keywords. I wanted to know if there are better choices there...Also, does flash developer do the AS3 programming only? Do they do graphic design at all?
Tha...
In the documentation for DisplayObject, it states that the width and height of the DisplayObject can not be changed if it is empty. Why is this restriction necessary? In every other framework I have used, you can resize containers that are empty. What is the reason for this madness?
...
I have multiple nested movieclip in its own different movieclip, and i would like to arrange them accordingly. My idea was to use the localToGlobal function. I can get the position of the MC on stage, but how do I use the function and place the MC based on stage?
cAPos = new Point(objectA.y);
newcAPos = objectA.localToGlobal(cAPos);
cB...
I've created simple swf with interface:
public class Test extends MovieClip implements ITest
{
public function Test()
{
Security.allowDomain("*");
Security.allowInsecureDomain("*");
}
public function speak(str):String
{
trace(str);
return "yeah";
}
}
ITest:
public interface IT...
Hi
I have a application developed in ActionScript 2 which has dragging/dropping activity. which works fine. I used following to test dropping
dropObject.hitTest(_root._xmouse, _root._ymouse, true) //if true, drop currently dragging object
Problem occurs when I put this SWF in my Flex application SWFLoader container. dragging dosen't ...
Can I use the webservice wizards in Flash Builder 4 to send a json encoded object...not as a string but as type application/json; charset=UTF-8
...
Hi everyone,
I want to know, Is there any way to handle or control the shockwave objects in flash by using 'as3'? I know this is possible in 'Director' by using 'Lingo'. But I am not able to find any way or any articles from where i can get some idea about this. In the director, I've seen there is way to set some properties like camera ...