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




Loading Clips Into Levels? -quick Ques



Hi, I need a quick bit of code or at least somebody to give me an idea on how to actually have a clip load itelf into a specific level depending on the value of a variable. I want to do this as my duplicateMovieClip() code is putting MC's on higher levels than other elements (other Mc's) in my movie, and one of these elements in perticular needs to be the 'highest'.

I tried using setProperty() as below but it doesnt work, flash complains (I gather it doesnt consider '_level' as a property?)

Code:

setProperty(need2BHighest_Mc, _level, highestLevel);




Any help appreciated



FlashKit > Flash Help > Flash ActionScript
Posted on: 10-21-2002, 11:51 PM


View Complete Forum Thread with Replies

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

Quick Mask Ques
Im sure this is an easy one.. on the foofighters website http://www.foofighters.com When U click a button that flourish/swashy graphic looks like it is unwinding or growing rather. I would like to get the same effect.. Its obviously a mask of some sort. I know who to mask, im just figuring its a mask that is animated somehow. Anyone have an idea? Appreciate any insight into this. Peace

-R

Quick Actionscript Ques.
Ok so im building a portfolio website and basically if you click on the art image it goes tothe next art image..I have it set up so the art images are buttons and when u click it, it is coded to goto next scene..On one scene however the art image is a movieclip (fading effect)...now how do you write the actionscript so if you click on the movieclip it goes to the next scene? I dk im right but...my guess is to put the MC within a button symbol? But I dk. Thanks guys.

<> QUICK QUES RE:Positioning After Dupe
Hi Im using a while loop and the dupliacteMovieClip() to dupe a certain number of my Mc's. I want to postion each duped Mc after its created with setProperty but I cant figure out how to do this within the same loop.
It complains in output box:

Symbol=playlist_Mc, Layer=Layer 2, Frame=1: Line 9: Expected a field name after '.' operator.setProperty(_root.playlist."box" + count, _y, vertpos);

Obviously I cant do the <"box" + count> bit, but how else can i do it?
(see code below)



Code:
onClipEvent(load){

var vertpos = 46;
var count = 0;
//create
while(count!=4)
{
duplicateMovieClip(_root.playlist.box, "box" + count, 1);
-->this doesnt work//setProperty(_root.playlist."box" + count, _y, vertpos);

trace(count);
count++;
}
//position
}


-Rich

Loading Clips To Levels Via A For Loop
I'm wanting to load a number of clips during a preloader to different levels, and then turn each level's visibility off. I'm having trouble figuring out the syntax of the last part.

Here's my botched code:


Code:
var total_clips:Number = 9;
var clip_counter:Number = 0;

for (clip_counter = 1; clip_counter <= total_clips; ++clip_counter){
loadMovieNum("page"+clip_counter+".swf", clip_counter);
_level+clip_counter._visible = false;
}
anyone have a decent solution for this?

Loading Clips To Levels Via A For Loop
I'm wanting to load a number of clips during a preloader to different levels, and then turn each level's visibility off. I'm having trouble figuring out the syntax of the last part.

Here's my botched code:


Code:
var total_clips:Number = 9;
var clip_counter:Number = 0;

for (clip_counter = 1; clip_counter <= total_clips; ++clip_counter){
loadMovieNum("page"+clip_counter+".swf", clip_counter);
_level+clip_counter._visible = false;
}
anyone have a decent solution for this?

Loading Movie Clips Into Highest Levels
I am building a menu system on whech when clicked on a drag and drop box apears containing to required information.

These boxes are loaded into blank mcs all on the same level

the problem i have is that when there is 1 or more windows already open the new one created will sit at the bootom layer thus not viewable to the user.

Although when the window is clicked on it swaps layers to be at the front using the folowing code:

on (press) {
this.swapDepths("_level6:window"+_level6:highest);
_level6:highest = substring(_name, 7, 1);
startDrag (this);
}
on (release) {
stopDrag ();
}


so when it is loaded i need it to be onto of all other windows

Please Help

Cliff Almond

Another Loading Ques
Is it possible to make the movie load let's say... only the 1st 2 frames of movie that has 8?

[F8] Talking About Levels..controling Levels, Loading Swfs Into Levels, Etc
Hello, people!

I have a little tweaking i need to adjust.

To get to the point:


if (1==1)
{
loadMovieNum("test.swf", 3);

_level3.gotoAndStop(10);
}
else (...)


The problem is that on the if cycle, it doesnt consider the level as being loaded. I've tryed a while to wait for the level to load, nothing worked.

I've tested with a button to see if the level exist and is possible to control it and it is, with the onRelase.button etc etc.

Any ideas?

Ricardo

Thanks!

Quick Levels Question
Hi,
I have three swf's.
swf A is the index movie, wherein an empty movieclip (emptyMC) is located.
swf B is the movie that is automatically loaded into the movie clip located in swf A, once the latter is loaded.

So, at this point, we have swf A with swf B loaded into it.
Located within swf B, there is a button, called myBTN.
When myBTN is pressed, I need to load a new movie (swf C) into swf A, to replace swf B.

I figured this is the way to go, but it isn't working:

Placed on myBTN, located in swf B
on (release) {
_level1.emptyMC.loadMovie("swfC.swf");
}

Hopefully, I explained myself well
I really appreciate the help that I get.
I'm in a bind to get this project finished, and this is the last piece of the puzzle.

Thanks!
Victor

Levels - Quick Question
How can I assign my mc to the top level when selected?


Code:
mcBlock02.onRelease = function(){
_level
}
I haven't a clue what to put.

Quick Question About Levels...
[edit]

I figured it out, thanks guys. =)

[/edit]

Quick Levels Question
Hi,
I just need some quick information about levels.
I have an empty MC on level1 swf, then load another swf into level1 empty MC.
I need to be able to load another swf into level1 to take the place of the current one.

IE.
I'm thinking it should look like this.

ActionScript Code:
on (release) {_level01.emptyMC.loadMovie("myMovie.swf");}


Thanks!!

Victor

Quick Syntax Question -- Levels & MC's
Hi all,

This is a quickie (I hope). I'm having trouble with some syntax. I have six "swfs" on six different levels. Each of them has a MovieClip on the 1st frame called "MC1" for the first one and "MC2" for the second... etc...

I have:

MC1.swf - on level1
MC2.swf - on level2
MC3.swf - on level3
MC4.swf - on level4
MC5.swf - on level5
MC6.swf - on level6


I can call each one hardcoded:

Code:
_level3.MC3._visible = true;
However, what is the syntax for controlling a chosen one?

I'm trying to connect to any one of them via 6 buttons using a function.

Code:
on (release) {
goMC(3)
}
My current code is:

Code:
function goMC(aNumber:Number){
_level[aNumber]["MC"+aNumber]._visible = true;
};
Any ideas as to why this isn't working?

Thanks in advance!

Kirk

[help]Quick Question About Targeting Levels
Hi, this seems like something that you can do, but I just can't think of how. I am using the MovieClipLoader class, and was thinking it would be easier to load the images into a level, but I want to change the depth dynamically.

My question is how do I then target that level dynamically?


for instance, doing the same thing with a movie clip would like something like this:
_root["mc" + a], now how about with levels?

About Levels And Clips.. [][][]
case:
have a movie loaded onto level1. have a movieclip in level0 which contains an animation currently stopped at frame one. how do i start that movieclip to play when a button on level1 (the loaded movie) is released.

i've tried this but it doesn't work... so i must be on the wrong tracks...

on (release) {
gotoAndPlay("_level0.cover", 2);
}

where cover is the instance of the movieclip.

Thanks in advance.

Levels And Movie Clips
I have a scene with a button in it. When you click the button, it is loads a movie on level 2. When I load the movie on level 2, I have a drag and drop script on it. When I load level 2 from the movie, the drag and drop clips wont work.

to see what I mean go to

click here


click on the button that say omega spinners.

when you click it it will load a movie on level 2.

If you drag one of the rims onto the wheels base it is supposed to play a clip which spins the rims, but it doenst work.


if I load the level 2 movie on its own the drag and drop works
you can see the movie working at

click here to see the movie work

main movie button script

on (release) {
unloadMovieNum(2);
}



rim button is embedded in movie clip


on (press) {
startDrag("/01");
}
on (release) {
stopDrag();
if (getProperty("/01", _droptarget) eq "/trigger") {
tellTarget ("/status") {
gotoAndStop(2);
}
setProperty("/01", _x, "200");
setProperty("/01", _y, "85");
} else {
setProperty("/01", _x, "200");
setProperty("/01", _y, "85");
}
}


and ideas?


thanks

Please Help...regarding Levels And Movie Clips
Hello everyone...

I need help regaring some actionscripting i've done. I'm pretty amateur when it comes to this stuff so please bear with me.

I'm making a movie where the menu buttons are constantly visible and the movie clips that play off the buttons are played on a level below the menus.

So here's my problem:


1) In order to get the menus to constantly stay on top of everything, I've made an empty movie with an actionscipt "saying":

"load the menu movie clip in level 100" ... in other words:

loadMovieNum("aboutus_menu.swf", 100);


2) Then from here, the menu loads and all the menu items are loaded and played in levels below the menu.

For example...

If a button in the menu system wanted to load a movieclip in level 1, I've programmed the button with:

loadMovieNum("clients.swf", 1);


So here's my problem...

Every time I play the whole thing with this "muscled" approach some clips play very slowly and I don't know why. As in, the movie gets very choppy. It seems to be okay with newer processors like P4's but on anything less, it seems to get slow. Also, the movie files are so small that it shouldn't be causing a problem. I'm talking max 75KB.

Anyone know what's going on here?

Thanks.

Dissey23

Movie Clips In Levels ....
First off sorry about the length ....

I am getting lost a little. I am creating a site that each loaded picture is loading independent of each other. Pretty much there is a navigation for the main site but1, but 2, but3, and so on. then when you click on but1, it takes you to a picture gallery page. which has but01, but02, and so on. im not sure where the problem is in my code, here is the link to the site .. there isnt a preloader on all images yet so some may load a little slow ....

www.campbellsimages.com/newsite2


Quote:




>> this is the code on the last frame of each full size pic in gallery one..... <<
//this gets the value of a variable set by our buttons and loads the appropriate movie into level 1





Quote:




>> this is the code on the first frame of each full size pic movie clip. <<
this.onEnterFrame = function() {
//this checks to see if the content on this timeline is still loading
if (this.getBytesLoaded()<this.getBytesTotal()) {
//make the preloader visible
_level0.preloaderGraphics._visible=true;
//make a variable to store the total file size of this timeline
Total = this.getBytesTotal()/1000;
//make a variable to store the amount of this timeline that has loaded
Received = this.getBytesLoaded()/1000;
//make a variable to store the percentage loaded
Percentage = (Received/Total)*100;
//target the text box in the preloaderGraphics mc and tell it what to display
_level0.preloaderGraphics.percent = int(Percentage) add "%";
//change the x scale of the progess bar to indicate how much has loaded
_level0.preloaderGraphics.progressBar._xscale = Percentage;
} else {
//play the intro animation
this.gotoAndPlay("intro");
//turn off the enterFrame action
this.onEnterFrame = null;
//hide the preloader
_level0.preloaderGraphics._visible=false;
}
};
//stop this timeline while it loads
stop();





Quote:




>> Code on the actions layer for the buttons withing gal 1 <<
//stop this timeline
stop();
//hide the preloader
preloaderGraphics._visible=false;
//initialise a variable
nextMovie="gal1pic1.swf";
//load the starting movie into level 2
loadMovieNum(nextMovie,2);

//button1 actions
button01.onRelease=function(){
//this makes sure that content 1 isn't already loaded
if(nextMovie!="gal1pic1.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="gal1pic1.swf";
//tell the currently loaded content movie to play it's outro animation
_level2.gotoAndPlay("outro");
}
}
//button2 actions
button02.onRelease=function(){
//this makes sure that content 1 isn't already loaded
if(nextMovie!="gal1pic2.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="gal1pic2.swf";
//tell the currently loaded content movie to play it's outro animation
_level2.gotoAndPlay("outro");
}
}
//button3 actions
button03.onRelease=function(){
//this makes sure that content 3 isn't already loaded
if(nextMovie!="gal1pic3.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="gal1pic3.swf";
//tell the currently loaded content movie to play it's outro animation
_level2.gotoAndPlay("outro");
}
}
//button4 actions
button04.onRelease=function(){
//this makes sure that content 3 isn't already loaded
if(nextMovie!="gal1pic4.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="gal1pic4.swf";
//tell the currently loaded content movie to play it's outro animation
_level2.gotoAndPlay("outro");
}
}
//button5 actions
button05.onRelease=function(){
//this makes sure that content 3 isn't already loaded
if(nextMovie!="gal1pic5.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="gal1pic5.swf";
//tell the currently loaded content movie to play it's outro animation
_level2.gotoAndPlay("outro");
}
}
//button06 actions
button6.onRelease=function(){
//this makes sure that content 3 isn't already loaded
if(nextMovie!="gal1pic6.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="gal1pic6.swf";
//tell the currently loaded content movie to play it's outro animation
_level2.gotoAndPlay("outro");
}
}
//button7 actions
button07.onRelease=function(){
//this makes sure that content 3 isn't already loaded
if(nextMovie!="gal1pic7.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="gal1pic7.swf";
//tell the currently loaded content movie to play it's outro animation
_level2.gotoAndPlay("outro");
}
}





Quote:




>>code on the main(intro page where the slide show is) for the gal1,gal2,gal3 and so on buttons<<
//stop this timeline
stop();
//hide the preloader
preloaderGraphics._visible=false;
//initialise a variable
nextMovie="slideshow.swf";
//load the starting movie into level 1
loadMovieNum(nextMovie,1);

//button1 actions
button1.onRelease=function(){
//this makes sure that content 1 isn't already loaded
if(nextMovie!="gallery1.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="gallery1.swf";
//tell the currently loaded content movie to play it's outro animation
_level1.gotoAndPlay("outro");
}
}
//button2 actions
button2.onRelease=function(){
//this makes sure that content 1 isn't already loaded
if(nextMovie!="content2.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="content2.swf";
//tell the currently loaded content movie to play it's outro animation
_level1.gotoAndPlay("outro");
}
}
//button3 actions
button3.onRelease=function(){
//this makes sure that content 3 isn't already loaded
if(nextMovie!="content3.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="content3.swf";
//tell the currently loaded content movie to play it's outro animation
_level1.gotoAndPlay("outro");
}
}
//button4 actions
button4.onRelease=function(){
//this makes sure that content 3 isn't already loaded
if(nextMovie!="content4.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="content4.swf";
//tell the currently loaded content movie to play it's outro animation
_level1.gotoAndPlay("outro");
}
}
//button5 actions
button5.onRelease=function(){
//this makes sure that content 3 isn't already loaded
if(nextMovie!="content5.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="content5.swf";
//tell the currently loaded content movie to play it's outro animation
_level1.gotoAndPlay("outro");
}
}
//button6 actions
button6.onRelease=function(){
//this makes sure that content 3 isn't already loaded
if(nextMovie!="content6.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="content6.swf";
//tell the currently loaded content movie to play it's outro animation
_level1.gotoAndPlay("outro");
}
}
//button7 actions
button7.onRelease=function(){
//this makes sure that content 3 isn't already loaded
if(nextMovie!="content7.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="content7.swf";
//tell the currently loaded content movie to play it's outro animation
_level1.gotoAndPlay("outro");
}
}




Thanks in advance

Movie Clips And Levels
I'm creating a movie which loads an external SWF that i want placing on 'Level 1'.

I also want to place a button in this movie that is above the external movie clip. So in this case - 'Level 2'

I understand that the button has to be placed within a movie clip for me to be able to define that the External Movie clip is running under the button.

My question - does the 'button MC' that i want on level 2 have to also load as an external movie clip also in order to define its level? I can't seem to find a way in which to drag it onto the stage from the library and define its level. As when i look in the 'Actions' their isn't any actionscript there like there would be if i was loading it as an external movie clip.

Much appreciated!!

Levels Or Empty Clips?
Is it better to load external .swf's into levels or empty clips?

Much appreciated if someone could list some pro's and con's

Levels Or Empty Clips?
Is it better to load external .swf's into levels or empty clips?

Much appreciated if someone could list some pro's and con's

Targetting Movie Clips In Different Levels
Hi,

I'm having serious problems trying to control a movieclips properties in a base movie. Here's what I'm trying to do...

I have a main movie (new.swv) which contains a movie clip which is acting as a backround (the instance name is also "background"). I then load another movie into Level 1 (photos.swv). Once the photos movie has loaded (ie. preloader scene is complete, and scene 2 is activated) I want to gotoAndPlay the frame labelled "fade" within the background movie clip which sits within the original movie. This should then fade out the original background.

I've tried several things, including....

_root.background.gotoAndPlay("fade");

_parent.background.gotoAndPlay("fade");

Please could someone stop me from having to put my fist through my monitor!!!!

thanks!

Variables, Levels & Movie Clips
Oh... Thank you, thank you, Thank you for being here!
I am using both Flash 5 & Flash MX...

I have a nav bar on level 3 to control movie clips which load on level 1. I want to use only the one nav. bar to control all the movies. What do I say Instead of saying:

on (release) {
tellTarget ("_level0.resume.swf") {
nextFrame();
}
}

which speaks only to the resumé.swf , So that it will sound more like
"with movie on level 1 go to next frame"?

Thanx again,
-Mary

Controlling Movie Clips On Levels
Hi everyone,

Just a quick question. Is it possible to control movie clips imported using the "loadMovieNum" function ?
For example, if i have a swf called "test.swf", I import it using the following code:

loadMovieNum ("test.swf", 1);

Up to here, everything works fine. My question is if that "test.swf" has a frame named "out" for example, is there any way of telling the clip you have imported (on level 1) to go to that frame ?

I have tried scripting a button using the following code:
on (release){

_level1.gotoAndPlay("out");

but that doesn't do anything.

Thx for the help.

OnAir

Levels Inside Movie Clips? (again)
ok..I thought levels were "timeline" specific... meaning:

_root.loadMoive ("frame.swf", "1");

is different than:

_root.mainContainer.loadMovie("frames.swf", "1");


SO when I try to "stack .swf's inside of a movie clip..it doesnt work..it just replaces eah other.

example:

_root.mainContainer.loadMovie("frames.swf", "2");
_root.mainContainer.loadMovie("tanks.swf", "3");

these just replace each other in the mainContainer clip..instead of frames.swf beiung under tanks.swf in the mainContainer clip on _root.


Am I wrong in this thinking??

Thanks

Controlling Movie Clips On Different Levels
This is the layout of my current project. On the stage, there is a movie clip with an instance name of mc_navigation. Inside mc_navigation exist the movie clips mc_resume, mc_digital, mc_entertainment and mc_biography, and inside these movie clips exist mc_resumetext, mc_digitaltext, mc_entertainmenttext and mc_biographytext, respectively.

Stage
--mc_navigation
-----mc_resume
----------mc_resumetext
-----mc_digital
----------mc_digitaltext
-----mc_entertainment
----------mc_entertainmenttext
-----mc_biography
----------mc_biographytext

Because clicking on any of the mc_whatevertext movie clips causes a change in all the other similar clips, I need to access variables in these movies. This seems like a simple task, but for some reason I absolutely cannot get it to work. I could probably reorganize the project in such a way that I only have to go up one level and could just use _parent, but this would take a lot more effort. If at all possible, I want to preserve the current arrangement and call these movie clips on the mc_whatevertext levels.

Inside mc_resumetext, I have the following actionscript...
_root.mc_navigation.mc_digital.mc_digitaltext.hold black = false;
_root.mc_navigation.mc_digital.mc_digitaltext.prev Frame();
_root.mc_navigation.mc_entertainment.mc_entertainm enttext.holdblack = false;
_root.mc_navigation.mc_entertainment.mc_entertainm enttext.prevFrame();
_root.mc_navigation.mc_biography.mc_biographytext. holdblack = false;
_root.mc_navigation.mc_biography.mc_biographytext. prevFrame();

What am I doing wrong?

Thanks in advance for any help!

Controlling Movie Clips Across Multiple Swf Levels
Is it possible for a button on say level 40, to control a movie clip in a swf on level 50?

I'd like a button to make a movie clip gotoandPlay a frame instance in a movie clip on a different swf

If so how do you do it?

Cheers.

General Targeting On Different Levels / Duplicated Clips
I'm working on a simple game and i need to know if there's a way to target clips that have similar names but are on different levels.

I'm duplicating clips to generate alien space ships and laser/ammo clips and they need to be generated on different levels so that in case of a hit only one can be destroyed.

To detect the collision/hit between the lasers and ships i'm using the 'hitTest' function.

The problems comes when the clips are duplicated and levels are changed. Is there anyway to make the 'hitTest' relative to a group of objects?

Any ideas?



-sup

Disabling All Movie Clips That Are On Lower Levels
Hello

I have a movie clip that pops up over all other movie clips. But it is still possible to interact with these movie clips that are beneath the mc that has popped up. Is there any way to disable all of the movie clips that are beneath the one that popped up?

thanks

Problem Combining Draggable Movie Clips In Different Levels.
Why is not possible to combine draggable movie clips in different levels within a main movie clip?

In my case, I've got a draggable movie clip, and inside this movie clip I've got a few movie clips which are draggable as well. The hit area of the main movie clip menu does not cover neither the movie clips of the next level nor their corresponding hit areas.

When I execute the file, I just can drag the main movie clip, but the hit areas of the next level are not selectable (the hand cursor does not appear), so I cannot drag the other movie clips.

Is there any way around this? Please, help!

Problem With Dynamically Created Movie Clips And Levels
ok I have created a site that when loaded decides if it is day or night. Depending on that it links to 1 of 2 movies (one for day, one for nite)

here is the script on the first movie:

myDate = new Date();
myHour = myDate.getHours();

if (myHour > 18) {
_root.holder_mc.loadMovie("tain.swf");
}
if (myHour < 7) {
_root.holder_mc.loadMovie("tain.swf");
} else {
_root.holder_mc.loadMovie("edan.swf");
};


Whether it is day or nite both movies create 16 movieclips dynamically that will link to other projects (photographs, video, etc.)

this is how they create them:

moveMe = function () {
this._y -= this.speed;
if (this._y<0) {
this._y = 400;
}
if (this._y>400) {
this._y = 0;
}
};
for (i=0; i<16; i++) {
nm = "pos" add i;
_root.attachMovie("posID", nm, i);
d = Math.random()*2;
if (d<1) {
_root[nm].speed = -1;
} else {
_root[nm].speed = -2;
}
_root[nm].onEnterFrame = moveMe;
_root[nm]._x = Math.random()*600;
_root[nm]._y = Math.random()*400;

};

Now when I load the first swf into a empty holder movie clip (with loadMovie) and it loads in either the day or nite, the dynamic movieclips are not visible but the movie is loaded because the background is there. Am I loading the movie in the same level as the clips??? What should I do?

(yes I read the sticky about levels but still can't get it. I've been looking in my flash books all day too. )

I am using flash mx.

Variables Holding Names Of Movie Clips And Being Called From Different Levels...
Hello please help me.

We have a kiosk that runs a "main" flash movie (using flash mx). From inside a movie clip, inside the main flash movie, a button will load an external swf to level 5. Besides loading this external movie, the button also sets two variables. Heres the button code:

baraboohills_btn.onRelease = function() {
_global.backClip = "campinglodging_mc";
backTo = "camping";
loadMovieNum("accom/baraboohills.swf", 5);
}

The movie that gets loaded to level 5 has a back button. These movies also need to be used in other kiosks that are structurally different, so rather than script these movies differently for each kiosk, I want to use variables where the back button needs to send the user back to the right frame in the right movie clip (in level 0). Here's the back button code:

back_btn.onRelease = function() {
_level0.backClip.gotoAndStop(_level0.backClip.back To);
//a script here unloads level 5
}

Unfortunatly I can't get this to work. I can get it to work if I don't use a variable to refer to the movie clip (backClip), but my goal is to make these movies generic so that they may be loaded into any kiosk. Sorry if this is a long post, but im on the brink of something good here

Thanks so much!

Quick Question About Refferencing Movie Clips
Okay, I have a guestbook swf which works fine,
http://www.rit.edu/~dxs5855/fc/guestbook.swf

and I am trying to load that page(movie clip) onto my main site, here
http://www.rit.edu/~dxs5855/fc/website.html

if you click on the guestbook button (at the bottom, near the c:...) the guestbook.swf loads up fine but the text from the guestbook does not load up.

I have traced it down to a problem when I am printing it out in php,
Code:
print "&_root.guestbook.GuestBook=";


okay I know I am not supposed to be doing this, instead I am supposed to be using loadvariables (instead of loadvariablesnum, but that is not working )

... so what is the refferencing I use. I put down 'guestbook' since I thought that would be the movie clips instance name which gets loaded onto the given frame, but that obviously is not working. Any suggestions?

Nav Ques
Hey guys I seem to remember a thread regarding how to make this kinda of NAV :

http://dopepope.com/ntps/Build_onff/


Anyone remember the thread or have a link on a tutorial to dup that kind of load jpg and have the window resize automatically...thanks all

Quick Question About Rotated Container Clips, Minor Annoyance
Hello

An example of my annoyance: A vertical scrolling panel is added into a container clip then the container clip is rotated slightly. When scrolling the panel inside the rotated clip, the movement is far from smooth - very choppy, looks like it is shifting onto whole pixels. I've not been able to figure any kind of workaround for this problem, does anyone know what I mean?
I've tried drawing the scrolling content down to a bitmap and setting the smooth and pixelsnapping properties of it, and I've tried not actually rotating the container, but working out the start and end points of the scroll along the angle required and moving between those. It all looks a bit pants. If anyone has any techniques that may help this, could you let me know? Thanks!

Tyler

_parent. Ques
im trying to load an external jpg. and the file name of this jpg is the name of the mc 2 levels above the command.
if u dont understand this is thi code im trying to use

Code:
x = _parent._parent._name;
loadMovieNum("x".jpg, 1);

i also tried putting th eparent crap in the load move itself like this

Code:
loadMovieNum("_parent._parent._name".jpg, 1);

and its still not working. any one able to give some advice

AttachMovie Ques
Hi -
I'm using the code below to bring mcs from the Library to the stage. It works fine until I tried to add the x,y at the end.
I thought there was a way to include _x and _y coordinates to the same statement as the attactMovie. Is there?

TIA the correct way to accomplish this.

jl







Attach Code

mc_btn2.btn2.onRelease = function():Void {

attachMovie("Q2WithGame","Q2Game",this.getNextHighestDepth,[_x=45,_y=110]);

};

Simple AS 1.0 Ques
AS 1.0
I have this code in a keyframe on the main timeline:

var score = 0;
if (score == 2500){trace("winner")}

Othe stage in the maintimeline i have a dynamic text field I labeled "score" in the var box. The instance name is "pts" but i wasnt sure if i needed an instance name anyway here. The score box works fine as far as keeping score but when it reaches 2500, I dont get my trace. What am I missing? Thanks

-Chris

Stupid Ques
hello new be ere (welsh) i got a prob wanderin if some1 could help im tryin to get a news page that updates ive got this off yahoo

this

so now tryin to use it but flash does ntlike it im prob doin some thing stupidly wrong now on the verge of not botherin

PLEASE HELP

Attaching MC Ques
hi.. anyone out there can give me a tutorial which teaches attaching a MC to another MC?? urgent..

Stupid Ques
hello new be ere (welsh) i got a prob wanderin if some1 could help im tryin to get a news page that updates ive got this off yahoo

this

so now tryin to use it but flash does ntlike it im prob doin some thing stupidly wrong now on the verge of not botherin

PLEASE HELP

Flash Ques
please can you explane me how can I make this file like on this site:
http://www.t-s-k-b.com .You go on this site and press SAKUBA WORKS and then button Painting/Drawing

I would like to make a picture gallery like in Painting/Drawing: So how I can make when the mause on the button to show small image of the picture and when I press the image to open the picture how is on the site(not in a new window)?
Please tell give me advice how could I make it!
thank you

Button Ques
Ok real dumb ques..I have this animation..u can dl it from here: www.zeroxposur.com/test/nav.fla
So what I want to do is have 5 buttons fade in ..onto the bar as it finishes its animation..but I dont know how to do it.. Can anyone point me in the right direction. Thanks

Easy AS Ques.
ok so I have a flash doc..theres a an MC called target on mainstage that has the entite site in it (doing a fullscreen centered website)..now I have MC nav buttons on the stage (inside target). Inside one of the nav buttons I have a line of AS that says


ActionScript Code:
this.onRelease = function(){
    _root.target.loadMovie("bioresume.swf", "loader");
}


Now im not sure If im doing that right..but what i want to happen is; after u release the button, load the ext swf into the empty MC called "loader". But what seems to be happening is it loads the ext swf but everything else on the site disappears. See I originally had this as my AS cause i thought this made sense but it ends up not doing anything:


ActionScript Code:
this.onRelease = function(){
    loadMovie("bioresume.swf", "loader");
}


So if anyone knows what I did wrong, much appreciation. Heres the site link if u want a visual:

www.josephsernio.com/test

Easy As Ques.
Ok for some reason the end of this code doesnt work.. on release, i want it to take me to frame 2..and it wont...btw this a movie clip that has button properties through AS:



stop();

this.onEnterFrame = function(){

if(rewind == true){

prevFrame();

}

}

this.onRollOver = function(){

rewind = false;
play();

}

this.onRollOut = function(){

rewind = true;

}

this.onRelease = function(){
gotoAndStop(2);

}

MC Loader As Ques.
im working with the moviecliploader AS..so a button loads an ext SWF and also has a percentage loader .. so on my mainstage i have a loader mc (instance name "loader")and a holder mc (instance name "holder")..heres my AS on the main timeline:

var mcl:MovieClipLoader = new MovieClipLoader();

var mclL:Object = new Object();

mclL.onLoadProgress = function(target,loaded,total) {
loader.percent.text = Math.round((loaded/total) * 100) + "%";
}

mclL.onLoadInit = function() {
loader._visible = false;
loader.percent.text = "";
}

mcl.addListener(mclL);





Now i have another MC that houses about 20 or so buttons..so within the buttons MC i have say this for one of the buttons:

b4sub.onRelease = function() {
_root.loader._visible = true;
_root.mcl.loadClip("LevisCampaign.swf",holder);



And unfortunetly it doesnt to load the ext. swf..did I code the _root incorrectly?

Thanks for your help.

Fscommand Ques
Hi all, I was working with fscommand, when it struck me what FSCOMMAND stands for.

"Future Splash Command"

Can anybody confirm this, or am I mad, lol

Later

ORANGE900

LoadVariables Button Ques
Hello all. I have this code attached to a button calling up a different text file to a dynamic text field and it works fine, except I'm having to hit the button "twice" for it to work. Can't figure out why. Can someone enlighten me please?


code:

on (release) {
scrolltext = scrolltext1;
loadVariables ("scrolltext1.txt", scrolltext1);
}

Thanks in advance

Easy - Pong AI Ques.
Ok just to see if I could do it(never really got into game programming) I tried to make a pong game everything works so far but I have a problem with this:
Flash code:

PHP Code:



onClipEvent(enterFrame) {
if(_global.cspeed == 0) {
}else{
    if (this._y != _root.ball._y){
        if(_root.ball._y < this._y){
                this._y -= _global.cspeed;
        }else if(_root.ball._y > this._y){
                this._y += _global.cspeed;
        }else{
                this._y = this._y;
        }
    }
}
}




The problem is that instead of moving smoothly up the screen it looks like it s shaking up and down really quickly, but I would like it to be smooth.
Please help.

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