ActionScript 2.0 :: Changing Aspects In Flash Using External Files?
Jun 13, 2006I want to change the colour of objects and text also I want to change the font using an external file.
View 1 RepliesI want to change the colour of objects and text also I want to change the font using an external file.
View 1 RepliesIm doing a flash site, and trying to do it with 2 languages. They are contained in 2 separate text files. Now the language selector is placed just after the preloader, containing 2 buttons, each with a portion of code Button 1:
[Code]...
Now flash just for hells dogs doesnt want to load a txt file. Wheres the error then?
Im doing a flash site, and trying to do it with 2 languages. They are contained in 2 separate text files. Now the language selector is placed just after the preloader, containing 2 buttons, each with a portion of code Button 1:
[Code]...
am creating a simple flash game where you rotate a planet to make the buildings on the planet avoid incoming meteors.I was told that there is another just like it already, but I don't want to see it because it may restrict my imagination.
I have everything pretty much planned out now in a "game script" of everything that i want to happen. only thing is, i'm not sure where to start.Actually,i implemented rotating the planet and the timer so far, but that is all.I was wondering if anyone wouldn't mind reading through my game script and pointing me in the right direction.I am trying to wrap my head around creating classes to handle different aspects of the game, but not sure what to put in a class and what not to.I attached the game so far and the word file
Is it possible to control aspects of a movie clip using hyperlinks within a dynamic text box?
I am using LoadVars to import text from an external .txt file into a dynamic text box, and although I can create simple hyperlinks (using <a> tags) within the box that can redirect the current page to a new URL, is it possible to have links which work within the flash movie - i.e. navigating to another scene?
I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:
[Code]....
I am new to flash and decided to start out using templates to gain a beter understanding. I grabbed a template - that when I went to save it said it was an MX version - once I began to make changes in it re-save and publish it I noticed that some of the elements were missing. I thought it was something I did so I copied the entire directory and just opened the .fla and saved it without making a change and then published it and the items were gone again. I saved it in the same directory only changing the output .swf file and used all of the same html files
View 5 RepliesIve got some external HTML text being fed into flash, all I want to do is to edit the <li> tag in the HTML (not CSS) so the bullets sit flush to the left with the rest of the text, thats it! is there something i can put in the HTML that will resolve this such as:
[Code]....
I'm working on making a pretty chunky game engine for games I plan on making, but I was wondering if you make external AS files unopenable such as .lib files, so that if I give it to a friend that wants to use it, he/she cannot change my code. Is there anyway to make external AS files unopenable? Also, obfuscation isn't an option for this problem as it only stops the people who hack the finished product, not stopping people who have access to the actual files.
View 2 RepliesDoes anyone know of a program that will change .swf files to .fla files? I have a couple of old .swf movies that I'd like to convert.
View 4 RepliesI am looking for a simple solution to my problem. I have 3 flv videos I would like to display after each other. That is fine, however, My problem is that I want to change the flv files (thus changing the video too). My problem is that since the videos are different, the time between one another may vary. I would like to know how to instruct Flash to skip to the next video once the previous one has stopped.
View 2 Repliesi have been working with a few basic flash presentation to learn the ropes. However, I am working on a flash file which, when compiled, pulls in flash content from elsewhere in the Parent folder. I have read through the FAQ and cannot find the answer, as there doesn't seem to be any Actionscript which handles the importing of these external files.
Are there other methods that I am unaware of? I need to edit these other files, however I find it more beneficial to first understand how the Flash file is compiled before editing.
I've been using flash functionality in order to fill in dynamic text variable with an external data. The script works fine, except that now runs very slow - around 30 seconds or so.
myData = new LoadVars();
System.useCodepage = true;
myData.load("get_content.php?id="+_root.id); //get external content[code].............
I was told recently by a Flash developer that I respect that using
include "functions_file.as";
is not the appropriate way to import a list of functions into an AS3, Flash CS5 document.We're not talking about objects and packages, just a list of functions.
how can i make a flash movie, have a loading bar for a movie being loaded into it, but also for the content in the main movie.
and have both the percentages in the same loading bar.
i.e.
main = 25%
loadee = 75%
-----------------------
total = 50%
i dont want a loading bar in each of the movies being loaded in?
something like _level1._getBytesLoaded() or something?
i think i tried it before but since _level1 hadnt even began to load it disregarded it and assumed it was done..
This is the code i have been using
loadText.load("textfile");
//creating the loadVarsText function
loadText.onLoad = function() {
dynamictextboxname.text = this.the=whatever text in notpad;
};
how to load my external text in, i have it all set up. Its all being saved into the same folders etc. But still nothing.
Anyone know how to set up a Flash AS structure that doesn't feature any code in the actual compiler FLA and instead places all code in external .AS files? I believe this begins by setting up a Manager class and then setting that as your FLA's Document Class, yes? Everything else runs through the Manager?
View 13 RepliesI recently got the following code from one of your tutorials and am wondering why it is that when I try to change the .jpg images to .png images, the images no longer appear in the swf file. Does flash no allow .png files to be loaded.The reason that I need the files to be png is because the have to have a transparent backgroung.[code].....
View 9 RepliesI use flash CS3 on Mac OSX and I'm creating several AS2 projects with .as class files. Everything code-wise is working perfectly. The problem comes when I make a change to a particular class file, save the file, and the republish the fla. The changes are almost never reflected in the published swf. The only thing I've discovered to work around this problem and actually get my changes published is to publish to a different flash player version, and then republish back to the version I really want. Somehow that seems to actually get flash to load the most recent version.
It seems like this might be some sort of flash caching problem, but I have no idea how to tell it to always check for the newest version of the file.
I have 5 external flash files that i am trying to load randomly in from a seperate flash files (main.swf is trying to randomly load: Flash1.swf, flash2.swf, flash3.swf, flash4.swf, flash 5.swf)
this is what i have so far:
var myLoader:Loader = new Loader();
addChild(myLoader);
var url:URLRequest = new URLRequest("flash1.swf");
myLoader.load(url);
it works in loading just one flash movie but im looking to have to randomly load from the five .swf's
Am I only limited in using .flvs and swfs?
View 1 RepliesI am fairly new to Flash 5, I have been using Swish for about 1.5 years. I want to advance to a new level though. I have asked this question at others boards, and haven't yet got a detailed enough answer for me to understand it and work it. Either that, or I am making just a tiny error. If anyone could explain in detail how to show a .txt file inside a flash OR give me a link to a detailed tutorial then that would be great.
View 5 RepliesI am a complete novice when it comes to flash and web design in general. I have purchased a flash template [URL] which I have been able to customise to my liking for a small production company. I am now completely stuck when it comes to integrating videos within the site.
I understand that I need to have an Xml playlist and some action script that references the videos to the player, but I have no clue on what to do.
I am looking to have a video begin as soon as the site loads and then have the buttons on the orange bar allow the user to navigate between other flv files. I would possibly be interested in including firther links on the video samples page.
I have 5 external flash files that i am trying to load randomly in from a seperate flash files (main.swf is trying to randomly load: Flash1.swf, flash2.swf, flash3.swf, flash4.swf, flash 5.swf) this is what i have so far:
var myLoader:Loader = new Loader();
addChild(myLoader);
var url:URLRequest = new URLRequest("flash1.swf");
myLoader.load(url);
it works in loading just one flash movie but im looking to have to randomly load from the five .swf's
have this flash xml menu that loads external swf files like this:
Code:
<item title="ABOUT"content_path="http://mysite.com/folder1/folder2/folder3/about.swf"target=""mo
[code]......
I'm currently looking to use Flash to pull in two separate media files and to play them at the same time. From what I know about Flash, it's certainly possible to play two files, but is it possible to play files without embedding them in the Flash file?
View 3 RepliesIs it possible to package all external files, such as images and videos, into the final .swf or equivalent file? I want to keep the external files separate because it is easier to change them out while developing, but I don't want them to be external when delivering the project.
View 2 RepliesI need to merge two flv files, using PHP. I can't use exec method. I am wondering if is possible to cut some part of one flv file (audio tag) and paste to another and overwrite duration for output file. [URL]..file-length-using-pure-php but I do not know how can I get an audio tag from a flv file? How many audio tags a flv file has? Which tags should I overwrite in output file to be able to play audio from two merged files?
View 1 RepliesI am having trouble trying to use actionscript to load different files when different values are changed. I am currently using a tilelist and they have different values so the code is something like this: (the title is just there, non-related)
if (startTileList.selectedItem.value == 1)
{
//textFile1 load here[code].........
So I want different text files to be loaded when different value is selected but I cannot seem to get it working.
I'm working with a flash image slideshow and I'm having trouble getting it to read from my xml file for the captions, the same thing with the images. I've changed the paths on the as well as is there anything I'm missing, any other path I am supposed to change to read off of the correct XML file and image directory? Here's the link - [URL]
View 1 Replies