A Flash Developer Resource Site

Search:

Type: Posts; User: DrDoom

Page 1 of 6 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    1
    Views
    286

    if you set the Stage.scaleMode property to...

    if you set the Stage.scaleMode property to "noscale" then you can retrieve the stage dimensions using the Stage.width and Stage.height properties.

    If i remember correctly (im not on a pc with...
  2. Replies
    6
    Views
    351

    The problem isn't in the fact that they're from...

    The problem isn't in the fact that they're from the server. After all, you never view anything directly from the server, you always download them and view them locally.

    A problem i can think of is...
  3. Replies
    2
    Views
    278

    what i would do is: set a variable currentPic...

    what i would do is:

    set a variable currentPic to store the current picture MC
    on(release) { //for the thumbnail
    _root.currentPic.onEnterFrame=function() {
    this._alpha-=5;...
  4. Replies
    1
    Views
    360

    to make it face the mouse: ...

    to make it face the mouse:

    _rotation=Math.atan2(_root._ymouse-_y, _root._xmouse-_x)/Math.PI*180;
    (hopefully this will work; i'm not on a pc with flash at the mo so i cant check. You may have to...
  5. You could put line feed or carriage return...

    You could put line feed or carriage return characters (chr(10) and chr(13) respectively) behind the text to move it to the correct line.

    txtPos=0;
    desText="the text";

    //on click...
  6. Thread: Secure PHP

    by DrDoom
    Replies
    1
    Views
    369

    Secure PHP

    ok, this is kinda in the wrong section but i didnt know where else to put it.

    Basically i want a php script which can only be run from a particular swf (located on a server).

    I can think of 2...
  7. Replies
    15
    Views
    1,115

    bCPro, heres the source for a working version....

    bCPro, heres the source for a working version. Basically, what i've done is made it so that the objects are duplicated instead of moved and the colours and patterns are applied separately (so you no...
  8. Replies
    3
    Views
    348

    Yeah, basically there are 2 type of hitTests: ...

    Yeah, basically there are 2 type of hitTests:

    rectangle-rectangle hittests and point-shape hittests.

    point-shape hittests mean that you can test if a point is touching a shape (not just a...
  9. Replies
    3
    Views
    348

    Why would you want a scpre of 94 to result in a...

    Why would you want a scpre of 94 to result in a speed of 2 x 0.05? I would have thought it would just be 1 x 0.05.

    For that you would do:

    speed=Math.floor(score/50)*0.05;
  10. Replies
    7
    Views
    353

    Needs to be _root.gotoAndStop Without the _root...

    Needs to be _root.gotoAndStop
    Without the _root it tries to change the frame of the draggable MC.
  11. Thread: Back button

    by DrDoom
    Replies
    11
    Views
    530

    The MovieClipLoader equivalent of that code is: ...

    The MovieClipLoader equivalent of that code is:

    MCL=new MovieClipLoader();
    MCL.loadClip("corporategraphs.swf", _root.graphs);

    MovieClipLoaders are useful because they will say if it failed to...
  12. Thread: Back button

    by DrDoom
    Replies
    11
    Views
    530

    How are you dynamically loading the movies. You...

    How are you dynamically loading the movies. You should use a MovieClipLoader because they make it much easier to identify the problem (as well as a lot of other things).

    Maybe upload some...
  13. Replies
    1
    Views
    293

    Well you cant change sound.position as it is a...

    Well you cant change sound.position as it is a read only property. However, you can do this:


    sound.stop();
    sound.start(position in seconds, 0);
  14. Replies
    15
    Views
    1,115

    lol - im not even old enough to legally buy soft...

    lol - im not even old enough to legally buy soft drinks in a bar :)
  15. Well, when you import a flash object into a...

    Well, when you import a flash object into a webpage using dreamweaver it makes it automatically redirect to the flash install page if the user doesn't have and flash player installed.

    Assuming the...
  16. Thread: hitTest

    by DrDoom
    Replies
    13
    Views
    718

    Are the sounds going to be attached via the...

    Are the sounds going to be attached via the library or downloaded as an mp3?
  17. Thread: hitTest

    by DrDoom
    Replies
    13
    Views
    718

    Are different sound objects going to make...

    Are different sound objects going to make different sounds?

    (ill go through the code later. promise)
  18. Thread: hitTest

    by DrDoom
    Replies
    13
    Views
    718

    Well, i didn't want to appear slovenly, so i made...

    Well, i didn't want to appear slovenly, so i made it do perfect hitTesting anyway :). Thats one long line of code:

    ...
  19. Thread: hitTest

    by DrDoom
    Replies
    13
    Views
    718

    Wow, this is a very cool idea. Can you send me...

    Wow, this is a very cool idea. Can you send me the final version when its done cos i'd quite like to see how it turns out :).

    I've done the code as if the sound things were rectangular. I know its...
  20. Thread: Rotation code

    by DrDoom
    Replies
    1
    Views
    480

    You need to be more specific. Where and when do...

    You need to be more specific. Where and when do you want this code to be implemented. Are the MCs stored in an array or do you want to find all MCs within an object with a for...in loop.

    The basic...
  21. Replies
    2
    Views
    339

    Well, what you COULD do, is make it so that when...

    Well, what you COULD do, is make it so that when you are dragging if performs a hittest to see if you are touching the egg and if you are, removes the original bandaid MC, reveals a new one contained...
  22. Thread: hitTest

    by DrDoom
    Replies
    13
    Views
    718

    ...can you include the fla then?

    ...can you include the fla then?
  23. Replies
    1
    Views
    248

    On the right button put the code: on (press) {...

    On the right button put the code:
    on (press) {
    scrolling = true;
    }
    on (release, releaseOutside) {
    scrolling = false;
    }
    onClipEvent (enterFrame) {
    if (scrolling) {
    _parent.CEmenu._x -=...
  24. Thread: hitTest

    by DrDoom
    Replies
    13
    Views
    718

    for .... in .... basically goes through each...

    for .... in .... basically goes through each object in another object.




    Also, in the function i wrote, i forgot to include the line:

    return hitArr;
    So add that to the end of it.
  25. Replies
    7
    Views
    353

    It's because you're storing all of the variables...

    It's because you're storing all of the variables in root so the variables storing the balls speed etc are also storing the pic's speed etc.

    Just put the code locally and it'll work.

    I've...
Results 1 to 25 of 145
Page 1 of 6 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center