Ask a Question related to Macromedia Flash Data Integration, Design and Development.
-
CobraC081375 #1
Linking data, searching data, and format the data file
I'm sorta new to flash and integrating data and components...I'm usu. an
interface designer.
I'm trying to link a combo box to a file doesn't matter preferably a
searchable txt file, then when submitting the search the output goes to another
txt box located in the picture i'm hosting....then making the output clickable
so when clicked another output goes to the address bar....this seems kinda
wierd but i need to know what direction or how to link all this together.
[url]http://home.comcast.net/TEST.fla[/url]
CobraC081375 Guest
-
Load xml data in sepearate mxml file and Populate data
I am working on a dynamic Tilelist control that will populate a data and show image under each tile from another mxml file which itself contain de... -
how to extract data in specified format to another file
HI, I am new to Perl and I need some help regarding tranfering the contents of one file to other file in specified format using perl. the... -
Why are all the data gone after a few searching tests
Hello, everyone: I got a problem while testing the database. First I tried a few searches and it was successful. But After I went back to search... -
Creating a table using the IXF file format for data exported using a SELECT * statement
Hello, everyone. Which of the following is being kept in the new table? Check constraints Catalog statistics Primary key definitions -
Not able to Export data from data file
Hi, I exported data from a table that has column with datatype as 'nvarchar' with length 31 and has NOT NULL constraint with collation as... -
Motion Maker #2
Re: Linking data, searching data, and format the data file
You would need decide which Flash Actionscript classes depending on your
needs.
This can include:
1. LoadVars AS class. To fetch URL formatted data from a server script that
in turn gets the data from a server file or database.
2. XML AS class. To fetch XML formatted data from a server script that in
turn gets the data from a server file or database.
3. SharedObject AS class to fetch Object AS class data from the user's
computer that you probably also wrote there. This is the equivalent to
cookies only contained in Flash.
4. FlashVars parameter of the OBJECT and EMBED tages. Usually a server side
script formats part of the OBJECT and EMBED tag to provide data from a
server file or database. The variables named in the FlashVars parameter are
then available on the root timeline of the Movie at the first frame.
Once the data is retrieved from these sources you can then addItems to the
combo box which usually entail a loop but really depends on the structure of
the data you have.
--
Lon Hosford
[url]www.lonhosford.com[/url]
May many happy bits flow your way!
"CobraC081375" <webforumsuser@macromedia.com> wrote in message
news:dp289p$4dr$1@forums.macromedia.com...
I'm sorta new to flash and integrating data and components...I'm usu. an
interface designer.
I'm trying to link a combo box to a file doesn't matter preferably a
searchable txt file, then when submitting the search the output goes to
another
txt box located in the picture i'm hosting....then making the output
clickable
so when clicked another output goes to the address bar....this seems kinda
wierd but i need to know what direction or how to link all this together.
[url]http://home.comcast.net/TEST.fla[/url]
Motion Maker Guest
-
CobraC081375 #3
Re: Linking data, searching data, and format the datafile
Can I just have it read from a formatted html or xml data?
CobraC081375 Guest
-
Motion Maker #4
Re: Linking data, searching data, and format the data file
You can read text files with either URL vars or XML data but you still need
to use the LoadVars and XML Actionscript classes respectively to do so.
--
Lon Hosford
[url]www.lonhosford.com[/url]
May many happy bits flow your way!
"CobraC081375" <webforumsuser@macromedia.com> wrote in message
news:dpbso4$6tn$1@forums.macromedia.com...
Can I just have it read from a formatted html or xml data?
Motion Maker Guest
-
CobraC081375 #5
Re: Linking data, searching data, and format the datafile
so if i use those and can get it to connect via a txt file how do i format the txt file and can i have a function to search that txt file?...dont forget i am noobish when it comes to all this.
CobraC081375 Guest
-
Motion Maker #6
Re: Linking data, searching data, and format the data file
For LoadVars the text file would be one line just as it appears for a URL
query string. A generic layout example (it is one continuous line):
var1=ABC&var2=123&var3=Hello World&var4=<b>blah blah blah</b><br>Yadda yadda
Where you would substitute var1, var2 with meaningful names that LoadVars
will automatically parse into Flash variables for you to use. Ex:
price=123&name=ABC
For XML again on one line a generic layout example (it is one continuous
line):
<?xml version="1.0"
encoding="iso-8859-1"?><datapacket><nodeName1>ABC</nodeName1><nodeName2>123</nodeName2><nodeName3>Hello
World</nodeName3><nodeName4><b>blah blah blah</b><br>Yadda
yadda</nodeName4></datapacket>
Again your nodeNames would be more meaningful to you ex:
<price>123</price><name>ABC</name>. Flash XML then provides XML methods to
parse out the data into Flash variables -- you need to do that.
In both cases no whitespace (tabs, spaces and returns) other than in the
data values such as the space in Hello World.
Normally yu use word wrap in editor to help in editing.
If you use server scripting then you can use separate lines in the script
code and it will not add whitespace unless you add it.
Although I do not have a simple example with a plain text file, here is a
simple LoadVars example with PHP. The Flash side is the same.
[url]http://www.hosfordusa.com/ClickSystems/courses/flash/examples/LoadVars/LoadVarsEx01.php[/url]
And this one before you hit the register button that demonstrates the
LoadVars populating Flash UI components. Again it is using PHP but you can
use a plain text file instead with the above format.
--
Lon Hosford
[url]www.lonhosford.com[/url]
May many happy bits flow your way!
"CobraC081375" <webforumsuser@macromedia.com> wrote in message
news:dpjvei$t15$1@forums.macromedia.com...
so if i use those and can get it to connect via a txt file how do i format
the txt file and can i have a function to search that txt file?...dont
forget i am noobish when it comes to all this.
Motion Maker Guest



Reply With Quote

