ActionScript 2.0 :: Set The Scale Of A Textfile (putted In An Mc) At 200%
Aug 29, 2005
What I'm wanting to do is set the scale of a textfile (putted in an mc) at 200% and scale with a prototype on release of a button to 100 precent (its height).
View 2 Replies
Similar Posts:
Feb 10, 2010
i've 3 photos putted on the same frame but on different layers.I load those photos with xml with this code: function completeListener(e:Event){
var myReq:URLRequest;
var myURL:String;
var img_path:String;[code]....
View 3 Replies
Mar 8, 2007
Scenario: main moveiclip with 4 other clips in it. I want the rolledover clip to scale up and all the others to scale down and blur.
Question: What is the most effiecent way to code this. Would it be a "for in loop"? I am trying to minimize the code and would rather not use a whole bunch of if then statements.
View 3 Replies
Feb 19, 2010
I want my flash content to scale when I scale my browser window.
View 5 Replies
Mar 20, 2009
Simple URLLoader to get a textfile into a textfield.[code]Works fine locally, not on the server. I tried replacing it to the full http: URL to no avail.
View 3 Replies
Oct 4, 2005
I just make a simple system login that the username & password loaded from textfile then I store in array..but the problem is when I doing tracing nothing was trace..?this is the code I'm using for the flash
Code:
lv = new LoadVars();
myArray = [];
lv.onload = function() {[code].............
View 5 Replies
Mar 7, 2012
hi guys! just asking how to save text to textfile using AS2.
View 1 Replies
Jun 13, 2004
Okay so I am new to using txt files, and not too great with arrays, but I think I should have this right. But when I try to trace the array, I get undefined!I found this on another thread, and changed it accordingly.
Code:
_root.textArray = new Array();
_root.text_lv = new LoadVars();
[code]...
View 1 Replies
Aug 1, 2004
I have a variable which takes a particular form of array (used with the component DataSet). It looks like this:
Code:
var recData = [{svenska:"Hej", spanska:"Hola"}, {svenska:"nej", spanska:"no"}, {svenska:"ocks�", spanska:"tambi�n"}];
I want to extract this variable from a textfile instead of writing it directly into the code-area of the flash-file, so I used the following code:
Code:
// 1) Loads the textfile, recieves the array, and puts it into a variable called txt_Data
var txt_DataSet = new LoadVars();
[Code]....
Unfortunately it seems the array gets converted to an ordinary string in the process, so I cant use it properly. Is there a way I could extract the array from this string again, and if so, how?
View 4 Replies
Oct 16, 2005
I just load data from textfile into my flash file..so my problem is..how is it in flash I have to code so that I can edit the loaded data from textfile and then when I submit it'll update the data in textfile...of course I'm using php for writing in textfile...Currently I load the data into listbox from my textfile...is it possbile to edit the data from flash...
View 2 Replies
Oct 20, 2009
In have an application that uses buttons t0 load different text files. The problem is when I load the second text file I still get variables from the first one showing. To clarify things, suppose I load a file that displays variables 1 through 5 randomly when I click one button, then I click a second button in order to load a file that displays 6 through 10. The problem is that I still get some variables from 1-5 when I want to get only 6-10. Is the first file kept in memory or something? How do I unload or clear the temp/memory where the content of the first file is held.
View 1 Replies
Jul 5, 2011
using txt files, and not too great with arrays, but I think I should have this right. But when I try to trace the array, I get undefined!I found this on another thread, and changed it accordingly.
Code:
_root.textArray = new Array();
_root.text_lv = new LoadVars();
[code]....
View 3 Replies
Jan 14, 2006
How can I convert the current scale of the instance to 100% so I can easily "visualize" and manage the instance when I modify its scale? Here's the actionscript, it works, but I just want the temp._xscale and temp._yscale to be in percentages, not real numbers.
Code:
USflag.onMouseDown = function ()
{
var temp = USflag;
onEnterFrame = function ()
[code]....
One last thing, what's the tag you have to put that is designed for boxing actionscripts? I'm suing [ code ][ /code ]
View 1 Replies
Mar 3, 2010
I'm trying to load data from an external textfile, called "config_flash.txt". It works perfectly if applying the fetched data is done within the same function where the loading is done. However, I would like to use the fetched variables in other parts of the script.
Here's what works:
Actionscript Code:
var varLoader:URLLoader = new URLLoader(new URLRequest("config_flash.txt"));varLoader.addEventListener(Event.COMPLETE,
[code]...
So, basically I want the variables/values defined inside the function to be available anywhere in the script. The error that the second code snippet causes is as follows: "1120: Access of undefined property text1/text2".
View 6 Replies
Jun 8, 2010
I am creating a CBT course using Flash CS4 As3. I need to capture progress information from the user as they complete each unit in the course so that the next time they access the course they can pick up where they left off.
To do this I need to know how to write and retrieve this information to and from a text file or a cookie so that it can be retrieved re-enters the course.
View 1 Replies
Sep 27, 2011
i am at the last part of my project. it worked all well and reads all text fields from a text file as seen on :[URL]now i am trying to get the same thing working from MYSQL.Notice that the text file i used for index2.html is called [URL]and it was a direct copy/paste from the php page that gave the results from the MYSQL query. [URL] The problem is i am getting an error in [URL] which uses the php to get the text for the dynamic fields.
I get the following error:
TypeError: Error #2007: Parameter text must be non-null.
at flash.text::TextField/set text()
at final_fla::MainTimeline/onDataLoad()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
my flash movie has 113 buttons called button_1 --> button_113 and 113 dynamic text fields tcname_1-->tcname_113
my AC3 code is the following:
// button links: to all buttons to open in iframe 'tdes'
// link corrosponds to button number
// i have 113 buttons.
[code]....
View 5 Replies
Dec 21, 2009
I have scoured the internet in search of an answer but everything I find doesn't work. Take this example:
Code:
myData = new LoadVars();
myData.onLoad = function(done) {
if(done){
var wordsArray:Array = words.split(",");
[code]....
When I run the above code the Output window displays Undefined.
View 3 Replies
Mar 2, 2004
I'm trying to load variables from an external .txt file into Flash MX and this is the code I'm using:
links = new LoadVars();
links.load("assignLinks.txt");
links.onLoad = function(success){
if(success) {
diovan = links.diovan;
diovanhct = links.diovanhct;
}}
trace(diovan);
trace(diovanhct);
(The text file has the following content: diovan=whatever&diovanhct=whateveragain&)
The trace outputs "undefined" for both variables. I also tried loadVariables instead of loadVars... same result. If this is a problem specific to Macs, whats the work around?
View 10 Replies
May 28, 2005
I want to load the same external textfile in two different textfields. No problem. My freaky question is: Can I adapt the text a little in one of the two fields, more specifically: leave out the last three symbols/letters? For instance: Elvis would have been dead if he was still alive >>> and: Elvis would have been dead if he was still alive The only trick I can think of is embedding the font, but not embedding the > sign. Is that possible? I am using Verdana here.
View 6 Replies
Mar 15, 2007
I am trying to pass a variable from a text file into a variable in flash and trace it to screen. This is what I have done so far, but its not working. I have created a text file in the same folder as my flash. In the text file I have this:
loadedtext=hello
flash code:
function myFunction(){
trace("Data is loaded");
} var container:LoadVars = new LoadVars();
container.onLoad= myFunction;
container.load("demo1.txt");
trace(container.loadedtext);
View 3 Replies
Jun 23, 2008
just a quick shoot here...okay I try to refresh updated textfile data every 2 seconds and it's works ok if I'm using normal delimiters and proper data arrangement in textfile such as
[Code]...
View 11 Replies
Jan 19, 2005
I have a text file that set's some color values I would like to use in my flash movie. basically its a configure file for movieclips rollovers(set's the colors)[code]...
View 2 Replies
May 19, 2005
i am trying to load vars from a text file into a load vars object.
var kitchentext = new LoadVars(); kitchentext.load('moccastext.txt');
Once in the object, i thought i could reference them like so
kitchentext.name
kitchentext.style
but i am having trouble doing this.
i have a textbox called displytext. _root.displaytext.text = kitchentext.name;
View 3 Replies
Nov 17, 2003
i'm trying to display text from a textfile in a dynamic textfield, i have a text file called "quotes.txt" wich has variables set like this:q0=text&q1=text2&q3=text3 etc.so how can i pick these q's at random and place it in my textbox?i've tried this:
loadText = new loadVars();
loadText.load("quotes.txt");
quotes="q"+Math.round(random(10))
[code]....
View 14 Replies
Feb 29, 2004
I'm making something like a dynamic Picture Viewer, wich should display Pictures named by photo1, photo2, etc. dynamically from an url I give the viewer as a parameter. Thats not my problem by now, my problem is that I try to give the viewer few "parameters" through a text-file
NumberOfPictuers=12
I load this file like this
loadNumber = new loadVars();
loadNumer.onLoad = function()
{
[Code].....
View 2 Replies
Jan 19, 2005
I have a text file that set's some color values I would like to use in my flash movie.bascially its a config file for movieclips rollovers(set's the colors)my textfile reads as follow
Code:
textOut=0x3F6075&baseOut=0xFFFFFF&outLineOut=0xE19C14
My Flash is as follows:
[code].....
View 2 Replies
Oct 26, 2006
I have this textfile with a lot of words in it. One word on each line.
How can I compare a flash string to the lines in the textfile? I want to know if the string matches any of the lines in the file.
View 1 Replies
Dec 25, 2007
So I want to trace info out of a textfile and into flash but I'm having some trouble
info.txt
Code:
&money1=40
&money2=50[code]......
View 3 Replies
Dec 6, 2009
I saw this countdown timer [URL] and I want the date to be referenced on a text file.
here is the code;
// first get this current year so this example
// remains valid for some time to come
currentDate = new Date();
[Code].....
View 4 Replies
Feb 29, 2004
I'm making something like a dynamic Picture Viewer, wich should display Pictures named by photo1, photo2, etc. dynamically from an url I give the viewer as a parameter. Thats not my problem by now, my problem is that I try to give the viewer few "parameters" through a text-file
NumberOfPictuers=12
I load this file like this
loadNumber = new loadVars();
loadNumer.onLoad = function()
{
[Code].....
View 2 Replies