ActionScript 3.0 :: Importing Variables (information) From User Maintained Text Files.?
Jun 17, 2009
i am making a quick and dirty flash help source for my companies site. Later on i will tweak I will pretty it up. I am going with two movie clips that i believe will be sufficient for now as seen the layout below....[code]....
MC_1 :Is the selection menu.I want to import from a text file the different help sections or catagories....eg.. Setup, Administration, Customizing, etc......Then i want to import from text files that are labelled and corrisponding to each section that will list the actual different help selections...eg..(Setup) would have sub menu options of System Requirements,Server Install, Client Install.I would have these sub menus in listed in different text files for each section heading.
MC_2 :Then when somene clicks on the submenu options like 'Server Install' in the given example Movie Clip 2 would import from yet another text file the actual help information in an HTML format
Questions:For MC_1 I am not sure how I should go about creating it!I assume I will be creating a MC inside of it, one for each variable it pulls in from the Header.txt file.....how do i do that when the number of variables can change?And then it will pull in and create the sub menus one for each variable that it finds in its own text file, again the number can change?From there i should have no problems having the sub menu, when clicked on, would pull the text info in html format into MC_2.
View 3 Replies
Similar Posts:
Sep 27, 2003
i'd like to know if its possible to save information obtained from users to files if the user is accessing the flash file from a cd. I would also like to know how it works if possible. And can the flash file be in .exe instead of .swf?
View 5 Replies
Sep 16, 2003
I have a movieclip (named "checklist")with a great number of input text boxes in it. This clip is used early in the my movie (frame 1) and again at frames 20 and 30. The problem is that in the later frames the information the user typed in the first frame is no longer there. Now I could use the var parameter and set it to _root for all of the boxes, but I've been told that the var parameter is a bad way to go. Rather, I should use the name option instead, i.e. "myText_txt". I tried experimenting with objects, but I am not a programmer and so I am probably doing this wrong.
[Code]....
So, I am looking for a best practice. Should I just use the var parameter? That way all of the text fields update when the movie hits frames 20 and 30.
View 1 Replies
Jan 12, 2010
I want to read a text file that contains information for my game. I need to read chunks, and create the objects immediately and so on. How is the best way to do so, and is it possible to use some sort of location pointer so I won't have to go through the whole file every time I read a chunk?
View 4 Replies
Jan 4, 2012
I got a request today conserning .txt files.What I want to accomplish is to grab information from a text file and save them in variables (or an array, depends).Whats the best way to do this, and whats the do's and don'ts?I'm planning to use the LoadVars class to pass the variables through and i've got a working test, but isn't there a more efficient way to do this?
View 9 Replies
Feb 25, 2009
I have some text that says go to page with a input textfield box and a go button. This is a flash cs4 file.I want to have the user input the page number and have it go to that frame.I am using actionscript 3.0 and have bought 4 books and researched online and still can't find what I am looking for.I can make the go button go to whatever page I want I just don't know how to get the information the user put in the box.
View 2 Replies
Dec 13, 2009
A user, who is not familiar with html, wants to do very simple text formatting (font color, size, decoration) in external txt files that are to be loaded into Flash CS4 dynamic text fields. I know, some html tags can be used in txt files but the text becomes quite unclear. How is this issue usually coped with? Must the user learn a bit of html and use it or is there any other option?
View 4 Replies
May 1, 2003
The external TxT file is loaded into _root!In the text file I have these variables:
-&ro1=122
-&ro2=112
They work fine but when I want to divide ro1 by ro2 it returns NaN!It was workin' a minute ago! I've been messin' if it for days now!
View 12 Replies
Dec 15, 2009
I'm working on a project using AS3 and timeline coding. I can't figure out how to save user information and score. When I run the movie and complete form and answer quiz questions, information is displayed on closing section, but it doesn't save.
Here are the main sections by label:
// SECTIONS
Introduction (labeled "intro") -- contains directions
Information (labeled "inf") -- collects user information
quiz-questions (25 questions -- from q1 to q25) -- presents questions
[code]....
View 4 Replies
May 7, 2011
I started working on a very simple game with a friend a week ago, but now I can't seem to solve one problem:
Every level I 'attachMovie' and 'duplicateMovie' the 'hero', blocks, ground and pigs. But when you either lose or win a level, those mc's keep existing in all the other frames...
just to show you how I instantiate those movieclips:
_root.attachMovie("ground", "ground", _root.getNextHighestDepth());
and for example going to the main menu when lost is like:
gotoAndStop("main");
I've got four frames in my timeline: main menu -> choosing level -> level 1 -> level 2
View 1 Replies
Dec 16, 2009
I'm working on a project using AS3 and timeline coding. How to save user information and score. When I run the movie and complete form and answer quiz questions, information is displayed on closing section, but it doesn't save.
Here are the main sections by label:
// SECTIONS
Introduction (labeled "intro") -- contains directions
Information (labeled "inf") -- collects user information
quiz-questions (25 questions -- from q1 to q25) -- presents questions
closing (labeled "closing") -- displays user information plus score on quiz.
Here is the code by section
// SECTION INTRODUCTION
Section "intro" --- I have one button that goes to "inf" section
stop();
intro_bt.addEventListener(MouseEvent.CLICK, gotoInf);
function gotoInf(evt:MouseEvent): void{
[Code] .....
View 2 Replies
Oct 9, 2009
is it possible to extend the access.log file? I want to pass user information via the connect method to the application and want to include this data in the access.log file.
View 5 Replies
Jul 27, 2010
I want to add some custom string into the FMS log file. If I am playing a video and I want to append some string every time when that video is played, which is in some way useful to me in analyzing FMS log, then is there anything provided or some function in which we can just pass the string as an input argument that appends it at appropriate place in the log file.
View 3 Replies
Nov 23, 2009
I have converted an image into a button and am using the following code to use it as an external link.
[Code]...
This works fine which is great but I would like for it to display information about the link when the user hovers their mouse over the button. How would I do this?
View 1 Replies
May 4, 2010
We have AS2 Flash dynamic templates that import variables text files. they are formatted like this:
&label1=label text 1&
&label2=label text 2&
&label3=label text 3&
[code].....
View 2 Replies
Jan 26, 2007
I've made a flash page with user input for email and comments. The thing is I am working with a aspx.net server. The programmer has written out a aspx coding for the server side. Now all i have to do is write a script in the input fields in flash to connect to the aspx server. The progammer said that I would have to create variables inside the flash program to call to the aspx page he created. I am faily new to aspx and have no clue to writing a script with variables.
View 2 Replies
Mar 6, 2010
I would like to create a main menu and a hud within the application that stores and displays user information. Buttons like sound and main menu options should exist.. Now i cant seem to find any examples of how to create this user interface / hud.
View 3 Replies
Apr 8, 2009
I'm doing some crawling with Python, and would like to be able to identify (however mperfectly) the flash I come across - is it a video, an ad, a game, or whatever.I assume I would have to decompile the swf, which seems doable. But what sort of processing would I do with the decompiled Actionscript to figure out what it's purpose is?
View 3 Replies
Apr 17, 2011
I am unable to produce the kind of synchronization effects I would like to in ActionScript. The issue is that I need to make several external calls to get various pieces of outside information in response to a user request, and the way items will be laid out on the page is dependent on what each of these external calls returns. So, I don't care that all of these calls return asynchronously. However, is there any way to force some amount of synchronization on ActionScript, so that at least calling the method for doing the final layout and placement of items on the page is dependent on all of my calls finishing?
View 1 Replies
Feb 3, 2009
My users upload a certain kind of text file that sometimeshas references to images stored locally on their hard drive. I needto check this file either on the server or within a flash app tosee if it has these references and then grab those images in aflash app to upload to my server.So I can use FileReference easily enough to have users uploadlocal images. But FileReference requires users to select their files with a dialog box. I can't have that. Myusers wouldn't know where to look and there are typically way toomany files, sometimes with the same name but in differentdirectories.
I can also just use URLLoader with a local URL, I guess I canprobably just use Loader too? That works great. The problem here isI can't communicate with both the server and the local filesystemin the same flash application due to Flash's security sandboxrestrictions. So I can get out of those security restrictions byplacing or editing a trust file in designated locations on variousOSes. I then need to install this trust file which is more invasiveand confusing to users then I want to be...Java's method of accessing local files from a web applet bysimply signing the applet with a certificate and having a dialogbox popup where the users grants access is ideal. Is there anything
View 4 Replies
May 26, 2010
I am trying to retrieve some information back from my LMS and into variables in Flash with AS3. I used to be able to do this without any problems in AS2, but can't seem to find a way to make this work in AS3. In AS2, publishing with the "Flash with SCORM 1.2 Tracking" option, I could call a line like the following:
fscommand("LMSGetValue", "cmi.core.student_name,_root.stuname");
This would grab the student name from the LMS and store it in Flash in the variable named stuname.
Any way to do this with AS3? I can set values back to the LMS no problem still through fscommand such as score or completion, I just can't get anything back from the LMS such as student name or lesson location.
View 2 Replies
Jan 17, 2008
i'm remodeling a website i've done ([URL]). i want to exchange information between XML and Flash files. i almost did it, but where shoul display information about one item, the whole content of this 'field' is shown. i'll explain better. this swf displays works of an artist. but the field 'date' (or any other text field) display the content of all works (separated by commas). i'll post the xml code and the actionscript code.
View 2 Replies
May 3, 2010
I have spend my whole day trying to find a good way to access ID3 tags in AS3.0;In my project I am making a sound object and assigning it a URL: Then I stream the sound into a sound channel:[code]I want to read the ID3 tag somehow and display the artist name or anything in the ID3 tag, onto the screen.I Have the URL change through user input, and naturally I want to update all the information with the new ID3 tags information.[code]
View 9 Replies
Nov 4, 2009
I am doing a simple form "POST" and I need to include some hidden field information. My problem is that my hidden field identifiers are formatted like this: 00N3000001NzMD. So when I declare the variable I get a syntax error. var 00N3000001NzMD = "eMarketing" I'm assuming this is because you are not supposed to have a variable that starts with a numeral? The logical (to me) work around would be to do this:
[Code]...
View 1 Replies
Jun 4, 2004
I've always been able to import dwg/dwx files into Illustrator, edit out layers I dont need, export to swf, and import into Flash MX. I just got some new CAD files that wont open in Illustrator and am kinda stuck without a solution. Purchasing new software is no big deal I just want to be sure that it will open these new files and be able to export to Flash in a usable format.
View 1 Replies
Sep 8, 2008
I've masked out the backgrounds around some photos (of people) in Photoshop, and I'm importing them into Flash CS3 (Mac). When I import them in, they appear to have a color shift...they look lighter, more washed out than they did in Photoshop. My color space in Photoshop is sRGB, and I've tried importing the images as PSD and as PNG files, but no difference.
View 1 Replies
Nov 18, 2009
I'm importing a swf file with on/off buttons into Captivate, and the sound is not playing. I'm not sure if this is a Flash issue or a Captivate issue. I have posted this same question on the Captivate forum and have not received a response. The swf file seems to be playing fine, however, when I import it into Captivate the sound will not play anymore.
View 6 Replies
Sep 3, 2009
I have inherited a website - http:[url].... and I will need to edit the first page from time to time (Flash). I have the original .fla files and I only have Flash CS4. Not sure which version of Flash the originals were built in, but opening in CS4 I can only see 35 frames - not enough to go through the whole thing. If anyone cares to have a look at the site there's a stopwatch in front of a garage door. This quickly fades in and out, then a car and other stuff appears. I can only get as far as the stopwatch. I can see the whole lot in Flash player though.what I am not doing right?
View 1 Replies
Feb 16, 2011
I'm trying to approach another method for making a particular game that I've been working on for the past year. I'm wondering if it's possible to create the game in 'pieces' and import all of the files into one .FLA file. For example, some of the game features include:
-a turn-based tic-tac-toe system (player vs. computer)
-File save/load storage system that will save/load the game files from the user's computer (note: this is NOT an online game)
-An options screen for the user to toggle sound and controls
-The game is played using the mouse
Is it possible to create separate .FLA files and import them into one single main FLA file? For example: For the turn-based game, could I just develop the AI portion of this (since this is extremely difficult to do and will take a lengthly amount of code) in a single FLA/SWF file, then develop the interface, graphics and controls in another separate FLA/SWF file and import all of that into a single, main FLA file where the actual game will be compiled for the final version? For the options screen, can I create all of this in a separate FLA/SWF file and import it in a single, main FLA file with the rest? if I can organize each part of the game into separate FLA/SWF files and then when I get ready to compile the entire game into a single, stand-alone EXE file, everything will all be together? If the game is compiled into a stand-alone file, will it still need all of those separate FLA/SWF files each time it's run? or when I import those files while I'm developing the game, will they already be included once I compile it?
View 3 Replies
Jun 9, 2010
I'm trying to get variable importing from a PHP script before I implement it into a larger project. So far all I've gotten is headaches.// this is all thats in test.php other than the open and close brackets.// Normally I'd have it doing a mysql_query and putting useful information into the print statement.All test.as has to do is access the three variables. The problem comes in that 'val' is undefined. The id and name variables however are just fine and return 0000 and Glenn respectively.
package {
import flash.display.MovieClip;
import flash.text.TextField;
[code].....
View 2 Replies