A Flash Developer Resource Site

Search:

Type: Posts; User: dkmobi

Page 1 of 2 1 2

Search: Search took 0.07 seconds.

  1. Well maybe it's a little bit late no what the...

    Well maybe it's a little bit late no what the hell it's damn late.

    Anyway I think I have a solution which I think it might work for the most cases.


    I split the text on whitespace because...
  2. Replies
    8
    Views
    18,227

    hi LukewarmSteak Yeah my problem was actually...

    hi LukewarmSteak

    Yeah my problem was actually solved. I forgot to mark it.

    And to your problem:

    I had the same problem too when I wanted to create a working preloader.

    This is how I did...
  3. Replies
    6
    Views
    531

    Hi 5TonsOfFlax I solved the problem but I'm...

    Hi 5TonsOfFlax

    I solved the problem but I'm not sure if you meant that way.

    I used the DisplayItem as actual Objects and now it works.

    Instead of

    this.displayitems = new DisplayItem();...
  4. Replies
    6
    Views
    531

    I put an EnterFrame Event for the first...

    I put an EnterFrame Event for the first movieclip.



    for(var a:int = 1; a <= 3; a++){
    var charName:String = "mc_btn" + String(a);
    var ClassReference:Class = getDefinitionByName(charName) as...
  5. Replies
    6
    Views
    531

    Sorry forgot to change there. Now the code should...

    Sorry forgot to change there. Now the code should be correct.
  6. Replies
    6
    Views
    531

    [RESOLVED] OOP Problem

    What I wanna do is I want to add button with a class file and then if you click on it a picture would display.

    The problem is here only the last button is working.

    Let me explain:

    1. With...
  7. gotoAndStop Bug - This Movieclip is cursed!

    Hello there

    So somehow the gotoAndStop Method won't work properly.

    My flash has 14 frames.

    On 1 - 4 Frame there's nothing.
    5 - 9 Frame there is a movieclip.
    10 - 14 Frame there is...
  8. hi Gathanderoth The new erorrs are about...

    hi Gathanderoth

    The new erorrs are about defining the datatype.

    You can't define the datatype of a variable new(maybe possible if you can delete it and declare it new),

    For instance


    var...
  9. Replies
    11
    Views
    854

    oops. I missed that Awoogamuffin already posted a...

    oops. I missed that Awoogamuffin already posted a solution using the Enter_Frame Event.

    What I did differently is I use nextFrame() instead of play().

    But the problematic here is the code...
  10. Yes that's right. Pls post the error message and...

    Yes that's right. Pls post the error message and the code that's related to.
  11. The solution is exactly the same as in my first...

    The solution is exactly the same as in my first post to your other duplicate definition problem.
  12. You declare the variable 2 times again here. ...

    You declare the variable 2 times again here.

    scene 1

    for(var i:int = 0; i < len; i++){

    scene 2

    for(var i:uint = 0; i < pointsPicked; i++) {
  13. Replies
    11
    Views
    854

    I think you have to use the Enter_Frame Event. I...

    I think you have to use the Enter_Frame Event. I got the same problem when I tried to create a button with the same behaviour. I solved it with Enter_Frame Event.

    Here's the class file of the...
  14. hi gathaneroth It's easier for us if you just...

    hi gathaneroth

    It's easier for us if you just post the specific code which causes the problem if you happen to know.

    And delete any unnecessary code.

    This makes it easier to understand and...
  15. Replies
    2
    Views
    4,509

    hi sixBlade2 Thank you very much. It works...

    hi sixBlade2

    Thank you very much. It works now.

    What a dump mistake made by me.
  16. I don't know exactly what you wanna do but from...

    I don't know exactly what you wanna do but from my POV you define those variable twice.

    Maybe something like this

    in scene 1

    var somevar:String = "var of scene 1";

    in scene 2
  17. Replies
    2
    Views
    4,509

    [RESOLVED] Get Child MovieClip

    Hello there,

    I've got a problem accessing a child movieclip of a movieclip.

    So I play the movieclip with this code


    mc.play();

    to play the movieclip in it I can use this code
  18. With ...

    With


    evt.target.parent.removeEventListener(MouseEvent.CLICK, class2Function)

    or



    evt.target.parent.removeEventListener(evt.type, arguments.callee);
  19. hi neznein9 Sadly it doesn't work. edit: ...

    hi neznein9

    Sadly it doesn't work.

    edit:

    Ok I found the source of the problem.

    It doesn't work because the buttons(btn1(mc)) had a mc in it.
  20. hi sstalder thanks for answering. I can't...

    hi sstalder

    thanks for answering.

    I can't see a big difference in your example.

    You assigned the movieclip button2 to the class button2.

    I didn't do that because I have 8 movieclips which...
  21. [RESOLVED] removeEventListener in another class

    hi

    I think it's a simple problem but I can't figure it out. So that's how it looks.


    package {

    import flash.display.MovieClip;
    import flash.events.MouseEvent;
  22. Replies
    6
    Views
    1,329

    I have a class file for a movieclip. If I put...

    I have a class file for a movieclip.

    If I put the class file in a subfolder I have to rename the package directive.

    Then my question is, is it possible to put the class file outside of the...
  23. Replies
    6
    Views
    1,329

    hmm... Then is it possible to put the class...

    hmm...

    Then is it possible to put the class file in another folder(not subfolder)?
  24. Replies
    6
    Views
    1,329

    Assign movieclip in SWFLoader to a class file

    Hi guys

    I'm loading a SWF-File containing a movieclip(testButton).


    <mx:SWFLoader id="testSWF" x="0" y="0" complete="testSWFHandler(event)" source="assets/testButton.swf"/>

    I want to assign...
  25. Replies
    2
    Views
    408

    Hi cancerinform Thank you very much. Now it...

    Hi cancerinform

    Thank you very much. Now it works perfectly.
Results 1 to 25 of 47
Page 1 of 2 1 2




Click Here to Expand Forum to Full Width

HTML5 Development Center