Search:
Type: Posts; User: SamuraiDave
Search:
Search took 0.03 seconds.
-
There are no components in the SWF I'm trying to load and play (the AVM1 movie)...but it still messes up and plays differently than when it is stand alone.
I will try to create a small example to...
-
Hmm, this is not exactly the problem I'm talking about.
When loading an AVM1 movie into an AVM2 movie, the AVM1 movie's _root, refers to the AVM1 movie root and not AVM2 movie root, thus it is self...
-
The concept is easy. Build a container swf which loads in another SWF from a hard coded link.
This allows you to distribute the container, which pulls in whatever is at the hard coded URL - thus...
-
Since I'm coding in AS3 I need to dynamically add components to my stage.
How can I do this?
Say I have a component in the library with the linkage class com.david.Tree;
How can I do...
-
I'm not sure if this is possible, but I'd like to somehow put 1 Sprite into 2 displayObjectContainers. Here is an example:
var image:Sprite = new Image();
var containerA:Sprite = new...
-
OK, that's awesome, I think it all just clicked now :)
Cool that the objects don't really know about each other, apart from the events :) The main purpose from what I now see, is preserving...
-
What is a typical case of this? I can imagine something like this:
class someClass {
public function someClass(){
var fooInstance:Foo = new Foo();
...
-
Thanks that helps...I can see now how it helps when adding and removing objects from listening, without having to write new code for handling the adding and removing to a list.....
however, the...
-
I didn't explain what I meant clearly enough, so hopefully this will...
Imagine I'm making a game....a "game over" event can take place.
This happens when a playerObject has a y property above...
-
Why should I use events?
I mean, in order to use events, I have to 1. setup an event dispatcher, 2.add an event listener to an object and 3. have a listener function set up.
Could I not achieve...
-
Thanks for the reply, I just thought of using static the same time you posted :)
I also posted some source code to illustrate the point (which you have now confirmed as a viable method).
Cheers...
-
I haven't been able to test yet, but I believe the way to achieve what I wanted is to declare any variables or functions I want access to as "static".
For example below, I have set the function...
-
I want to create a Class containing functions (similar to the Math class).
Also, like the Math class, I want it to be available everywhere.
For example, if I type
Math.floor(myNumber);
It...
-
I tried casting the information i get back in event.target to movieclip and then removing and it worked.
I'm not sure it's actually removing the reference from memory though....
Here is the code:...
-
Hi everyone,
I'm new to AS3, and I'd like to remove a movieclip instance when it reaches its last frame (from the displaylist and memory).
Firstly, I tried putting code in the last frame of the...
-
OK, I figured it out....so here is how it's done (Thanks to Keith on Bit-101 for this info).
package {
import flash.display.Sprite;
public class App extends Sprite {
...
-
Hi Everyone,
I've recently switched from using Flash CS3 to compile my programs, to the free Flex SDK and am using MXMLC to compile AS files.
But, I have a question...
I have some movieclips...
-
Hi,
I'm designing actionscript classes for a 3D engine.
At the moment I have a class called Object3D which contains all the 3D coordinates of a 3D object.
I also have a class called Face3D....
-
Every time I try to put more than one class into an external package I get an error at runtime:
5006: An ActionScript file can not have more than one externally visible definition:...
-
I'm guessing you've also recently made the move from AS2 to AS3?
What I find funny is that some of the more complicated things tend to be similar to AS2....However, the "simple" things like...
-
Where are you keeping/calling the code from please Inquizard?
I'm wondering if it's better for me to have keep it in a class file or somewhere else?
Thanks very much for all the help by the way...
-
OK. Thanks that is a big help. My code now looks like this and there is no problem with dragging really fast:
package {
import flash.display.MovieClip;
import flash.events.MouseEvent;
...
-
Hi,
I'm trying to create draggable movieclips, and I was wondering what the best way to do that would be?
At the moment I have a class named draggableClip set as the document class.
The class is...
-
Thanks very much for such a fast reply, that did the trick! :D
-
OK, this is my first attempt at coding in AS3. :eek:
I have created a class (within a package) and added it as the documentClass (within the stage properties in Flash CS3).
When I check the...
|
Click Here to Expand Forum to Full Width
|