Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Dynamically Writing Script


hi, pretty new to flash itself but been programming loads of languages for 5 years or so.

i have a problem, essentially i have 20+ instances all of essentially the same thing, just containing a different image, with a different x,y position on the stage.

Each of these is to contain the exact same code; code which simple tests whether they should set _alpha=1, or gotoToAndPlay(1) - essentially turn off or run again.

Is there a way of dynamically writting this script in there...i.e. looping through all the instances and writting to the final frame?

Also, i'd like to make this as "programmed" as possible, it would actually be great to create all these instances through code, each containing the different image, x&y position and create a random length of number of frames it should run for (within the master single frame), and dynamically create the keyframe in the last frame of each instance containing the same script outlined above.

Is this possible? Can anyone point me in any direction to look? (have searched extensively and checked many a manual but as yet nothing!)?

Thanks in advance

james




ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 04-16-2004, 05:09 PM


View Complete Forum Thread with Replies

Sponsored Links:

Dynamically Writing Functions
Ok so I got these buttons being dynamically attached in the movie depending on the value of
code: _global.totalLatest
Each of the buttons text and position is fine. But I wanted to write an onRelease function for each of the buttons added to the movie. I thought the code below would work but it just causes each button to act as "button_mc_4" (the last button created at the moment). Heres the code im using:

code:
create_buttons = function() {
height = 0;
for(i=0;i<_global.totalLatest;i++) {
button_holder_mc.attachMovie("button_mc","button_m c_"+i,i)
button_holder_mc["button_mc_"+i].movie.text = _global["movie_"+i];
button_holder_mc["button_mc_"+i]._x = 0;
button_holder_mc["button_mc_"+i]._y = 0 + height;
height +=button_holder_mc["button_mc_"+i]._height;
button_holder_mc["button_mc_"+i].button_but.onRelease = function() {
_global.clicked = i;
play_movie();
}
}
}

Any help would be greatly appreciated.
Thanks Harro.

View Replies !    View Related
Writing A SWF To A Server Dynamically
OK, I'm exploring whether this idea is possible...here's what I want to do.
I want to create a Flash-based Admin panel for a client that will allow the user to click a button and dynamically create a SWF on the server for the user. In practice, this would allow the user to add a Flash page to their website.

So, is it possible to dynamically create a SWF on the server? thx for your replies in advance!

View Replies !    View Related
Dynamically Writing Flashvars
Can anyone tell me how to get a flashvar into flash without using javascript? Is it even possible anymore?

I have a flash movie embedded in an aspx page that needs to dynamically load an xml file based on a parameter in the querystring. Everywhere I look all I see are posts telling me that the only way to do it is to add the flashvar to the AC_FL_Runcontent script, however I can't be certain that all my clients will have javascript enabled and I know at least a few who are not allowed to have it turned on.

When I use the object and embed tags and add my flashvar param and inline tag I get nothing in the loaderInfo object in my movie.

Am I out of luck with AS3 in this regard?

View Replies !    View Related
Dynamically Writing To Textfile Locally
I am going to make an editor for my game where anybody can change the variables. I have very many vars so I need some way of saving and loading an unlimited number of vars and arrays into a textfile. I often add vars, so I don't want to change anything inside the php file everytime I add vars.

Is there anybody who knows how this could be done?

Sorry for my bad english.

View Replies !    View Related
Dynamically Writing And Loading A Gallery
I have most of this figured out, but I'm stumped on thing. I have a gallery of images that are dynamically written to the stage from an external XML file. All of the images in the gallery are the same height, but not the same width.

I want be able to attach a mc to the stage, add a bit of spacing and then continue onto the next image until all images are loaded.

I tried to add another node in the XML for each image to store the width of that image, but the loop doesn't want to recognize the node as a value to use for spacing.

Code:

var xml:XML = new XML();
xml.ignoreWhite = true;
xml.load("fluxXML.xml");
xml.onLoad = loadXML;
function loadXML(success) {
   if (success) {
      nodes = xml.firstChild.childNodes;
      
      _root.createEmptyMovieClip("tray", 1)
      currentX = tray._x = 5;
      currentY = tray._y = 10;
      numOfItems = nodes.length;

      for (i=0; i<numOfItems; i++) {
         if (nodes[i].attributes.type == "logo") {
            tray.attachMovie("holder", "holder"+i, i+1);
            tray["holder"+i].thumbnailName = xml.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue;
            tray["holder"+i]._x = currentX;
            tray["holder"+i]._y = currentY;
            var xWidth:Number = xml.firstChild.childNodes[i].childNodes[1].firstChild;
            currentX += xWidth;
         }
      }
   }
}


And here is the xml

Code:

<data>
   <item type = "logo">
      <image>gallery/model1.jpg</image>
      <xWidth>200</xWidth>
   </item>
   <item type = "logo">
      <image>gallery/model2.jpg</image>
      <xWidth>393</xWidth>
   </item>
   <item type = "logo">
      <image>gallery/model3.jpg</image>
      <xWidth>200</xWidth>
   </item>
   <item type = "logo">
      <image>gallery/model4.jpg</image>
      <xWidth>402</xWidth>
   </item>
   <item type = "logo">
      <image>gallery/model5.jpg</image>
      <xWidth>199</xWidth>
   </item>
</data>


Note: If you change the xWidth var name to a number, like this
currentX += 100, then the spacing works fine. "100" Needs to be dynamic to accommodate for the varying widths.

Thanks in advance for the help.

View Replies !    View Related
Dynamically Duplicating Buttons, Dynamically Adding Code To Them... HOW?
I spent many hours on this, but still i can't figure out how to do it.

I want to create (or duplicate) a button,
each button has to be separated from each other by some pixels and the buttons could have many rows.

then, once i got the buttons i wan't to assign each of them an "unique" code

b1.onRelease = function() { // <-- but i don't want to write a
loadMovie(somemovie,someplace) // function like this for each button
)
};

View Replies !    View Related
Loading Pictures Dynamically To A Dynamically Loaded Clip
Here's the issue. I'm creating a video player and EVERYTHING is working swimmingly except for one thing. On my list of available videos (which is XML driven) everything reads in correctly and the movie clips are added correctly, but I can't get the thumbnails to add to the stage. Someone help!! Here's the code I'm using:

EDIT: Oh yeah, the thumbs are located in a separate directory and the location is indicated in the xml file. the "vidList" variable is my XML list.


PHP Code:



function loadPics():void //this is the first function called...{    for(var i:uint = 0; i < vidList.length(); i++)    {        var picLoader:Loader = new Loader();                    picLoader.addEventListener(Event.COMPLETE, onPicLoaded);        picLoader.load(new URLRequest(vidList[i].thumb));        trace(vidList[i].thumb);        picLoader.width = 72;        picLoader.height = 54;        picLoader.x = 0;        picLoader.y = 0;        picLoader.name = vidList[i].title;    }    populateList();}function onPicLoaded(e:Event):void  //this should be called after each pic is loaded, but the trace statements have yet to appear.{    trace("________________________");    trace(e.currentTarget.name);    trace("________________________");}function populateList():void //everything in here works fine{    for(var i:uint = 0; i < vidList.length();i++)    {        var lItem:ListItem = new ListItem();        lItem.title.text = vidList[i].title;        lItem.caption.text = vidList[i].caption;        lItem.x = 5;        lItem.y = 7+(79*i)        lItem.filters = [dsf, bf];        lItem.name = vidList[i].title;                list.addChild(lItem);                lItem.addEventListener(MouseEvent.CLICK, clickVideo);            }}




Can anyone give me any kind of suggestion on how to do this?

Basically, after all the foundation stuff for the video player is done, it calls the loadPics function. That is supposed to load each pic and then upon the pic being loaded, it was going to call the onPicLoaded function and I was going to (somehow) pass them to some type of array. Then, in my populateList function I would just use "i" to put the correct pic with the correct video.

Please help! I can give you more if you need it. I just don't know what else to post.

View Replies !    View Related
How Dynamically Change The Image In Dynamically Created Row Of Images?
Hi everybody,
I am wondering if someone can help me to find out on how to replace the images in row of dynamically loaded images. I need on Press of an icon from the row of images replace the image of this icon to new one. Below is the code of creating the images row based on array and XMl data. I create an array based on data taking from XML.

Code:
var numOfImages:Number;
var thumbHeight:Number = 8;
var thumbSpace:Number = 100;
var thumbTotalDistance:Number = thumbHeight+thumbSpace;
var xCounter:Number = 5;
var thumbsCollectionHeight:Number;
var currentImage:Number = 0;
var moveOutDist:Number = 10;
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
var IM_Img:Array = new Array();
var IM_Title:Array = new Array();
//==================================================================================================================
//=============================== THUMBS IMAGE LOADER ==========================================================
//==================================================================================================================

var thumbImgLoader2:MovieClipLoader = new MovieClipLoader();
var thumbImgListener2:Object = new Object();

thumbImgListener2.onLoadProgress = function(target:MovieClip):Void {

};
thumbImgLoader2.addListener(thumbImgListener2);
thumbImgListener2.onLoadComplete = function(target_mc:MovieClip):Void {

};

//==================================================================================================================
//=============================== XML ==================================================================================================
//==================================================================================================================

var totalXML:XML = new XML();

totalXML.ignoreWhite = true;
totalXML.onLoad = function(success) {

var TNnode = this.firstChild.childNodes[1].childNodes;
numOfImages = TNnode.length;

//---------------- ATTACHING THUMBS -----------------
//===========================================================================================================

for (i=0; i<numOfImages; i++) {
var mc:MovieClip = imCollection_mc.thumbs_mc.attachMovie("mcThumb_IM", "thumb_" + i, i);
mc._y = 0;
mc._x = xCounter;

xCounter = xCounter+thumbTotalDistance;
thumbImgLoader2.loadClip(TNnode[i].attributes.thumb,mc.loader_mc);


IM_Title.push(TNnode[i].attributes.title);
imCollection_mc.thumbs_mc["thumb_" + i].mc_title.title_txt.text = IM_Title[currentImage];

mc.id = i;
trace (mc.id);

mc.onPress = mc_im_onPress;

mc.xx = mc._x;
mc.yy = mc._y;

}
};

//-------------------------------------------------------------------------
totalXML.load("images.xml");
Here is onPress event where I was thinking to add this functionality:

Code:
function mc_im_onPress() {

mcToSelect = this;

if(this.id==8){
//here I need to tell to replace the image from mc8 to new image from array to image#34 from xml
}
}
Any advice is highly appreciated. Thanks.

View Replies !    View Related
Dynamically Loading Images Into Dynamically Loaded MovieClips
I'm read through many of the posts and found several on this topic, none, however, that addressed all that I need addressed. I've tried several of the suggestions but so far nothing seems to work.

What I want to do is alter the width of images loaded dynamically into a dynamically loaded set of movieclips. all of the widths of the images are different, but i want them set to the same width. The width seems to stay at zero, however, and I cannot seem to change it.

Here is my code:

for (var i:Number = 0; i < 8; i++){
var mc = attachMovie("rect_mc", "r" + i, this.getNextHighestDepth());
mc._x = 90 + (i * (mc._width+5));
mc._y = 375;
mc.img_txt.text = "image" + (i+1);
mc.img_mc.loadMovie("myPic" + (i+1) + ".jpg");

mc.img_mc._xscale = mc.img_mc._yscale = (50/mc.img_mc._width) * 100;
};

The last line is the one that does not function properly.

I'd appreciate any help anyone can provide. thanks.

View Replies !    View Related
Problem With Loading Jpegs Dynamically Into Dynamically Created MC's
hey all. I got a problem with loading jpegs dynamically into dynamically created MC's. I've been using NEIL WEBB's tutorial on dynamic creation with event handling through the LISTENER component, which you can see here http://www.actionscript.org/tutorial...MX_2004_Part2/

I have slightly altered the script to accomodate the fact that I want to attach a movieclip with text fields and image holders within it, but the code aint too different I don't think.


Code:
stop();
myMCL = new MovieClipLoader(); //define MovieClipLoader
myListener = new Object(); //define listener
myListener.onLoadComplete = function(targetMC){ //set the onComplete function on listener
trace("targetMC = " + targetMC._name);
targetMC.onPress = function() { //define onPress within function

}
}
//****************************
function initClips(){
//trace(_global.gallery_cnt);
for (i=1; i<=_global.gallery_cnt; i++){
//trace("Attaching Clip - " + i);
this.gallery_TN_holder.attachMovie("TN_Holder", "TN_Holder" + i, i); //attach the movie
this.gallery_TN_holder["TN_Holder"+i]._x = (i-1)*90; //spacing
this.gallery_TN_holder["TN_Holder"+i].TN_Text.text = _global.gallery_array.description;
[i] [i]myMCL.loadClip(_global.gallery_array.main_thumbnail ,this.gallery_TN_holder["TN_Holder"+i].TN_Image);
//load images into clip
}
play();
}
//****************************
myMCL.addListener(myListener); //associate listerer with MCL object
initClips();
The first line ("trace") in bold outputs

Quote:




targetMC = TN_Image
targetMC = TN_Image




which you can see is resulting from the second bold line.

Basically I need some direction with this as to how to reference the clip target for the loaded JPEG, as my output in the movie shows the attachMovie works, as does the text change within the individual "TN_Holder" clips. What the hell am i doin wrong, cos my eyes are kinda starting to go kinda funny looking at this stuff!!!!!

Thanks for any help!

View Replies !    View Related
Removing Dynamically Added Movie Clips Dynamically
I've been looking for a long time, but I cannot find anything on removing dynamically added movie clips. I really need to remove these movie clips dynamically since they are being placed by xml and I can never be sure how many clips will be added. Here is my code:


Code:
function callText(e:MouseEvent):void{
for (var k:Number = 0; k < my_total; k++){
var words_url = myXML.list[k].@videotitle;
var textRollDwn:ThumbText_mc = new ThumbText_mc();
galContainer.addChild(textRollDwn);
textRollDwn.name = "textRollDwn" + k;
textRollDwn.x = k%3*200;
textRollDwn.y = Math.floor(k/3)*150;
textRollDwn.words_txt.text = words_url;
textRollDwn.alpha = 50;
btnArray.push(textRollDwn)
}
}
Now this code works but I'm trying to write a function that when I roll off of this movieclip it goes away. I pushed them into an array thinking that I could also make them go away, but they wont. I tried:


Code:
for (var m:Number = 0; m < my_total; m++){
galContainer.removeChild(btnArray[m])
}
with this i get: The supplied DisplayObject must be a child of the caller

and this:


Code:
for (car m:Number = 0; m < my_total; m++){
galContainer.removeChild(["textRollDwn"] + m)
}
I get a type coercion failer saying that flash can't convert "textRollDwn0" to flash.display.DisplayObject. But that's what I named the movie clips...according to the name property anyway!

Thanks for help in advanced! Gosh I need it....

View Replies !    View Related
Dynamically Masking Dynamically Created Text (MX)
I am having trouble dynamically masking dynamically created text... It just doesn't seem to work!! This is what i'm doing.

First i create a movie clip dynamically using attachMovie. On the first frame of that mci create a bunch of text fields, one after the other. When that finishes, i call a function in another mc that creates another mc and draws a box in it and then sets it as the mask of the first mc.

The result should be that only the text that is within that mask should show up, right? Well, the text doesn't mask at all, even if it is entirely beyond the bounds of the mask.

I read that it might be a problem with fonts that aren't embedded, so i set the TextFormat.embedFonts to true...


anyone have any idea??

View Replies !    View Related
Dynamically Load Data Into Dynamically Loaded Swf?
hi,

i have 2 swfs, 1.swf and 2.swf.

2.swf will be loaded into 1.swf using loadMovie(). but there is some data that is dynamically loaded into 2.swf when it's played.

these data get loaded successfuly when i play 2.swf individually. but when i play 1.swf and load 2.swf into 1.swf, the data supposed to be loaded into 2.swf are not loaded.

can somebody give me some leads?

thanks

View Replies !    View Related
Writing To Txt
Is it possible to write to a text file using mx? and nothing else.

View Replies !    View Related
Writing To Txt With Php
I have been trying to make a simple hscore table but for some reason I cant get flash to write to the .txt.
In flash I put this code in.
code:
Submit.onPress = function() {
SendScore = new LoadVars();
SendScore.n = Name;
SendScore.s = Score;
SendScore.f = "Scorelist.txt";
SendScore.sendAndLoad("SendScore.php", SendScore, "POST");
};

Then in the php file I have this code.
code:
<?
$n = $_POST['n'];
$s = $_POST['s'];
$f = $_POST['f'];
$o = fopen("$f", "a+");
if(fwrite($o, $n, $s));
else
fclose($o);
?>


The problem is most likely with the php as I have not used it much and although I know to use the php code I am unsure what it means. Thanks

View Replies !    View Related
Writing XML
ok i got this script and i need it to write into a XML file onto the server im using.
The structure is:
root---|
flash.swf
web.XML
the flash.swf sends data to the XML file and writes it.(and i dont want to use php.)

Ideas???

View Replies !    View Related
[F8] Writing To An SWF
Hi, this is driving me crazy and I'm afraid I don't even where to start looking (or even how best to ask) for help. What I'd like to be able to produce is the following:

'User-bookable time slots' (or however else they might otherwsise or more appropriately be termed).

I'd like to create a table indicating time slots (10am til 11 am; 11am til 12; 12pm til 1pm etc) which, if not already taken - i.e. someone else's name isn't already displayed in a slot - will allow the user to type his/her name in, then hit a submit button whereupon the his/her name will be shown in the slot rendering it unavailable to subsequent site users.

Does any of this make sense? I'm having trouble getting my head 'round how to achieve it, despite having successfully added guestbooks and all manner of other 'read/write' sort of stuff to various of my sites.

Sigh... I think I might be having a 'senior moment'! Please, please help!!!

Many thanks,
Fran

View Replies !    View Related
Writing To XML
Well i know how to read XML and everything...but now i want to add to an existing XML..and i have NO IDEA how...

my xml looks something like this , and now i want to add like a ITEM or FOLDER like underneath the 2ndfolder for example..

How do I insert it in theory and how will i find the correct spot ect..

how do i insert something between a tag like this <folder> </folder> ?

CODE would also be helpful...



ActionScript Code:
<?xml version="1.0"?>
<Explorer>
  <!-- comments -->
   

    <Folder title ="Desktop" icon="desktop">     
    <Folder title="Stuff" icon="folder"/>
    </Folder>
   
    <Folder title="My Computer" icon="pc"> 
            <item title ="readme2.txt" icon="txt"/>    
    </Folder>
    <Folder title="Recycle Bin" icon="recycle"/>

   
</Explorer>

THANK YOU !!

View Replies !    View Related
Writing XML With AIR
im trying to open an existing XML document and then write to it with AIR using flash..


ActionScript Code:
import flash.filesystem.File;
import flash.filesystem.FileStream;
import flash.filesystem.FileMode;

var appDir:File = File.applicationStorageDirectory
var dskTopFileStream:FileStream = new FileStream();
var fileString:String = appDir.nativePath;
var dskTopFile:File = File.documentsDirectory;
  trace(dskTopFile);
dskTopFile = dskTopFile.resolvePath(fileString+"\bankroll.xml");
//trace(dskTopFile.toString());


// LOAD XML
var xmlString:URLRequest = new URLRequest(fileString+"\bankRoll.xml");
var xmlLoader:URLLoader = new URLLoader(xmlString);
xmlLoader.addEventListener("complete", init);
var defaultXML:XMLDocument = new XMLDocument();
defaultXML.ignoreWhite = true;

function init(event:Event):void {     
    var xml:XML = XML(xmlLoader.data);     
    defaultXML.parseXML(xml.toXMLString());
    //var myString:String = defaultXML.firstChild
var existingData = defaultXML.firstChild.childNodes
trace(existingData)
var i = 0
for (i=0;i<defaultXML.firstChild.childNodes.length-1;i++) {
    trace(i)
   
}

dskTopFileStream.openAsync (dskTopFile, FileMode.WRITE);
dskTopFileStream.writeUTFBytes ("<BankRoll>"+ existingData+existingData+"</BankRoll>");
dskTopFileStream.close ();


}

problem is, it keeps inserting weird charecters and placing commas etc between my childNodes.. this effect seems much like an old php problem i use to encounter having something to do with a setting in the php server..

any ideas?

erik

View Replies !    View Related
Writing To HD
I need a Flash application to write something on to the hard drive (to
itself or to another file). The application is supposed to run on a
stand-alone computer, no connection to other computers, no Internet.
Is it possible to do that with FLASH means without installing ASP, PHP or
other add-ons?

View Replies !    View Related
Writing To PHP
So I am still new to AS3 and I need some direction for a school project and was wondering if I could get help here. I am creating a website all built in Flash for my family website (It is kind of like a family newsletter website). It has letters that my family writes each month. Before the would email me the letter and I would replace it. I want to be able to have the letter be displayed in a dynamic text field then they hit a submit button and a write letter area pops up. They then write their letter and then it automatically replaces the old letter with the new one. Now I have created the lay out and the text field that pops up and I have got it in AS3 just to replace the text but when I leave that page and come back, it does not keep any of the new text. I talked to a few people saying that I would have to have it be an xml file (Which is ok, I can figure that much out) But then I would have to use PHP to write to that file to have it switched on the server. Anyone know where to find some help with that? Or do you know of anything? Thanks for your help.

View Replies !    View Related
Sky Writing
Hi everyone!

It was a long long time since I posted in the forums! Well I'm back and need some help with an effect I saw a few years ago. It was a flash movie of a small airplane leaving a trail of text as is moved through the 2D sky. I guess it involves a motion guide and the plane following the guide but how do I make the text appear in the way that the plane flies?

Cheers

View Replies !    View Related
Writing To Xml
ok i know someone knows how to do this.

i need a basic form that maybe has 4 variables and then once submitted will write to an xml file.

i understand how to display the xml, but i need a client friendly form to write to it.

anyone??

View Replies !    View Related
Writing To XML
I've got this really simple login system that is used for about ten peeps.

But now I want these people, once they logged in, to write a short story, which has to be saved in an XML file. Can someone help me with this, really don't know how to get it to work.

If you look at the flash file, and login using username "a" and password "b", you get to the write screen. General idea is that when people write something here, and press the sned button... this info will be saved in the supplied .xml file before the other inputs.

View Replies !    View Related
Writing To A Txt
Just wanted to know if flash can write to a txt file(without php), and if so how.
Please

View Replies !    View Related
WRITING TO XML?
Hi,

I have an xml file I use for a gallery. However the client is a bit simple and cannot grasp updating the tags, so I've decided to build some sort of control panel that will write to the XML, i.e. you enter the image path, description and thumbnail location, submit, and the XML is written...

Can you point me in the most basic way to do this? I know kirupa is wonderful for straight to the point tutorials

View Replies !    View Related
Writing XML Using AS3
Hello,
I would like to know if there is a way to write to an xml file using Flash and Actionscript.
What I want to do is write to an xml file and then access it later.
Thanks!

View Replies !    View Related
Sky Writing
Hi everyone!

It was a long long time since I posted in the forums! Well I'm back and need some help with an effect I saw a few years ago. It was a flash movie of a small airplane leaving a trail of text as is moved through the 2D sky. I guess it involves a motion guide and the plane following the guide but how do I make the text appear in the way that the plane flies?

Cheers

View Replies !    View Related
Writing To Xml
ok i know someone knows how to do this.

i need a basic form that maybe has 4 variables and then once submitted will write to an xml file.

i understand how to display the xml, but i need a client friendly form to write to it.

anyone??

View Replies !    View Related
Writing Look
hey guys, i am trying to figure out how to do something like this

the writing part at the beginning

if you guys could point me in the right direction i'd appreciate it cause i can't find any tutorials on how to create this effect

View Replies !    View Related
Writing To Disc
Err, Flash standalone can write to disk.

I need syntax, and explanation of it ...

(well, actualy, this is syntax, but from time to time it does not work for some reason)

fscommand ("exec", "command.com" add chr(9) add "/c" add chr(9) add "echo" add chr(9) add "&take=" add _root.variable add ">c: ext.txt");


pleeeaaaseeeee!!!

View Replies !    View Related
Writing Txt File To Cgi
Hey all!

I have in my website http://www.brucekey.nl a dynamic txt box that loads from my cgi-bin. If I want to change the txt file, which happens weekly, I just change the textfile and upload it again into the bin.

Is it possible in flash to make changes to that textfile online?

So let's say make a special page where the text loads in the textbox, editable, make changes and save it again, so I don't need to ftp it over and over??

I read about php, but I am not really into that, especially since my txt.cgi works good enough...


Thanks for your input!

View Replies !    View Related
Writing To Txt File
Hi. I'm making a flash app, and I'd like to write variables to a txt file in url-encoded format locally.

Is this at all possible?
Should I use fscommand/javascript or something?
I'm not too familiar with javascript, so if anyone could give an example, it would be appreciated.

Thanks!

andreas

View Replies !    View Related
Writing To A Txt-File
Hello!

I know how I can read a txt-File in Flash, but now I wan't to know, how I WRITE to a txt-File. It has to run on my local computer.
Is it something like
loadVariablesNum("data.txt", 0, POST);
???
Thank You for help

Mfg
FlashNiete

View Replies !    View Related
Writing In Arabic
hi can someone plase help me with writng in arabic in flash mx. thankyou

View Replies !    View Related
Writing To A Txt File...
Okay I know this is supposed to be really simple and I considered myself beyond it until I tried. And it wouldn't cooperate with me. I've got this code:

Code:
on(release){
//other code checking to see if params are met...
_root.loadVariables("comments.txt", "POST");
}
i have 3 dynamic text fields: name, email, and comments. each show up as variables under level0 when i list the variables at runtime, so I don't know why when I open up the comments file there isn't anything in it! Any help on this would be a relief and greatly appreciated. I am humbled, once again, by AS... Anyway, Happy Flashing.

View Replies !    View Related
Writing New XML Nodes
I know that you can remove XML nodes in Flash, but does anyone know if you can concatenate new nodes to an external XML file in Flash MX?

View Replies !    View Related
Writing To A Txt File With PHP
Hey I was wondering what a simple php script that writes a flash variable to a txt file would look like. ill be using it so visitors can 'leave me a message', so they don't have to bother with email if they just want to shoot off a little hello or something. thanks for your time.

View Replies !    View Related
Now For Some Realistic Writing
id like to have a line come on to my site in a way that looks like the viewer is watching someone write it in. I dont need it to look like pencil, i just mean i want the action of the line starting from nothing and going to the other end of the site.

can this be done?

i assume i would have to make a movie clip of some sort, but i dont know how to make it fludily go accross.

thanks a lot.

View Replies !    View Related
Writing To A .txt File ... Possible?
Hi!

I'm not sure if this question belongs to the "Newbies" forum instead, but here goes anyway...

I know how to read a text file into Flash.
However, is it possible to write a string like "I am an idiot" to a text file using Flash? If so, how? I'm still using Flash 5 btw.

If this question has been asked before, or if there is already a tutorial written about it, please re-direct me to it.

Thanks in advance!

View Replies !    View Related
Writing Letters
Hi,

I've seen many times the cool effect as if someone is writing a text in flash.You can see how the letters are written. Can anyone tell me how I can do that? It has to be realistic though :-)

Thanks in advance
Greetings
Camme

View Replies !    View Related
Writing Letters
Hi,

I've seen many times the cool effect as if someone is writing a text in flash.You can see how the letters are written. Can anyone tell me how I can do that? It has to be realistic though :-)

Thanks in advance
Greetings
Camme

View Replies !    View Related
Writing To Files
G'Day all,
I was wondering if there was any way to be able to write to a file in flash?? I am trying to write an application in flash for our office that will work on both mac and pc, and to do this i would like to write to a common file. Can anyone help??

View Replies !    View Related
Writing To A .txt File?
I know how to import variables from an external text file but what i need to know is how to change the variables in the text file from within flash. It can be Flash 5 or MX. So any ideas?

View Replies !    View Related
Help With Writing To Php Script
I have a php script for an mp3 playlist. I need to be able to write to it from input text. <song title="input" artist="input" path="input"/>[][]
then i need to be able to write
<song title="space" artist="space" path="space.mp3"/>
and i would also like to know how to delete the last line everytime i put sumthing new in. Any help would be appreciated. If I confused you plz email me at e.caffeine@blackcodemail.com maybe I can explain it better.

View Replies !    View Related
Writing To ActionScript
Hey guys and gals- I am curious to know if there is a way to write to ActionScript... via the flash movie... As in ... Being able to enter text in an Input Text Field, clicking a button, and have it save that information in the ActionScript. Or, would you have to write it to an alternate file, and have the ActionScript read from there?

I am working with Flash MX, any hints or ideas would be great, I know that the advice from you guys and gals is excellent. Thank you for your time.

-Taylor

View Replies !    View Related
Script Writing
I need help writing a script to load movies by date. I have something written but it isn't working and I need some help.
Interested?

View Replies !    View Related
Writing To Txt Files
HI everyone,

I have a flash file.in my flash file i have a variable called 'total';
which increments by 1 each time some 1 gets a question right. and decrements everytime someone gets a question wrong.

I want the score value & the players name to be save to a txt file on the clients pc.(a cookie) when the game is finished.

can some 1 tell me how to do this? OR do this using php or something...

this is the code for my last question in the quiz.



Code:
on (release) {
score = score+1;
gotoAndPlay("Scene 2", 1);
}

I want that variable score & name to be written to a txt file.

and also when the score & name has been saved to a text file. how do i call this information into a dynamic text box in flash.

Can some 1 else me please

Thanks

View Replies !    View Related
Scrollable Writing
I would like to make a scrollabe textbox in an accordeon component. I've got the accordeon component working its just i need 2 know how to make the writing scrollable.

Thanks in advance.

View Replies !    View Related
Writing In Flash
Im not to sure what the correct term for this is and if it has been asked before please direct me to the thread.


Im trying to figure out how to take the pen and write out something and giving it that look which makes it seem like its being written in real time.

Hope someone knows what im talking about enough to help me out or point me somewhere.

View Replies !    View Related
Writing Text With A Pen
I know that it sounds simple, but I'm wondering how to use a pen to look like it's writing out some text.
I think that masking may be involved??

Thanks so much, Mandoza

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved