A Flash Developer Resource Site

Search:

Type: Posts; User: linha_direta

Page 1 of 20 1 2 3 4

Search: Search took 0.39 seconds.

  1. Replies
    3
    Views
    424

    my_data = new LoadVars(); my_data.load...

    my_data = new LoadVars();
    my_data.load ("visibility.txt");
    my_data.onLoad = function () {
    someMC._visible = (this == "true") ? true : false;
    }

    //in notepad
    false
    // or true, but use just...
  2. Replies
    24
    Views
    1,703

    I think Wan Kenobi is right - damn Jedi powers!...

    I think Wan Kenobi is right - damn Jedi powers! :D

    preloader works great online.. and thats where it should be used. When u have a swf (or exe) it'll depend on how fast your PC (including drive...
  3. flash is a wonderfull software and it can do lots...

    flash is a wonderfull software and it can do lots of stuff, but to save (or update) a txt u'll need to use some server-side language, such as ASP, PHP or CFM.
  4. try something like this _global.history =...

    try something like this



    _global.history = [];

    back = function () {

    if (history.length != 0) lastFrame = history.pop();
    if (lastFrame != undefined) _root.gotoAndStop (lastFrame);
  5. Replies
    10
    Views
    789

    u can only display your data when it was fully...

    u can only display your data when it was fully loaded... thats why u can have it displayed inside the onLoad event.


    /* ******
    file.txt

    varSome=1|2|3|4

    */
  6. Replies
    10
    Views
    789

    here's what i would do... var _f = new...

    here's what i would do...



    var _f = new LoadVars();

    _f.load ("yourScript.php");
    _f.onLoad = function () {

    myArray = this.arrayName;
  7. Replies
    10
    Views
    789

    just 1 question... are u loading an external data...

    just 1 question... are u loading an external data file?
  8. Replies
    2
    Views
    491

    function rePosition() {...

    function rePosition() {
    this.pieceDes.gotoAndStop(2);
    this.portImage.new_posi1 = 0;
    this.portImage.new_posi2 = 0;
    this.portImage.new_width = 100;
    this.portImage.new_height = 100;...
  9. Re: is it possible to justify text that is being dynamically loaded?

    nop
  10. on (release) { var $mail = email.text; ...

    on (release) {
    var $mail = email.text;
    if ($mail.indexOf ("@") == -1 || $mail.indexOf (".") == -1) {
    gotoAndPlay("sending");
    } else {
    formerror = "please enter a valid...
  11. Replies
    7
    Views
    486

    :rolleyes: :rolleyes: :rolleyes: look that...

    :rolleyes: :rolleyes: :rolleyes:


    look that line...

    myListener = newObject();


    it's wrong... hehehe
  12. Replies
    7
    Views
    486

    remove the // from each line and try it again. ...

    remove the // from each line and try it again.


    myListener = newObject();
    myListener.onKeyDown = function() {
    if (Key.isDown(Key.SPACE)) gotoAndStop(5);
    };
    Key.addListener(myListener);
  13. Replies
    2
    Views
    330

    u can write your txt file as... --- ini txt...

    u can write your txt file as...

    --- ini txt ---
    &var1=some value&
    &var2=some other value&
    &var3=some other other value&
    &var4=and so on&
    --- end txt ---
  14. Replies
    4
    Views
    380

    no.. i'm not using AS2.0, even why AS2.0 is...

    no.. i'm not using AS2.0, even why AS2.0 is avaliable from MX 2004.


    To tell u the truth I just re-wrote your code and i defined (created) a new movieclip to use the onEnterFrame event.

    U'r...
  15. Replies
    18
    Views
    732

    made some tests here and I don't know why the...

    made some tests here and I don't know why the vars[3] is being cutted off...


    as u'r creating _global arrays u could just use the "c" variable and called it from the descriptionWindow function.
    ...
  16. Replies
    1
    Views
    344

    _root.cover.loadMovie("image.jpg");...

    _root.cover.loadMovie("image.jpg");
    _root.onEnterFrame = function () {
    var rc = _root.cover.getBytesLoaded(); var tt = _root.getBytesTotal();
    yourTxtField.text = Math.ceil(rc/tt*100) + " %...
  17. Replies
    18
    Views
    732

    the commas are there just in the trace... like...

    the commas are there just in the trace...

    like

    ar = ["a","b","c"]
    trace (a)

    the output window will show

    a, b, c
  18. Replies
    4
    Views
    380

    function startLoadStage(newImage) { if...

    function startLoadStage(newImage) {

    if ($loop.onEnterFrame != undefined) return false;
    else

    imageAttempt = newImage;
    gotoAndPlay("loadStage");
    //remove old picture
    var $t =...
  19. Replies
    18
    Views
    732

    View Post

    <a href='asfunction:descriptionWindow,xmlArrayDescription[c]'>19 - <u>A Party</u></a>

    and

    <a href='asfunction:descriptionWindow," + xmlArrayDescription[c] + "'>19 - <u>A Party</u></a>

    are...
  20. Replies
    18
    Views
    732

    download this file and see if it helps. ...

    download this file and see if it helps.


    that's the way i like to handle xml data in flash. :D
  21. r-u still using flash 5???? :confused:

    r-u still using flash 5???? :confused:
  22. Replies
    18
    Views
    732

    function descriptionWindow($param) { $vars =...

    function descriptionWindow($param) {
    $vars = $param.split("|");
    drawText = ($vars[0] + " " + $vars[1] + "<br><b>" + $vars[2] +"</b><br>" + $vars[3]);
    trace(drawText);
    }


    if...
  23. Replies
    18
    Views
    732

    post your code

    post your code
  24. Not only the _root should be checked... u'll also...

    Not only the _root should be checked... u'll also need to check how u'r loading/ sending data to your gb.

    If u'r using loadVariablesNum u'll need to changed it to ...
  25. Replies
    5
    Views
    415

    if u'r linking to another scene I'll suggest a...

    if u'r linking to another scene I'll suggest a label instead a frame number


    if(_root.player1health <= -100)_root.gotoAndPlay("gameover");


    and in the 1st frame of your gameover scene insert...
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