dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: mngn9drb

Page 1 of 12 1 2 3 4

Search: Search took 0.12 seconds.

  1. Replies
    8
    Views
    1,141

    Nice!

    Nice!
  2. Replies
    8
    Views
    1,141

    Well firstly you can't load an Excel doc into...

    Well firstly you can't load an Excel doc into Flash to do anything functional with it. Your code is slightly off too as you need to use doc.load to get the data into Flash, not "LoadVars". Try this...
  3. Replies
    6
    Views
    372

    Button.prototype.useHandCursor = false;

    Button.prototype.useHandCursor = false;
  4. Replies
    2
    Views
    835

    This will put your movieclip named...

    This will put your movieclip named 'theMouseCursor' onto level 1000 which should be above everything else - if it isn't then increase the value!theMouseCursor.swapDepths(1000);
  5. Replies
    2
    Views
    386

    Add this to _root. It will detect any mouse...

    Add this to _root. It will detect any mouse presses and forward the user to the scene specified in the gotoAndPlay();gameOver = new Object();
    gameOver.onMouseDown = function () {
    //trace...
  6. Replies
    4
    Views
    396

    //increase by one counter++; //decrease by one...

    //increase by one
    counter++;
    //decrease by one
    counter--;
    //increase by 5 (or whatever)
    counter += 5;
    //decrease by ten million
    counter -= 10000000
  7. Replies
    5
    Views
    489

    It doesn't make much difference to be honest. As...

    It doesn't make much difference to be honest. As long as it's set to false, you may aswell leave it on - makes it easier if you want to make changes in the IDE in the future.

    Glad to help :)
  8. Replies
    5
    Views
    489

    I forgot to say, this won't work in the Flash IDE...

    I forgot to say, this won't work in the Flash IDE - only when testing in the browser. Sorry, I should have said this earlier. Basically the random number generated is appended to the SWF request so...
  9. Replies
    5
    Views
    489

    Well you seem to have answered your own question...

    Well you seem to have answered your own question alreadymyIdentifier=Math.round(Math.random()*10000);
    photo.loadMovie("photogallery.swf?uniq"+myIdentifier, 1);This should get past the browser...
  10. Ah ha, cool stuff ArmedJimmy. Always good to see...

    Ah ha, cool stuff ArmedJimmy. Always good to see a simpler method!

    I'd avoid the if/elses though and just have an array of days of the week then just grab them like thisdaysOfWeek = ["sun", "mon",...
  11. Flash can't do it directly (at least I've never...

    Flash can't do it directly (at least I've never seen it done) but you could always call a PHP script and use mktime() to get the day of the week (or whatever) from a given date. This PHP script for...
  12. Replies
    2
    Views
    301

    It should be like this - dupeMovieClip only...

    It should be like this - dupeMovieClip only accepts 3 args and I think you've confused it with attachMovie (I ommitted the initObject). I had to change the ref to the MC as Flash doesn't like numbers...
  13. Replies
    5
    Views
    304

    For the upper/lowercase letters, use a loop like...

    For the upper/lowercase letters, use a loop like thisvar str = "hey look at me, I'm typing like a script kiddy!!1 weeeee!!1";
    var newStr = "";
    for (i = 0; i < str.length; i++) {
    num = Math.round...
  14. Thread: Random "grid"

    by mngn9drb
    Replies
    3
    Views
    396

    clipCount = 64; columns = 8; n = 15; function...

    clipCount = 64;
    columns = 8;
    n = 15;
    function shuffleNums () {
    return (Math.round (Math.random ()) * 3) - 1;
    }
    numsArray = new Array ();
    for (i = 0; i < clipCount; i++) {
    numsArray.push...
  15. Thread: ASP vs PHP

    by mngn9drb
    Replies
    9
    Views
    665

    PHP. Any language that has lines that don't end...

    PHP. Any language that has lines that don't end in a ';' can't be trusted!

    If you're used to ActionScript, JavaScript, Java etc, you'll find PHP a lot easier. The syntax is very similar.

    Check...
  16. Replies
    6
    Views
    558

    Use a for in loop to pull out all the data from...

    Use a for in loop to pull out all the data from the textfield then you won't need to know how many exists in the file. If you need to use the value later, increment a counter in the for in loop and...
  17. Replies
    6
    Views
    558

    Tryvar x = eval("headline" + _root.hnews);

    Tryvar x = eval("headline" + _root.hnews);
  18. Replies
    1
    Views
    365

    Is that space between java and script...

    Is that space between java and script intentional? I know the board parses that word weirdly. Make sure it just reads "javascript" in your getURL line if you copied the code off a board like this one.
  19. Replies
    4
    Views
    326

    You haven't actually said what you're trying to...

    You haven't actually said what you're trying to do yet. getDate() returns a value between 1 and 31 - will be irrelevant if you're evaluating a day of the week.If you're using getDay() it can't be...
  20. Thread: External MP3s

    by mngn9drb
    Replies
    2
    Views
    290

    Instead of using an external player, use Flash's...

    Instead of using an external player, use Flash's MP3 streaming. You can initiate a new Sound object and then load an MP3 through thattune = new Sound ();
    //load sound, set streaming to true:...
  21. Replies
    4
    Views
    326

    getDay() returns a number between 0 and 6 (0...

    getDay() returns a number between 0 and 6 (0 being Sunday and 6 being Saturday). Your if statement will never work since getDay() doesn't go upto 7.
  22. Replies
    1
    Views
    334

    You need to either set that textfield's wrap...

    You need to either set that textfield's wrap property to "multiline" in the Flash GUI or give the field an instance name and use this code to set it to wrap text:textField.multiline = true;...
  23. Replies
    3
    Views
    414

    OK, I'll keep the post in the open so other...

    OK, I'll keep the post in the open so other people can benefit (or add comments). Here's your modified <embed> code to go in your index.php where the Flash button resides (just replace your...
  24. Replies
    2
    Views
    307

    If you're loading content into files on lower...

    If you're loading content into files on lower levels, you need to modify the paths for new data to reflect the new location on the hard disk. Your files loaded into main.fla now need to go back...
  25. Replies
    3
    Views
    414

    Well the sessionhash is specific to PHP so you'll...

    Well the sessionhash is specific to PHP so you'll only be able to get to it when using the PHP module, so to pass that value to index.php, you'll need to let Flash know what it is before invoking...
Results 1 to 25 of 276
Page 1 of 12 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center