HELP! Can't find path to import text file

Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default HELP! Can't find path to import text file

    Hi Everybody,

    Someone PLEASE help me figure this one out! I am using a Flash template that
    someone else designed. The movie I'm working on only has one Flash file (fla)
    and four text files. At runtime, the swf imports the data contained within
    these text files.

    Now, when the Flash movie plays, it impots the text from these text files with
    no problem. I can open a text file, change the working and save it and the
    changes show up, no problem.

    My problem is this: I have duplicated some library items and want to create
    OTHER new text files to accompany these new library items. I want to change the
    content of these text files. I can't find ANYWHERE within this Flash movie any
    reference to the text file itself.

    For example, one file is named money.txt. I can go to the dynamic text field
    where money.txt is eventually displayed. I see that the text field itself has a
    variable assigned to it called "txt". (without the quotes, of course) I cannot,
    however, find the reference ANYWHERE within ANY Actionscripts that tell the
    Flash movie where to go to look for the text files themselves.

    I'd say that as far as my level of experience with Flash is concerned, I am an
    advanced user, so I know how this is SUPPOSED to work and I have checked all
    the places within the movie where I THOUGHT this actionscript would exist.
    Still nothing. PLEASE if anyone has ANY ideas, let me know!

    I used Movie Explorer and found the following script but how does this call
    and external text file to load

    onClipEvent (load)
    txt = "Loading data...";//loade
    this.loadVariables(_parent.terms)
    ini = scroller._height;//define Y po
    posX = scroller._x;//stay to X po
    function scroll ()
    BarDim = _parent.size+txt.maxscroll-1
    scroller._yscale = 100*(_parent.size)/BarDim
    diff = ini-scroller._height
    sizeBar = diff/(txt.maxscroll-1)
    scroller._y = sizeBar*(txt.scroll-1)

    function barPos ()
    scroller._y = sizeBar*(txt.scroll-1)
    }


    Thanks in advance for your help,
    CJ

    chrsjrngn Guest

  2. Similar Questions and Discussions

    1. unble to code to find a file path
      i just started using flex beta3 and i tried to developed an application in which i used a image control and a button the thing is that i can provide...
    2. HELP! Can't find path to text file
      Hi Everybody, Someone PLEASE help me figure this one out! I am using a Flash template that someone else designed. The movie I'm working on only...
    3. import a text file to database
      Hi, I am still stick on the text file being imported to database. Can anybody help? I have just done the csv format files. And then I work on...
    4. Err Msg : Cannot find file '%path%'. Please make sure.....
      I recently installed Trend Micro Office Scan on my PC at work and found out my computer was infected with tree viruses. I do not have the virus...
    5. Import text file
      l am using a dts package to import a text file with delimited colums the problem is that the dts package fails to convert a number value like 12,00...
  3. #2

    Default Re: HELP! Can't find path to import text file

    this.loadVariables(_parent.terms)
    this line is (more than likely) loading the text file,

    search in the Movie Explorer for "terms" to
    find how/where this variable is being set,

    also search from Test Movie/Debug/List Variables

    hth


    "chrsjrngn" <chrsjrngn@msn.com> wrote in message
    news:c0do47$mfp$1@forums.macromedia.com...
    > Hi Everybody,
    >
    > onClipEvent (load)
    > txt = "Loading data...";//loade
    > this.loadVariables(_parent.terms)
    > ini = scroller._height;//define Y po
    > posX = scroller._x;//stay to X po
    > function scroll ()
    > BarDim = _parent.size+txt.maxscroll-1
    > scroller._yscale = 100*(_parent.size)/BarDim
    > diff = ini-scroller._height
    > sizeBar = diff/(txt.maxscroll-1)
    > scroller._y = sizeBar*(txt.scroll-1)
    >
    > function barPos ()
    > scroller._y = sizeBar*(txt.scroll-1)
    > }
    >
    >
    > Thanks in advance for your help,
    > CJ
    >

    Jack Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139