dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: chi-styler

Page 1 of 20 1 2 3 4

Search: Search took 0.66 seconds.

  1. Thread: Book Flip?

    by chi-styler
    Replies
    19
    Views
    1,534

    This is the best one I've found: ...

    This is the best one I've found:

    http://www.iparigrafika.hu/pageflip/
  2. Replies
    1
    Views
    375

    It looks like you may be overwriting itemClip0,...

    It looks like you may be overwriting itemClip0, itemClip1 as you may be using the same depths for both sets of attachMovies, i.e. both 0 and 1. Try something like
    ...
  3. Replies
    1
    Views
    275

    Do you mean that if your MC had 20 frames in...

    Do you mean that if your MC had 20 frames in total, then, for example, when preloader was at 50% you want it to go to frame 10? If so, use

    my_mc.gotoAndStop(Math.floor(my_mc._totalframes/100 *...
  4. Replies
    2
    Views
    288

    The problem is you have this line var...

    The problem is you have this line


    var theObject:String = _root.object_txt.text;

    executing on the frame, so when that code runs the textbox is empty as the user hasn't had a chance to put...
  5. A simple percentage calcuation might be...

    A simple percentage calcuation might be appropriate here. So say that player needs to get 20% more experience than the previous level, it'd go

    Level 1: 1500
    +300
    Level 2: 1800
    ...
  6. Replies
    3
    Views
    351

    Believe it should be for (j=0;...

    Believe it should be


    for (j=0; j<resArr2.length; j++) {
    trace("res2="+resArr2[j]);
    }
  7. Replies
    2
    Views
    401

    Try this for (var i = 1979; i

    Try this


    for (var i = 1979; i<=2005; i++) {
    this["a" + i] = this["d" + i].split(",");
    this["a" + i].pop();
    }
  8. Replies
    2
    Views
    355

    It's because parseInt takes a String and you're...

    It's because parseInt takes a String and you're giving it a number.

    If you're trying to round to the nearest integer use Math.round() instead.
  9. Replies
    2
    Views
    950

    Simulating chasing an object

    Hi all,

    I'm looking to implement this into a little game I'm working on - effectively it involves the AI chasing a ball, something like this (top-down view)

    http://www.ice13.com/chase.gif
    ...
  10. Thread: Two values

    by chi-styler
    Replies
    4
    Views
    355

    Just need a simple if if(thrust) { //if...

    Just need a simple if


    if(thrust) { //if thrust is true
    thrust = false;
    }else{ //if thrust is false
    thrust = true;
    }
  11. Replies
    4
    Views
    424

    To set the order of tabbing you use ...

    To set the order of tabbing you use

    TextField.tabIndex

    A field with index of 1 will be higher up than a field with a index of 2. so in your move you essentially want to go


    input1.tabIndex...
  12. Replies
    4
    Views
    424

    for(var i=1; i

    for(var i=1; i<=6; i++) {
    this["input" + i].tabIndex = i;
    }
    Selection.setFocus(input1);


    should do it for you. Keep in mind that the setFocus will only work if the Flash movie has focus,...
  13. In MX 2004 you need to make sure the variable...

    In MX 2004 you need to make sure the variable exists first. Just go


    input = "25,15,10,30,20";
    myArray = input.split(",");
    sum = 0;
    for (var i=0; i<myArray.length; i++){
    val =...
  14. Replies
    6
    Views
    349

    Sure, look into TextField.autoSize then use...

    Sure, look into TextField.autoSize then use TextField._height.
  15. Replies
    6
    Views
    349

    Unfortunately you can't do that, you can only...

    Unfortunately you can't do that, you can only change the alpha of the whole textfield.

    If you really want a semi-transparent background you'll have to have a separate MC/graphic behind it.
  16. Replies
    3
    Views
    308

    Oh right, that variable must be set/created as a...

    Oh right, that variable must be set/created as a String at some point then. If you're bringing it in from an external source, text file for example, everything defaults to a String.
  17. Replies
    3
    Views
    308

    I don't see anything nothing wrong with that, as...

    I don't see anything nothing wrong with that, as this works as expected:


    _root.user_access = 2;
    switch (_root.user_access) {
    case 1 :
    _root.main_menu = 5;
    _root.sub_menu = 5;
    ...
  18. Replies
    6
    Views
    349

    You should just need hdrWA.removeTextField();

    You should just need


    hdrWA.removeTextField();
  19. Replies
    4
    Views
    335

    Ok, 2 problems with that fla you attached...

    Ok, 2 problems with that fla you attached (nothing to do with not having 2004 by the way). Firstly you haven't given Instance names to your MCs. If you select a MC then look in the properties panel,...
  20. Replies
    12
    Views
    634

    'this' in this case is just referring to the...

    'this' in this case is just referring to the timeline it's on. It's just something to attach the onEnterFrame function to, you can also use _root or a MC for example.

    The reason that it's only...
  21. Replies
    12
    Views
    634

    You need to name the Instance of the movie clip...

    You need to name the Instance of the movie clip so Flash can recognise it at run-time.

    Click on the MC, in the properties panel put hour_mc in the box where it says <Instance Name>.
  22. Replies
    12
    Views
    634

    That doesn't seem to be a valid link

    That doesn't seem to be a valid link
  23. Replies
    12
    Views
    634

    The easiest thing to do is make your clock hand...

    The easiest thing to do is make your clock hand into a movie clip, with the pivot point at 0,0. Place it on the stage, call it hour_mc and use this code


    this.onEnterFrame = function() {
    ...
  24. Replies
    12
    Views
    634

    Make you sure put the pivot point of the hands at...

    Make you sure put the pivot point of the hands at the co-ordinates 0,0. As you said you don't need a clock but here's one anyway. You can change it for your needs just by going hours._rotation += 30...
  25. Replies
    12
    Views
    565

    To be honest I don't know why your original...

    To be honest I don't know why your original method isn't working, but if you're interested here is a working fla of my method.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center