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




Loading Multiple .swf Effects Urgent Help Required Now



After searching and copy other code snippets i have given up! very frustrated with having to actionscript code what I need to do.

I would love one of you genius coders to give me a WORKING example of how to do the following !

I have this main movie http://www.dubaifinance.co.uk/test/sample.html.
this loads text effects I have created with flax see the problem with it?

Code I used.
var imageRequest:URLRequest = new URLRequest("text.swf");
var imageLoader:Loader = new Loader();
imageLoader.load(imageRequest);
addChild(imageLoader);

Now I need to load 15 effects in total one after the other.

Can someone please give me some simple code to load more than one swf and wait until the other swf has finsihed playing.

So main movie plays banner. code to load text effects one after the other text1.swf text2

Please Please help , its driving me mad.



FlashKit > Flash Help > Actionscript 3.0
Posted on: 03-19-2008, 11:15 AM


View Complete Forum Thread with Replies

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

Loading Multiple Images Into Flash Via XML W/o Effects
Hey everyone! I'm using Flash CS3 and I'm trying to teach myself how to create flash photo galleries that dynamically load the images from an external xml file. I know there are tons of tutorials out there but none of them are right for me to learn this from scratch and that's what I want to do keeping in mind that...
I don't want them to rotate, scroll, blink, have mouseovers, show from thumbnail clicks, zoom in/out, have drop shadows, or anything else. I just want to see the image as if the flash movie was a blank HTML page and I just added the img tag to it.
I want to learn how to do it with multiple images, so I'm starting with two since it will give me less stuff to look at while I'm playing around with my xml file.
I'm not a script writer, but I understand the syntax and what things do once I've seen them. I just don't know functions, etc, off the top of my head, so I need a walk-through of the steps.
Deciding where the two images will be. What's the best way to create "placeholders" that will represent where the images are going to load?
Loading the xml file into flash. From what I've seen, there's a built-in load xml file function I can use?
Telling flash what stuff from the xml file should be used to display stuff in the placeholders and how to read it. This is where I'm completely lost lmao
Thanks so much ahead of time for any help you can offer. I do welcome links to tutorials as long as they're from ground zero up like what I'm asking for - nothing with extra design elements that are specific to the tutorial and not actually necessary to load images. Also, no information including preloaders. Thanks again!

Snow Effect Without The Mouse Effects Required [asdvanced Snow From Free Source]
Hi all.

Managed to find this really cool snow effect but trying to remove the mouse interaction, but in doing so the snow seems to stop or fade after five or ten seconds due to removing the mouse elements, however if they are in place without any hit with the mouse the snow still continues to fall regardless so in effect I need the snow to keep running without any effect from the mouse, here is the actionscript as below. Any help would be great.

cheers


ActionScript Code:
//var total = 0;//function setQuality(thisSpeed) {    if (thisSpeed == 1) {        total = 100;    } else if (thisSpeed == 2) {        total = 300;    } else {        total = 400;    }}setQuality(_global.speed);/////////////////////////////////////function createParticles() {    for (var i = 0; i<total; i++) {        this.ele.attachMovie("bit", "bit"+i, i++);        var clip = this.ele["bit"+i];        clip.force = 0;        clip.mn = 1+Math.random()*1.5;        clip.x = Math.random()*2-0.75;        clip.y = Math.random()*2;        clip._x = (Math.random()*this.frame_mc._width)+left;        clip._y = Math.random()*200-220;        clip._xscale = 70+Math.random()*290;        clip._yscale = 70+Math.random()*290;        clip.ct = Math.floor(Math.random()*60);        clip.c = 0;                clip.onEnterFrame = function() {            this.c++;            if (this._x<_x/*mouse*/) {                this.x -= this.force;            } else {                this.x += this.force;            }                                    if (this.force>0) {                this.c = 0;                this.force *= 0.6;                if (this.force<0.05) {                    this.force = 0;                }            }                        if (this.c>this.ct) {                this.x = Math.random()*5-1.5;                this.c = 0;                this.ct = Math.floor(Math.random()*60);            }                        this._y += (this.y+this.mn)-(this.force*9);            this._x += this.x;            if (this._x<left-5) {                this.x = Math.random()*5-1.5;                this.force = 0;                this._x = right+2;            }            if (this._x>right+5) {                this.x = Math.random()*5-1.5;                this.force = 0;                this._x = left-2;            }            if (this._y>_y/*mouse*/-25 && this._y<_y/*mouse*/+25 && this._x>_x/*mouse*/-35 && this._x<_x/*mouse*/+35) {                this.force += Math.random()*5;            } else if (this._y>=bottom+5) {                this.force = 0;                this.x = Math.random()*5-1.5;            }        };    }}///*function clearAll() {    for (var i = 1; i<=total; i++) {        removeMovieClip(this.ele["bit"+i]);    }}*///createParticles();//stop();  

Multiple Effects Help
Hey guys...I'm making a website for a DJ/producer from norway and i wanted to know how to do something. what i would like to do is combine the vibration effect, the snowfall effect, and a music effect. what i want to do is have the snowflakes vibratingto the beat of the music. can anyone help me with this?thanks for any help

Multiple Effects Help
Hey guys...I'm making a website for a DJ/producer from norway and i wanted to know how to do something. what i would like to do is combine the vibration effect, the snowfall effect, and a music effect. what i want to do is have the snowflakes vibratingto the beat of the music. can anyone help me with this?thanks for any help

Help Required Loading Movies...
Im looking to load 5 small movies in a random order(they are currently MP3's embedded into a SWF
.
My idea was to has 1 movie, that has a script that puts the movies in a random order, then loads them into itself. (therefore creating 6 movies in all)

Is this possible? If so?, how. Also, how would i make sure that the first movie finishes before the next one is loaded?

Lastly, once all movies have been played, id like it to start again in a new random order.

Any help, greatly appreciated.

Thanks.

BM

Actionscript Pro Required: Syntax Help Required For Button To Initiate Easing
Hi guys I was wondering if any of you actionscript daddio’s could give me 2 minutes of your time and help me write the appropriate syntax to make the below example work on a button release rather than on the MC mouse down state that it currently uses.

http://www.fluid.com/experiments/timecode/mx_time.html

If you click on the geek panel drop down menu, you will see that it generates the appropriate code for the on onMouseDown,, however I want to call the easing from a button.

If someone could give me an example of the correct syntax using the “easeInquad” function that would be brilliant.

Applying Multiple Effects?
hi everyone, i just wanted to know if it's not possible to apply more than just one effect to an instance of a symbol? e.g. if i change the alpha of an instance, then also want to change the tint it takes away the initial alpha effect.

thx for your help!

Multiple Timeline Effects
Hello everyone.

I am using a timeline effect to fade in a logo. CLICK TO ENTER text then appears under the logo. Upon clicking the text, I would like to initiate another timeline effect (Transform) whereby the logo rotates 720 degrees counterclockwise and shrinks in size while moving to the upper left corner, and after about a second, a hyperlink is followed.

The fade-in works, and the text appears, but I am having a problem with the rest.

Can someone please help. Thanks much.

Regards,
Doktor_G

Multiple Effects On A MC SYMBOL AS3 -how?
I've created a class called Button.as
I've got my buttons (white text) connected to this class via their linkage.
Right now I just have them doing a simple expand and contract during rollover.
What I'd like to do is also have them glow during rollover.
The question is, do I add the glow function to my "Button" class, or do I have to create a "Glow" class as well, (and if so, how do I have a MC symbol linked to more than one class?)

-any insight would be greatly appreciated.
thanks,
mike
Code:

package
{
   import flash.display.MovieClip;
   import flash.events.MouseEvent;
   
   
   public class Button extends MovieClip
   {
      public function Button()
      {
         this.buttonMode = true;
         this.addEventListener(MouseEvent.MOUSE_OVER, expand);
         this.addEventListener(MouseEvent.MOUSE_OUT, contract);
      }
      
      private function expand(event:MouseEvent):void
      {
         this.scaleX = 1.1;
                  
      }
      private function contract(event:MouseEvent):void
      {
         this.scaleX = 1;
      }
   }
}


/*I realize that these are some of the additional steps I would have to take in order to get a glow, but I'm not sure about the final steps to implement the process:

import flash.filters.BitmapFilterQuality;
import flash.filters.GlowFilter;

public class Glow extends MovieClip

var glow:GlowFilter = new GlowFilter();

glow.color = 9A0102;
glow.alpha = 1;
glow.blurX = 25;
glow.blurY = 25;
glow.quality = BitmapFilterQuality.MEDIUM;*/

Ok More Help Required With Loading SWF Into Targetted Locations
Ok here is the scenario.

I have a range of buttons on the main screen of my movie, also on the main screen is a blank MC.

How can i load external SWF files into the blank MC on the front page using the buttons?

I have used this code
on(release){
loadMovieNum("history.swf",1);
}

but it just laods the movie onto the front page.. how do i get it to load in a specific place, ie inside the dummy MC ?


Also, once i have loaded it, how do i get it to unload ? or can i just click another button and it will overwrite the currently loaded SWF with another? or will they all stack ontop of each other?

please help.

Urgent Help Required Loading Movie
Hi,

I am using Flash MX to create a Cd Rom and need a button to connect to another swf file. However I dont want it to connect to frame 1 but to connect to frame 8 when the button is clicked.

I cant have a gotoAndPlay (8) on the swf im connecting too because that needs to be opened at another time on frame one.

So does anyone know any simple coding i can put on a button than connects to another movie (not using url's or html's) on a frame within than movie.

Any help would be greatly appreciated.
This is super urgent

Thanks
L

Urgent Help Required Loading Movie
Hi,

I am using Flash MX to create a Cd Rom and need a button to connect to another swf file. However I dont want it to connect to frame 1 but to connect to frame 8 when the button is clicked.

I cant have a gotoAndPlay (8) on the swf im connecting too because that needs to be opened at another time on frame one.

So does anyone know any simple coding i can put on a button than connects to another movie (not using url's or html's) on a frame within than movie.

Any help would be greatly appreciated.
This is super urgent

Thanks
L

Multiple Hits On Same Button- Different Effects
I am having a problem with a page that I am building. The page is set up with multiple scenes, and buttons that are all action scripted to go to a specific frame label within each scene, however when testing my .swf file, on the second consecutive hit of any particular button, instead of acting the same, correct way that it acted the first time I hit the button; it is jumping to the next consecutively labeled frame. I have never experienced this issue before and I was wondering if anyone else has come across this phenomenon before and has any suggestions as to how I can alleviate this issue before my clients loose faith in me??

Thanks so much,
CS

Loading External MC's: Relative Or Hardcoding Required?
Hi,
Maybe this is a dumb question but I was not able to find a topic on it.
I'm loading some external MC's from a library directory using loadMovieNum, path, level.
Locally it works fine but on the server the external MC's won't load.
Which must I use: relative paths or hardcoded paths?
Thanks,
DC.

Multiple Simultaneous Effects On One Movie Clip?
i'm trying to give my movie clip multiple effects at the same time, like altered alpha and altered tint, flash is only letting me change one of these properties at a time, is there any way i can change both simultaneously?

The Button Showed Different Effects When Pressed Multiple Times?
Hi, there

I encountered a weired problem about the buttons. Any thoughts are very appreciated.

In the main timeline, there are two layers, which took 10 frames each. On each frame, there is a movie clip. On the first layer, there is the navigation button. On the button, I wrote the script like this: on release, _root.gotoAndplay("2"). What happens is that I pressed the button once, it went to play the movie clip on frame 2 on the main timeline. Then I clicked the button again when the movie 2 was playing, it then went to play movie 3, which lies on frame 3 in the main timeline. Did I make sense? Would you tell me why it happened?

Thank you!!!

Jenny

Loading Then Fade Effects/ Etc
Well im making some effects but im kind of newbie still.. i used someoneelse's actionscript to make a good preloader.

Anyway im trying to make preloaded comes out of bottom and load it in middle of page. then when loads is finished. i want it have some effects faded out or something. but each time i test it or so. it dont fades out half time it just skipped to new scene. so ARGH!

so i zip the .fla and .swf that it. so whatever one of you can take look and tell me what i need to fix. so i can learn from my mistakes and stuff. Honest to you im new with it but pretty deep with it.

Loading Images With Effects
I have about fifty images to load. Standard thumbnails on one side, upon mouse-over, a larger image appears to the left of thumbs.

Multiple ways to do this, but here's the deal. The client wants a nice fade in effect for the large images.

Short of putting a tween in front of each image and saving each image as a swf, is there some way get a fade-in effect and then load the appropriate image without having to create fifty swf files to load?

I thought of putting a block the color of the bckgrnd on a layer with a five frame tween fade to alpha 0, then loadMovie by passing a variable according to the thumbnail and loading that image into an empty mc underneath the block.

So, a rollover would occur that would load the picture and then play the tween but I'm concerned that if the large pictures take a second longer to load, the tween effect would be lost.

Loading Multiple Txt Variables Into Multiple Txt Fields From One Txt Doc - POSSIBLE?
I'm wondering, for efficiency sake, if it's possible to load into my main timeline multiple text variables from ONE external .txt document then have that information populate multiple dynamic text fields located in an MC within an externally loaded .swf. held in a containerMC on _level0?-eg path. _level0.containerMC.MCInstanceWithinLoadedSwf.???
If this is possible, how would it be done?Would I simply just use one loadvariableNum action for all?How would the text within the .txt doc be formatted?
- would I simply just list what each textfield variable is = to?

Effects On Loading/unloading Movies
i'm trying to get my different .swfs to fade in and out instead of just appear in place of eachother. example, i call 1.swf from a button1 and it has frame 1-10 of alpha tween in, then frame 15-25 is an alpha tween out. button 2 calls that frame 15 with

_level1.gotoAndPlay(15);

and it fades away. question is how do i pass the new .swf name for button2 so the process repeats for all my buttons? i'm thinking it's some global property to send from the button like _new = 2.swf ?

thanks

Dynamic Text Loading & Effects
I want to load external txt files into the content in my site, but I want to do kind of a reverse typewriter to load the text in. Like have the last letter in the file appear first, then the 2nd to last, etc, etc and have each letter space over the one that preceded it until all the characters and spaces have been loaded. I've seen a normal typewriter effect on sites before, but I can't find a specific example. I have no idea how to approach this--does anyone have any advice?

thanks,
spectrewhite

Loading Images And Tweens And Effects
Hi,
Im trying to load images, tween them individually onto the stage, off again, with a blur small-none-small. The image's paths are loaded from xml into the path array. Then I load the files and attempt to tween them.


Code:
loadAndPlace = function(){
var main_mc:MovieClip = this.createEmptyMovieClip("main_mc", this.getNextHighestDepth());
for(var i=0; i<path.length; i++) {
var image_mc:MovieClip = main_mc.createEmptyMovieClip("image_mc", main_mc.getNextHighestDepth());
imgCtnr[i] = this.createEmptyMovieClip("imgCtrn" + i, this.getNextHighestDepth());
imgs = imgCtnr[i].createEmptyMovieClip("imgs" + i, imgCtnr[i].getNextHighestDepth());
imgs.loadMovie(path[i]);
imgs._x = -objWidth[i];
imgs._y = (_root._height-objHeight[i])/2;
}
}
new mx.transitions.Tween(eval("imgs"+i), "_x", mx.transitions.easing.Elastic.easeOut, 0, 300, 3, true);
I tried to create a container because i thought that was the problem and that loadMovie images could not be tweened but this does not seem to have helped. I was intending to build the timer and the blur but as this is not working im just keeping it simple for now. I was hoping that someone would show me how to modify this code to tween my images.
Thanks for your help
Pedro.

Help Loading Image With Some Filter Effects
Hi
I'm quite new to as3 coding, and right now I stumbled uppon some code that I can't make work the way I wish. Its simple ripple effect wich works with plain background color, but I'm trying to put some image behind that.. I'm right now out of ideas so any help is appritiated.
The efect itself is conteined in 2 as classes.

Ripples.as (main document class)

ActionScript Code:
package
{
    import flash.display.Sprite;
    import flash.events.*;
    import RippleCanvas;
   
    public class Ripples extends Sprite {
       
        private var subobj:RippleCanvas;
       
        public function Ripples() {
       
        trace("Ripples started..");
        var subobj = new RippleCanvas();
        this.addChild(subobj);

        }
    }
}
RippleCanvas.as (subclass of Ripple)


ActionScript Code:
package
{
    import flash.display.Bitmap;
    import flash.display.BitmapData;
    import flash.display.Sprite;       
    import flash.events.*; 
  import flash.geom.*; 
  import flash.filters.*;
    
    public class RippleCanvas extends Sprite
    {
       
        internal var sourceBmp:BitmapData;   
        internal var paintBmpData:BitmapData;
        internal var paintBmpData2:BitmapData;   
        private var buffer:BitmapData;   
        private var paintBmp:Bitmap;
        private var output:Bitmap;
        private var brush:Sprite;
        private var logo:Sprite;
        private var filter:BitmapFilter;
        private var filter2:BitmapFilter;      
        //public var Mis:Boolean;
        private var dispFilt:BitmapFilter;       
       
        private var outputBmpData:BitmapData;            
        private var surface:BitmapData;      
       
        internal var pt = new Point(0,0);
        internal var matrix1 = new Matrix();       
       
        public function RippleCanvas()
        {
            paintBmpData = new BitmapData(128, 98, false, 0x40);
            paintBmpData2 = new BitmapData(128, 98, false, 0x40);         
           
            logo = new Sprite();           
           
            brush = new Sprite();
            brush.graphics.beginFill(0xFFFFFF,1);
            brush.graphics.drawCircle(0,0,4);
            trace ("RIppleCanvas started..");      
           
            surface = new BitmapData(128, 98, true, 0x000000);     
            surface.draw(logo);
//var ty:picture = new picture();
//var sourceBmp:Bitmap = new Bitmap(picture);
//addChild(sourceBmp);
            sourceBmp = new BitmapData(128, 98, false, 0x40);                                 
            buffer = paintBmpData.clone();     
            outputBmpData = new BitmapData(128, 98, false, 0x40);
            scaleX = 8.0;
            scaleY = 8.0;
            //this.addEventListener(MouseEvent.MOUSE_MOVE, this.moveHandler, false, 0, true);                           
            this.addEventListener(MouseEvent.MOUSE_DOWN, this.downEvent, false, 0, true);                                             
            this.addEventListener(MouseEvent.MOUSE_UP, this.upEvent, false, 0, true);   
            this.addEventListener(Event.ENTER_FRAME, this.update, false, 0, true);     
            paintBmp = new Bitmap(paintBmpData);
            var cmat:Array = [ 1, 1, 1,
                               1, 1, 1,
                               1, 1, 1 ] ;
            filter = new ConvolutionFilter(3, 3, cmat, 9, 0);
            filter2 = new BlurFilter(4,4);
            output = new Bitmap(outputBmpData);
//      output.blendMode = BlendMode.ADD;     
            //paintBmp.blendMode = BlendMode.ADD;
            addChild(output);         
            addChild(paintBmp);
//      var tf = new TextField();
//      tf.text = "testing123";
//      addChild(tf);
           disp = new DisplacementMapFilter(paintBmpData2, new Point(), 4, 4, 48, 48, DisplacementMapFilterMode.IGNORE );
          
            this.filters = new Array(new BlurFilter(16, 16));

        }
        function update(e:Event)
        {
            if(parent!=null) {
//&& Mis==true){
                    var localPt:Point = parent.globalToLocal(new Point(parent.mouseX*0.125, parent.mouseY*0.125));                   
                    var m:Matrix = new Matrix();
                    m.translate(localPt.x, localPt.y);
                    sourceBmp.draw(brush, m, null, 'invert');
                }
            //trace (localPt,Mis);
            paintBmpData.applyFilter(sourceBmp, paintBmpData.rect, pt, filter);
            paintBmpData.draw(paintBmpData, matrix1, null, 'add');
            paintBmpData.draw(buffer, matrix1, null, 'difference');   
            paintBmpData.draw(paintBmpData, matrix1, new ColorTransform(0, 0, 0.98609374, 1, 0, 0, 2, 0));     
            paintBmpData2.draw(paintBmpData, matrix1);
            outputBmpData.applyFilter(surface, outputBmpData.rect, pt, disp);
            buffer = sourceBmp;
            sourceBmp = paintBmpData.clone();

        }
        public function downEvent(e:Event)
        {      
            if(e.stageX == 0 && e.stageY == 0)
                return;
                //trace("ok",Mis);
            var curPt:Point = parent.globalToLocal(new Point(e.stageX, e.stageY));
            //var Mis=true;
            e.stopPropagation();
        }
       
        public function upEvent(e:Event)
        {   
            //var Mis=false;
            e.stopPropagation();               
        }
    }
}

Dynamic Text Loading & Effects
Okay here's my idea:

I want to load external txt files into the content in my site, but I want to do kind of a reverse typewriter to load the text in. Like have the last letter in the file appear first, then the 2nd to last, etc, etc and have each letter space over the one that preceded it until all the characters and spaces have been loaded. I've seen a normal typewriter effect on sites before, but I can't find a specific example. I have no idea how to approach this--does anyone have any advice?

thanks,
spectrewhite

Loading Text Lines Through XML Into Flash, With Effects, Possible?
Hey all,

Is it possible in Flash to load text lines (multiple lines, which are quotes) from an XML file, and be able to have effects on the generated text? ie. Can i stick dynamic text into an mc and for example use motion tween on the mc after? And the text won't be aliased?

I need to generate random quotes into a header, but i don't want it to look like html text popping out, has to be antialiased and i want to be able to play with the transparency.

Possible?

thank you.

Loading External Text, Transition Effects
does anyone know how the text effect seen on addition.com (under the details section) is made? Also, can it be made by loading an external text file? if anyone can help or point me in the right direction of a tutorial, it would be greatly appreciated.


thanks-

Dynamically Loading Text And Make Some Effects
I want to load some text, just a few words, from a textfile and into my flash movie. I think I know how to do that but how can I apply motions and fading on that text??

When I made my last site I had to create separate letters in flash and tween and fade every single letter but that makes the movie so big and it is alot of work.

I have seen easier ways, with coding, but now I cant find any tutorial about it.

Summary: I want to load some text into my movie and then apply a cool text effect on each letter. Like make each letter spinn around or something like that. I need to know how i can do that??

Cool Flash Effects For Loading Introductions
I've looked on kirupa and actionscript.org but does anyone know where i can find more free tutorials on cool effects or animation type things?

Thanks

Dynamically Loading Text And Make Some Effects
I want to load some text, just a few words, from a textfile and into my flash movie. I think I know how to do that but how can I apply motions and fading on that text??

When I made my last site I had to create separate letters in flash and tween and fade every single letter but that makes the movie so big and it is alot of work.

I have seen easier ways, with coding, but now I cant find any tutorial about it.

Summary: I want to load some text into my movie and then apply a cool text effect on each letter. Like make each letter spinn around or something like that. I need to know how i can do that??

Text Effects And Loading External Swf's Into A Movie Clip
I am having a problem. I downloaded the text effect call rotating explosion. I then put all the script into my movie and saved it as an swf file. The text effect works perfect.
The website I built has a scene where it downloads an seperate swf file into a movie clip on the website. When i make it download the swf with the text effects, the effects don't work write.
Does anyone know what the problem might be. some how the actionscript is not working when it gets loaded into the movieclip on the website. But if i go straight to the swf with the text effect and play it alone it works.

Got any ideas.

Problem With Loading .jpgs Externally And Timeline Effects
I need to have an .swf that loads multiple .jpgs externally, that I can do. I also have to have it fade each one out in a slideshow fashion along with having a next/previous button, and I've got that much working as well.

However, I'd also like to add a pause button, but that's where I'm having my problem. Whenever I stop the animation, the movieclip that has the fade out effect continues to loop, which it shouldn't do. I need it to just stop playing exactly where it is.

I've included the .fla of what I've got at the moment, if that helps any.

Loading Multiple Images Into Multiple MC's
Hiya

Basically I have an image gallery where I want to load jpg's into seperate MovieClips and then have some onRelease, onRollover etc actions attached to them. I've managed to write what I need, but now the problem is that if I have 50 pics in my gallery I will have to repeat this code 50 times!!!

Can someone show me how to put this in a for loop or an array, or whatever I need to do so I can write it once, not 50 x.

Here's what I've got so far...




loadMovie("images/thumbs/thumb1.jpg", this.btnHolder.inside);


btnHolder.onRelease=function (){
_root.select = 1;
if (_root.cur == 0) {
trace("same pic!");
} else {
_root.fadeOut(0);
}
}

btnHolder.onRollOver=function (){
this.gotoAndStop(2);
}

btnHolder.onRollOut=function (){
if(_root.select == 1){
this.gotoAndStop(2);
}else if
(_root.select == 0){
this.gotoAndStop(1);

}
}




PLEASE HELP ME.

thnx

Loading Multiple Swfs And Xmls Started Before Finished Loading
Hi,

I have a encounter a problem regarding loading of the swfs and xmls files.
A preloader is done for these items. However it started playing before everything (swfs and xmls files) is loaded.

I have an array to contains all the files to be loaded. Using this array, i checked and see if the items are all loaded. If loaded, they will jump to the ready frame.

Anyone have any idea what is wrong??

Thanks.

The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 3: Animation Effects
This is an article discussion thread for discussing the SitePoint article, "The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 3: Animation Effects"

The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 5: Sound Effects
This is an article discussion thread for discussing the SitePoint article, "The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 5: Sound Effects"

The Flash Anthology: Cool Effects &amp; Practical ActionScript - Chapter 5: Sound Effects
This is an article discussion thread for discussing the SitePoint article, "The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 5: Sound Effects"

Need Your Help Loading Multiple External Text Into Multiple Dynamic Text Fields
Hi all,

I can't seem to get the external tex file loaded into a dynamic text field.
I am trying to display an external text file into a dynamic text field using a next page button. The layout is this I have 80 frames. Frames 1-10 with a static text field with text & a next page button and Frames 11-20 with a dynamic text field with a previous button. I want to onRelease of the next page button in the first set of 10 frames to load the external text file into the dynamic text field of the next set of 10 frames. Also, being able to jump back and forth from next page to next.

Below I layed out all the contents in my test.fla file.

Hope this will give you an understanding of what I am trying to do.

I need to be able to click a next page button and loading an external text file into a dynamic text field, vice versa.

I have set the variable in the text file.

I used this code to try and load the text file into a dynamic text field, using actinscript. Which frame or frames do I need to include this script in? I know it has got to be multiple ones.

var styles = new TextField.StyleSheet();
styles.load("cssdocName.css");

textfieldName.html = true;
textfieldName.styleSheet = styles;

var lv:LoadVars = new LoadVars();

lv.onData = function(content) {
textfieldName.text = content;
}

lv.load("htmldocName.html");

Thanks for your time!


I have 6 different layers with 80 frames:

Layer titles:
- labels
- actions
- next_prev buttons
- contents
- tabs
- outline

Now in each layer:
- outline layer: just an outline border [displayed in Frames 1-80]

- tabs layer: movie clips tab1, tab2, tab3 within each tab is a movie clip
called bottomline [displayed in Frames 1-80]

- contents layer: Static Text Field [displaying text in Frames 1-10]
Frame 1 ActionScript
stop();

Dynamic Text Field instance name dpmoreinfo_txt
[displayed in Frames 11-20]
Frame 11 ActionScript
stop();

Dynamic Text Field instance name dpmoreinfo2_txt
[displayed in Frames 21-30]
Frame 21 ActionScript
stop();

Static Text Field [displaying text in Frames 31-40]
Frame 31 ActionScript
stop();

Dynamic Text Field instance name spmoreinfo_txt
[displayed in Frames 41-50]
Frame 41 ActionScript
stop();

Static Text Field [displayed text in Frames 51-60]
Frame 51 ActionScript
stop();

Dynamic Text Field instance name cmoreinfo_txt
[displayed in Frames 61-70]
Frame 61 ActionScript
stop();

Dynamic Text Field instance name cmoreinfo2_txt
[displayed in Frames 71-80]
Frame 71 ActionScript
stop();

next_prev buttons
layers: dpmoreinfonext_btn [Frames 1-10]
Frame 1 ActionScript
dpmoreinfonext_btn.onRelease = function() {
gotoAndStop("dpmoreinfo");
};

dpprev_btn & dpmoreinfo2next_btn [Frames 11-20]
Frame 11 ActionScript
dpprev_btn.onRelease = function () {
gotoAndStop("DataPulse");
};

dpmoreinfo2next_btn.onRelease = function () {
gotoAndStop("dpmoreinfo2");
};

dpmoreinfoprev_btn [Frames 21-30]
Frame 21 ActionScript
dpmoreinfoprev_btn.onRelease = function () {
gotoAndStop("dpmoreinfo");
};

spmoreinfonext_btn [Frames 31-40]
Frame 31 ActionScript
spmoreinfonext_btn.onRelease = function () {
gotoAndStop("spmoreinfo");
};

spprev_btn [Frames 41-50]
Frame 41 ActionScript
spprev_btn.onRelease = function () {
gotoAndStop("StructurePulse");
};

cmoreinfonext_btn [Frames 51-60]
Frame 51 ActionScript
cmoreinfonext_btn.onRelease = function () {
gotoAndStop("cmoreinfo");
};

cprev_btn & cmoreinfo2next_btn [Frames 61-70]
Frame 61 ActionScript
cprev_btn.onRelease = function () {
gotoAndStop("Courses");
};

cmoreinfo2next_btn.onRelease = function () {
gotoAndStop("cmoreinfo2");
};

cmoreinfoprev_btn [Frames 71-80]
Frame 71 ActionScript
cmoreinfoprev_btn.onRelease = function () {
gotoAndStop("cmoreinfo");
};

labels layer: Frame name is DataPulse [Frame 1-10]
Frame name is dpmoreinfo [Frame 11-20]
Frame name is dpmoreinfo2 [Frame 21-30]
Frame name is StructurePulse [Frame 31-40]
Frame name is spmoreinfo [Frame 41-50]
Frame name is Courses [Frame 51-60]
Frame name is cmoreinfo [Frame 61-70]
Frame name is cmoreinfo2 [Frame 71-80]

Actions layer: Frame 1 ActionScript

contents.stop();
numberOfTabs = 3;
for (i=1; i<=numberOfTabs; i++) {
line = eval("tab"+i);
line.onRelease = function() {
for (i=1; i<=numberofTabs; i++) {
otherTabs =
eval("this._parent.tab"+i);
otherTabs.bottomLine._visible =
true;
}
this.bottomLine._visible = false;
contentFrame = Number (this._name.substr(3,
1));
this._parent.contents.gotoAndStop(contentFrame);
}
}
tab1.bottomLine._visible = false;

tab1.onPress = function() {
gotoAndStop("DataPulse");
};

tab2.onPress = function() {
gotoAndStop("StructurePulse");
};

tab3.onPress = function() {
gotoAndStop("Courses");
};

Loading One Movie Vs. Loading Multiple Movies?
Greetings All,

I'm looking for some advice on the approach to loading multiple content "panels" on a website -- let's say we have a mini-intro panel (logo, tagline, etc.) and a news panel (rotating blurbs you can click on).

From a performance and optimization stance, is it better to:

1) create each panel as its own .SWF and load each one separately on a web page;

2) create each panel separately, and then use loadMovie(); to insert one into a layout space within the other;

3) just build all the functionality into one big honkin' .SWF.

I'm leaning away from Option 3, just for "simplicity of development" reasons.

My concerns are performance quality (will one approach run slower than another?) and bandwidth issues (how will dial-up users experience different approaches?).

I'm sure some of you have run into this before. I'm interested in your opinions.

Thanks.

Loading Multiple .jpgs With One Loading Bar
ok, i have a dynamic slideshow thing, and i want to load all the thumbnails with just one loading bar to represent the progress of them all...they are loaded from an XML file, and im using the MovieClipLoader class to load them...any examples for code? i can post my project if youre still confused, its just kinda big right now

Bouncing Effects And Elastics Effects
i read some tutorials about some clips that includes bouncing or elastic effects, the problem is i can't still figure out some axnscripts such as MovieClip._x*=100 or MovieClip._x-=100, what does these syntax mean anyway?

can i have some tutorial like a dribbling ball that bounces a lot then settles down after a few moment?

Loading Multiple .swf
Trying to find a way to NOT go to the beginning of a loaded swf at certain times it's called up.

I have 2 swfs, for example movie1.swf and movie2.swf. movie1.swf is on Level 0, and a button in it loads movie2, on Level 0. That part is fine.
However, I want the button in movie1.swf to load movie2.swf , but go to and stop at a particular framelabel, in movie2.swf main timeline, named 'new work'.
this actionscript doesn't work (placed on the button)it just plays the whole movie:
on (release) {
loadMovieNum("movie2.swf", 0);
gotoAndStop("new work");
}

Both movie1.swf and movie2.swf have a small percentage preloader in their first scene.

Sure appreciate any ideas...

Multiple Loading
Hi...all

I have 6 button on my main movie....every button when clicked will load .swf file , so I want to make just one code for all the button...that I dont need to make 6 preloader code...

Could I make it...maybe with variable


Many Thanks......

Multiple Swf Loading
it's possible to preload multiple swf's at once? HOW!!!!?????

Multiple Mp3 Loading
I had this working for a single mp3, thing I slightly changed it so that it can do multiple mp3's ... and now it doesn't work. Can anyone see what would be wrong in my script?

mySounda = new Sound();
mySounda.loadSound("Track2.mp3",false)
mySoundLoading = 0;
_root.sounds.loadBar._xscale = mySoundLoading;

function loadMP3() {
mySoundBytesTotal = mySounda.getBytesTotal();
mySoundBytesLoaded = mySounda.getBytesLoaded();
mySoundLoading = Math.round((mySoundBytesLoaded/mySoundBytesTotal)*100);
if (mySoundBytesTotal == mySoundBytesLoaded && mySoundBytesTotal > 0) {
mySounda.start(0,1)
_root.sounds.textd = mySounda.id3.TIT2;
_root.sounds.playing = true;
} else {
_root.sounds.textd = mySoundLoading + "%";
_root.sounds.loadBar._xscale = mySoundLoading;
}
}

this.onEnterFrame = function(){
loadMP3();
delete this.onEnterFrame;
}

mySounda.onSoundComplete = function() {
mySounda.loadSound("Track3.mp3",false);
mySoundLoading = 0;
loadMP3();
}

Multiple Txt Not Loading...why Not?
I have a movie with six dynamic txt fields that needs to be populated with txt from external txt file. This is the code:

Code:
stop();
//Create the LoadVars object and load data into it
myData = new LoadVars()
myData.load("anastasio2.txt")
//Make a reference to current timeline
myData.ref = this
//Callback handler and data fetching
myData.onLoad = function(succes){
if(succes){
for(var i=0; i<this.cant; i++){
this.ref["Title_txt"+i].htmlText = "<b>"+this["Title"+i]+"</b>"
this.ref["Comments_txt"+i].text = this["Comments"+i]
this.ref["holder_mc"+i].loadMovie(this["Image"+i])
}
} else trace("Error loading data")
}

Have given instance names Comments_txt0, Title_txt0 - Title_txt4 and loader is present.

This is the content of the txt file:

Title0=Problem&Title1=Scary?Title2=Very Scary.Title3= Weird&Title4=more txt to go here&Comments0=You have had an accident whilst on holiday.

Kept txt in same folder as swf, but when played no txt is loaded. What am I doing wrong? Appreciate help

G

Multiple Loading SWF's
Can you load 2 SWF files at the same time, on the same webpage, and not have the movies run until they both have loaded?

Basically I created 2 SWF movies in Flash 8, placed them both onto a webpage in Frontpage.....they are of different sizes, and i don't want them to play until both movies have loaded.

Please Help! Thanks in Advance

[CS3] Multiple XML Loading
Greets all,

A question that some developers will likely find to be elementary... but please humor me... I've been doing mostly physics emulation in AS lately and haven't done much data management in XML.

AS 2.0, Flash 9 and CS3 authoring

I'm trying to make a dynamic portfolio for a graphic design firm in which the samples are in a gallery split by type of project. The SWF has header buttons (Print, logos and web) and then sub heading buttons (corporate, entertainment, etc.)

All of these buttons are on the main timeline. A movieclip called "gallery" sits below them. Inside this clip, I need a different XML to load based upon which button is clicked.

I'm at a loss on how to make each button choose an XML and then make the loadXML function run again, or continuously check to see if a button has been clicked and changed.

Code:
xmls = new Array();
xmls[0] = "cflyers.xml"
xmls[1]= "qflyers.xml"
xmls[2] = "bc.xml"
xmls[3] = "posters.xml"
xmls[4] = "cds.xml"
xmls[5] = "clogos.xml"
xmls[6] = "qlogos.xml"
xmls[7] = "tshirts.xml"
xmls[8] = "characters.xml"
xmls[9] = "csites.xml"
xmls[10] = "qsites.xml"
xmls[11] = "myspaces.xml"

for (i=0; i < xmls.length; i++){

trace (xmls[i]);
};

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;


xmlDatab = new XML();
xmlDatab.ignoreWhite = true;
//xmlDatab.onLoad = loadXML;



xmlData.load(xmls[0]);

function loadXML(loaded) {

if (loaded) {

xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;

for (i=0; i<total; i++) {

image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
}
firstImage();

} else {

content = "file not loaded!";

}

}
I can't figure out how to accomplish this. I've put the XML names into an array, and was considering making each button change the index value. Am I on the right track, or am I approaching this from the completely wrong angle? Any help would be greatly appreciated.

Loading Multiple .swf Into 1
Hi,

i'm using the below AS for my movie loader and has been trying to modify it so that it will play in loops and also to set the size of the empty movieclip created to 80% so that the external .swf files will be played in that size, but invain. could any kind soul pls enlighten me on that. Deeply appreciated.


Code:
mc_1.loadMovie("linkmenu.swf",0);
stgMovies = "mc1swf,mc2.swf,mc3.swf,mc4.swf";
rraMovie = stgMovies.split(",");
nbrStartLevel = 5;
fncLoadLaunch = function () {
rraLoadStatus = new Array();
for (var icrIdx = 0; icrIdx<rraMovie.length; icrIdx++) {
rraLoadStatus.push(false);
}
_root.createEmptyMovieClip("mvcLoad", 0);
var nbrMovie = 0;
var blnLevelLoad = false;
var nbrLevel = 0;
var rfcLevel;
mvcLoad.onEnterFrame = function() {
if (!blnLevelLoad) {
if (nbrMovie<_root.rraMovie.length) {
blnLevelLoad = true;
nbrLevel = _root.nbrStartLevel+nbrMovie;
loadMovieNum(_root.rraMovie[nbrMovie], nbrLevel);
} else {
delete this.onEnterFrame;
this.removeMovieClip();
}
} else {
if (this["_level"+nbrLevel]) {
rfcLevel = this["_level"+nbrLevel];
rfcLevel._visible = false;
if (rfcLevel.getBytesLoaded()>10 && rfcLevel.getBytesLoaded()>=rfcLevel.getBytesTotal()) {
_root.rraLoadStatus[nbrMovie] = true;
rfcLevel._visible = false;
blnLevelLoad = false;
if (nbrMovie<1) {
fncPlayLaunch();
}
++nbrMovie;
}
}
}
};
};
fncPlayLaunch = function () {
_root.createEmptyMovieClip("mvcPlay", 1);
var blnLevelPlay = false;
var nbrMovie = 0;
var rfcLevel;
var nbrFrameLast = 0;
mvcPlay.onEnterFrame = function() {
if (!blnLevelPlay) {
if (nbrMovie<_root.rraMovie.length) {
if (_root.rraLoadStatus[nbrMovie]) {
blnLevelPlay = true;
rfcLevel = this["_level"+(_root.nbrStartLevel+nbrMovie)];
rfcLevel._visible = true;
rfcLevel.play();
nbrFrameLast = 0;
}
} else {
delete this.onEnterFrame;
this.removeMovieClip();
}
} else {
if (rfcLevel._currentframe>=rfcLevel._totalframes || rfcLevel._currentframe == nbrFrameLast) {
blnLevelPlay = false;
rfcLevel._visible = false;
rfcLevel.gotoAndStop(1);
++nbrMovie;
} else {
nbrFrameLast = rfcLevel._currentframe;
}
}
};
};
fncLoadLaunch();

Xml Loading Into Multiple Mc's
Hi all, having trouble loading xml text into multiple mc's. got it to work for text box but cant get it to load into mc's.

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