Okay, so I have a Flash CS3 (+ AS3) program which is loading another flash program (called "pacman_main.swf" in this example). I've determined this is a rather old SWF, as it is made in Flash 5 and AS1 (yippee!).
I want the parent SWF (a.k.a. the wrapper) to be able to access the variables, specifically the score, of the child SWFG (a.k...
If I am on a flash heavy website, and I clear my browser cache, the site continues to function.
Chances are the entire swf is not loaded into flash's active memory at the time I clear the browser cache (especially for sites that use large rsl libraries such as papervision3d). I can verify this with flash-builder's profiling tools.
So,...
I have an image mySprite.png. The image is a 5x5 grid of 32x32 px sprites. This image has been loaded into the project's library.
Assuming I have a render() function inside a class, how would this class draw itself as a single sprite from this sprite sheet resource?
...
Hello, I'm having problem with listening to an event dispatched from a child class, and I don't know why?
I have to classes:
class 1, witch draws a rectangle and dispatches a custom Event
package
{
import flash.display.;
import flash.events.;
import flash.text.*;
public class clase1 extends Sprite
{
private var labelField...
Is it possible (and if so recommended) to use Flex remoting (mx.rpc)classes in an actionscript only project?
I'm creating an application with login and registration to a php back end using AMFphp.
As an option I was wondering if it made sense to take advantage of the mx.rpc flex classes.
...
In my flex app there are a few custom components. I want to create instance of these components at runtime and assign them properties by reading in a config file.
I know how to read xml and instantiate components, however my question is about being able
to get the type of the component from the xml attribute and then creating an instanc...
Could someone expand and clarify the different logical instantiations of objects in actionscript? So far it seems there are 3 layers of instantiations, for lack of a better term.
The first one is declaring a variable/type.
Next is instantiating that variable with something solid in the code, like a method or function? Is this jus...
If my understanding of Flex is correct, skins in Flex are just DisplayObjects that are added as children to UIComponents to create the visual representation of the object. But if my understanding of the Flash event model is correct, if there is a non-transparent DisplayObject on top of another, mouse events will go to the topmost Display...
I searched it for while but didn't find anything like printf in Action Script.
That makes it a little difficult to generate formated strings.
...
Hi
I have Buttons which I have rotated vertically within a Canvas, that is working fine. The problem occurs, when the user resizes the window to a small size a vertical scroll bar appears, I would rather have each button squashed upto a smaller size.
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="40" maxWidth="40" xmlns:m...
I have a custom ActionScript component that I'm using in a Flex application (Flex 3.3, ActionScript 3). This component contains an Image control whose visibility is set dynamically based on a property of the data element provided to the component.
The problem is that even when I set the image to be visible, it will not render onscreen. ...
is there a straightforward way to draw 3d lines with graphics.lineTo()/moveTo()?
I havent run into anytihng. both of these methods only use x/y for their coordinates.
Im using the 'z' coordinate on my sprites and want to connect them with lines...
help is appreciated
...
So the easiest way to preload in as3 would be to use an external .swf to load the main .swf. Since I will be distributing my game around the internet I can only use one .swf. What would be the best way to do this? Can I still use the external method but somehow combine the finished product into one .swf?
...
If I have rolled my own RSL, and I want to use it in my pure as3 apps, is there documentation or an example of how to do this?
Or do I need to traverse the flex source code to figure out what adobe's engineers have done?
...
I'm trying to understand how this piece of code from Keith Peter's Advanced Actionscript works. Essentially there's a for loop going on to split key/value pairs seperated by :. Here's the code:
var definition:Object = new Object();
for(var i = 0;i < tokens.length; i++)
{
var key:String = tokens[i].split(":")[0];
var val:String...
Hello, I am trying to load data from an XML file into a flash object. When making the flash object in actionscript it looks like this:
var presentationObj:Object = {
casestudies: {
audi: {
titleStr: 'Audi',
placement: 'study',
slides:{
1:{ src:'img/page1.jpg', group:'img' },
2:{ src:'img/page2.jpg', group:'img' }
}
}
}
...
Hello,
I'm trying to load an external and local XML file to read its data, but I don't really know how to detect when the file has been loaded, I'm just able to open the broser window,
here is what I have done
package {
import flash.display.Sprite;
import flash.events.;
import flash.net.;
import flash.net.URLRequest;
pu...
I'd like to connect a Flash Player instance (AMF3) to a Java LocalConnection. I know how to implement the AMF3 spec, since I've done a lot of work with Red5, but I'm unsure how to navigate building the actual LocalConnection interface. There is C code provided here, but I can't speak C to save my life. Does anyone know of a Java implemen...
I know this is a simple question, but I haven't worked much with ActionScript...
I know how to create a text input field with Flash. I can create it on the stage and give it an instance name.
What is the code to capture the value of a text input field and display that value in a dynamic text field? How does this process differ between ...
Is there a way to create embedded "pure as3" swf fonts using compc (without the flex framework integration)? If I embed a font like this in my as3:
package fonts
{
import flash.display.Sprite;
import flash.text.Font;
public class Helvetica extends Sprite
{
[Embed(source='Helvetica.otf', fontName='Helvetica')]
public static ...