AttachMovie Stuff
so i want a variable to control a layer, just on or off. the only way i have found to do this is with the attachMovie action script. so first, is there a way to turn on/off layers with variables without using the attachMovie script?
for now i am using the attachMovie thing, but its hard to line things up... I cant see them, so i have to postition them blindly with x-y coord's. Is there a way to see these attached movies while editing?
irate:
Ultrashock Forums > Flash > Flash Newbie
Posted on: 2004-02-25
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
AttachMovie({Stuff}), SetInterval, And Functions.
I have a question regarding the things I mentioned in the topic title.
I have a movie I'm attaching with attachMovie.
Essentially, the AS looks like this:
ActionScript Code:
_root.attachMovie("idname", "newName", depth, {property:value, seti:setInterval(myFun, 500), myFun: function(){functionStuff}});//
Obviously I've dumbed it down a bit, but for what I'm asking that doesn't matter. Can I create a setInterval and the function it calls inside attachMovie and expect it to work? I'm wondering because if I can, then there's something else I need to fix in my code.
Thanks,
Krilnon
Edit... I don't think it's possible... I tried
ActionScript Code:
_root.attachMovie("mcID", "mc_mc", 50, {mcFunc:function () { trace("mc");}, mcSet:setInterval(mcFunc, 500)});pooFunc = function(){ trace("mc");}mcSet = setInterval(mcFunc, 500);
Of course, the AS outside of the attachMovie worked, but not the stuff inside it.
I'm still open for input
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.
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!
AttachMovie() Within Another AttachMovie() Created Instance?
I'm still struggling away on my web site, but I've made quite a bit of progress and I think my code has cleaned up quite a bit. I still have the issue of not being able to attach my new content box movie clip when the button is pressed. I am successfully able to load the data for that instance of the tab, and can access the variables. It also is able to run the newContentBox() function inside it with success, but when it tries to run attachMovie(), nothing happens. Could this be a problem with my depth? Or is it my nesting?
I have been thinking about making a global variable for depth that will increment each time anything is created, so every movie clip is guaranteed to be on its own depth. Would this be a solution?
The site can be viewed here.
The source can be viewed here.
All the data files are located in that directory as well.
This is really driving me nuts, and I want to get something solved so I can move onto the submenu creation.
AttachMovie Inside Another AttachMovie
is it possible to attach a movieclip, and then attach another inside of it? i'm trying to load in images via using loadMovie and XML (a little background) i want the image to be dropped in to have a mask applied to it so that the image appears as a rounded rectangle... here's my code for the for loop that attaches the movie clips...
PHP Code:
for (i=1; i<=totalImages; i++) {
attachMovie("multiplebox", "box_"+i, i);
movieNamer=_root["box_"+i];
}
is it possible to attach a movie inside of 'box_"+i'?
AttachMovie Within An AttachMovie? Not Working
So I've finished a project (let's call it Project Blue) where I use attachMovie which references a folder (of swf's) to place each page of the swf. It worked fine. Next, I made a master 'shell' to place this project (among others) into. To do that I used attachMovie again to place Project Blue in the shell.
But now my attachMovie pages for Project Blue won't show up. Does Flash have a problem with using an attachMovie within an attachMovie?
Thanks for any insight on this....
AttachMovie Nested AttachMovie...
I have in the root timeline an empty movie clip that loads other movies inside of it. Using the attachMovie function.
Inside one of these attachMovie clips I have a nest "attachMovie" clip as well but for some odd reason it's not working. Is there anything I should be aware of when nesting an attached movie?
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!!!
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
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.
Preloading Stuff
Hi peeps
Okay so I can preload stuff without trouble, but what I can't seem to figure out is how to return getBytesTotal and getBytesLoaded for content I have loading into a movie clip I have on my main timeline. Same if I am loading a movie over the top of the current one how do I retunr the bytes loaded etc. for something on level 1 from the main timeline. Any suggestions??
Thanks
Projector Stuff
How do you get rid of the title bar? How do you center the projector on screen? I know you can do this with additional programs like swf studio,etc,etc, but is there a way to do this without these. Freeware programs? Controlling video also?
Using Buttons And Stuff N Such
K. I have an interactive web site in the creation here. Now when I make the menu and a button is clicked... the site just goes straight into that frame. I want to know how to make it so when you click a button, the current stuff fades into the new stuff and animation can move on.
Make it a smooth flowing web page. Like when you click a menu button, current text fades out and new text fades in.
Any help is much appreciated
|