Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
chrsjrngn #1
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
-
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... -
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... -
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... -
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... -
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... -
Jack #2
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



Reply With Quote

