ActionScript 2.0 :: LoadMovie Function Block Out MovieClip To Fade In

Sep 21, 2003

When you use LoadMovie to load a SWF, does that SWF stay loaded, or does it get reloaded every subsequent time you use the LoadMovie function for that same SWF? I use the LoadMovie function in several buttons to load SWFs into my movie. In those same buttons, I use a function which fades a different (already present) movieclip in. However, the LoadMovie call seems to block out the movie clip which needs to fade in; when I click the button, it loads the SWF just fine, the movieclip just doesn't fade in (or it does, but I can't see it), when I comment the LoadMovie call out, the movieclip fades in just fine (and I can see it). Also, I load the SWFs into an empty movieclip, which is beneath all other layers, so that's not the problem.

In my button:
Code:
on(release){
_root.home.fade(0,100,10);
_root.content.loadMovie("home.swf");
}

I've tried:
Code:
on(release){
_root.content.loadMovie("home.swf");
_root.content.swapDepths(1000);
_root.home.fade(0,100,10);
}
But, that doesn't get me anywhere, either.

View 4 Replies


Similar Posts:


ActionScript 2.0 :: SwapDepth - SetTimeout - MovieClip To Fade Out - Pause Then A New MovieClip To Fade In

Jan 19, 2010

What have I done wrong here? I need a movieClip to fade out, pause, then a new movieClip to fade in.

[Code]....

What I've tried to do is to set the target_MC alpha to 0 and fade out the current mc. Then when the fadeOut has completed to setTimeOut. After this the mcs will swapDepths and the target_MC should fade up to alpha = 0I've attached the flash and xml files. The images were too large.

View 2 Replies

ActionScript 1/2 :: LoadMovie - Fade Pages In And Out

Apr 14, 2007

I am getting ready to start a new project and I want to make sure I'm on the right track! It will be a site that uses loadmovie (I hope) to fade pages in and out in equal amounts. (I.E movie 1 unloads and fades out at the same rate movie 2 loads up and fades in)I found a reply by Kglad for doing something similar with jpegs the code was:

on (rollOver) {
mc=this.placeholder_mc
mc._alpha=0;
loadMovie("Costume/Bailiff.jpg", "placeholder_mc");
clearInterval(fadeI);
[Code] .....

So I am hoping this will work with a swf. I think I would have to assign buttons which would unload current MC at a fade rate and have another MC fade in at that same rate. And I am guessing the buttons would be loaded on a layer above any of the movies.

View 9 Replies

ActionScript 2.0 :: Baffled: Fade In Fade Out Function?

Dec 12, 2006

this code is so not working, am i missing something very subtle?all it does is fade in and out an object when you roll over it.

_root.block2.tn.onRollOver= function(){
glow = true
}

[code]........

View 14 Replies

ActionScript 2.0 :: Alpha Tween - Movieclip Containing The FLV Component To Load The Right File - Fade In And When The Video Ends - Fade Out

Oct 13, 2008

I simply have one FLVPlayback component in the background and a movieclip on the layer above with an FLVPlayback component inside it. The first FLV component is constantly looping a five-second video. So all I need is for the movieclip containing the second FLV component to load the right file, fade in, and when the video ends, fade out. Absolutely all of that works... apart from the fading in. What I noticed was that my movieclip was fading in correctly, but the FLVPlayback component was empty and transparent until the fade had finished - then it played the clip. Here's my code, which gets called at random intervals:

[Code]...

View 3 Replies

ActionScript 3.0 :: Movieclip Can't Appear When I Add It In Certain Block Of Code

Sep 1, 2011

I want a movieclip to appear in a drag and drop game. When you successfully drag the right object and drop it then an animation is called from the library.The animation doesn't appear. However, when I use the same code at the beginning of my programme it does appear so it's not that part of the code that is the problem. Also, a trace statement does trace so it is running the code.[code]...

View 7 Replies

Actionscript 3 :: Testing - Writing/compiling A Block Of Code Without A Class Or Function?

Feb 7, 2011

Having done some programming in Groovy, I know you can write test code in the Groovy console. I classify this as true a scripting language as it doesn't force you to have a class definition. So I'd assume with a name like ActionScript with 'script' in it's name that, you can write a series of statements that act linearly, such as a sequence of variables assignments, their manipulation and dumping out a value.

My question is if this is possible, how do you go about doing it, in order to test some code with ActionScript3? Does the code have to exist in a package?Can the code exist on it's own? (If so, what would the name be you'd give to the source file in order to compile it from the command line?

Would you use mxmlc?

Would you use compc?

I've heard about fsch too. How about that?I also read about a command called 'asc' in R.Braunstein's AS3 Bible 2nd ed (P8), but don't even see this in the SDK bin folders.... So what's that all about? Assuming I've managed to compile this name.as file, how do I execute it and see results? Do I have to run it through a browser and the HTML template, or can I execute from a command line?

Do you have to have a class in the source to bypass this? Can the code block be placed outside a dummy class? If so, does it have to exist in a function? Or can it exist on it's own?Does it have to exist in a code blocks, by wrapping them in curly braces?

View 2 Replies

Make A Fade In And Fade Out Movieclip?

Sep 9, 2009

I would like to make a fade in and fade out movieclip. However I want it so after it fades out, it will not loop and start over. In essence fade in and fade out and thats it.

View 1 Replies

ActionScript 1/2 :: MovieClip : Fade Out Then Fade In?

Jan 11, 2010

I need to produce an image gallery which when a thumbnail is pressed it loads a new image, fades out the previous image then fades in the new one.I have it fading in but I don't know how to fade the previous image out before.Here is my code so far:

import mx.transitions.Tween;import mx.transitions.easing.*;var imageLoader:MovieClipLoader = new MovieClipLoader() ;var imageListener:Object = new Object () ;imageLoader.addListener(imageListener); imageListener.onLoadInit = function()[code]....

View 3 Replies

ActionScript 2.0 :: Fade Out Old Movieclip, Fade In New One?

Feb 29, 2008

Ive been using flash for years (for animation) but ive only just started properly looking at actionscript.What Im doing is making a flash site, in which when you click a menu item the current page fades out, the new one fades in.Here is what I have:

Code:

var selectedPage = "home";
//attach home page
holder.attachMovie("home","selectedPage","1");[code]....

It works to the point of loading the home page, and then fading that out when i click a new item on the menu, but it doesnt seem to be loading a newpage in or fading back in.

View 1 Replies

ActionScript 3.0 :: Can't Accses "block" Movie Clip Which's Added From The Fla Files And Given An Instance Name As "block"

Dec 31, 2010

So i have an external as file which have a function. the function make the movie clip do something when it hit another object which i named "block."

but the external as file can't accses "block" movie clip which's added from the fla files and given an instance name as "block".

View 4 Replies

ActionScript 3.0 :: Replacing The LoadMovie Function

Oct 11, 2009

I have a website which needs to 3 images into 3 movieclips when the page loads. The page gets the URLs for the 3 images from an XML document, ie.

<imgurl>graphics/panda.jpg</imgurl>
<imgurl>graphics/panda2.jpg</imgurl>
<imgurl>graphics/panda3.jpg</imgurl>

What I want to do is make a function which gets the image URL for each image and puts them into a target movieclip each. In AS2, the loadMovie function could do this. In AS3, I've figured out how to add an image to a movie clip, like this...

[Code]...

View 6 Replies

IDE :: TypeError: Error #1006: LoadMovie Is Not A Function

Nov 9, 2009

I've been trying to load an external SWF but keep getting this error:

TypeError: Error #1006: loadMovie is not a function.

This is the code I have:

Code:
location.loadMovie("video.swf");
"location" is the mc that loads "video.swf"

This used to work in other versions of flash but for some reason now it doesn't in these higher versions of flash?

View 3 Replies

ActionScript 2.0 :: LoadMovie Function Not Loading JPEGs Into MC

Apr 22, 2004

I've used loadMovie() often in the short time I've been using Flash. But never to load a JPEG dynamically. For a site interface, I have little thumbnails, which open to new browser windows. This is partly annoying though, as each one opens in it's own window, so the user would have to close a whole bunch of 'em after clicking all those thumbnails. To try to fix this, I read that JPEGs can be loaded at runtime onto the stage. I've already seen the photo gallery tut, but I only require a pop-up window with one image and no left/right buttons, etc. I've tried following the tutorial for the first few steps, making a shape the size I want the images to be, converting it to an MC, and naming the MC instance on the stage.

Then, I created a new layer on frame 1 with Code:
loadMovie("CS_00_1.jpg", _root.picture);
But when testing it, I see nothing.

I've tried a few different things. Before, the fla was in a separate folder, so I had to include "Screens/" in the name. Just in case that was the problem (I didn't get any errors in the Output), I moved it into the directory with the images. I tried absolute and relative addressing. I opened up the image in PS and resized it to the size of the symbol on the stage and made sure it wasn't Progressive (I read in a thread that Flash doesn't load Progressive JPEGs), but still nothing. I even tried loading a file that didn't exist to make sure it was looking in the right place the other times (as it didn't give me any error).

View 6 Replies

ActionScript 2.0 :: Scaling MovieClips Using Loadmovie Function

Jan 20, 2005

I am loading some thumbnails (jpgs) into some movieclips using loadmovie. Easy enough. I want to scale the movieclip to increase the size of the thumbnail on rollover. The problem is when I use loadmovie and load the external JPG it sets the the JPGs default registration point to (0,0) and when I scale the thumbnail it scales from the top left corner. I would like it to scale from the center. This is the code I am using:

onClipEvent (load) {
var thumb = "thumbtest.jpg";
loadMovie(thumb, thumb_loader);
thumb_loader._yscale = 70;
thumb_loader._xscale = 70;
} on (rollOver) {
thumb_loader._yscale = 100;
thumb_loader._xscale = 100;
} on (rollOut) {
thumb_loader._yscale = 70;
thumb_loader._xscale = 70;
}

Is there anyway to change the registration point so it scales from the center and not the top left?

View 1 Replies

Loadmovie Function To Load Movie In Liquid Template

Feb 24, 2009

I am using loadmovie function to load movie in a liquid template.[code]Movie loads fine in right position but as soon as window gets resized it goes out of its place to the TC position.What can do here to make movie stays in its place once window is resized?

View 2 Replies

ActionScript 2.0 :: LoadMovie With SetTimeout Delay Function Not Working

Aug 16, 2009

I'm trying to load a .swf into a containerMC with a button action. I want it to delay the loadMovie action for 1 second to allow an out animation to finish playing. The buttons (next and back) are in a MC on the main timeline of the swf.

I have this code in 1st frame of main timeline:

_global.nextMC = function() {
_root.containerMC.loadMovie("images/folio/chevron.swf");
};

[Code].....

I feel like I'm close, but probably just am missing something here in my setTimeout syntax.

View 2 Replies

ActionScript 2.0 :: Loading External Swf Files Through The LoadMovie Function

Dec 7, 2005

I want to load an external .swf file through the loadMovie function. The problem is flash takes sometime to load the file and therefore what ever commands I put below the loadMovie function, will not work. Placing this commands say 10 frames from the loadMovie function works but when online and you have a slow internet connection, it yet again fails. How do I solve this problem? I tried using onLoad but from what I gathered from several sites, it will not work with LoadMovie.

View 6 Replies

ActionScript 2.0 :: LoadMovie Function Called From An Embedded Swf Is Responding

Nov 13, 2004

im using this method [URL] transitions.htm to load movies and create transitions between them for my site.. I have read the technique thoroughly and im fairly sure the code and structure I have used is correct however the loadMovie function called from an embedded swf is not doing anything and I cant work out why.. on the main timeline there is a container movie that the swf files are loaded into, the intro sequence is loaded through an action on frame 1:

_root.currMovie = "introsection";
container.loadMovie(_root.currMovie+".swf");

this works no worries.. but when the container is targeted from inside the introsection.swf movie nothing happens, this is the code used: _root.container.loadMovie(_root.currMovie+".swf") I have tried variations with this and nothing works.. the container movie has the correct instance name and the code works from the main timeline but not from within another swf.

View 11 Replies

ActionScript 2.0 :: [MX] Use This Movieclip In Another Movieclip Using Loadmovie?

Sep 20, 2004

[URL] I want to use this movieclip in another movieclip using loadmovie.Ofcourse the "_root referring to"'s have to be changed . but I just can't get it working.Mainmovie.fla using as. to get submovie.fla.submovie contains the as. used in the topic.

View 1 Replies

ActionScript 2.0 :: Random LoadMovie Function - Location Of External SWFs

Apr 5, 2005

I'm having a problem with embedding a Flash movie that loads an array of SWFs- specifically, ones that exist in the same movie as the .fla loader file. When I move the external SWFs and .swf load_movie file into a separate directory from the HTML file, they do not load properly. I get just a white window. [URL]. When I keep the SWF movie clips and load_movie.swf in the same (root) folder as the .html file, then everything loads properly, though. But this would extremely clutter up my directory!

The code is as follows:
MovieClip on Stage
onClipEvent(data){
//test to make sure it's completely loaded, when swf's load this way onData is called with each 'chunk' of data
if(bytesLoaded()==bytesTotal()){
this.onEnterFrame=function(){
if(_currentframe==_totalframes){
_root.loadNextMovie()
[Code] .....

I 'm not sure if there is a way in loadMovie to specify another folder, or the best way to solve this problem. I'm relatively new to Actionscript.

View 3 Replies

ActionScript 2.0 :: LoadMovie On A Movieclip

Oct 15, 2004

I used attachMovie to load a movieclip from the library into the stage.And in the movieclip, it has another movieclip named "imageHolder".As I wanted the movieclip to be placed on the stage like a list of buttons. The code goes as follows:[code]But the something.jpg doesn't appeared when I test the movie. And something.jpg is in the same directory as the .fla file.

View 10 Replies

Flash :: Function Never Gets Hit - First Image Does Fade Up?

Jun 30, 2009

I seem to be having trouble with TweenLite in AS2.I've created a class which I call on the main timeline. Within the class I've loaded images and once they are loaded I want to fade between them. I am calling (inside my class) the following code when the images have finished loading:

TweenLite.to(_root["loadedimg1"], 1, {_alpha: 100,
onComplete:doImageLoop, onCompleteParams:[1], onCompleteScope:this});

I then have the following function to do the fade loop:

public function doImageLoop(imageId:Number):Void
{
trace(imageId);[code].....

This function never gets hit but this first image does fade up.

View 1 Replies

Actionscript 3 :: Fade In Sound With The Function?

Jan 9, 2012

I have this problem when I try to fade in sound with the function below. It just doesn't work and I can't figure out where the problem is.I would like to fade in a looping sound but nothing happens.this is used to play a sound via events

dispatchEvent(new CustomEventSound(CustomEventSound.PLAY_SOUND, Main.SOUND_AMBIENT, false, true, false, 999999, 0, 0, setSoundVolume));

this is the function to play a sound. the stop-function is almost identical to this one.

public function playSound(soundName:String, isSoundTrack:Boolean = false, fadeIn:Boolean = false, fadeOut:Boolean = false,
loops:int = 1, offset:Number = 0, volume:Number = 1):void {
if (fadeIn) {
tempSoundTransform.volume = 0;

[code].....

View 1 Replies

ActionScript 2.0 :: How To Use Fade In Function For Loader

Feb 13, 2006

I am trying to use fade in function for loader.loadMovie(this.main), but if I change the code 'loader.loadMovie(this.main)' to fade_in(loader.loadMovie(this.main)', it only can running for first frame, then stuck.

this.thumbHolder.onRelease = function() {
loader.loadMovie(this.main);
title_txt.text = this.title;
};

View 14 Replies

ActionScript 2.0 :: Simple Fade In And Out Function?

Oct 18, 2007

function that I can re-use and pass movie clips to and cause mc's to fade in and out?...such as

Code:
function fadeMeIn(fadewhat,fadespeed) {
if (fadewhat < 100) {

[code]......

View 6 Replies

ActionScript 1/2 :: LoadMovie From Inside A Movieclip

May 1, 2009

I have a scroll movieclip which contains 15 buttons each button is an instance of 1main button. I have the button frame inside the timeline of the movie clip and the actions in frame 1 of the clip.onrelease should call the loadMovie function and load another. swf in level 1.[code]it only works using LoadMovie not LoadMovieNum but instead of loading the swf into level 1 it loads into level 0.i can use this the way it is but why is it only loading in level 0?

View 6 Replies

Flash :: Center LoadMovie MovieClip?

Oct 26, 2010

I'm dynamically creating an empty movieclip inside another movieclip to load an image into it.
How could i make sure that this image is always centred in the movieclip?

Also, if i have a attached movieclip named E.G. 1M how do i find out the x and y position to make it appear next to each other?

View 1 Replies

ActionScript 2.0 :: Using LoadMovie In Duplicated MovieClip?

Jan 3, 2006

I can't manage to load jpg in some duplicated mc. I tried to add the as to the container mc "img"

Code:onClipEvent (load){ this.loadMovie(_parent._name+".jpg"); which trace the correct path to the jpg but the jpg don't show up. (Which would be wrong as if I remember well, the mc when being duplicated loses the loadMovie part????To be confirm) So I thought that maybe the best would be to have it done while duplicating the movie but whatever I have beeen trying has been unsucessful. Here is the codes with duplicating mc.

[Code]...

View 1 Replies

ActionScript 2.0 :: LoadMovie If MovieClip Is In Library

Jun 29, 2006

Is there any way to load a external .swf into a movieclip that is in the library?

Such as

img0_mc.loader_mc.loadMovie("movie.swf") while img0_mc is in the library and not on the scene.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved