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




Levels And Stuff...help Please :(



Hi, A quick question, I'm sure its simple enough for you guys

I have a movie.
A button in this movie when clicked loads a preloader into the next level. this is the code

on (release) {
loadMovieNum("portloader.swf", 1);
}

when the preloaders done it's supposed to load the movie back into the original level, I used this:

loader.loadMovie("portfolio.swf", 0);

but it doesn't work, it looks like its staying in level one. ie: you can see the original movie behind the preloaded one.

any ideas?

Also, there is a set of the same links in both movies the same. ie. on the original movie I have a button with:


on (release) {
gotoAndPlay("PR", 1);
}

to go to the scene PR frame one.

In the new movie preloaded.swf for instance I have put this code on the same button with no luck

on (release) {
getURL("index.swf");
gotoAndPlay("pr", 1);
}

Any help you could give me would be great.

Thankyou

Danny



FlashKit > Flash Help > Flash MX
Posted on: 08-01-2002, 06:45 AM


View Complete Forum Thread with Replies

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

Duplicating Levels?and Other Stuff
Hi guy's...i have a simple idea but cant seem to make it work,need help:

1-Is it possible!!!!
duplicateMovieClip(_level0 , "new name", depth);

2-How can i duplicate a mc from a level to another level

i.e:_level0.mc ======> _level1.duplicated_mc

Duplicating Levels?and Other Stuff
Hi guy's ...i have a simple idea but cant seem to make it work,need help:

1-Is it possible!!!!
duplicateMovieClip(_level0 , "new name", depth);

2-How can i duplicate a mc from a level to another level

i.e:_level0.mc ======> _level1.duplicated_mc

[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!

Floating Picture Thinggy... Does Stuff... Stuff I Don't Know How To Do...
Check this out. I'm making a website and at the bottom of the site i want floating pictures. They not only float but they continue to move to the left. Untill you place the mouse over the pictures and then you can either make them go left or right with the speed varying as you go further to each side. Then when you select them there is a loading process and the pictures come up in a cool way and the rest is history. Now here is the problem... how do you do all that stuff. I'm talkin' 'bout all of it. Make them look like they float, make them go left and right and default left, and the... well the selection I can manage. Assistance would be quite nice. Thanx alot whoever answers this.

Why Is My HTML Stuff Messing With My Flash Stuff?
Hi fellas, I have an HTML page that has the regular drop down menues and some buttons in them. Nothing fancy. I also have a Flash banner withing the HTML page. The problem is whenever I go over the buttons in the HTML portion, my Flash banner pauses until I move the mouse away from any HTML buttons. Why would that be?!
Many thanks in advance.

[levels] Snapto And _levels Targeting Levels
This code is on the root of a movie, it workks fine. However, when i load it into level 100(from another movie) , the snap-to code no longer works.

I've worked with levels a lot, but this really stumps me.

I've tried many many variations to taget the correct path, _levels. _root, this._name, targetPath,

The basic code appear below.

//code on root movie
onEnterFrame = fsnapto;
function fsnapto(){
//trace("pushed @ snapto ==" +choices);
// target1
area_oftarget_x = target1._x;
area_oftarget_y = target1._y;
//target2
area_oftarget_x2 = _root.target2._x;
area_oftarget_y2 = _root.target2._y;
}
// == end snap to==


// code on buttons
on(release){
if(_root.a3._droptarget == "/target1"){
trace("dropped 3================" +this.targetPath);
_root.fchoice("a3");
_root.a3._x= area_oftarget_x;
_root.a3._y= area_oftarget_y;
}
}

Orbiting Stuff Around Other Stuff
Hi y'all

I've been searching the web for about 2 hours now, hoping to find some actionscript which makes something (eg a planet) around something else (eg another planet), but so far, I haven 't found anything ..

I did find something for Flash 8, but I'm not sure if it's going to work by just pasting it in CS3 ..

The thing is, even if I do get the script working in AS3, how do I make the object do a circular motion at the same time as the orbital motion?

If planet1 starts above planet2, goes down in front of p2, disappears behind p2, than how do I make it shift a bit to the left/right when above p2 again.
Repetig this should then result in a circular + orbital motion.

Does anyone know how to do this, or do you have to see the code (even though it is still AS2 right now)? In that case just ask me

Thanks!

Swapping Levels - Levels Infinate?
Hi

im trying to produce a little news panel that you can swap between news items. The problem im having is the following... when I click a 'next' button I want a new story swf to load over the top - and so on for anouther 5 or 6 times. I want to be able to click forwrd randomly between stories - BUT how do I make sure that the next storie loaded is always on the next level up - and that the last swf is unloaded when the new one has loaded?

thanks for your help

PS: I thought of just putting all the news items in the same SWF but this would meen loading them and all their pictures at the same time and also make it harder to change/update indivdual stories

Conflicting Levels? Too Many Levels?
I've been working on this pattern maker and I have a movie clip that is basically a pixel. I duplicated that movie clip 1024 times using the following code:

for (y=0; y < 32; y++) {
for (x=0; x < 32; x++) {
_root.newName = "sampleMovie" + ((y * 32) + x);
duplicateMovieClip (sampleMovie, _root.newName, ((y * 32) + x));
xPos = getProperty(newName, _x);
yPos = getProperty(newName, _y);
setProperty(newName, _x, (x*movWidth) + xPos);
setProperty(newName, _y, (y*movHeight) + yPos);
}
}

Well, I tried duplicating another movie clip the same way with a slightly different code as follows:

for (a=0; a < 32; a++) {
for (b=0; b < 32; b++) {
_root.gridName = "grid" + ((b * 32) + a);
duplicateMovieClip (grid, _root.gridName, ((b * 2048) + a));
xPosG = getProperty(gridName, _x);
yPosG = getProperty(gridName, _y);
setProperty(gridName, _x, (a*movWidth) + xPosG);
setProperty(gridName, _y, (b*movHeight) + yPosG);
}
}

When I did that it duplicated the "grid" movie clips, but it didn't duplicate the "sampleMovie" movie clips. I figured it was because there were conflicting levels. So what I did was made a horizontal rule and just tried duplicating that just 32 times using the following code:

for (a=0; a < 32; a++) {
xLine = "horLine" + a;
duplicateMovieClip (horLine, xLine, a + 1025);
xAxis = getProperty(xLine, _y);
setProperty(xLine, _y, xAxis + 10.4);
}

This code only duplicated the movie twice. Am I using too many levels? How many levels can Flash recognize? The first code I showed produced 1,024 levels of movie clips and worked fine. Why would that last code only duplicate it twice instead of 32 times? Thanks for the help.

Levels, Jerry, Levels
Anyone who how to change a movie's level with a command? Sorta like swapdepths but for levels. I'm tryin got get a movie to basically go from being on level1 to levelo and replacing the movie in level0. I've asked in the newbies sections but no one knew for sure. Was hoping you guys would have a little something for me.

Vij'n

[F8] Controling Levels From Other Levels
Hi all,
I would like to have a button on level 0, that loads a swf on level one. In the swf loaded on level one I want to have another button wich controls a movieclip on level 0. Is that possible? I don't want to use containers, but use loadMovie("movie.swf", 1) method. Any ideas?
Thank you

Help With _x And _y Stuff
Id like to have two buttons that could move a movie clip up and down.. I've tried various ways with variables but it seems that there is a scope resolution problem

How would I go about changing the _x and _y value of a movie clip, with another button?

.txt Stuff
First of all i'm not really a newbie. I just don't have too much experience wit flash actionscripting. Ok, so i made this nice website, http://monshu.netfirms.com, it's on a free server until i'm done! Well i have some input text(goto about > test) that i want to edit the corresponding dynamic text on the homepage. So far, as you can see, i does it. But i need it to save as a *.txt file so that it is visible even after refreshing!... I know how to make the dynamic text load the .txt file, but how do i save the input text as a .txt file?... That's my question. Any help would be great!, thnx


Ps: perl, php, c++ scripts to do this is fine, but you have too show me how?

3d Stuff
are there any good free things like swift 3d?

Cgi Stuff
Hey all,

It's me again. I've gotten everything figured out finally on the flash side of my form, but I'm having trouble with my CGI script. I know this isn't the place, but I was wondering if any of you knew where I could go to get help with debugging my Perl CGI script. I do know it is the script because I ran the form through another script and it went beautifully, the script just wasn't made for that form. It will do for now, but I ultimately want to be good at this programming thing. If you know where a good discussion board is or something let me know. Thanks

Fro

Where Did My Stuff Go? %&*()$^&
going crazy here, i have a movie that calls certain object properties to _visible = true, everything was working fine, then, i added some more objects and tried dupilcatemovie command to reproduce these objects dynamicaly. problem is, my objects that were working are no longer visible. property instector says _visible = true, but i dont see them. any clues? its almost like when i was using the duplicatemovie command, they somehow got move down a couple of levels, but at any rate, i can not see them eventhough they show visible in the PI.
thanks in advance for any help you can give!
Jeff

Stuff
"==" means is qual to

where as "=" means becomes qual to

3d Stuff On A Mac
What software do I need to be able to create 3d to use in flash mx on a Mac. and what else do you think i might need to know before i start getting too involved.

I've successfully managed to import stuff from 3d studio max using both illustrate and vecta3d so i guess i'm looking for something similar to that.

cheers guys!!!

Would Anybody Like To Help Me With Some Stuff?
i need some one to help me with a movie a game and if possible my website if you have MX plz help me

if you have msn messanger and your ready to start add me :

ar_cb3@hotmail.com

Gun And Stuff For It, HELP
Hey, firstly, how do you make a bullet come out a gun (and got e direction th gun points etc)

secondly, how do you make an arm/gun atc point the direction you r mouse is????

any help please???

Cheers

3d Stuff
how do you animate 3d imported swift 3d images? like move around them, and also have things like characters in differnt parts/layers.???
cheers

Stuff #1
a ping pong game. kinda sux

Y And X Stuff
Hi

How can I make this script tell it to notice the bottom instead of the top.

Code:
if (this._y<-10) {
reset();
}

thanks

3D Stuff
Hi,
I think this is quite complicated, but I know that it is possible.
I want to make a 3D genorater. I have a movieClip called 'box', its just a square, I want to use actionscript (version 2) to make it 3D. Then I want to make it so that if I press the up, down, left and right keys the box rotates and if you press controle and these keys it moves in different directions. This could be done by making the boxes sizes and coordinates etc variables and then they are changed when you do this.
I would also like a zoom in tool, but its not as important.

Please help me, I really want this,
Thanx in advance,

[F8] Help With Some Stuff
Ok, I am making this slide show like thing

http://www.john.8m6.net/webs/sugar/slideshow1/

and when you hover over the thumbnails i want the blown up version of the image that comes up stay on the screen (instead of going to white), until you hover over another thumbnail. How would you do this?

also when you hover over white an image will come up, i dont want that. How can I make it not do that.

also, how do you make a transparent background on a flash file? you know when you make a .png file in photoshop and you dont make a background it will save and when you go to show it on a forum or something the background will be the same as whatever the background is.

aim: efstratis
yahoo: jefstratis

please help.

++ -- >= <= +- += All That Stuff
Hi.

What does all that stuff mean? I have a basic idea, I'm not sure if I'm correct though. Do they mean like ++ is add twice? or >= greater than or equal to?

Thanks.

Help Me With... Stuff...
On my graphical calc I made a program of a cord following your cursor and it has a very realistic effect. It works perfectly on my calc, but when I try to make it on my computer it woun't calculate my cordinates!
Can anyone help? I'm kindoff n00bish on actionscript...
Here's the code:

Code:
onClipEvent (load) {
var corX = new Array();
var corY = new Array();
var angle = new Array();
var a = 0;
for (i=0; i>200; i--) {
corX[a] = 0;
corY[a] = i;
angle[a] = 270;
a++;
}
this.startDrag(1);
Mouse.hide();
}
onClipEvent (enterFrame) {
for (x=0; x<200; x++) {
corX[1] = _x;
corY[1] = _y;
if (corX[x+1]-corX[x] != 0) {
angle[x] = Math.atan((corY[x+1]-corY[x])/(corX[x+1]-corX[x]));
}
if (corX[x+1]<corX[x]) {
angle[x] = angle[x]-180;
}
corX[x+1] = Math.cos(angle[x])+corX[x];
corY[x+1] = Math.sin(angle[x])+corY[x];
this.createEmptyMovieClip(x, 10);
x.lineStyle(1, 0x000000, 100);
x.moveTo(corX[x], corY[x]);
x.lineTo(corX[x+1], corY[x+1]);
}
}

Txt Stuff
ok, i want to know if there's a way i can call a variable to put in a dynamic text like this:

myVariable=xxx.txt


another thing is the #include action. Is there another way besides exporting the movie every time you update the xxx.as file?

How Do I Do This Stuff?
first of all sorry for my english!!! i'm a portuguese girl... ope u understand me!
I have a movieClip wich is attached and inside of this movieclip i have 2 text fields and a another movieclip. what i'm doing exactly is importing from a xml file text and imgs to this movieclip and duplicating the text fields and the movieclip inside the main movieclip, what i what to do, is to create a scroll to the main movie clip! because os this movieclip is being use several times and sometimes it is bigger than others! have to take care about this!
i wonder if anyone can help how to do this???
thanks
jinhos

Jib Jab Like Stuff
Yo,
have you ever seen those jibjab.com cartoons with president bush and he dances and stuff? Well i want to know how to do that. Wheneve i try and can never do it. the picture always has to be a square, and the part that isnt the picture is white and you see it over the backround. I didnt make much sense but i need help

New Stuff
hey guys check out my myspace!! or my website!!!

myspace is http://www.myspace.com/tiff_anderson
and my website is
http://www.tiffanderson.com
its under construction but its a free site just gonna have a few ads on there but thats it!! yay!! a free site of me!!!

Mx Api Stuff
I was playing around with api and I came up with this, kinda looks like the pictures where they leave the camera shutter open


PHP Code:



_root.createEmptyMovieClip("bob",0);
while(i<40){
    bob.duplicateMovieClip("bob"+i,i)
    eval("bob"+i).moveTo(Math.random()*550,Math.random()*400);
    eval("bob"+i).lineStyle(Math.random()*3,Math.random() * 255 << 16 | Math.random() * 255 << 8 | Math.random() * 255,Math.random()*50+50);
    ++i;
}
onEnterFrame = function(){
    for(x=0;x<40;++x){
        eval("bob"+x).clear()
        eval("bob"+x).moveTo(Math.random()*550,Math.random()*400);
        eval("bob"+x).lineStyle(Math.random()*3,Math.random() * 225 << 16 | Math.random() * 255 << 8 | Math.random() * 255,Math.random()*100);    
        //eval("bob"+x).lineTo(_xmouse,_ymouse);
        eval("bob"+x).curveTo(_xmouse,_ymouse,(550/2),50);
    }





Yeah just think it looks cool...hehe

Jib Jab Like Stuff
Yo,
have you ever seen those jibjab.com cartoons with president bush and he dances and stuff? Well i want to know how to do that. Wheneve i try and can never do it. the picture always has to be a square, and the part that isnt the picture is white and you see it over the backround. I didnt make much sense but i need help

Please Help Me Out With Some Stuff
hey, im in a band, and we are getting somewhere with the band...we're called "high grade" we are a pop punk band...not like you care....but all of us are pretty week with site design....could somebody please make us a rad site..well atleast make like a good outline then let me work on it from there...im not too good with the animation part of flash mx...but im good with the rest....my email is ivs_survivor@hotmail.com
im always on msn with that email...soo yaa.a..thanks

Freaky Stuff
Hey ppl...
Check this out. Im trying to use the Loadmovie action on a file that is at http://www.andelusia.com/radio.swf
If you notice it werx fine. But then if you go to http://www.andelusia.com this is the same swf after it has been loaded with loadmovie to a level...notice the sound doesnt werk. I have tried to load the radio with a loadmovie with a target to a blank movieclip...same result. If anyone has an opinion on what this might be or how to get rid of it pls tell me thx.
andelu

I Need Some Help With Random Stuff
Im just starting to read an actionscript book and i dont know much and i was wondering if someone could help me with my footer. Baicly what i want is random lines coming out of the left side like flying past basicly and i need some help with the random part like reandom places where it comes out an small bit of length.

Advanced Stuff
I'll just cut to the chase!

I am moving mapMC using actionscript (_x and _y positions). Here's my problem:
I need things to happen if mapMC is moved to a certain position. so if I move mapMC to _x=500 and _y=450 I want to telltarget newMC to play. How would one write such an if statement? any help is much appreciated

I really can't use hitTest because mapMC is larger than the dimensions of the movie...
[Edited by flipsideguy on 08-20-2001 at 12:41 AM]

Who Knows Their Stuff > SetProperty()
Is there a way to use setProperty() to change the scale of something gradually. I want to be able to have a zooming in and out effect without using motion tweening.

Right now, I had:

on (release) {
setProperty ("Box", _xscale, "60");
setProperty ("Box", _yscale, "60");
}


This just jumps straight to the smaller scale image. I want the scale to gradually go down. I imagine this is some sort of looping function but I'm drawing a blank on how to do it.

Thanks for your help in advance guys.

- Matt

Help Me PLEASE (printing Stuff)
i am trying to print one frame in a movie clip...i have done some tutes (for flash 4 though), and they didn't help. i also tried the print() and printAsBitmap() functions, but have had no luck.

i want the print script to be on a button on the parent of the clip to be printed...but as soon as the movie plays and hits that frame, the print diaologue pops up. i only want it to pop up when the user clicks on the button...not automatically.

please help me, i am new to action scripting and am trying to get through it

thanks.

Help Please. Think This Is Beginner Stuff.
Hello,

I created a simple tic tac toe board (9 squareS). I made a symbol called Button1 which when hovered over shades.

I put this button in all 9 squares.

I am trying to make it so when I click a square, that button disappears and marks X which is graphic symbol called S_X.

I tried playing with visibility but all I can ever make disappear is the whole movie.

I can get 1 square to work by making the button when clicked jump to frame say 40 which shows X but this does no good past that.

Any help please please....

I am going nuts now.

Thanks!

How To Morph Stuff ?
Hey i wondered how to morph text into a image .... i know this is for action script but this is also where the smart people are . 8)

Easy Stuff.
How can I post a website done on Dreamweaver, and can i create buttons in that program, if yes how.





THANX!!!

Hit Test Stuff
Hi I am making a mini golf game for a clients website, and I desperately need to know how to, when the ball gets hit, send it flying in the desired direction, and if it hits anything bounce off it realisticly,

Any help would be great
thanks
Josh

Hit Test Stuff Again
how can I when one object(movie clip) hits another(movie clip) make it bounce off, I know how to do this with boundaries in the level0 timeline, but need to know how to do it with movie clips...

any help would be great
Josh

Sounds And Stuff
Hey,

in this picture:


I have on the bottom layer, the bar animation. On the top layer i have the sound, ONLY over the bar animation.

I have a button that tells the target to gotoandplay frame 2"the start of the sound". I have another button which tells the target to goto and play the frame you see way down in the frames. That is the stop action.

When the stop button is pressed, the animation stops, but the sounds doesn't, even though i have no music frames over the stop frame.

What is going on, and how can i fix it?

L8

Array Stuff
im makin a small searchengine thingy for a webbased computer training program. And when the search "finds" the string the user searches for my program will then give a "link" to the content that has that text in it, since the user can search for more words than one my function often returns the same link more than once. The links are stored in an array, and basically i want to get rid of all duplicates in this array.
Will an array.push ignore duplicates and insert the value anyways ? is there a function that can remove duplicates from an array fast ? any hints ? i would like to avoid creating a function from scratch that removes duplicates.

Objects And Stuff....
I've been kicking myself in the butt over this....how do i get an object to retrace itself...like if i wanted a square to draw itself...(i'm bad at explanations)....here have a look....like these squares in the preloader....
http://www.spincity.com
Help me!
Abel

More Newbie Stuff
ok this is my site. if you look at my scroller you see that the little buttons on top move it and there are buttons on the scroller itself that open pages I haven't played with yet. now, it you right click on the scroller and hit play a blank box drops down. I want the buttons on the scroller itself to open boxes like that on the scroller. does that make sense? help?

http://www25.brinkster.com/methical/


[Edited by methical on 10-17-2001 at 03:54 PM]

How Do You Use Allowscale And Stuff
I want to have it so that the swf doesn't blow up and fill the whole screen subsequently making the whole thing run slow.

HOw do I do this?

HElp.

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