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




.TXT File To Create A .swf?



Hi I wanted to know if this was possible. I created a dynamic text box that loads text from a .txt fileinto a swf. I also added hyperlinks to the .txt file so you could click on some of the text. What I would like to know is if it is possible for that text when clicked to load a .swf file into my existing swf file? I am using Flash MX 2004 or am I stuck creating a specific button for each link and not have it load from the .txt file?



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 10-17-2008, 12:08 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Create Menu And Submenu In Flash File Using XML File
Hello sir,

I want to know what will be the actionscript for creating menu and submenu in a flash file using XML file and .

Sir , really i am very thankful to you causes of your help in getting text using XML file in a flash file and thanks for it but if you can help me creating menu in very detail and easy way it will be very helpful for me bcoz i am really beginner in flash . so whatever you tell me should be in easy language .please help me.

Create Txt File
Hi
is ther a wey to create a text file from a swf?
maybe with javaScript??

How Create Exe File?
I am trying to create an exe file out of my beatiful creation. I have read the help file and it says I should test the file in the player. I have done so, but nothing happens when I try to do it. I am supposed to be able to view my work in the player and then save it as an exe file. I have downloaded the player, both online as well as applied for license and had the file sent to me and then manually installed.

Still, I do not know why the player doesn't start. I am so new at this and any feedback is appreciated.

Thanks
Marcus
Alaska

How To Create .MXP File
Hi there ,
i was learning the "Flash Components" from flashcomponents.net , i downloaded the .MXp file which registers in Extension Manager.

Is anyone there who can tell me how to create the .MXP file what is the logic behind using that and how to use it.......etc etc..

Thanks in advance.

Sai

How Do I Create A PDF File?
I'm stupid. What program do I use and how do i do it? I just have a bunch of text I need to put in it. Thanks.

Need Some Help To Create A .swt File
Hi all
I need some help for creating a swt file for creating custom t-shirt just like http://nikeid.nike.com/configurator....uctId=spiridon where user can modify shoes colors of their choice, same I want for my t-shirt’s project.
I read little about swt file at http://www.macromedia.com/support/dr...hbutton04.html

They r saying “Open the FLA file, then export it as a SWT by choosing File > Export Movie and saving as a Generator Template file type. It's a good idea to use the same name for both files, for example, myButton.fla and myButton.swt”

I didn’t find any option like Generator Template file in flash mx.

Can someone help me?

How Do I Create A .pl File?
Hi There.

I am new to server side scripting. All the tutorials I have access to use Perl files.

However, I don't know how to create one. I see that I can create a PHP or ASP file in DreamWeaver, but I have not seen anything for Perl.

Please let me know.

Thanks

Will Some One Create A .fla File For.......
Will some one help me in creating a autorun menu movie in flash MX..

I have my files in hard disk and i want to burn them to a cd and also add a movie which autruns when my friend insert it in his cd rom and display the contents of the cd as links.

Littlegeneral

How To Best Create A Jpg File...
This is maybe a bit of a stretch for asking here. I want to build some AS3 SWF programs for my grandchildren. For example I want to create bobble heads of them that I can move around on the stage. I would like to extract pictures of them from digital photos. I have very limited resources but I do have Fireworks 8.

So far I have been able to use Firework's MagicWand followed by a lot of hand editing to get a rough image of them and save them to jpeg files. I load them in my programs and get them as BitmapData objects. I use a floodFill as in the following code to produce a transparent image.


ActionScript Code:
var lvBitmapData:BitmapData = new BitmapData
(
    avDisplayObject.width,
    avDisplayObject.height,
    true,
    0
);

lvBitmapData.draw( avDisplayObject );

lvBitmapData.floodFill( 0, 0, 0 );

This is fairly close to what I want and it looks fine as long as the bitmaps are on a white background. When they move to a darker background, there is a light halo around the images. I suppose I can go back and try to do a better job of cleaning up the images but I just wondering if there might be a better way to do this. Better approaches in ActionScript or in the editing of the images? I'm pretty good at reading programming documentation but I have a lot of problems comprehending documentation of programs like Fireworks.

Jim Freer

How To Create F4v File
Hi,

I've been reading about the new h.264 support in flash and the new f4v file format, but I don't see any instructions anywhere on how to actually create one of these files? Any one know how to do this using CS3/flash video encoder or any other software?

Am I misiing something major here because all I can find is info on the support of flash 9 regarding f4v rather than how to render/convert video.

Adobe say to do an update but all I get is and AIR update for CS3?

Thanks.

How Do I Create H.264 FLV File?
Hi I'm hoping someone can enlighten me here. I just browsed Adobe's Flash HD video gallery (here: http://www.adobe.com/products/hdvideo/hdgallery/ )
and I extracted one of the FLVs from the gallery and opened it in Quicktime. The video info tells me the FLV has an H.264 format. I would like to create HD FLVs of similar quality, so basically how the heck do you create an FLV with an H.264 format? Thanks!

Can I Create A New App From A SWF File?
If I create a Flash app like this one http://www.startribune.com/local/12166286.html, would it be possible to create an "Editor" app with Flash that would allow a user to edit the first app or create a new one based off the new data collected. Or would this task be handled easier with Flex?

Create A File Using PHP/AS
Goal Button in Flash along with an input field passes the input field text to PHP and creates a new file on the server.

Problem
The problem right now is just with the PHP. It won't create a new file when asked to pass variables. It will only work when hard coded. This means it works when I type: www.url.com/createfile.php and the php contains the file name hard coded (ie $file = "new.xml"). It won't work if I remove the hard code and type www.url.com/createfile.php?file=new.xml.

Attempts
I've tried sever methods. Below is the code I'm using. As you can see I'm the methods I've tried are contained in there too, but marked out.


Code:
<?php
$_GET['File'];
//header("Content-Type: text/plain");
header("Content-Disposition: inline; filename=$file");
//$ourFileName = "testFile.xml";
//$file = $ourFileName;
$ourFileHandle = fopen($file, 'w') or die("can't open file");
//$ourFileHandle = fopen($ourFileName, 'w') or die("can't open file");
fclose($ourFileHandle);
/*
$data = "This is a new file entry!
";
if (!$file_handle = fopen($file,"w")) { echo "Cannot open file"; }
if (!fwrite($file_handle, $data)) { echo "Cannot write to file"; }
echo "You have successfully written data to $file";
fclose($file_handle);
*/
?>

In AS I'm just using the getURL method. However, the problem is with the php, because right now I'm ONLY testing in php not using Flash yet. Like I described above

Create A Log File
Hi,

I would like to create a log (demolog.txt) file when Flash is starting a demo (value=1) & to update it once the flash projector is unloading (value=0).

Any hint how to do that?

Thank you for your help.
Michel

How Do I Create A File Download?
hi everyone!!!

i need to create a file downloads to allow people to get files from my site from the buttons i´ve made. i´ve tried with the "get URL" command but it doesn´t work.

can anyone tell me the right commands???

thanxx.... :-)

Create A File In Flash 5
I would like to know how can I create a physic file in Flash 5 using the actionscript, but the file must be in the PC, not in cache.
thks.

Create A Txt File From Flash
Hi I'm trying to make a form that will export a text file(.txt) and save it onto the server. What I want is to be able to fill in the form with text and send the text as a .txt file onto the web server so that the file could be picked up by another flash swf. Please help. Thanks.

How Do Create A File Data.swf
Please help me ! How do create a file called data.swf for use in flash tracks ?

Need Someone To Create An MXI Extension File
I need someone who is familiar with creating mxi extension files. The product is done I just need someone to convert the FLA file to an MXI extension for me. If you have created a flash mxi extension before it should be very simple.

Please e-mail me for more info
dave@storekit.com

Can't Create Projector File
When I try to publish to create a projector file a dialog box comes up and says, "error creating flash projector file. Be sure that flash is installed corectly and that the destination file is not locked or on a locked drive."
If I try from a saved movie it seems to work but when I play the exe file, all I get is a white screen. The file size is correct though. Please help!

Create Output File?
I don't know if this is possible or not, but I want my flash movie to create an output file (like a .txt file) which records which buttons a person clicked on. It would also be great if it could additionally record the amount of time it took the person to click on each button.

Is there any way to do this?

Thanks,

Lauren

Can You Create A Swf Launcher File?
Hi,

I'm having a little trouble creating a swf launcher file. Can it be done?

Basically, what I want to do is create a swf file - which i can convert to an exe. I need the file to open, launch an HTML file within a new window, and then close (the swf file).

Is this possible??? I think it must be, but I have no clue as to how to do it.

If anyone knows how to do this - I'd really appreciate the help.

Thanks in advance,

Ben

Create List Using Txt File
is there a way to have a txt file on my server that i update with plain text and have it appear in a flash document(like a little scroll window.) and if possible, can i use html code for font color, size, ext?

How Do I Create An Exe File In Flash MX
hi
i need to create an exe file that will run on a CD. im using flash MX. what do i need to do. im assuming that the person who uses the file will not have flash MX installed.

another question is it possible to make an installer in flash MX. im desparate to find out as i have a deadline for thursday.

Nilpa

[F8] Create/Export A File?
Is there away to have flash write a variable and save it to an external file?

Lets say I have a text field I was writing in and I wanted to save that as a .txt file ...

or I had a editor the composed a class for me based on input given and I wanted it to export a .as file ...

is their a way to do this without using a third party like php?

Possible To Create A .fla File From Resources....
I'm new to flash but I am working on an mp3 player which i used software to get to the .fla file from a .swf but I am having problems. Is is possible to create a .fla file from resources of a .swf file.

I used ******* SWF decompiler to get the .fla file however I am having trouble progressing from there. I am trying to use Adobe Flash Professional to create the .fla file.

Is there a tutorial for this? is so could someone help me find it I have looked for one and have had no luck.

Also is anyone knows the answer that is gladly accepted.

Thank

- newb

Create Empty Txt File With AS
Is there a way to create an empty .txt file with ActionScript? I'm running a .swf and need to save information to the users machine in a txt file they can open later.

Thanks

Using Delegate.create With .txt File,
I am using the following code to read data from a text file "theDummyData.txt".... but i m unable to read the data.... please help.. i need help on this ..
I do not know whether i m using it in correct way. PLEASE HELP!!!

private function loadXML()
{
var myLoadVars:LoadVars = new LoadVars();
myLoadVars.onLoad = mx.utils.Delegate.create(this, receiveXML);
myLoadVars.load("theDummyData.txt");
}

private function receiveXML(success)
{
if (success)
{
//trace(this.graphlabel); // is not working
//trace(this.item1); // is not working
}
}

*******************************************
theDummyData.txt contains the following data
&graphlabel=THIS IS MY LABEL TEST &item1=CAR

Create Dynamic XML File
Hello

I am new here and happy to join the community

I've started to learn AS3 for 2 months now, and then tried to save an array created dynamicly during the use of my swf.

Is it possible to create a XML file with AS3 ?

thanks for help

Create An XML File From Flash
hi everybody
hi cyanblue
can we create an xml file from AS 2.0??? and then add in it nodes
i know that we can add nodes by Xml.appendChild
any tutorial on this (xml.appendchild)

Create An Encrypted File
from actionscript.. is that posible? to create settings.dat with my encryption code in the program directory.. i should also be able to use the data inside..

so, can flash create an external file or at least modify it?

Can I Create A Xml Or Text File?
Hi,
I would like to be able to create a text file or xml file using users input(this is not for a web site so do have server capabilities)
The file will be smiler to this with the user input in {}


Thanks for all your help







Attach Code

<GenresToAddList>
- <GenreToAdd>
<GenreName>Classic Hits</GenreName>
<MediaClass>MUSIC</MediaClass>
<ImageFile>classic hits.jpg</ImageFile>
</GenreToAdd>
</GenresToAddList>
- <SongsToAddList>
- <SongToAdd>
<Title> {entered by user} </Title>
<Artists> {entered by user} </Artists>
<SongID> {auto incremented} </SongID>
<MediaClass>MUSIC</MediaClass>
<MediaFormat>MPEG1</MediaFormat>
<MediaType> {selected by user} </MediaType>
<ImageFile> {location entered by user} </ImageFile>
<MusicFile> {location entered by user} </MusicFile>
- <GenreList>
<Genre>Classic Hits</Genre>
</GenreList>
<DateReleased> {entered by user}</DateReleased>
<BeatsPerMinute> {entered by user}</BeatsPerMinute>
<CDCatalogNumber> { auto incremented} </CDCatalogNumber>
</SongToAdd>
</SongsToAddList>

Create A Popup With A Swf File
Hello everyone, I am creating a personal travel photography website. Basically what the users will be presented with is a map of the world, they may scroll over different areas of the world which will enlarge that geographical area. Hot spots will be visible to users where pictures are available.

Now what I want to do is when the users click one of the hot spots I want a popup window to appear with a already created gallery.

Is there a simple way of doing this?

Can I Create A .txt File From Within Flash?
Hi.
I need to create, phisically on the server, a .xml or .txt file. Can Flash generate such files? I need to exit on the server after creation.

Thank you.

Can I Create A .txt File From Within Flash?
Hi.
I need to create, phisically on the server, a .xml or .txt file. Can Flash generate such files? I need to exit on the server after creation.

Thank you.

When To Create An AS File Vs. Just Include AS
Hey folks,

I'm rather new to AS and the heavier "Java-like" coding so I thought that this would be a good question to pose. When do you find yourself opting to create a separate AS file versus just writing the code in a frame in the timeline? Should a class file always be linked to one type of object or should it contain all of th code externally no matter what?

Thanks,

- MT

How To Create The .swf File Automatically?
Do you have the experience in flashscripting (FLASHMX),if so can you clarify this doubt.

Query is, Generated the XML file through VisualBasic.As well as i written the code part and store in the folder where the XML resides (mean .fla file) but i would like to compile that .fla file and creates the .swf file automatically.If you came across this situation or know to solve this query.just pass on your ideas and suggestion.Thanks in advance.

Any other interesting way or tricky thing to do the above task(Want to create the .swf based on the .fla file automatically).Any help in this issue would be appreciated.

Cheers
SATHISH KUMAR G

Create Txt File From Falsh
Can we create a txt file from the data inputs in flash.

I am using some variables in swf called form an external txt file. Can we by any chance call the variable values...update the vlaues... in flash and save them in that particular txt file (overwritte the exisiting one)

Please let me know if we can.

How To Create Downloadable Zip File
We have a CD that we mail out to customers which contains 5 files that display a presentation of our company (similar to a powerpoint, but it was not created in ppt).

I would like to create a link in our flash site so that people could download a zip file to access this presentation. The presentation is about 300MB.

I am not sure how to go about this. I'm thinking I need to put the five files in a zip file, and create a button that links to this file on the server. Do I just create actionscript like this?

//Goto Webpage Behavior
getURL("http://www.website.com/zipfile.zip","_blank");
//End Behavior

If so, then how does the user know which file to click on once it's unzipped to run the presentation? I could create a text file with instructions, but I don't know how many users will go through all the trouble.

Ideally, I'd like to create a link to the file and just have it play. Maybe the answer is really obvious here, but I'm new. Any help is appreciated. Thank you!

Can Flash Create A .txt Or .xml File
I am making a flashcard generator and I would like to be able to create either a .txt or .xml file to store user input for generating the flashcards. Can Flash do this? I would rather have a file than use a sharedObject and store it in the cache.

Thanks for your help

Create An XML File From Flash
Hello all,

I have a movie which loads quiz questions from an XML file. This works perfectly, although editing the questions is a bit tricky.

I was wondering if anybody could tell me whether it is possible to create an XML file from a flash movie.

I would like to create a simple template in which:

- the user enters the question and answer data
- the user chooses a filename for their data
- this data is saved to the hard drive in the form of an XML file
- this data can be accessed by a serarate quiz movie

Is this possible?

Thanks in advance for any help that anybody can offer,

David

How Can I Create Swf Or Any Video File From Swf?
Can I write a swf file witch can play animation by timeline and script. After that could I create swf file from this swf file.

May not swf file, but may be video (But I think that video can't play script).

thank you so much.

How To Create The .swf File Automatically?
Do you have the experience in flashscripting (FLASHMX),if so can you clarify this doubt.

Query is, Generated the XML file through VisualBasic.As well as i written the code part and store in the folder where the XML resides (mean .fla file) but i would like to compile that .fla file and creates the .swf file automatically.If you came across this situation or know to solve this query.just pass on your ideas and suggestion.Thanks in advance.

Any other interesting way or tricky thing to do the above task(Want to create the .swf based on the .fla file automatically).Any help in this issue would be appreciated.

Cheers
SATHISH KUMAR G

Is It Possible To Create A Xml File In Flash
Hi,

Just wanted to know if it was possible to Write to Xml file in Flash.  I Know that it is possible to Read a Xml file through the use of the XML connector but what I need to do is Write values to and xml file and create a new xml file every time I submit the information to an XML file.  Could someone maybe point me in the direction of a turtorial that tells you how to do this.  Thanks in advance.

Create A Dvd From A Flash File
are there any possibility's to create a DVD from a flash? i assume you have to make a lineair movie of it?

problem is i have allot of coded animation so what options i have? i need to rebuild the site and create only tweened animations?

or i can make a screencapture of it. but i dont think that will be from decent qualty

anyone has some epxerience with this? the dvd should be running on stand alone dvd players.

FSCommand: How Do I Create A Text File?
I'm hoping someone can help...

I want to creat a presentation from an swf file.
The swf file contains text fields.
I want to output these text fields and use them as input to an executable I want to execute, from a button click, say.

I've figured out how to execute any command.
But, I'm not sure how I can get the text fields to be outputted.

It's probably simple... but after a few attempts... I'm lost.

If anyone can help, I'd reeeeally appreciate it.

Thanks.


Jam

Create Screensaver For A Projector File
I've got a projector file.

To prevent burn-in on some displays, I'd like to have a screensaver kick-in (in my case a seperate external SWF) if either no mouse or keyboard action occurs after so many minutes. Then upon any key or mouse movement the screensaver would disappear.

I know I need to use the getTimer() but am not sure how to go about it. Any tutorials on this or direction would be appreciated.

How To Create A File Of High Scores
Hi,

How can i create a file with high scores using flash.
For example : thre is some text filed in a movie where the user will inter his name , how can i write this data to external file ( open an existing one or create a new one ) ?

Thank you.


eldar52

Use Fscommand To Create Text File?
I know that if you want to run an executable from within flash you must place the exe in a folder called fscommand and then use the code:

Code:

fscommand("exec", "program.exe");
In flash 5 you save your variables to a text file with:

Code:
fscommand("save", "mytextfile.exe");
Has the ability to write the text file in this fashion been removed?
I just assumed that it would write the text file in that fscommand folder but such was not the case.

Copyright © 2005-08 www.BigResource.com, All rights reserved