A Flash Developer Resource Site

Search:

Type: Posts; User: iamdave

Page 1 of 2 1 2

Search: Search took 0.06 seconds.

  1. Replies
    2
    Views
    703

    HTML in Flash Problem

    I'm trying to use some HTML to format some text and images. I've tried both a TextArea and a dynamic text box and both are having problems. You can see here:...
  2. Replies
    3
    Views
    357

    Use the modulo operator, i.e.

    Use the modulo operator, i.e. <number between 0 and 99> % 7. That will give you the remainder after dividing the number entered by 7.
    Dave
  3. Replies
    1
    Views
    369

    By the way, the displayThumbs() function that I'm...

    By the way, the displayThumbs() function that I'm calling on the thumbmenu is using the LoadVars class to get the file names of the thumbnails from a PHP script I wrote. Could that be interfering...
  4. Replies
    1
    Views
    369

    onEnterFrame issues

    Is there some reason why an onEnterFrame event wouldn't trigger when called or would only iterate once? Here's my code:

    The call:


    thumbsBtn.onPress = function(){
    nextBtn._visible = false;...
  5. Replies
    2
    Views
    436

    Thanks!

    Thanks!
  6. Replies
    2
    Views
    436

    catching MovieClipLoader errors

    Anyone know how to catch the error the MovieClipLoader class returns when it can't find the file you've asked it to load? Try-catch doesn't seem to work, I can only assume that it doesn't throw an...
  7. Thread: Array Help

    by iamdave
    Replies
    2
    Views
    907

    You've got a data type soup here. This is why...

    You've got a data type soup here. This is why you should always strict-type variables. I'm not sure what you're actually going for here, but you're getting the [object Object] results because...
  8. Replies
    2
    Views
    784

    onEnterFrame = function():Void{ mc._alpha -=...

    onEnterFrame = function():Void{
    mc._alpha -= step; //where step is a variable controlling how quickly you want it to fade
    }

    Or to add some dampening:


    onEnterFrame = function():Void{
    ...
  9. Replies
    2
    Views
    413

    Off the top of my head, to clear all the data you...

    Off the top of my head, to clear all the data you could just redeclare the array:


    myLayerArray = new Array();

    And to clear the last item added:


    myLayerArray[myLayerArray.length - 1] =...
  10. Replies
    10
    Views
    446

    Off the top of my head... var...

    Off the top of my head...


    var loader:MovieClipLoader = new MovieClipLoader();
    loader.onLoadStart = function(){
    //preloader code here
    }
    loader.onLoadCompete = function(){
    //load...
  11. Replies
    1
    Views
    432

    You're skill with Flash will definitely play a...

    You're skill with Flash will definitely play a part there but generally speaking, and not everyone may agree, I think full Flash is the way to go. No cross-browser compatibility issues and 98% of...
  12. Replies
    4
    Views
    387

    It just good programming practice to keep it all...

    It just good programming practice to keep it all together. Sorta like commenting you're code. It's not just for when you have to trouble shoot it either. If you were to come back to it later on...
  13. Replies
    7
    Views
    606

    General Idea: var moveToXPos:Number =...

    General Idea:


    var moveToXPos:Number = //location to move to
    var step:Number = 0;

    image_mc.onEnterFrame = moveit;

    function moveit():Void{
    step = (moveToXPos - this._x) / 2;
  14. Replies
    4
    Views
    387

    You could also place this on the main timeline of...

    You could also place this on the main timeline of your movie:


    onMouseDown = function(){
    test.gotoAndStop(10);
    }

    It's generally advisable to keep all your code in one place as much as...
  15. Replies
    5
    Views
    464

    Why do you even care if the links from your Flash...

    Why do you even care if the links from your Flash file are in the HTML when you publish it? The links are still in the swf so your users can still get to them, right? I always turn off the HTML...
  16. Thread: 6 Games

    by iamdave
    Replies
    2
    Views
    515

    They've had those there since MX. Kinda fun to...

    They've had those there since MX. Kinda fun to kill time with.
  17. Replies
    7
    Views
    606

    You need a large image, a thumbnail image (or...

    You need a large image, a thumbnail image (or just a resized instance of the same symbol), a mask and some actionscripting for the motion. Not too difficult, through rather time consuming on the...
  18. Replies
    2
    Views
    482

    Try going to Window > Workspace Layout and...

    Try going to Window > Workspace Layout and clicking on Default.
  19. Replies
    2
    Views
    4,376

    It would be helpful to see your code, but the...

    It would be helpful to see your code, but the random function is what you want to use. If you had say, 10 questions you could write


    var nextQuestion:Number = random(10);

    This will generate a...
  20. I figured it out actually. You just have to add...

    I figured it out actually. You just have to add these two lines to your code:


    Stage.align = "TL";
    Stage.scaleMode = "noScale";
  21. Replies
    2
    Views
    448

    I don't see what you're talking about and I'm not...

    I don't see what you're talking about and I'm not clear on what you're asking. Try to write a bit more clearly when you ask questions. If you're having problems with text showing up before you want...
  22. Replies
    2
    Views
    549

    Not sure if you can do it directly or not but you...

    Not sure if you can do it directly or not but you can definately do it using ASP as an intermediary. You gotta use LoadVars in the AS and just write seperate ASP scripts for the database operations...
  23. There's no built-in method for exporting...

    There's no built-in method for exporting dynamically generated animations to PNG or any other image format. You'll have to write your own script for that.
  24. Replies
    7
    Views
    606

    I don't see any scrolling going on there.

    I don't see any scrolling going on there.
  25. [RESOLVED] 100% width and height using SWFobject.js

    Hey guys. Does anyone know how to implement a swf file that takes up 100% of the width and height of the window using the SWFObject.js fix for the embed tag? What I've got right now works fine when...
Results 1 to 25 of 45
Page 1 of 2 1 2




Click Here to Expand Forum to Full Width

HTML5 Development Center