dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: crankyraccoon

Page 1 of 7 1 2 3 4

Search: Search took 0.29 seconds.

  1. 2 seconds into the 'bottomline' clip: ...

    2 seconds into the 'bottomline' clip:

    _parent.gotoAndPlay(1)
  2. Sorry, no, you can't mask with a movieclip. ...

    Sorry, no, you can't mask with a movieclip.

    What you can do, however, is make a clip that contains a mask, and the stuff you want to mask; move the clip to move the mask, and move the contents...
  3. totalkilobytes =...

    totalkilobytes = math.floor((totalbytes/1024)*100)/100;

    or, if you'd prefer to round to the nearest number instead of round down:

    totalkilobytes = math.round((totalbytes/1024)*100)/100;
  4. Presuming that in the movie you reference the...

    Presuming that in the movie you reference the value 'cgilocation' to do something... sure.

    <param name=movie value="blah.swf?var1=value&var2=value&var3=value">

    You can pass as many variables to...
  5. Replies
    2
    Views
    423

    Your code has several problems. First, there's...

    Your code has several problems.

    First, there's no 'if' in your checking loop.

    Second, you need to check if the answer is equal to each possible entry, not if it's equal to the sub-array of...
  6. Use the _url property. trace (_url); trace...

    Use the _url property.

    trace (_url);

    trace (someclip._url);

    You will get the full path to the file. If it's being run locally rather than through a web page you'll get a file:// URL with the...
  7. Re: Re: Re: Now this thread is getting somewhere....

    Nope, it's a labor of love so far. There have been talks with various parties about going into production for TV but nothing concrete yet.
  8. Re: Now this thread is getting somewhere....

    '*****cow' is still in progress; that's just a teaser. Everyone who worked on it is ex-Spumco, if you found yourself saying 'why does that look like Ren & Stimpy?'.
  9. Replies
    4
    Views
    435

    When you equate one complex object to another, it...

    When you equate one complex object to another, it tends to not actually copy from one to the other - instead, it just makes a reference.

    Only primitive datatypes - numbers and booleans - can be...
  10. Replies
    4
    Views
    435

    [code] Array.prototype.fnord = function() {...

    [code]
    Array.prototype.fnord = function()
    {
    var t;
    for (t in this)
    {
    if (random(10)<=1) this[t] = "fnord";
    }
    }
  11. Replies
    2
    Views
    347

    The usual culprit of this is having several...

    The usual culprit of this is having several symbols that are 'linked' and thus can be dynamically generated or referred to by other movies.

    These will be loaded before any of your frames are...
  12. Wild Brain's 'Joe Paradise' - playing on Sony's...

    Wild Brain's 'Joe Paradise' - playing on Sony's screenblast.com nowadays I believe. No URL because Screenblast doesn't like Opera, which is what I browse with at work.

    Spumco's 'Weekend *****...
  13. Replies
    8
    Views
    565

    Sorry, stupid mistake on my part - I changed the...

    Sorry, stupid mistake on my part - I changed the names of the files but forgot to change the reference in the swf.

    I fixed the downloadable file but all you need to do is load the swf, open the...
  14. Replies
    8
    Views
    565

    Here's a functioning example. Download the...

    Here's a functioning example.

    Download the source here (~3k zip)

    The code is in an external file because I prefer to use an actual dedicated text editor instead of the Flash script editing...
  15. Replies
    8
    Views
    565

    Probably not. Flash would still have to maintain...

    Probably not. Flash would still have to maintain an execution context for every single clip... that seems to be a major chunk of the overhead.
  16. uh, it depends. What's usually best is code...

    uh, it depends.

    What's usually best is code that is succinct, self-documenting, and broken up into functional blocks - at least from the standpoint of hoping to understand it a week later.

    One...
  17. Replies
    8
    Views
    565

    Sure. Make a clip to contain all your...

    Sure.

    Make a clip to contain all your controlled clips.

    Remove their existing code - they should have no code attatched.

    On the container clip:
  18. Replies
    2
    Views
    471

    My only experience with Director is making a...

    My only experience with Director is making a wrapper for some Flash games I reprogrammed.

    It was not a pleasant experience.

    Despite (or perhaps because of) its long version history, Director's...
  19. As a general rule of thumb, the old Flash 4...

    As a general rule of thumb, the old Flash 4 functions are faster than the equivalant new-style Flash 5 functions. I tend to just grumble and live with it because I like the much more consistent...
  20. Replies
    10
    Views
    521

    I really can't quite tell what you're trying to...

    I really can't quite tell what you're trying to accomplish here now.

    _root.spell.action(_step);

    _root.spell.action('"'+_step+'"');
  21. Replies
    5
    Views
    529

    == is for testing equality; = is for setting...

    == is for testing equality; = is for setting values.

    so on your main timeline:
    swfcontents = home;

    and in your daughter clip:
    if (_parent.swfcontents == something)
    {
    }
  22. Replies
    10
    Views
    521

    Wait, so you actually want to return the results...

    Wait, so you actually want to return the results of calling the function _root.Spell.Action() with the contents of the '_Step' variable as its argument?

    trace(_root.Spell.Action(_Step));

    or if...
  23. Replies
    5
    Views
    529

    if (_parent.variable == "whee!") { // stuff...

    if (_parent.variable == "whee!")
    {
    // stuff happens
    }
  24. Replies
    10
    Views
    521

    Either use different string delimiters (you can...

    Either use different string delimiters (you can use ' or "):
    trace ('_root.Spell.Action("'+_Step+'")');

    or just escape them with a \ prefix:
    trace ("_root.Spell.Action(\""+_Step+"\")");

    Both...
  25. The best way to test the speed of a particular...

    The best way to test the speed of a particular way of doing something is to do it a bunch of times and compare overall average times.

    For instance:



    now = getTimer();
    for...
Results 1 to 25 of 164
Page 1 of 7 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center