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




Easy Additions In Multiple Flash Files?



I have a Flash file displaying images.

The user must have the option to filter the images by selecting a chosen category (eg. view images A-M, view images M-Z, view all images).

The "stupid" way that I see myself doing this is by creating a separate Flash file for each category or by using separate scenes.

That means I'll have to update EACH category/scene when I add another image - and I have 11 categories. That is a nightmare.

How can I do this smartly?

(I know that shared libraries are great for download time and updating the shared item in the libary, but I need to add an item to each Flash file easily.)

Thank you.



FlashKit > Flash Help > Flash ActionScript
Posted on: 01-03-2002, 07:19 AM


View Complete Forum Thread with Replies

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

Flash And Files Easy Question
Hello,

I am sorry if this has been answered before, but I can't seem to find a post which answers my question. I only want to know if it is possible to write to a file with flash.

I need to put the current variables from my flash animation in a text file, is it possible?

If it isn't at least just right : "NO". I really need an answer
thank you!!!!



[Edited by jlaberge on 08-26-2002 at 03:40 PM]

Mathimatical Additions
I have a form where I ask the user to enter thier income (var = incomeAmountOne,Two&Three) and how often they get paid - for instance Weekly, Fortnightly or Monthly (var = paymentFrequencyOne,Two&Three).

I then want Flash to turn these into numbers and multiply the income by the payment frequency. i.e: If someone was paid $100 a week, Flash will then multiply $100 by 52 to reach an annual income figure.

This works if all three fields are completed but sends a NaN result if not all are completed.

Here's the Code:

on (press) {
payOne_txt.text = Number(paymentFrequencyOne.value);
payTwo_txt.text = Number(paymentFrequencyTwo.value);
payThree_txt.text = Number(paymentFrequencyThree.value);
netOne_txt.text = (Number(incomeAmountOne.text)*payOne_txt.text);
netTwo_txt.text = (Number(incomeAmountTwo.text)*payTwo_txt.text);
netThree_txt.text = (Number(incomeAmountThree.text)*payThree_txt.text) ;
if ((payOne_txt.text == 1) and (payTwo_txt.text == 1) and (payThree_txt.text == 1)){
loadMovie(enterpay.swf,10);
} else if ((PayOne_txt.text == 1)and(PayTwo_txt.text == 1)and(payThree_txt.text != 1)){
annualIncome_txt.text = (Number(netThree_txt.text));
} else if ((PayOne_txt.text == 1)and(PayTwo_txt.text != 1)and(payThree_txt.text == 1)){
annualIncome_txt.text = (Number(netTwo_txt.text));
} else if ((PayOne_txt.text != 1)and(PayTwo_txt.text == 1)and(payThree_txt.text == 1)){
annualIncome_txt.text = (Number(netOne_txt.text));
} else if ((PayOne_txt.text != 1)and(PayTwo_txt.text != 1)and(payThree_txt.text == 1)){
annualIncome_txt.text = (Number(netOne_txt.text)+(Number(netTwo.text)));
} else if ((PayOne_txt.text != 1)and(PayTwo_txt.text != 1)and(payThree_txt.text != 1)){
annualIncome_txt.text = (Number(netOne_txt.text)+(Number(netTwo.text)+(Num ber(netThree_txt.text))));
} else {
loadMovie(syntaxerror.swf,2);
}
}

I have not been able to add the fla file, as it was 309400 bytes - but may be needed if you want to see it in action. If this is so, simply send me an email to adamwydeman@dodo.com.au and I will forward the file to you if needed.

Any help would be greatly appreciated.

Thanks in advance,
Adam

Additions To This Actionscipt
ActionScript Code:
function loadXML(loaded) {
if (loaded) {
var noKids = xmlData.firstChild.childNodes.length

var randomNumber = random(noKids)
_root.random = this.firstChild.childNodes[randomNumber].childNodes[0].firstChild.nodeValue;

 

tip_text.htmlText = _root.random;

} else {
  trace("file not loaded!");
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("tips.xml");

ok thats the code i got help with before for showing a random tip i need to take this script to the next level. i need it to show 3 dynamic text fields now. one holding an image url so i take it ill have to load the image using html in the xml file <img src etc ??? another showing just plain txt . and one holding (this is the hardest) an mp3 url which i would like to stream will a stop play button and maybe if i get the help the track name from the id3 / 2 tags

im a complete noob so any actionscript that could help me would be tops

thanks

HELP The Script Additions ?
The revisions still does not allow the thank you page to come and still no typed information to email. I am not a Actionscript expert but there are experts on this forum. I need to solve this situation! Please kindly advise. Mary Alice

See the attached script. I did add the following as suggested.
my_lv = new LoadVars();
re_lv = new LoadVars();

See the attached Actionscript for the SUBMIT button.







Attach Code

on (release) {
my_lv = new LoadVars();
re_lv = new LoadVars();

my_lv.household = _parent.household_txt.text;
my_lv.water = _parent.water_txt.text;
my_lv.soft = _parent.soft_txt.text;
my_lv.bottle = _parent.bottle_txt.text;
my_lv.comments = _parent.comments_txt.text;
my_lv.namebus = _parent.namebus_txt.text;
my_lv.address1 = _parent.address1_txt.text;
my_lv.address2 = _parent.address2_txt.text;
my_lv.phone = _parent.phone_txt.text;
my_lv.email = _parent.email_txt.text;
re_lv.onLoad = function(success) {
if (success) {
getURL("http://www.ecowaterpb.com/thanks.html");
}
}
my_lv.sendAndLoad("analysisformphp.php", re_lv, "POST");
}

Some Bestiary Additions... Enjoy
Using spring-physics to simulate water. Includes shark.

Deep Blue Sea

An algorithm for mosh-pits or soap-bubbles.

Clumping

A spinning chamber of trinkets. Helps explain why all the small stuff goes to the bottom of a bag of popcorn.

Wheel of Trinkets

Additions To The New Post Form - PLEASE USE IT -
Our Flashkit tech guy, JPnyc has been kind enough to give us a new tool in the "New Post" form page that will make everyones life easier. So let's all please use it. What it is, is a series of Radio buttons above the Title entry box for the new post that automatically adds the version of Flash you are using and asking questions about, when you check one of them. And it will show in the main forum listings, in the title of your new thread. Everyone can tell at a glance what version your question pertains to. As you can imagine, this will save a lot of trouble as we go along. So let's all please use this great new feature.

Additions To The New Post Form - PLEASE USE IT -
Our Flashkit tech guy, JPnyc has been kind enough to give us a new tool in the "New Post" form page that will make everyones life easier. So let's all please use it. What it is, is a series of Radio buttons above the Title entry box for the new post that automatically adds the version of Flash you are using and asking questions about, when you check one of them. And it will show in the main forum listings, in the title of your new thread. Everyone can tell at a glance what version your question pertains to. As you can imagine, this will save a lot of trouble as we go along. So let's all please use this great new feature.

Additions To Senocular's XML Menu
I've been making alterations to Senocular's XML menu:
http://www.kirupa.com/developer/acti...pdown_menu.htm

For one thing, I make the submenus persistent (you have to click another main menu item to load a different submenu).

There are 2 functions that I'm having lots of trouble with:

1) I need to make an arrow appear next to the menu item on click, and when another menu item is selected a new arrow appears by that item and the old arrow disappears. In the attached script you'll see a reference to "this.arrow._visible = true;" which makes an arrow appear next to the appropriate item. The problem is, I've found no way to hide the arrows once they are created. I assumed that all arrows should be made to disappear "onPress" but the single arrow should appear "onRelease". I'm definitely confused about how to reference the arrow instances within the clips.

2) I need to place the 3rd level submenu 29 pixels below the 2nd level submenu but I can't figure out how to reference the coordinates of the last created menu item in whatever 2nd level submenu happens to be present (since the different 2nd level submenus have different numbers of items). My brain's melted at this point.

Multiple SWF Files In Flash
Hi --

I apologize if I posted this question in the wrong place.

Could someone please let me know how to properly import and use multiple SWF files (there will be 10 total) in Flash8 Pro, so that the published swf file will show them one immediately after the other and then loop.

Thanks.

Additions Of The Number Data Type
I'm trying to get the sum of two number values in an XML file, so I'm doing this:


PHP Code:



    _root.gallery_height = myGalleryXML.firstChild.attributes.height; // '200'
    _root.spacing = myGalleryXML.firstChild.attributes.vertical_spacing; // '20'

    _root.bar_y= _root.gallery_height+_root.spacing;
    trace(_root.bar_y); //outputs 20020 




The answer is supposed to be 220, but it comes out at as 20020 because the interpreter treats then as strings.

I can fix the problem by casting the type using the Number() method this way:


PHP Code:



    _root.gallery_height = myGalleryXML.firstChild.attributes.height; // '200'
    _root.spacing = myGalleryXML.firstChild.attributes.vertical_spacing; // '20'

    _root.bar_y= Number(_root.gallery_height)+Number(_root.spacing);
    trace(_root.bar_y); //outputs 220 




This works fine, but is it *the right* way of doing it? Why is Flash treating my numbers as strings?

Linking Multiple Flash Files.
I want to make a website using flash. But I don't want it all to be one big flash file (if I did that I wouldn't have any questions about this) Here's what I'm trying to do

________________________
|:::::|:::::::::::::::::|
|:menu|:::banner::::::::|
|:::::|-----------------|
|:::::|:::::::::::::::::|
|:::::|::::main:::::::::|
|:::::|:::::::::::::::::|
|:::::|:::::::::::::::::|
|:::::|:::::::::::::::::|
|:::::|:::::::::::::::::|
|_____|_________________|

the html page will be set up like this with 3 cells
each cell will have it's own flash file running in it. When you click a different button in the menu I want it to change the banner and main cells. Is it possible to load a new .swf when clicking a button in the menu? If so I need it to change the banner (which will just be a simple .swf) and change the main (which will be a webpage) I was thinking about it, and the reason I don't do the banner and main with html files is because then I'd have to use frames, which I hate.
To sum it up, I need to unload the current main and banner and load new ones at the click of a button in the menu.

Thanks in advance,
-Zack (RivenZ)

Working With Multiple Flash Files
hi... I'm in need of some major help or ideas! I have four separate flash files that i need to play in 1 .swf when all is said and done. I have two main questions...

1... how do I link/merge them together?
2... how do i make sure that the interactivity remains between all of the files? how do i script my buttons so that they take me to the correct place throughtout all of the swfs
ex gotoandstop(___.swf)?

I need to be able to have my project run in and out of all the swfs from one main swf.
currently all of my separate files work and the scripting for each is fine, but it's going back to the main file that i'm still grappling with



any input would be greatly appreciated.

Combining Multiple XML Files To Use In Flash
I am still fairly new at the whole Flash...XML thing but I was wondering if it is possible to combine several XML files used to build photo galleries into one single XML file that Flash could then read which gallery depending on which gallery is selected. Basically I have about 10 photo galleries and 10 XML files. Each XML file is named different and in Flash I have the gallery calling the XML file. I was thinking it would clean things up a lot and make editing easier if I can some how make one XML with all the galleries contained inside the XML then write a variable or something so Flash knew which gallery to open when activated. Similar to how you have to write the variables for a text doc file. Any help would be great.

D

Multiple XML Files In One Flash Movie
How does one go about showing multiple XML files in one .SWF file?

I am trying to have multiple buttons that would import specific XML files with each button....currently I am able to load and display the first XML file, but am not aware of how I would code the file to change the XML files once the buttons are used. Any help would be most appreciated.

I am using Flash MX04

Using Projector With Multiple SWF Files In Flash
I am new to the flash and having a question regarding the proejctor. I have multiple SWF files in the same directory and a main.swf is used to load other swf files using buttons. When I create the executable file (.exe) using the projector in the same directory, everything works. When I move the executable file to another computer, then only the main page shows up. A blank page shows up when I clicked on the buttons. Do I need to copy all the other swf files with the executable file? Or is there some way the projector can combine all the swf file into one executable file?

Thanks in advance
David

Help W/multiple .txt Files Loading Into Flash
this should be a simple fix - i can't find any thread that has encountered this problem so here goes:

the situation: i have a dynamic text box working correctly: it's a multiple-item menu with a single text box so when you click on one of the four menu items, the respective .txt file content displays in the dynamic text box.

my problem: the first click works - the .txt file displays from the first line (and then however much can be seen in the window). however, if i scroll down through the text (say I scroll halfway through and the uppermost content disappears) and then i click another menu item, the subsequent .txt file displays the new content at the same spot (ie: halfway through the content) so that the first portion of the text is not at the top of the box as you would expect it. if i scroll all the way back to the top and then click another menu item, the .txt file will display the top line(s) of content correctly.

the function works properly in the actual .swf file, but when i play it via the .mov or the .html file output, it doesn't work...

my question: is there a simple 'refresh' function i should be using in the A/S that assures the user will always see the top of the .txt file when clicking a new menu item? my current A/S is simple - each button has the following code with the appropriate .txt file name inserted:

on (release) {
this.loadVariables("text_terms.txt");
}

thanks for any help!
picklewit

Multiple XML Files In One Flash Movie
How does one go about showing multiple XML files in one .SWF file?

I am trying to have multiple buttons that would import specific XML files with each button....currently I am able to load and display the first XML file, but am not aware of how I would code the file to change the XML files once the buttons are used. Any help would be most appreciated.

I am using Flash MX04

IE Active X For Multiple Flash Files?
Hi,

I am working on an HTML page with embedded multiple Flash swfs. Basically, I have turned the JPEG images into Flash files to deter downloading the images. I don't want to create one whole Flash document, I just want to protect the images.

As you all know IE always will pop up a question about Active X control when the Active Content Update has not been applied.

I know in Flash you can apply Active Content Update when you publish the Flash/HTML file, but my case, I don't know how to apply it if I have multiple Flash swfs in an HTML file.

I have at least 20 Flash images in one HTML file. What code should I use to apply Active Content Update to all of them?

Many thanks.

Multiple .swf Files In A Flash Website
I'm in the process of designing my first flash site to showcase some of my photographs. I've put the images into two seperate .swf files using a programme called Slideshow Pro. On their own the swf's work really well, but when I try to embed them into my flash site it goes a little pear-shaped. Here is what I'm trying to achieve:

1. On the homepage, I have a slide show showing a looping series of about 10 images. When I first open up to test the movie the content is not visible and I have to double click on the "home" button to make this slide show appear (obviously not very user friendly). What I would like is the homepage slideshow to be there as soon as you get on the site.

2. When the visitors click on the "galleries" button, I need the the homepage slide show to dissappear and the galleries swf to appear on the gallery page.

All of my content is on the same timeline level and that is divided into the relevent pages i.e. homepage, galleries, contact me etc. etc.

I have placed both swf's into holders (as you may be able to see from my code). Is this the best option to do this and if not what method would be better?

Here is the code
Code:

stop();

   loadMovie("homeslideshow.swf", holder)
   


this.menu_mc.about_btn.onRelease = function  () {
   gotoAndStop("about me");
}

this.menu_mc.contact_btn.onRelease = function  () {
   gotoAndStop("contact me");
}

this.menu_mc.galleries_btn.onRelease = function  () {
   loadMovie("slideshow.swf", homeholder);
   gotoAndStop("galleries");
   
   
}
this.menu_mc.home_btn.onRelease = function  (){
   loadMovie("homeslideshow.swf", homeholder)
   gotoAndStop("homepage");
}

this.menu_mc.links_btn.onRelease = function  () {
   gotoAndStop("links");
}

menu_mc.galleries_btn.onRollOver = function  () {
   menu_mc.gotoAndStop("galleries");
}
   
menu_mc.about_btn.onRollOver = function  () {
   menu_mc.gotoAndStop("about me");
}
menu_mc.home_btn.onRollOver = function  () {
   menu_mc.gotoAndStop("off");
}

menu_mc.contact_btn.onRollOver = function  () {
      menu_mc.gotoAndStop("off");
}

menu_mc.links_btn.onRollOver = function  () {
      menu_mc.gotoAndStop("off");
}


On a slightly different tangent, I'd like to create a guestbook to get some feedback from my visitors. What is the best way for a noob like me to do that? I don't want some off the shelf solution as I'd like it to tie in with the theme of my site.

Thanks in advance

Multiple Flash Files Upon Page Load
i have a flash button on my home page. however, i'd like create different flash buttons with the same dimensions that would load randomly upon page load. is this possible?

i'd like to do this to add some variety to my home page. does this make sense? any help would be great.

thanks

Converting Multiple Files Into Flash Paper
I'm working with Flash Paper, and converting 100-page catalogs (currently in .pdf file format) into .swf files. Is there a way to batch process this, so I will not have to convert every single page by itself into a .swf? I can switch to using .eps files or any other file that Adobe InDesign will export, if these alternative files mean an easier time converting large amounts of info into .swfs.

Thanks in Advance

Does Flash Combine Multiple Audio Files Into One Mp3?
Just trying to understand how Flash creates its audio tracks.....

If I have a Flash movie that contains excerpt segments of several long audio files, will Flash only compile the bits I need when creating the swf movie?

If so, does it combine the required bits into one mp3 file?

Geoff

Can You Use Flash To Upload Multiple Files From A Site?
Hello, I wonder if anyone can help me?

I make tailormade CMSs/websites for people and I need a way to upload multiple files in one hit, so my users can upload files to their site quickly. I used to use a Java applet that did this... I must admit, it was ok... But it cost me $19 per site license and it was Java - which, for whatever reason, I'd rather not have. Flash seems like the best thing to use for something like this... But can it actually do this type of thing?

Does anyone know of any good Flash solutions that may do this?

James

Flash Web Sites, Multiple Files Or Single?
When creating a site in flash do you make the whole thing in one fla file? maybe using multiple scenes for better organization? or do you have a different file for each new page, and you some how attach them?

i know my question isn't the easiest to understand but im sorta left in the dark with the basic stuff....

How Can I Combine Multiple Flash Files Into A Single Flash File?
Hello,

I am very new to flash and I have created several flash files for a one narrative story animation. When I was creating the animation, I made separate flash files for each scenes and now I need to combine the separate flash files into one flash file in separate scenes.

I have tried to copy frames and paste frames but having a hard time because a lot of simbols have same names but different images between files.

Is there any way to make this happen easily?

[F8] Syncing Multiple Flash/swf Files On A Single Page
Hi,

I have the challenge of making 3 separate flash files play in unison on a site. The idea is to have them all wait until all the flash movies are pre-loaded and then start at the same time.

Has anyone got an idea of how this can be done?

Cheers,

Keypad

Flash Uploader Gets Unresponsive When Uploading Multiple Files.
When uploading multiple files, sometimes my browser will become unresponsive and the following error message will popup:

A script in this movie is causing Macromedia Flash Player 9 to run slowly. If
it continues to run, your computer may become unresponsive. Do you want to
abort the script?

If you press no, the script goes on without being slow. So why there is an error-message.
I didn't use for and while loops. And i didnt's use much code.

Published with Flash Professional 8
I use Flash player 9 + Windows XP Pro SP2 + IE

I'm making an upload app for a client, so how can i get rid of that message?






























Edited: 11/09/2006 at 11:08:37 AM by M0L (NL)

Flash 8: How Do I Load Consecutive Multiple External Swf Files?
Hello, all of you brilliant people! I have a question and hope that someone may be able to help.

I have a container .fla movie and would like to load consecutive external .swf files. Right now I have a play button triggering the loading of the next movie, but what I would REALLY like is a smooth transition from .swf to .swf using a listener so that the next .swf will load once the previous one has finished. I have a counter which determines the next .swf in order.

So far, my code is this:

Counter:


stop();
//SETUP OUR COUNTER
var mcCounter:Number = 0;

//THIS BLOCK IS ONLY TO HANDLE THE LOADER AND THE FIRST MOVIE, movie0.swf
var myMCL:MovieClipLoader = new MovieClipLoader();
var loadListener:Object = new Object();
myMCL.addListener(loadListener);
myMCL.loadClip("movie" + mcCounter + ".swf", 6);
loadListener.onLoadComplete = function():Void {
_level0.play();
}



//-------------------------<CLIP LOADERS>------------------------------\
function loadNextClip():Void {
if(mcCounter < 6) {
mcCounter++;
var nextMCL:MovieClipLoader = new MovieClipLoader();
nextMCL.addListener(this);
nextMCL.loadClip("movie" + mcCounter + ".swf",6);
}

}
//LOADS PREVIOUS CLIP , WON"T GO PAST ZERO
function loadPrevClip():Void {
if(mcCounter > 0) {
mcCounter--;
var prevMCL:MovieClipLoader = new MovieClipLoader();
prevMCL.addListener(this);
prevMCL.loadClip("movie" + mcCounter + ".swf",6);
}
}
//-------------------------</CLIP LOADERS>------------------------------\


Any suggestions? I appreciate ANY help you can offer. I have been unsuccessfully looking for hours online, and can't find any examples, although it doesn't seem as if it should be the hardest thing in the world.

Best Structure For Your Flash Site - How Do I Load Multiple XML Files?
I'm trying to use Mark Angeletti's excellent structure (http://www.sitepoint.com/article/structure-flash-site)
to solve my preloading problems. However, I'm having trouble loading an array of separate XML files. Here is his code for Frame 2:

var xmlData:XML = new XML();
xmlData.ignoreWhite = true;
xmlData.load( xmlFile );
xmlData.onLoad = loadXML;

BTW I don't understand what "loaded" is doing here. What is this importing? Nothing that I can find... from the above code. How does it know if loaded is TRUE? Please explain.

function loadXML(loaded) {

if (loaded) {
trace (xmlData)
var xnRootNode:XMLNode = this;
//add firstChild.childNodes stuff here...

}

I don't want to use his system of firstChild.childNodes in the function because my XML files are very simple - just heading and plain text. All I need to do is import all 43 of them. So I tried creating an array in the Global Variables import Frame (1) and going through them like this:

var counter:Number = allText.length, ii:Number = 0;
for (var i:Number = 0; i<counter; i++) {
var xmlData:XML = new XML();
xmlData.ignoreWhite = true
var loadText = this["eachText"+i]
xmlData.load(loadText);
xmlData.onLoad = loadXML;
}

Works so far - I can do a trace and see each one. However I can't get them into the loadXML function - one at a time. Do I need to create another loop in the function or can I put the function inside the above loop? Then how do I create another array of objects? Whatever syntax I try - ie - var xmlData[i]:XML = new XML(); comes up with an error.

Thanks for your help.
Charles

Single Flash File Or Multiple Flash Files?
I am new to flash and have a question about the basic heirarchy of a simple portfolio flash website?

Do you want to create one flash file with multiple scenes or create multiple flash files that load independently?

I have downloaded open source movies and sometimes there are multiple files?

Help a confussed newbie... Thanks

Targeting Multiple Preloaders For Multiple Files...
Hi there!

I just can't figure out how to use a preloader script for multiple loaders displaying at the same time. And I also just don't understand the target movieclip parameter for onLoadProgress. What is this parameter suppose to be?
The movieclip beeing loaded according to Macromedia but if you put mc.swf it gives you an error so it should be mc then or what? I thought I could use this parameter to kind of target and tell flash what file it was suppose to listen to and then control what preloader to start but it just doesn't work. Also what is the function of this parameter - I just don't get it... When I use the script below the loader starts for every file loaded into a listener called myMCL but I would like to have different preloaders that can be seen at the same time.
For example a preloaderbar for background loading and another one for content loading etc. How can I achieve this using something similar to this code...


myListener.onLoadError = function (target){
bkgMCL.loadClip("error/error.swf", bkg);
_root.gotoAndPlay(28);
};

myListener.onLoadStart = function (target){
this.bkgPreloader._visible = true;
}

myListener.onLoadProgress = function(target:MovieClip, loadedBytes:Number, totalBytes:Number){
var preloadPercent = Math.round((loadedBytes/totalBytes)*100);
_root.bkgPreloader.gotoAndStop(preloadPercent);
};

myListener.onLoadComplete = function(target){ //loading contents after bkg loaded
this.bkgPreloader._visible = false;

};

Enabling Your Clients To Edit These Xml Files Or Txt Files In An Easy To Edit Format
Okay so this is an issue i've faced since day one and am growing tired of not having an ideal solution for. I've learned to create files that can be updated via xml or simple .txt to make the updating process easier, but how do you gurus out there bridge the gap by enabling your clients to edit these xml files or txt files in an easy to edit format like your basic cms... but except it would be cms that would update the xml or txt file and then in turn update your swf file.

I'm sure you guys out there rely on many different solutions but i'm just looking for some enlightenment on the different ways to accomplish this and what i could possibly do to be pointed in the right direction.

Thanks ahead of time for any insight.

Multiple External Text .txt Files In Different Swf Files
I'm trying to have several external files (txt or html) attached to a several swf flash files, loading in different levels of one main movie, for easy updating.

Example is: loadVariablesNum("ext-track.txt", 0);
This I can do, partly working.

Say you click the button for "about" that loads that flash file (in a layer), it fails to load in the relevant external file (the movie loads just not the external text file).

When you open up the "about.swf" on its own, it loads up the external file no problem. It just fails to do it when I am loading it from the main swf movie file that then loads this in a layer.

I can get all the text files working by putting in all the loadVariable parts in the main movie but I need them put into their relevant swf movies.

Does that make sense?

How do you correct, something to do with layers or targetting? I'm sure it'll be easy for you guys, Actionscript ain't my thing.

Thanks.

[F8] Really Easy Multiple FLA Question
Hi everyone. I am doing a project for school and for the life of me cannot figure out the actionscript for this as I missed the class where it was covered... I have 3 FLA files. An intro, my main piece, and a Quit (do you really want to quit?) window.

#1 I need the introduction FLA to be replaced by the main piece FLA if the user hits my skip button.

#2 When the Quit button is hit, I need the Quit FLA to appear (doesn't close the main piece).

Can anyone point me into the correct direction of what ActionScript I should be using? The directions specifically say FLA files not SWF files so I wasn't thinking I could use loadMovie? Although for the output the teacher wants FLA files and the published SWF files...

Sounds/Multiple Buttons (easy?)
How do I stop multiple sound buttons from overlapping
Each button has a different sound
I inserted each sound in the down state of each button
How do I prevent several sounds from playing at once?
Thanx -Mel

http://www.med.wayne.edu/gradprog/vi...rtualtour.html

sounds are at the bottom of the page
(soundbytes)
click on two buttons at once and get the tower of babel
[Edited by Mwencel on 10-22-2001 at 12:36 PM]

Easy Way To Mask Multiple Objects
ok this would save me some time if someone could point me in the right direction. how do i mask objects that are already masked. the swf i've provided shows that i want the blue area to be masked as well as have another color in the backround. but the blue area reveals the entire movie. Please help

[F8] Thumbnails For FLV Files - Is There An Easy Way?
Greetings all.
I'm creating a video player, and want previews of all the available videos for the user to click on.
Is there an easy, programmatic way to display a thumbnail of the video w/o actually loading the whole video or playing it?

I was going to do just do .jpg thumbnails of each, but i figured i'd ask to see if there was a more streamlined way...

TIA.

Formatting Txt Files... Is There An Easy Way?
Hi all,

I'm trying to find the easiest way of formatting text from a word doc into into an .txt file then loading it into flash using loadVariables.

I'm sick to death of going through .txt files and removing extra line spaces, adding <br> & <p> tags, never mind if the the text has quotes or ampersands in it - which root things to all buggery.

The last project I had to run all the txt files through an online ASCII encoder which was a pain in the a55 when the client wanted txt changes - you tried to read ASCII at 3am arhhhhh!.

Is XML the answer? I don't know? but I want a simple way of chucking dynamic content into Flash baby.

Could I be pointed in a few directions so I can become stronger, faster and a streamlined pixel pusher on this matter!

Cheers
Mark

mark@tribalddb.com.au

Replacing Multiple Url's In Multiple Fla Files
Hi, i have multiple .fla files in dutch language with various buttons with an url pointing to a dutch website. Now i need an enlish version but i need to change 200 url's manually. There is only one thing i need to change in the URL and that is t=nl into t=e (language t=nl is dutch and t=e english).

I there a way to find and replace in multiple .fla files to do this action?

Greetings,

Tom Viguurs

Getting Multiple Videos To Play (easy Question...)
So I have like 13 movie clips. Movie clips in one layer and buttons on another that are above the clips. Each clip is labeled as varr1, varr2, varr3 and so on.

When a user click on a button, I would like for all but one movie clip to play it's animation. So for instance, the button for varr10 is clicked, I want all movie clips except varr10 to play it's animation.

I could do it the hard way, which is varr1.gotoAndPlay("yada"), and continue on... but I wanted something more efficient.

Could anybody assist me please?

[CS3] - Is There An Easy Way To Sync Multiple Timelines To One With Audio?
Hi,

Hopefully y'all can help, I'm a little new to the whole audio aspect of flash!
I am trying to sync a movieClip with the audio that is on its parent timeline.

On the parent timeline, enough frames will be added to contain the child movieclip but I haven't found a way to be able to listen to the music as I scrub the timeline inside the child movieclip..

Thanks for any help!

-Brian

Easy Way To Check Functions In Multiple Instances?
I have a set of about 10 images that fade in and out depending on which thumbnail is selected. I want to do an if statement that checks to see which large image is currently on screen with an alpha set to 100. Is there an easy way to write all 10 instances of the image names at once instead of writing each full name out almost like an array?


Here is just a basic example, but the if statement would have to be written to check and see which image has an alpha of 100

Code:
red.onRelease = function {
if (image1._alpha = 100){
blue._x = 20
}
}
Thanks!

Combining Multiple .flas... Shouldn't This Be Easy?
I am almost rather embarassed to post this question, but I am really at a loss here.

I have 4 .fla separate files I want to combine into ONE .fla. I published all the other files so that they are in .swf format. Then I imported these .swf's into a new .fla file (I tried importing to the library and to the stage). Unfortunately the animations are only.. urm.. half there.

It looks like flash is importing the .swf and some of the 'symbols' associated with the animation, but these symbols are blank.

Any ideas?

Kirupa-Photogallery (multiple Galleries Easy?)
Hey people

I've been trying to add more galleries the Kirupa Photo Gallery
but so far unsuccessfull - i've modified things alittle, but it's mostly the same.


Code:


function loadXML(loaded) {
if (loaded) {
image = [];
gal = [];
xmlNode = this.firstChild.firstChild;
gtotal = this.firstChild.childNodes.length;
total = xmlNode.childNodes.length;
tx = 5;
gx = 5;

for (n=0; n<gtotal; n++) {
gal[i] = xmlNode.childNodes[n].attributes.no
_root.gholder.attachMovie("gallery","gallery"+n,n);
_root.gholder["gallery"+n]._x = gx;
_root.gholder["gallery"+n]._y = 10;
_root.gholder["gallery"+n].gindex = n;
gx += 15.5;
}

for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].attributes.jpegURL
_root.tholder.attachMovie("thumb","thumb"+i,i);
_root.tholder["thumb"+i]._x = tx;
_root.tholder["thumb"+i]._y = 0;
_root.tholder["thumb"+i].tindex = i;
tx += 15.5;
//currentSlideNode = currentSlideNode.nextSibling;
//thumbnails_fn(i);
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("album.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
The xml is alittle different too


Code:
<?xml version="1.0" encoding="UTF-8"?>

<images>
<Gallery no="a">
<slideNode jpegURL="http://www.kirupa.com/developer/mx2004/pg/kresge.jpg"/>
<slideNode jpegURL="http://www.kirupa.com/developer/mx2004/pg/medialab.jpg"/>
<slideNode jpegURL="http://www.kirupa.com/developer/mx2004/pg/stata_lobby.jpg"/>
<slideNode jpegURL="http://www.kirupa.com/developer/mx2004/pg/construction.jpg"/>
</Gallery>
<Gallery no="b">
<slideNode jpegURL="http://www.kirupa.com/developer/mx2004/pg/structure_sm.jpg"/>
<slideNode jpegURL="http://www.kirupa.com/developer/mx2004/pg/glass.jpg"/>
<slideNode jpegURL="http://www.kirupa.com/developer/mx2004/pg/construction.jpg"/>
</Gallery>
<Gallery no="c">
<slideNode jpegURL="http://www.kirupa.com/developer/mx2004/pg/medialab.jpg"/>
<slideNode jpegURL="http://www.kirupa.com/developer/mx2004/pg/stata_lobby.jpg"/>
<slideNode jpegURL="http://www.kirupa.com/developer/mx2004/pg/construction.jpg"/>

</Gallery>
</images>
This is as far as i can get before i get errors i cant get out by displaying image[i] in gallery[n].

at the current time i can only get the number of galleries and display the images in the first gallery - not change between galleries.

I would really appreciate if someone would help writing some
thing that would update the gallery-index properly and make the image for-loop look inside that gallery[n].

Hoping for quick responses.

Thanks for this most informative community

Penney

Linking Buttons To Files. Sure It`s Easy........
I have a subfolder in my flash movie folder, how can i link a button in that movie to a file in the subfolder so that it will start downloading that file?
(subfolder=Botyb.35.zip)

This Must Be Easy But Why Don't My Swf Files Load When Uploaded On The Net
so i have finished my first project a swf movie which loads in 3 other swf files
using loadmovie... everything works fine on flash.

i then have used dreamweaver. when using dreamweaver preview in browser all is fine the swf load into the master file perfectly,

i htne upload them

i can see each swf and can click on each swf to run with its own url but the main swf if loading the other swf into it .. some sort of link is lost .. is this a flash problem or a dreamweaver problem .. which to be honest i do not really understand

can anyone help .. what am i doing wrong ... it i s making me go ......ahhhh!!!

Any Easy Way To Loop Audio Files?
Ok. so is there anyway to loop audio files using like an array or something else. I have 5 audio files, and what I want to happen is that when the .swf opens up it plays the first audio file, then goes to the next and so forth, in an endless cycle... is that possible?

Test Previewing .swf Files. Maybe Easy To Answer
I have made a flash file that loads various other flash files into it.
Most of them are big files so they have their own preloaders.
I use Flash MX and with ctrl+enter I can preview a file. When I press ctrl+enter again I have the option to load/preview the file at a slow loading rate which imitates users accessing the file off the internet.

HOWEVER, when I preview the main flash file (main.swf) and load another file into it (info.swf) inside the previewer, the later file doesn't imitate the slow internet connection thingy. I want to test all the flash files (including the loaded ones) under a slow transfer rate inside the the main flash movie. How can I do this? Is there any program which has this function?

Please give me a reply even if you aren't that sure! Thanks a lot

_Totyetoskate webmaster

Fonts And External Txt Files (easy Question :))
Hi, I recently lost all my .fla's due to a HD crash, however, I'm rebuilding the site (using swf Decompiler) but I want to change something though.
I used this piece of code in the scrollbar AS

Code:
this.loadVariables("home.txt");


is it possible to use a .html file instead? and do you still need a scrollbarscript then?

the reason I ask is because when I used the external txtfile, the font of different .txt files wasn't the same.

here you'll find the example
the homepage and the biography page should have the same size...
(I DID adjust the size in flash, but it didn't work)

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