A Flash Developer Resource Site

Search:

Type: Posts; User: somlemeg

Page 1 of 9 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    0
    Views
    9,735

    [RESOLVED] Whats wrong with my code?

    The code below does not work, how do I get it to work?


    <script>
    exportString = exportString + "<script type=""text/javascript""; id=""io_id_5102"">>var di=" + dotImage;
    exportString =...
  2. Replies
    1
    Views
    1,197

    Found the solution ...

    Found the solution


    document.getElementById("d"+dotNr).addEventListener("mousedown",function(event){
    mouseDownDrag(this.id);
    });
  3. Replies
    1
    Views
    1,197

    [RESOLVED] AddEventListener dynamically

    I'm having trouble adding an EventListener to a image witch are created dynamically.

    Here is the code I'm having trouble with:


    var dotNr = 0;
    function addDot() {

    var img =...
  4. Hi, right click on the first frame. Choose...

    Hi, right click on the first frame. Choose actions.
    Paste in:
    fscommand("allowscale", "false");
  5. Seems like the user needs to calibrate after a...

    Seems like the user needs to calibrate after a real world ruler to get it right.
  6. Replies
    3
    Views
    2,776

    Wish there where playgrounds like that here, BUT...

    Wish there where playgrounds like that here, BUT with equipment not that exposed decay/potentially unsafe equipment.
  7. Converting DPI (pixels per inch) to pixels per cm (PPCM)

    Hi guys, in my project I need know how many pixels one cm is on the screen.

    I get the DPI (pixels per inch) in flash using flash.system.Capabilities.screenDPI, for my screen I get 72.
    I try...
  8. Solved it by using: ...

    Solved it by using:


    this.stage.addEventListener (KeyboardEvent.KEY_DOWN, backgroundNoise.checkKey);
    this.stage.focus = this.stage;

    Thanks to...
  9. Replies
    2
    Views
    1,306

    PS. you don't really need button overlays...

    PS. you don't really need button overlays anymore. You can use movieClip.buttonMode = true to get the hand cursor.
  10. [RESOLVED] Key event assigned in class not working

    My script has a structure like this (shorten down version):

    MenuDisplay.as (creates the menu)

    package
    {
    import flash.display.Graphics;
    import flash.display.BitmapData;
    import Array;
    //
  11. Replies
    1
    Views
    6,769

    Found the answer, forgot to import...

    Found the answer, forgot to import flash.events.Event.

    Instead of e:ComponentEvent used e:Event.
  12. Replies
    1
    Views
    1,844

    The code you have provided is incomplete, however...

    The code you have provided is incomplete, however if you use getDay(); returns the weekday, getDate() returns the day of the month.

    Refer with...
  13. Replies
    2
    Views
    1,306

    Hi, I think something is wrong in the way the...

    Hi, I think something is wrong in the way the movie clips are refferenced by index (different index than the buttons).

    This works:

    stop();

    import flash.events.MouseEvent;
    import...
  14. Use the timer class...

    Use the timer class (http://republicofcode.com/tutorials/flash/as3timer/) and to change scenes: http://www.ehow.com/how_8573919_change-between-scenes-as3.html

    I'm not sure if anyone uses scenes...
  15. Replies
    1
    Views
    6,769

    [RESOLVED] Combibox change event

    How can I make this syntax right, have:


    package
    {
    import Array;
    import fl.data.DataProvider;
    import fl.controls.ComboBox;
    import fl.events.ComponentEvent;
  16. Replies
    1
    Views
    1,073

    Seems like there is no alternative way to do...

    Seems like there is no alternative way to do this, was forced to use array instead.
  17. Replies
    1
    Views
    1,073

    [RESOLVED] Accessing custom made variables

    In my script some of the variables are passed on like this from the html:


    <SCRIPT LANGUAGE="JavaScript">var x0 = 186;var y0 = 249;var x1 = 63;var y1 = 149;</SCRIPT>


    The number of x0, x1, x2...
  18. Replies
    10
    Views
    2,510

    I don't think that is a problem, you can load an...

    I don't think that is a problem, you can load an AS2 file from AS3, but not an AS3 file to AS2.

    I have little experience from adobe air. If I where you I would start by trying to debug the problem...
  19. Replies
    10
    Views
    2,510

    Then perhaps there are some security restricitons...

    Then perhaps there are some security restricitons in air. If it displays "movie not loaded", it is usually because it cannot load the movie.

    What version of air are you using?

    Perhaps you can...
  20. Replies
    10
    Views
    2,510

    So you have placed the swf in the application...

    So you have placed the swf in the application directory and made sure that it's referenced like in the article?
  21. Replies
    10
    Views
    2,510

    Have you read and followed this?:...

    Have you read and followed this?:
    http://help.adobe.com/en_US/as3/dev/WS4B441C24-BAE3-4110-91FD-A4E5EEFB2467.html

    According to it a swf inside an html file will not be displayed if the wmode is...
  22. Solved

    Using an 2d array worked, but found another better solution.
  23. [RESOLVED] Sorting an array after referenced movieClip x postition

    I have an array containing several references to movieClips.
    I want to sort that array depending on the x position to the clips.

    What I'm wondering if anyone has solved this problem before and...
  24. Replies
    1
    Views
    1,861

    Designing a program - tips

    I'm programming an AS3 application. I have programmed the a package that does the main purpose in my application.
    How should go on further to get my program organized properly?

    I need an user...
  25. Replies
    4
    Views
    1,438

    I'ts usually easier to use arrays instead of...

    I'ts usually easier to use arrays instead of variables created dynamically.

    I'm not sure why your code dosn't work. However, I got this code to work:

    function myFunction():void
    {
    var...
Results 1 to 25 of 205
Page 1 of 9 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center