dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: Muhammad1

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    2,232

    Yep, hopefully.

    Yep, hopefully.
  2. Replies
    7
    Views
    2,232

    in the listener function you can write something...

    in the listener function you can write something like e.target.text_array[0];
    assuming "e" refers to the event object which is passed to the listener as an argument.
  3. Replies
    7
    Views
    2,232

    Instead of doing this: this['sp'+i] =...

    Instead of doing this:
    <code>
    this['sp'+i] = new Sprite();
    </code>
    why don't you do something like this:
    <code>
    var sprite_array = new Array();
    sprite_array[0]= new Sprite();
    </code>
  4. You can listen to Keyboard presses in Javascript...

    You can listen to Keyboard presses in Javascript and call a function inside flash. But the problem will be that it won't put your flash movie on focus. But if its just a slide show, then you'll...
  5. Replies
    6
    Views
    995

    I'm doing this in one of my projects:...

    I'm doing this in one of my projects: www.muhammadbinyusrat.com/lab/Ayesha/AnnotationMaker/ (The boxes don't go out of the bounds of stage even when the stage is resized)



    startDrag(false,new...
  6. Thread: JPGEncoder

    by Muhammad1
    Replies
    14
    Views
    2,084

    You're welcome.

    You're welcome.
  7. Thread: JPGEncoder

    by Muhammad1
    Replies
    14
    Views
    2,084

    Hi, Ok I've created a class for you. You just...

    Hi,

    Ok I've created a class for you. You just have to instanciate it and call its function that snaps and then simply tell it the URL to the PHP page where it needs to be departed. I have attached...
  8. Your code simply keeps on disabling the buttons....

    Your code simply keeps on disabling the buttons. Why not enable other buttons when the selected one is disabled? Something like this:


    function EnableAllButtons():void{
    happy_btn.mouseEnabled =...
  9. Replies
    2
    Views
    434

    Use setInterval instead. setInterval simply...

    Use setInterval instead.

    setInterval simply keeps calling a function after the interval you tell it.

    For instance,


    function myfunc():void{
    trace("boom!");
    }
  10. Thread: JPGEncoder

    by Muhammad1
    Replies
    14
    Views
    2,084

    Well, google does have solutions. Anyway, ...

    Well, google does have solutions.

    Anyway,
    The image is of 0 bytes probably because the movie clip you're trying to "draw" is empty.

    Also, its "JPEGEncoder" not "jpgEncoder."
    I have never...
  11. Thread: JPGEncoder

    by Muhammad1
    Replies
    14
    Views
    2,084

    Yes, anyway. billiondegreedr, this is how I...

    Yes, anyway. billiondegreedr, this is how I export JPEG from Flash:

    1. use BitmapData.draw() method to get a snapshot of the movieclip you want to take a snap of.

    2. Encode it using the...
  12. Thread: JPGEncoder

    by Muhammad1
    Replies
    14
    Views
    2,084

    That code wont let anyone upload a malicious code...

    That code wont let anyone upload a malicious code as it is going to save it with a "jpg" extension and a PHP file wont run if it has a jpg extension.
  13. Thread: JPGEncoder

    by Muhammad1
    Replies
    14
    Views
    2,084

    Create a temporary folder in the folder where you...

    Create a temporary folder in the folder where you have your t-shirt designer and call it "temp"

    Open your jpeg_encoder_download.php and replace its contents with this:



    <?php

    if ( isset (...
  14. P.S: Adding MC2 to MC1 as child doesn't solve...

    P.S: Adding MC2 to MC1 as child doesn't solve the issue. Because then when I scale MC1, MC2 will get itself scaled automatically.
  15. Trace a MC's co-ordinates with respect to another...

    Hi...
    Here is the question:
  16. Some basic, basic instructions about FMS.

    Hello everyone,

    I am trying to make a Multiplayer AS3 based game. Can anyone kindly guide me to some BASIC BASIC tutorial about how to send variable to the FMS, and read something back?

    Its...
  17. Never mind, I used this class instead of the...

    Never mind, I used this class instead of the regular KeyboardEvent Listener: http://www.senocular.com/flash/actionscript.php?file=ActionScript_3.0/com/senocular/utils/KeyObject.as

    With this class...
  18. Tracking Multiple Simultanious Keypresses.

    Dear Everyone,

    I hope you all are fine. Brothers and sisters, I have one issue that I want to clarify. I am trying to create PureActionScript based game, and I actually have started working on it...
  19. oh man addChild... I always forget that part |-)...

    oh man addChild... I always forget that part |-)

    so the main issue was I wasan't adding the child. It should work eitherway!

    Thank you very much broh.
  20. Hello sstalder, thanks again for the response and...

    Hello sstalder, thanks again for the response and sorry if I sound unreasonable. But, the code


    var myMovieClip:MovieClip = new MovieClip();
    myMovieClip.graphics.lineStyle(3,0x00FF00,100);...
  21. Thank you sstalder for the response. You see,...

    Thank you sstalder for the response.

    You see, the code you wrote does work. But isn't it doing the same thing?


    with(myMovieClip)
    {
    this.y = 200;
    }
  22. Unable to access properties of an object created via actionscript.

    Hello Everyone,

    I have been programing in ActionScript 2 for a couple of years and I was kind of 'Afraid' of AS3. But now A week or so has passed that I have finally made the decision of learning...
  23. You can go ahead one by one.. like simply create...

    You can go ahead one by one..
    like simply create a text field on the page, and then set focus to it.

    I think its something like
    document.myForm.myInputText.focus();

    if this works, try...
  24. Replies
    7
    Views
    815

    You're always welcome. :)

    You're always welcome. :)
  25. Replies
    7
    Views
    815

    Ok, I assumed you'll fix those errors, but...

    Ok, I assumed you'll fix those errors, but anyway, these should help...


    var myArr:Array=new Array ;
    myArr=_root.totalTimeTXT.split(".");
    if (int(myArr[1]) > 29) {
    medal123.gotoAndStop(4);...
Results 1 to 25 of 48
Page 1 of 2 1 2




Click Here to Expand Forum to Full Width

HTML5 Development Center