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








Slideshow Not Playing When I Use The Loadmovie In Container


when i use Loadmovie in container my photo slideshow won't play but it play ok if i Loadmovie to Level can someone help me to make my slideshow play in a container.

thanks




General Flash
Posted on: Sat May 06, 2006 6:08 pm


View Complete Forum Thread with Replies

Sponsored Links:

Resize LoadMovie Container, Not LoadMovie?
I've searched and searched but haven't found what I'm looking for.

I'm wanting to load different sized .swf into the same field and I want the field to adjust (preferably some smooth transitions for the size change) to fit the size of each different .swf loaded. I've seen it done on quite a few sites but I haven't been able to find a tutorial of any kind addressing this specifically. Can anyone help?

I'm keeping it simple, i.e. thumbnails with titles above or off to the side; click one; the field where the .swf will play adjusts itself; .swf loads and plays. When completed, user can click another thumbnail and the previous .swf will "unload" then the field adjusts for the new .swf and the new one loads. Follow me? Just any tutorial you guys may know of would be great.

Here's the closest example I could find... cool site too. http://www.pollenation.org

View Replies !    View Related
LoadMovie Container In Different MC?
Hi,

I am using the loadMovie function using the following code:


Code:
on (release) {
this.shirts_blank.loadMovie("shirts/solid_ss_green.swf");
}
however, the shirts_blank container is located inside a different movieclip on the stage. The hierarchy of the MC's in my movie are as follows:

Scene 1 > steps_mc > colour_selector

The button using the above code is located in the colour_selector MC but the shirts_blank MC is located in the steps_mc which is in the level above.

I know I have done this before, but i can not figure out how to modify the code to get the above script to load the swf in the shirts_blank container in the steps_mc?

I hope this all makes sense as i am staring to confuse myself??

Can anyone help?

thanks

Steve

View Replies !    View Related
LoadMovie() In Container
Hello...

I am all new to flash and wanted to try out some xml gallery stuff.
I have succeeded in getting the image-url from the xml file into an array called urls[]

Then I attach a movieclip for each picture called container where I want the images to be loaded into. But that fails. Can anybody tell me why?


Code:
var x:XML = new XML();
x.ignoreWhite = true;

var urls:Array = new Array();
var movie:Array = new Array();

var xPos = 150;
var yPos = 60;

x.onLoad = function() {
var photos:Array = this.firstChild.childNodes;
for(i=0;i<photos.length;i++) {
attachMovie("container", "new"+i, i, {_x:xPos, _y:yPos});
//increase the y and x postion each time
yPos += this["new"+i]._height+5;
xPos += this["new"+i]._width+5;

urls.push(photos[i].attributes.url);
this["new"+i].loadMovie(urls[i]);
}
}

x.load("portfolio.xml");

View Replies !    View Related
Sizing Container MC's When Using LoadMovie()
Hi all,

I am trying to load an external swf into a container MC in my main swf. I am loading the external MC in a container MC called "host".

My problem is I cannot get the external clip to show up properly. I know it is loaded because I hear the sounds.

I have tried making my host MC the same _width and _height as my external file; however, when I load the clip I don't know where it is?????????

any thoughts?

thanx in advance,

View Replies !    View Related
LoadMovie Into Container Or Into Level?
Can anyone explain why when I load my movie into a container_mc it never actually plays correctly, but when I load it just into a level it plays fine? Is there anyway around this? Loading my movie into a level works okay but it makes the movie more difficult to work with and seems like a weaker way of doing it.
Thanks

View Replies !    View Related
Loadmovie Into Container Question?
Hi there,

Thanks for looking at my post.

I have loaded an external swf into a container within my main movie and it works fine however I need a button in the loaded external swf that wil load and replace itself with a new external swf.

each time I try I end up loading the external swf to replace my main movie.


Cheers
Craig

View Replies !    View Related
Setting A Container To LoadMovie
I have tried creating a swf file with a button at bottom. Then created a shape 400px by 250px then converted to movieclip. I placed the movie clip on the scene at top with instance "container".

Now i created a seperate swf file with a scene size the same as the movie clip. made a short animation and exported.

Back to my first swf file i added to the button:

on (release) {
container.loadMovie("test2.swf");
}

Now that seems to work when i click the button, but it isnt loading it in the same place as the container instance??? why? its off to the right somewhere.

help please...

View Replies !    View Related
LoadMovie Not Loading Into Container?
Hey guys, hope everyone is doing great!

Quick question: I have to mc's on the stage, and each of them loads an external movieclip into it.

The thing is, when I simulate a download (by pressing cntrl+enter twice) the clips arent loading. I put them online as well, and it seems as if they publish fine locally, but not online??

If anyone can have a look, I will really appreciate it!

Thanks again...

(PS: Im attaching the files, they are really simple, if anyone wants to take a look...)

View Replies !    View Related
Big Problem With Level, LoadMovie, Container
Hi,
I have 3 swf :

main.swf
menu.swf
data.swf

The main.swf contains menu.swf and data.swf.
In the main.swf :
loadMovieNum("data.swf", 4);
container.loadMovie("menu.swf", 11);

The data.swf is always over the menu.swf and I don't understand why?

I tried with 2 containers and 2 loadMovieNum but it doesn't work !!!

Any Idea

thanks

View Replies !    View Related
[F8] Complicated Loadmovie Container Issue
I'm new to this, I have a flash movie which I call interface.swf. which is basically layed out like this:

I can click on the buttons to load various flash movies into the movieclip named "moviecontainer" within the interface.swf. Everything works fine, I use the code:


PHP Code:




loadMovie("movies/100.swf", "/moviecontainer");







My problem arises when I try to load a movie which has actionscript referring to _root. For example, a movie I want to load has this:

PHP Code:




_root.onMouseDown = function ()






I figured I would have to do something like this to adapt the movie to the container:

PHP Code:




_root.moviecontainer.onMouseDown = function ()






but that doesn't work because its needs to be "/moviecontainer" not "moviecontainer"
Is there a way around this? Would I even be able to use mouse actions in a movie I loaded into another movieclip?
Any help would be much appreciated.

View Replies !    View Related
Problem With LoadMovie() Into A Container With Effect. Please Help
Hi,
I have seen some kind of a container effect made by bwh2. I'm trying to include a loadMovie() into this container. But it doesn't work.
Any help please?
Code for the container:

ActionScript Code:
onClipEvent(load){
        power=0; // off position to start
        speed=5; // speed of easing
        endW=50; // starting width
        endH=100; // starting height
}
onClipEvent(enterFrame){
        w = endW-this._width;
        this._width += w/speed;
        h = endH-this._height;
        this._height += h/speed;
}
And for the button to resize the container (and I want to include a loadMovie into and give the endW and endH):

ActionScript Code:
on(release){
        if(mc.power==0){ // if mc is "off"
                mc.endW=200;
                mc.endH=400;
                mc.power=1; // if it is pressed again, it will turn it "on"
        }
        else if(mc.power==1){ // if mc is "on"
                mc.endW=50;
                mc.endH=100;
                mc.power=0; // if it is pressed again, it will turn it "off"
        }
}

View Replies !    View Related
Button Issues With Loadmovie In Mc Container
I have a swf loading into a container movie clip. that swf has buttons, etc, but for some reason, the buttons in the main movie, beneath it, are still working, so that any navigation in the loaded swf doesnt work.

is there any way around this? like...onRelease (stop all _root button actions)

something like that...

View Replies !    View Related
LoadMovie Is Overlapping Other Movies To Be Played In It's Container
I have a set of mc buttons that load swf's into the main movie via an empty mc. If I click one and then another very quickly, they load on top of eachother and get stuck in a looping error. How do I control this?

View Replies !    View Related
Loadmovie Into A Container Specifing A Frame Label To Start
Hi,

After i look in kirupa foruns(and others) i found lots of information about how to load a movie into a container, making that the movie starts in a specific frame label. Most of them are vety different, i i would like to have you help to know the best way to do it.

I have 2 movies, the fist one "main.swf" contains the "container", the 2nd "teste.swf" contain the frames labeled like "F1", "F2" "F3" "F4" and "F5".

thanks to all

View Replies !    View Related
Playing Music In Slideshow
My english is not so good but i really hope you will understand me.
I want to play to diferent sound in mp3 file. I have them named sound1 and sound 2 in my library.They are playing in background of slideshow (slideshow template in flash MX)
music = new Sound(this);
music.attachSound("sound1");
music.start(0,999);
this is how first starts but how can i make that when this is finished the sound2 will start an so on to infinity.
Thanks

View Replies !    View Related
Playing A Slideshow Within Another Movie
I have imported a .swf slideshow and want the user to be able to click through the slides as they can when this .swf file is run on its own.

When it is placed in a frame in another app, it automatically plays continuously.

Any suggestions...please???

5leander5

View Replies !    View Related
Playing A Slideshow Within Another Movie
I have imported a .swf slideshow and want the user to be able to click through the slides as they can when this .swf file is run on its own.

When it is placed in a frame in another app, it automatically plays continuously.

Any suggestions...please???

5leander5

View Replies !    View Related
Playing A Slideshow Within Another Movie
I have imported a .swf slideshow and want the user to be able to click through the slides as they can when this .swf file is run on its own.

When it is placed in a frame in another app, it automatically plays continuously.

Any suggestions...please???

5leander5

View Replies !    View Related
Slideshow Music Playing Over *PROBLEM* HELP PLEASE
Hello guys,

I'm having an extreme problem doing this slideshow with music. first of all I'm using my friends domain to show you guys what happens. it's www.keremsuer.com . Ok as you see, when I click on the ABOUT button, a paper appears, which I want that way, but then I want to click on the paper and then it should disappear. It disappears, but I did it by gotoandstop frame1 which reloads the movie and makes the music play over and then the music mixes up. also all the navigation disappears and then appears just like it should do when you first launched the site. Ok what I want to do is this:

The site launches, everything fades in, music starts.
When you click on the ABOUT button, a paper appears. (We're fine through here)
Then when I click on that paper, the only thing is the paper should disappear (MUSIC SHOULDNT RELOAD, AND NAVIGATION SHOULDNT RELOAD)

But my actionscript knowledge is not enough for this
I used xml for the image gallery and the music, but basically my friend did it, and right now he is out of country and nobody can help.

I also put the flash file and xml and everything on a zip folder and uploaded it to the domain. here it is www.keremsuer.com/SLIDE.zip

PLEASE SOMEBODY HELP ME THROUGH THIS. I WILL GET OFFLINE COZ I GOTTA go to a class, but please respond me and also consider that my flash actionscript knowledge is really low. I'm a newbie.

Thanks

ps: it's flash 8

View Replies !    View Related
LoadMovie Slideshow Fails In Firefox
I built a simple jpeg slideshow, but found out that it isn't working in Firefox 1.0, though it works properly in IE. I have the latest Flash plug-ins installed for both browsers. All the jpegs are in the same directory as the swf.

Code:
/* First, I create myArray, and fill it with the
names of the jpegs. */

myArray = new Array();
myArray[0] = "barrett300";
myArray[1] = "ben300";
myArray[2] = "eve300";
myArray[3] = "fiorina_new300";
myArray[4] = "gates_newnew5";
myArray[5] = "trans300";
myArray[6] = "hipps_dog300-2";
myArray[7] = "kerry_hand300";
myArray[8] = "kerry_stand300";
myArray[9] = "maya300";
myArray[10] = "mcdata300n";
myArray[11] = "s_jobs_300";

/* Next, I create a new array and randomly
populate it, with the data from myArray. As I
push the data into myRandomArray, I splice out
the data from myArray to make sure that it's
selected only once. */

var myLength = myArray.length;
myRandomArray = new Array();
onLoad = function () {
for (i=0; i<myLength; i++) {
myChoice = math.floor(math.random()*myArray.length);
myRandomArray.push(myArray[myChoice]);
myArray.splice(myChoice, 1);
}
};

/* Now, I create a timer which will decrement
from 240 to 0 at 60fps. When timer == 0, a jpeg
from myRandomArray should load into the container
myPhotoMC. Each time, the variable myChoice
increments. The if condition checks to see if
myChoice has reached the same number of jpegs in
myRandomArray and resets to index 0. */

var timer = 0;
var myChoice = 0;
onEnterFrame = function () {
if (timer == 0) {
myPhotoMC.loadMovie(myRandomArray[myChoice]+".jpg");
timer = 240;
if (myChoice == myRandomArray.length-1) {
myChoice = 0;
} else {
myChoice++;
}
} else {
timer--;
}
};
This code works in the Flash testing environment and IE, perfectly. Firefox loads no jpegs. When I change the line:

Code:
myPhotoMC.loadMovie(myRandomArray[myChoice]+".jpg");
...to:

Code:
myPhotoMC.loadMovie(myArray[myChoice]+".jpg");
...the movie doesn't work in the Flash testing environment, nor in IE, but it does work in Firefox. The images are of course, not randomized, however. This leads me to believe that myRandomArray is not being populated properly, in Firefox.

When adding a trace action to the original code, we can check to see if myRandomArray is being populated:

Code:
var myLength = myArray.length;
myRandomArray = new Array();
onLoad = function () {
for (i=0; i<myLength; i++) {
myChoice = math.floor(math.random()*myArray.length);
myRandomArray.push(myArray[myChoice]);
myArray.splice(myChoice, 1);
trace(myRandomArray);
}
};
In the Flash testing environment, the Output window shows us that myRandomArray is being populated. The slideshow is again working in the Flash testing environment and in IE. Firefox loads no jpegs.

Strangely, Firefox's status bar does show that it's trying to load data, but no jpegs show up.

View Replies !    View Related
Slideshow Problem - LoadMovie With Jpeg
I've built a basic slideshow by customizing some code I found in a tutorial. It loads external jpegs and fades them in and out using a back and next button. Everything worked great, but once I uploaded it to a website, I noticed that it didn't wait for the jpegs to load - it just faded in the empty movie clip. To fix this, I added square._width>0 to the if statement that causes images to fade in since the movie clip is 0 wide before the jpeg loads. After doing this, it played fine on my computer, but when I uploaded it to the site, it locked up and wouldn't load any images. Below is the code I'm using. Any suggestions?


ActionScript Code:
square._alpha = 0;
photo = 1;
_root.onEnterFrame = function() {
    if (square._alpha<10) {
        loadMovie("image"+photo+".jpg", square);
        fadeOut = false;
    }
    if (square._width>0 && square._alpha<10 && !fadeOut) {
        fadeIn = true;
    }
    if (square._alpha>10 && fadeOut) {
        square._alpha -= 10;
    }
    if (square._alpha<100 && fadeIn && !fadeOut) {
        square._alpha += 10;
    } else {
        fadeIn = false;
    }
};
next.onRelease = function() {
    if (photo<16 && !fadeIn && !fadeOut) {
        fadeOut = true;
        photo++;
    }
    if (photo == 16 && !fadeIn && !fadeOut) {
        fadeOut = true;
        photo = 1;
    }
};
back.onRelease = function() {
    if (photo>1 && !fadeIn && !fadeOut) {
        fadeOut = true;
        photo--;
    }
    if (photo == 1 && !fadeIn && !fadeOut) {
        fadeOut = true;
        photo = 16;
    }
};

View Replies !    View Related
Slideshow: How To Count Images In An Array On LoadMovie()
Hi there,

I found a script (credited in the comments) that is close to what i want but I just have one problem:

When you load the page and where you see the control forward and back, I want the "0 of 0" to automatically count the number of images in the array.
At this point, the counting does happen as soon as you click forward.

http://ketzichacon.com/colC.php

Here is the script:


ActionScript Code:
arrayrow=[   
    ["colC/colC2.jpg"],
    ["colC/colC3.jpg"],
    ["colC/colC4.jpg"],
             ["colC/colC5.jpg"],
    ["colC/colC6.jpg"],
    ["colC/colC7.jpg"],
    ["colC/colC8.jpg"],
    ["colC/colC9.jpg"],
    ["colC/colC10.jpg"],
    ["colC/colC11.jpg"],
    ["colC/colC1.jpg"]
            ];

for(i=0;i<arrayrow.length;i++){
 
TargetIN._alpha = 100;
 
CounterNumber =0;

Forward.Forward.onPress = function() {
if (CounterNumber<arrayrow.length && !FadeImageIn && !FadeImageOut) {
        FadeImageOut = true;
        CounterNumber++;
        CounterDisplay = CounterNumber;
    }
};

Back.Back.onPress = function() {
    if (CounterNumber>1 && !FadeImageIn && !FadeImageOut) {
        FadeImageOut = true;
        CounterNumber--;
        CounterDisplay = CounterNumber;
    }
};

onEnterFrame = function() {
     if (TargetIN._alpha> 30 && FadeImageOut) {
    TargetIN._alpha -= 30;
    }

if (TargetIN._alpha< 30) {   
        loadMovie((arrayrow[counternumber-1][0]), TargetIN);
        
        PageTotal = (arrayrow.length);
        CounterDisplay = (counternumber);
       
        FadeImageOut = false;
        FadeImageIn = true;
    }
    
              if (TargetIN._alpha<100 && FadeImageIn && !FadeImageOut) {
        TargetIN._alpha += 30;
    } else {
        FadeImageIn = false;
    }
    
             if (CounterDisplay>20) {
        CounterDisplay = 20;
    }
    
             if (Key.isDown(Key.ENTER)) {
        FadeImageOut = true;
        CounterNumber = CounterDisplay;
    }
}
}

CounterDisplay is properly assigned to the number on the left. (ie. 0 of 0)
PageTotal is properly assigned to the number on the right. (ie. 0 of 0)

Thank you!

View Replies !    View Related
Loadmovie When Another Is Done Playing
i have a couple of bittons on my flash site that when each is clicked on i want my clip to go to a certain place (labeled "out") and when that is dont playing, load another movie into that same clip.

how would i go about doing this?

right now i have:

Code:
_root.content.gotoandplay("out");
_root.content.loadmovie("about.swf");
this doesnt work becaue it plays "out" for one frame and then loads about.swf in so you cant see the rest of "out"

thanks a lot!!

View Replies !    View Related
LoadMovie Not Playing -->
I have several movies that i'm loading into.. i don't know how long they are or how big they are... these are premade real estate movies for properties generated by another company. I've gotten as far as gettting them to load, however I still need to do two things

#1 get them to play.. for some reason they are not getting past the built in preloader. I have tried this.gotoAndPlay() with no success and if I force it to play with this._currentframe = this._currentframe +1; it just loads the movies one after the other without playing them.

#2 determine how many frames they run for so when one is finished, the next one loads

here's is a quick look at my actionscript. I load the file names of the movies into an array called movies.


Code:
onClipEvent(enterFrame) {
// LOAD THE MOVIE IF WE ARE AT THE END OF THE LAST ONE
if(this._currentframe == this._framesloaded || _root.loadMeFirst == 1) {
// UNLOAD THE PREVIOUS MOVIE
if(_root.thisMovie > 0) {
this.unloadMovie();
}
// LOAD OUR MOVIE
this.loadMovie('movies/' add _root.movies[_root.thisMovie]);
// SETUP THE VAR TO LOAD OUR NEXT MOVIE
if((_root.thisMovie) == _root.movies.length) {
_root.thisMovie = 0;
} else {
_root.thisMovie++;
}
// TURN OFF FIRST MOVIE FLAG
_root.loadMeFirst = 2;
}
}
Thanks in advance for any help

View Replies !    View Related
Can You LoadMovie Without Playing?
Is there a way to load an external movie into a movie clip but not play it until later? I want to be sure that the movie doesn't start until all bytes have downloaded and my preloader has gone away. No matter what I do, the loaded movie always starts before it is completely downloaded and when my preloader goes away, the viewer has missed the beginning of the downloaded movie.

I see that with MovieClipLoader, I can tell when the download starts, when additional bytes are downloaded, when the first frame is loaded and executed, and when the entire movie is downloaded. What I can't seem to figure out how to do is tell the loaded movie to wait until I tell it to play. What I need to do is start my preloader, begin loading the movie, when the movie is fully downloaded, take away the preloader, do some animation, then fade in the loaded movie and begin playing it.

For loaded movies that I control, I can achive this effect by coding a stop() in frame 1 of the loaded movie. Then call gotoAndPlay(2) when I'm ready. The problem is, I don't control all of the movies I'm loading.

I suppose I could always to a gotoAndPlay(1) from onLoadComplete()... but that might not be safe because who knows what kind of initialization might have been done... and while I can set the movie clip to invisible to hide the video playing early, it might be annoying if somehow audio is played early in the movie.

One thought I had was to see if there were a way to attach an event handler to frame 1 of the loaded movie and force a stop() somehow. But I'm not sure if I can actually stop the loaded movie's timeline correctly... and even if I did, all kinds of code could have already executed by that time and I don't know if executing it again would be a safe thing to do.

Does anyone have suggestions?

View Replies !    View Related
LoadMovie Not Playing
Hi,

I have been facing this problem and not sure how to fix it. In one of my movieclip, I am trying to load an external swf.

In the 1st frame, I type:

target_1.loadMovie("scroller.swf");

to load the swf file. I have dump in a blank movie clip with instance name "target_1".

In the 2nd frame, I type:

setProperty ("target_1", _x, "0");
setProperty ("target_1", _y, "250");

to set the x y coordinates I want.

In the 3rd frame, I type:

stop();

to prevent the movieclip repeating itself on the main stage.

Problem is the external swf is not playing. I have tried removing stop(); from the 3rd frame, but the swf still does not play. I am not sure if I have explain correctly. I think I need to manually play the loaded external swf but not sure how to do it. Can anyone guide me? Thanks in advance.

View Replies !    View Related
Simple "LoadMovie Into Container" Question...
Hey guys, hope everyone is doing well...
This is really simple to answer, I'm sure, I just can't find any quick and easy answers for this. Also, Im not sure about the terminology...

I have a main flash movie, with a square mc called "container" 150px x 150px

When this loads, i just want another external .swf file (the same dimensions, called "block") to load into "container" mc, without the need to click on a button first...

Thats it...nothing else fancy...

This is the code I have on "container" :


Code:
onClipEvent (load) {
container.loadMovie("block.swf");
}
Can anyone help?

View Replies !    View Related
I Can Import Swf Files Into A Container But Not Put Symbols Into A Container
I can import swf files into a container but not put symbols into a container.


Code:
on(release) {
this.createEmptyMovieClip("holder_mc", 100);
this.holder_mc._x = this.holder_mc._y = 0;
this.holder_mc.loadMovie("kanjiFlash.swf");
}
How do I get a symbol in the library to put itself into a movie clip like above when I press a symbol, on the main scene?


Glen Charles Rowell

View Replies !    View Related
HELP .swf Not Playing Correctly (loadmovie)
Hey all this is my first post and any help would be great!

I have a movie that has a button in it with a loadmovie command.

When I press the button, the movie loads, but not entirely. It seems to only play half of the movie and none of the buttons within that movie work.
Origanally, this movie (the one not loading correctly) was created in Livemotion 2.0.

Any ideas...PLEASE?!?!
thanks in advance.

HERE IS THE LINK ONLINE

View Replies !    View Related
Nested MC Not Playing When Using LoadMovie
I am creating a flash file that is a menu for a CD of multiple flash files. When I use loadMovie to load an external SWF file into a MC, any MC's and drag_and_drop components in the external SWF file do not work.

Here is the code I have attached to a button. I am using Flash 8, and the code below was created in the Behaviors window.



PHP Code:



on (release) {
gotoAndPlay("playBeg");
    //load Movie Behavior
    if(this.playing2 == Number(this.playing2)){
        loadMovieNum("beginning.swf",this.playing2);
    } else {
        this.playing2.loadMovie("beginning.swf");
    }
    //End Behavior

    //Play video Behavior
    if(this.playing2._parent._currentframe == this.playing2._parent._totalframes){
        this.playing2._parent.gotoAndPlay(1);
    } else {
        this.playing2._parent.play();
    }
    
}




If I simply load the external SWF into the main timeline, then everything works fine, but then I can't get back to my menu screen.

Thanks for any input or suggestions.
Tonya

View Replies !    View Related
[F8] LoadMovie - FLV's Not Playing Online
Hello,

I am trying to play an FLV file, by using the loadMovie function. The flv is embedded within a .swf - which is what I load by using the code blow:

loadMovie("loadmovie/anticamo/anticamo.swf", Container2anticamo);

When I test my code / movie file offline, everything works as intended and the .swf is loaded, and subsequently plays my FLV. However, when I upload this and attempt to test it online, the .swf that I call fails to load and subsequently my FLV does not load.

Can anyone please help me with an answer as to why the anticamo.swf will load and play my FLV offline, but when I test the same code online it fails to load or even display the .swf. Of course also, if possible, a suggested fix for this problem would be ideal.

I have noticed, that when I view the frame that should load the .swf, that the browser is attempting to contact the server / download information.

Any help would be greatly appreciated as this is very frustrating and I trying to build a portfolio at the moment which would greatly utilize both loadMovie and FLV's.

Thankyou,
Cx

View Replies !    View Related
Loadmovie And Only Playing To A Frame In It
Hey guys,
Thanks for the help on my last question. AS 2 is a rough thing to understand coming from a design perspective but i am learning.

New Problem:
I have a movie that i load into a movieclip on a rollover. I want to reuse the same clip but say on mouseclick goto play to frame 15 then stop. I am think i need to send a variable and say if variable = true then play to frame 15 and stop if false play entire swf.

Basically its a a up then down graphic i want to reuse instead of creating more swf files and keeping the finished size small.

here is the code i have now and thanks for any help.

portfolio_btn.onRollOver = function() {
loadMovie("port_up_down.swf",portfolio_holder_mc);
portfolio_btn._alpha = 50;
};


portfolio_btn.onRollOut = function() {
portfolio_btn._alpha = 100;
};

portfolio_btn.onRelease = function(){
gotoAndStop("portfolio");
};

View Replies !    View Related
Start Playing At Certain Frame, With LoadMovie
Is it possible to use the loadMovie command, and start playing the external swf at a certain frame?

I've posted this before, but no one could help, so hoping someone can this time.

View Replies !    View Related
[F8] LoadMovie Not Playing In Html File
I created a swf file with a loadMovie script that loads when someone rolls over a button. It works fine when I publish it but I gave the files (main swf file, 1 external swf file, html) to the web developer to place the swf on the website and the rollOver doesn't work. What should I be looking for to fix this?

View Replies !    View Related
[F8] Loadmovie And Sequentially Playing External Swf's
i have searched and searched, and read many tutorials on loadmovie(),
this is my first experience with this function. the tutorials i read all had a button to start the process of playing the swf's .

my situation: i have a container 775x100 in adroll.fla. in that area i would like to load 5 swf's-(ad1,ad2...ad5) and play them sequentially (and then loop those if possible but i would be happy if they just played once thru.)

from a post i found here and tried this code:






Code:

myListener = new Object();
myListener.onLoadComplete(targetClip){
//targetClip is a reference to the movieclip you passed to loadClip();
//respond to completion code
}
myMCL = new MovieClipLoader();
myMCL.addListener(myListener);

myMCL.loadClip("ad.swf", "ad2.swf","ad3.swf","ad4.swf","ad5.swf",myTargetMovieClip);

function()
{for(i=0;i<5;i++)

myMCL.loadClip("mySwf"+i+".swf", _root["target"+i]);
}


my movie adroll.swf will not play!!!-- i get this error


Scene=Scene1, layer=Layer1, frame= 1, line2 syntax error



this is line 2----myListener.onLoadComplete(targetClip){


i have spent a long time on this if someone could look this over and help me to get this to work.


thanks,
craig

View Replies !    View Related
Problem Playing Loaded Sounds After Using LoadMovie
Please help:

I'm making a set of voice-narrated instructions, using 2 SWF's.

SWF1 contains text content. SWF2 contains 20 imported sound files (large) that narrate the text in SWF1.

I want SWF1 to control the sound files that exist in SWF2. In other words, I want to create Sound() objects in SWF1, which play the sound files located in SWF2.

I've tried using loadMovie in SWF1 to load SWF2 onto a new level. But, once loaded, I cannot get SWF1 to create sound objects that play the sound files that exist in SWF2. Nothing plays at all.

In other words, in the root of SWF1, I've tried:
loadMovieNum ("swf2.swf", 1);
_level1.narr = new Sound();
_level1.narr.attachSound("narration1");
_level1.narr.start();

Can you please help? Thank you in advance!

View Replies !    View Related
Playing External Movies One By One When I LoadMovie One Time In First Layer?
Hi alll,

I am a newbie here.

I have problem with loading external movies like this:

+ 2 of my external movies is quite big so if I wanna load two of mine (movie a + movie b) in first frame. After loaded, I wanna play the movie a the play the movie b in my time line. I(s is possible for me to do it?

Can someone help me?

Thanks alotz

Misa

View Replies !    View Related
Playing External Movies One By One When I LoadMovie One Time In First Layer?
Hi alll,

I am a newbie here.

I have problem with loading external movies like this:

+ 2 of my external movies is quite big so if I wanna load two of mine (movie a + movie b) in first frame. After loaded, I wanna play the movie a the play the movie b in my time line. I(s is possible for me to do it?

Can someone help me?

Thanks alotz

Misa

View Replies !    View Related
Loading A Container Inside A Container...
I just did the "Transitions Between Swf's Tutorial", i basically understood how it works and got everything to work right, but now my next question is how can i load another container using the same technique as the tutorial shows into the exsiting container. Basically load a container inside a container.

I tried doing it by using the same idea as the tutorial but the swf that i am trying to load in the new container wont load.

I would really appreciate some help.

Thank you!

View Replies !    View Related
Loading A Container Inside A Container...
I just did the "Transitions Between Swf's Tutorial", i basically understood how it works and got everything to work right, but now my next question is how can i load another container using the same technique as the tutorial shows into the exsiting container. Basically load a container inside a container.

I tried doing it by using the same idea as the tutorial but the swf that i am trying to load in the new container wont load.

I would really appreciate some help.

Thank you!

View Replies !    View Related
Container.loadMovie ("image"+_root.variable+".swf") Doesn't Work, Help
what i'm trying to do is dynamically load a movie based on the name of a variable called "whichPic". the swf calling for the movie is nested inside another movie that has loaded it. the variable is defined in the _root movie. for whatever reason i can't get this to work. here is what i have right now:

container.loadMovie("image"+_root.whichPic+".swf") ;

it keeps trying to load a movie called "image.swf" instead of "image1.swf" or "image2.swf", etc. the variable is there but i just can't access it for some reason. i assume i'm just writing the actionscrpt incorrectly, nesting movies always throws me for a loop. thanks!

View Replies !    View Related
Swf W/container Loading Into Container On...
I have a MC with a container that loads external swf's. Is it possible to make one of these external swf's with a container that loads other swf's in its container too? Basically I want to load swf's in a external swf. Man, this is confusing to explain.

View Replies !    View Related
Photo Slideshow With XML - Image Gap On First Cylce Through Slideshow
Hello,

I am new to this site, and I went through the tutorial on this site, "Photo slideshow using XMl and Flash, " http://www.kirupa.com/developer/mx20..._slideshow.htm
but I encountered a problem where my images lag the first time they cycle through all the images in the XML file.

The first time the flash page loads and starts the slideshow, I don't want the gap between the transitioning of the images where the movie backgound shows. I think it has something to do with the images loading for the first time, so I tried to load each picture in a different movieclip with an alpha of 0 before the slideshows starts, but it didn't work and there is still the gap between the images the first time the pictures cycle through the slide show.

Please offer any advice on how to stop the image lag the first time the slideshow cycle through all the images in the XML file.

View Replies !    View Related
Flash Player Not Playing Not Playing Properly Low Bitrate Sound
Hi,
I have created a flash audio player which can play streaming audio (mp3) files and it takes data from external xml file. Everthing is working fine. But when i used a low bitrate mp3 file (size 600 kb, time 3min approx) , it plays the audio with max speed and get ended in 30 seconds. The same audio file is playing normally in windows media player, or winamp,etc.
Plese give me some idea what is happening ........
Thanks,
Gunjan

View Replies !    View Related
Check If Movie Clip Finish Playing Before Playing Next
I'm trying to figure out how to create a conditional variable script to check to see if one of the 4 movies are finished before starting the next selected one.

I have 4 menus with 4 movie clips that have an opening and closing animation in them.
When clicking the one of the buttons I would like it to check and see if any of the movie clips are in the open position. Then have the movie that is in the open position play it's closing animation. Then play the selected category movie that the person clicked on.

I know it's all done with variables but just cant figure out how to put it together.

here is what i have so far.

menuStatus = 0;
trace(menuStatus);
but1.onPress = function() {
if (menuStatus == 0) {
menuwork.gotoAndPlay("start");
menuStatus = 1;
} else if (menuStatus == 2) {
resetMenus();

}
};
but2.onRelease = function() {
if (menuStatus == 0) {
menuwhoweare.gotoAndPlay("start");
menuStatus = 2;
}else if (menuStatus == 1){
resetMenus();
}
};
function resetMenus() {
if (menuStatus == 1) {
menuwork.gotoAndPlay("close");
menuStatus = 0;
} else if (menuStatus == 2) {
menuwhoweare.gotoAndPlay("close");
menuStatus = 0;
}
}

thanks for any help in advance

View Replies !    View Related
How Do I Check To See If A Sound Is Already Playing Before Playing When Pressing Play
Okay, i really need some help on this. I have a play button where if clicked will play the sound over the top of it when its already playing, if that makes any sense. the sound is already called on the first frame. if the user clicks the play button again, it will play over it.

heres my play button code. i need to know what to add to add to make it check to see if the audio is already playing. My audio sound is named myMusc.

ActionScript Code:
on (press) {
if (playing != true) {
if (paused != true) {
playing = true;
paused = false;
stopped = false;
myMusic.start(0, 999);
}
if (paused == true) {
playing = true;
paused = false;
stopped = false;
myMusic.start(myMusicPosition, 0);
_root.myMusic.onSoundComplete = function() {
myMusic.start();
};
}
}
}
Thanks

View Replies !    View Related
Playing A Certain Frame, After A External Swf File Has Started Playing?
Hi,
This is my first post here.

I need to know how to have a certain frame in my movie start playing, after a external movie I have has started playing.

The problem is basically sync., and I want a certain frame to play only after the external movie begins to play.

I'm using...

loadMovie("http://www.alainshep.com/alain.swf", 66);
if (playing) {
gotoAndPlay("begin");
} else {
gotoAndPlay("start");
}


The external movie plays after it loads, but I just don't know how to set it up for the frame I want to play after it has started playing.

Please Please someone help me..

View Replies !    View Related
How To Know If My Sound Is Playing Or Finished Playing?
I`m loading and playing sound like below.


Code:
//SOUND LOAD

var snd:Sound = new Sound();
snd.load(new URLRequest("sound.mp3"));
snd.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
snd.addEventListener(Event.COMPLETE, onSoundLoadComplete, false, 0, true);

function onIOError(evt:IOErrorEvent):void{
trace("sound loading error: ",evt.text);
}

function onSoundLoadComplete(evt:Event):void{
trace("sound loaded");
}

//SOUND PLAY

snd_btn1.addEventListener(MouseEvent.MOUSE_OVER,sndPlay);

function sndPlay(evt:Event):void{

var channel:SoundChannel
channel = snd.play();
}
i would like to have my sound to play only when it`s not already playing.
how can I achieve this?

thank you

View Replies !    View Related
How To Know If My Sound Is Playing Or Finished Playing?
I`m loading and playing sound like below.


Code:
//SOUND LOAD

var snd:Sound = new Sound();
snd.load(new URLRequest("sound.mp3"));
snd.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
snd.addEventListener(Event.COMPLETE, onSoundLoadComplete, false, 0, true);

function onIOError(evt:IOErrorEvent):void{
trace("sound loading error: ",evt.text);
}

function onSoundLoadComplete(evt:Event):void{
trace("sound loaded");
}

//SOUND PLAY

snd_btn1.addEventListener(MouseEvent.MOUSE_OVER,sndPlay);

function sndPlay(evt:Event):void{

var channel:SoundChannel
channel = snd.play();
}
i would like to have my sound to play only when it`s not already playing.
how can I achieve this?

thank you

View Replies !    View Related
How To Know If My Sound Is Playing Or Finished Playing?
I`m loading and playing sound like below.


Code:
//SOUND LOAD

var snd:Sound = new Sound();
snd.load(new URLRequest("sound.mp3"));
snd.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
snd.addEventListener(Event.COMPLETE, onSoundLoadComplete, false, 0, true);

function onIOError(evt:IOErrorEvent):void{
trace("sound loading error: ",evt.text);
}

function onSoundLoadComplete(evt:Event):void{
trace("sound loaded");
}

//SOUND PLAY

snd_btn1.addEventListener(MouseEvent.MOUSE_OVER,sndPlay);

function sndPlay(evt:Event):void{

var channel:SoundChannel
channel = snd.play();
}
i would like to have my sound to play only when it`s not already playing.
how can I achieve this?

thank you

View Replies !    View Related
Which Is The Container ?
here is an instance first

personA=
{
name : "Ann",
favs :
{
site1 : "flash.com",
test1 : function(){ trace (this.site1) }, test2 : function(){ trace (this.name ) } }, test3: function(){ trace (this.name ) }, test4: function(){ trace (this.site1) }
};

I feel confused that which container is the "this" pointing to ??? the favs ???

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