dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: SamuraiDave

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    347

    There are no components in the SWF I'm trying to...

    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...
  2. Replies
    4
    Views
    347

    Re

    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...
  3. Replies
    4
    Views
    347

    How do GameJacket do version control?

    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...
  4. Referencing swc (components) from the library

    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...
  5. Replies
    1
    Views
    446

    1 Sprite, 2 DisplayObjectContainers?

    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...
  6. Replies
    8
    Views
    531

    Cool!

    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...
  7. Replies
    8
    Views
    531

    more questions...

    What is a typical case of this? I can imagine something like this:


    class someClass {

    public function someClass(){

    var fooInstance:Foo = new Foo();
    ...
  8. Replies
    8
    Views
    531

    Thanks that helps...I can see now how it helps...

    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...
  9. Replies
    8
    Views
    531

    Perhaps...

    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...
  10. Replies
    8
    Views
    531

    Why should I use Events?

    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...
  11. Thanks for the reply, I just thought of using...

    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...
  12. Hopefully this works...

    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...
  13. Math class....available everywhere??? (scope)

    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...
  14. Replies
    1
    Views
    3,724

    this works...

    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:...
  15. Replies
    1
    Views
    3,724

    how do I remove a movieclip instance?

    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...
  16. Figured it out!

    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 {
    ...
  17. MXMLC / AS3 importing movieclip assets???

    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...
  18. [F8] help with class design...(for a 3D engine)

    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....
  19. how do i put more than 1 class into a package?

    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:...
  20. Replies
    7
    Views
    1,240

    I'm guessing you've also recently made the move...

    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...
  21. Replies
    7
    Views
    1,240

    Where are you keeping/calling the code from...

    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...
  22. Replies
    7
    Views
    1,240

    OK. Thanks that is a big help. My code now looks...

    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;
    ...
  23. Replies
    7
    Views
    1,240

    draggable movieclips

    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...
  24. Thanks very much for such a fast reply, that did...

    Thanks very much for such a fast reply, that did the trick! :D
  25. First AS3 file...ReferenceError: Error #1065: Variable draggableClip is not defined.

    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...
Results 1 to 25 of 45
Page 1 of 2 1 2




Click Here to Expand Forum to Full Width

HTML5 Development Center