Getting All MC's Inside A MC...
I was wondering if it is possible to get a list of all MCs in a certain mc, or on a certain level...
I have thought of making an array and all the MC's add themselves eg.
Code: //on root: allMyMCs = new Array();
onEnterFrame = function() { for(var i=0;i<allMyMCs.length;i++) { var cn:MovieClip = allMyMCs[i]; //do wateva i want 2 do wit all mi mcs here using -cn- } } //on the first frame of separate MCs on root or in higher levels _root.allMyMcs.push(this);
but it is a bit annoying having to put that code on all frames. then there's the problem of addding itself twice or more if there is a looping animation (I can fix that to but thats just more coding). or if the mc dissapears then the loop will go on and try to edit it even if its not there...
I know there are ways around all of these problems but if there was a simple way to have all mc's in another mc or on a specific level it wud make life easier, it would also mean that if one of the mcs removed itself then the array would pick it up.
if anybody out there knows, it would be greatly appreciated if u could take a minuet and reply to me
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 12-16-2006, 06:30 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Tweening External Dynamic Text Inside A MC Inside Main Timeline
I've seen a hundred and a half posts on similar subjects, but goshdarnit, I just can't make this work. Let me explain the problem, and I've included a link to a Zip file with my .fla file and the away.txt file I'm calling the variables from.
Basically, I want to create an interactive menu thing, that starts with a row of each of the 26 letters of the alphabet. When one clicks on a letter, the letter is tweened to a larger faded state, and so is the rest of the alphabet, and I want the names of the schools starting with that letter to then fade in. I have a movie clip inside the last frame of the main tween, which should then tween (fade in over 12 frames) the graphic symbol containing my dynamic text box, which is supposed to be linked to the text variables in the external file. The text variable is created on the first frame of the main timeline using Actionscript on the static header layer, and so I should be able to load it inside my movie clip (I think). Everything looks fine to me, but then I've only been using Flash for 2 weeks.
To sum up, I need to tween the graphic symbol. The graphic symbol contains the dynamic text which references the external text file. The graphic symbol is inside a movie clip, inside one frame of my main timeline. The text isn't showing up, only the empty text box is.
My Zipped source files can be found at: http://www.tolcs.org/athletics/away.zip
If anyone would be willing to download my source files and give some wonderful advice, I'd revere and adore them forever.
Button Inside Movie Clip Inside Scrollpane Doesn't Work In Xml
This is sorta odd but I'm hoping somewhat easy to fix. This is in AS2 and is the last problem I have in a very small project of mine.
I have button called button01 inside a movieclip called movieclip01 which is the contentPath for a scrollpane called scrollpane01. I'd like the button to work, and depending on the code it will work in the normal .swf but won't when I embed my movie into xml.
If I put the code inside movieclip01
button01.onRelease=function(){
_root.gotoAndPlay("Frame Name");
}
It will work when I test it but not in the XML. So what I want to do is go to the main timeline where the scrollpane is and write the code there. That is where I'm stuck.
I've tried scrollpane01.movieclip01.button01 and tried movieclip01.button01 and also tried scrollpane01.button01. Just for giggles I also tried scrollpane01.movieclip01 but none of that works
Last night I had a similar problem with buttons inside a movieclip that was on the root stage. They worked in the swf but not when I embedded the file - so I found this which worked (typed in the root stage)
movieclip01.button01.onRelease=function(){
Can't Seem To Get The Paths Correct When It's Occuring Inside A Movie Clip Inside
main movie on _level0, navigation loads into _level1, icon is dragged and dropped loading another samples.swf into _level2.
drag and drop works fine running outside of main movie but not inside main movie. i'm assuming i've messed up paths.
i tried to include the code (twice now) but it keeps cutting off my message.
it's an action on a button inside a movie clip inside a movie loaded into _level1. it needs to reference a movie clip on the main timeline of the _level1 movie. what would the path be?
Rotating Movieclip Inside A Button, Inside A Scrolling Menu Bar
Hi all,
I'm pretty new to actionscript, and I'm kinda moving along; up until now.
I've used the the infinite scrolling menu tute at kirupa.com, created my own button graphics, and have a nice scrolling menu. On the buttons, I'm adding an image (which seems to need to be a movie clip to work), so when you rollover the button, the image will spin.
The code for the spinning works. I've tested it on the root frame of a new movie, and in the button of the infinite scrolling menu movie. I've added the code to spin the image on the "over" frame of the button timeline. With the button scene open, I run "test scene", stop it, and move between the frames. When I advance to the rolloever frame, the image spins like a top, but when I test it from the root of the movie, the image does not spin. I've also added a color change "that works" from the root when you rollover the button, but the not the spinning image.
I've added the image by editing the button from the library. I select the image, and add the code inside an onClipEvent(enterFrame) action.
I've also tried adding the code to the keyframe of the root scene in layer 1, and tried calling the image by the full path (_root.one_button.buttons.button1.spin1._rotation= blah) thinking it needs to know exacty where the image(movie clip) is at in the heirarchy to no avail. I've even went back and gave everything an instance name up unto the button I'm trying all this on.
Any help would be appreciated, since I'm about ready to shed tears over this.
Thanks!
-Sam
OnRollOver() Inside MoveClip Inside MovieClip Doesnt Work
could someone help with this. i dont know why the onRollOver function doesnt work for my submenu button. trace("over main btn") for mainmenu button works fine but trace("over submenu btn"); doesnt work :/
ActionScript Code:
CreateMainMenu = function (x, y, depth, node_xml) {
var cNode;
var cItem;
var cMenu = this.createEmptyMovieClip("mainMenu", 0);
for (var i = 0; i<node_xml.childNodes.length; i++) {
cNode = node_xml.childNodes[i];
cItem = cMenu.attachMovie("mainMenuBtn", "mc"+i, i);
cItem._x = menu_x+i*(cItem._width+5);
cItem._y = menu_y;
cItem.menuname = cNode.attributes.name;
cItem.node_xml = cNode;
if (cNode.nodeName != "menu") {
cItem.arrow._visible = false;
}
cItem.onRollOver = function() {
this.gotoAndStop(2);
h = 0;
clearInterval(newInt);
trace("over main btn");
subMen = this.createEmptyMovieClip("subMenu",200);
newInt = setInterval(openSubMenu, 50, this._x,this._y,subMen,this.node_xml);
}
cItem.onRollOut = function() {
this.gotoAndStop(1);
this.subMenu.removeMovieClip();
};
}
};
openSubMenu = function (x,y,clip,node) {
if(h<node.childNodes.length) {
subM = clip.attachMovie("subMenuBtn","subBtn"+h,300+h);
subM.menuname = node.childNodes[h];
subM._visible = true;
subM._y = subM._height*(h+1);
subM.onRollOver = function() {
trace("over submenu btn"); //<------------- it doesnt work :(
}
h++;
} else { clearInterval(newInt); }
};
var menu_x = alertArea._x;
var menu_y = alertArea._y;
menu_xml = new XML();
menu_xml.ignoreWhite = true;
menu_xml.onLoad = function(succeed) {
if (succeed) {
alertArea._visible = false;
CreateMainMenu(menu_x, menu_y, 0, this.firstChild);
} else {
alertArea.alert = "error: XML not successfully loaded";
}
};
menu_xml.load("menu.xml");
sample xml file for this menu:
ActionScript Code:
<?xml version="1.0"?>
<menu name="XML Menu">
<menu name="firm">
<item name="about" link="http://#"/>
<item name="portfolio" link="http://#"/>
<item name="contact" link="http://#"/>
</menu>
</menu>
does anybody know what is the problem ?
Rotating Movieclip Inside A Button, Inside A Scrolling Menu Bar
Hi all,
This question is going ignored in some other boards, so I thought I'd try here....
I'm pretty new to actionscript, and I'm kinda moving along; up until now.
I've used the the infinite scrolling menu tute at kirupa.com, created my own button graphics, and have a nice scrolling menu. On the buttons, I'm adding an image (which seems to need to be a movie clip to work), so when you rollover the button, the image will spin.
The code for the spinning works. I've tested it on the root frame of a new movie, and in the button of the infinite scrolling menu movie. I've added the code to spin the image on the "over" frame of the button timeline. With the button scene open, I run "test scene", stop it, and move between the frames. When I advance to the rolloever frame, the image spins like a top, but when I test it from the root of the movie, the image does not spin. I've also added a color change "that works" from the root when you rollover the button, but the not the spinning image.
I've added the image by editing the button from the library. I select the image, and add the code inside an onClipEvent(enterFrame) action.
I've also tried adding the code to the keyframe of the root scene in layer 1, and tried calling the image by the full path (_root.one_button.buttons.button1.spin1._rotation= blah) thinking it needs to know exacty where the image(movie clip) is at in the heirarchy to no avail. I've even went back and gave everything an instance name up unto the button I'm trying all this on.
Any help would be appreciated, since I'm about ready to shed tears over this.
Attached is the zipped fla file
Thanks!
-Sam
Behavior On Buttons Inside A Movie Clip Inside A Button.
I would like t create an animated button with menu inside, how do i do it.
something like on here http://www.demarchelier.net
hidden menu on left side (contents) but on flash. I have flash 8. any tutorial that explain how to do that ?
Tween Inside A Button Inside A Movie Clip
Say I have 3 squares, from left to right, blue, red, yellow. The 3 squares together are a MC that move from off the stage on right, across the stage to line up on the left. Now say I want to make the left blue square a button so that when you roll over it, it has a orange frame and then when you press down on it it dims, and a larger version of it shows up above it. how would I do this? What i've done so far is made a button inside the MC, then on the down state of the button made a graphic button for the blue square, but it doesn't stay dimmed, and I don't even know how to make the larger blue square appear.
Is this too confusing?
please help.
thanks
Load A Movie Inside Blank Clip From Inside Itself?
Hi,
I am working on a site and I have a blank movie clip called contents. I have a button that when clicked, loads a swf (2.swf)inside of it. then I have a button in 2.swf, when clicked, I want it to load a swf in contents (the same movie clip that it was loaded into). I have tried using _root. and _parent. infront of the loadmovie code, but those aren't working. What code would I use to do this?
Thanks, Matt
SetInterval Inside A Loop Inside A Function - Am I Crazy?
I've got a menu loading from XML data - however I'd like the mc's to appear sequentially, maybe 1/10th second apart. I know setInterval should do this, but I'm still new to flash and despite trawling Google for 24 hrs solid, nothing seems to show me the right way.
Here's the script:
Code:
function CreatePortMenu(port_xml)
{
var portClients = port_xml.firstChild.childNodes;
var xPos = 0;
var yPos = 0;
var xSpacing:Number = 90;
var ySpacing:Number = 35;
var i = 0;
for ( i = 0; i < portClients.length; i++ )
{
switch (i) //splits the menu items into columns of 4 (max 12 items)
{
case 0:
case 1:
case 2:
case 3:
yPos = ySpacing * i;
break;
case 4:
case 5:
case 6:
case 7:
xPos = xSpacing * 2;
yPos = ySpacing * (i - 4);
break;
case 8:
case 9:
case 10:
case 11:
xPos = xSpacing * 3;
yPos = ySpacing * (i - 8);
}
var currentClient = portClients[i];
var portHold = portHolder_mc.attachMovie( "jobOption", "pb"+i, i, {_x:xPos, _y:yPos});
portHold.jobTitle.jobText.text = currentClient.attributes.title;
}
}
So I *think* I should be inserting two lines, one creating a setInterval, and one clearing it, but where? Some guides say inside the function, some say outside, some say only the clearInterval should be inside, some have the function inside the loop... I also *think* I've tried every possible combination, but no soap. Please help!?
Tabbing Inside A Form, Inside ScrollPane Component?
I have several forms but one of them needed to be scrolled because it's too long. I've been using the fieldname.tabIndex on all my forms but when I try to tab this form that contains the tabIndex it pops outside the ScrollPane component every time. I setup the form like the rest then gave it an instance name of "form," I set the linkage on the properties to "form." Next I placed a ScrollPane on the main timeline and assigned it to "form." When I try running the movie and tabbing between the fields in the form it pops out of the component to another instance.
What do I do?
I've given the url address to the movie:
See the movie here, select "MENU" then "Nominate" to view the problem
Thanks - Rob
Using External .txt Inside Movie Clip Inside .fla
I've seen a hundred and a half posts on similar subjects, but goshdarnit, I just can't make this work. Let me explain the problem, and I've included a link to a Zip file with my .fla file and the away.txt file I'm calling the variables from.
Basically, I want to create an interactive menu thing, that starts with a row of each of the 26 letters of the alphabet. When one clicks on a letter, the letter is tweened to a larger faded state, and so is the rest of the alphabet, and I want the names of the schools starting with that letter to then fade in. I have a movie clip inside the last frame of the main tween, which should then tween (fade in over 12 frames) the graphic symbol containing my dynamic text box, which is supposed to be linked to the text variables in the external file. The text variable is created on the first frame of the main timeline using Actionscript on the static header layer, and so I should be able to load it inside my movie clip (I think). Everything looks fine to me, but then I've only been using Flash for 2 weeks.
My Zipped source files can be found at: http://www.tolcs.org/athletics/away.zip
If anyone would be willing to download my source files and give some wonderful advice, I'd revere and adore them forever.
Can't Tab Inside A Form, Inside ScrollPane Component.
I have several forms but one of them needed to be scrolled because it's too long. I've been using the fieldname.tabIndex on all my forms but when I try to tab this form that contains the tabIndex it pops outside the ScrollPane component every time. I setup the form like the rest then gave it an instance name of "form," I set the linkage on the properties to "form." Next I placed a ScrollPane on the main timeline and assigned it to "form." When I try running the movie and tabbing between the fields in the form it pops out of the component to another instance.
What do I do?
I've given the url address to the movie:
See the movie here to view the problem, goto "Menu" then to "Nominate
Thanks - Rob
Button Inside Swf Needs To Target Label Inside Different Swf
I have two different swf files (valet.swf and transit.swf) loaded into 2 different container MCs on a main timeline. One is in the container MC contentsValet the other is in contentTransit. I have a button inside the transit.swf that when pressed needs to go to the label "valet" inside the valet.swf file and am not having any luck with getting it to work.
Here is the code I tried to use on the button
on (release) {
_root.contentsValet.gotoAndPlay("valet");
}
Addressing A Timeline Label Inside A Mc Inside A Mc
? how would you write:
if(c=1){
gotoAndPlay.home.trans "contact";
}
... .home is a mc that contains .trans mc and "contact" is a label in the .trans mc timeline.
I get the
contactbtn.on(press) {
gotoAndPlay ("next"); // address label within the current mc
}
but am unclear how to do this correctly when the timeline label is within a movie clip inside another movie clip.
thanks for the clarification
Self taught... still learning actionscript flasher
Using SetInterval Inside A Function, Inside A Loop
I'm very confused by this now
I'm trying to use setInterval to delay what happens on a rollOut function, which is added to every button inside a loop.
Can anyone help me with the syntax, I'm totally lost!
Thanks,
James
PHP Code:
for (var i = 0; i<=(node.length); i++) {
currentButton.num = i-1;
//----attach the projectButton movieclip from the library----//
attachMovie("projectButton", "projectButton"+i, i);
//----move the button to the right place----//
currentButton = _parent.portfolio["projectButton"+i];
currentButton._y = 1+(26*k);
currentButton._x = 2+(230*j);
//----put the name of the project onto the button----//
currentButton.projectID.text += node[i].attributes.title;
//----rollover function----//
currentButton.onRollOver = function() {
currentButtonNow = _parent.portfolio["projectButton"+this.num];
currentButtonNow.projectID.text = "";
currentButtonNow.projectID.text += node[this.num].attributes.description;
};
//----rollout function----//
currentButton.onRollOut = function() {
APause = setInterval(GoBack2, 500);
//calls a function called GoBack every 'x' seconds//
function GoBack2() {
// SOME FUNCTION HERE!!!!!!!!
clearInterval(APause);
trace('clearing interval of '+currentButton.num);
}
currentButtonNow = _parent.portfolio["projectButton"+this.num];
currentButtonNow.projectID.text = "";
currentButtonNow.projectID.text += node[this.num].attributes.title;
};
//----release function----//
currentButton.onRelease = function() {
loadMe = node[this.num].attributes.id;
gotoAndPlay(10);
//gotoAndStop("portfolio");
};
//---- take out the leftover one idiot ----///
if (currentButton.projectID.text == "undefined") {
_parent.portfolio["projectButton"+i].removeMovieClip();
}
//---- watch the old variables mr greig ----//
k++;
//---- slit the list into 2 columns at which point? ----///
if (i == (8)) {
j = 1;
k = 0;
}
HitTest Problem- In A Button Inside A Mc Inside
hi,
anybody can give me a simple code using hitTest();
I did'nt know what is the right syntax for this command and where is the right place to put it.
here's the situation:
I have a 'gallery' movieclip and nested to it is a gallery button and when you over it, it txt color change.
but d problem is i didn'tknow where is the right location to put the hitTEst code and what is the right syntax?
i put this in frame1 of code frame
stop();
profileNav.onPress=function() {
gotoAndStop("profile"); }
galleryNav.onPress=function() {
gotoAndStop("gallery"); }
pressNav.onPress=function() {
gotoAndStop("press"); }
contactsNav.onPress=function() {
gotoAndStop("contacts"); }
and this code to galleryNav movieclip
on (release) {
//Goto Webpage Behavior
getURL("D:/Normz/Graphic Design/projects/mary-2nd/flash-new/gallery.swf", "main");
//End Behavior
}
pls help me. thanks
norman-RP
Button Inside Mc Inside Mc Not Working...
Hi there
In the main scene I have a movieclip "Map" which contains a movieclip "BakerStreet" which contains an invisible button. I am trying to call up different actions inside the "BakerStreet" movieclip using a rollover but am having problems, it just doesn't understand. Can someone help please.
This is the code I am using on the invisible button inside "BakerStreet".
on (rollOver) {
_root.BakerStreet;
gotoAndPlay ("BakerStreetRollover");
}
Thanks for your help.
Paul
Button State Inside Mc Inside Another Mc With As Over It
Hi everybody,
I'm having a little problem with a button state. Any help is appreciated.
Here is my issue;
On the main timeline I've got 2 movie clips. When you move the mouse over mc x shows the mc y.
Onside mc x I have a button that has a motion tween applied to it. Inside that button I would like to change the color of the font on Over state.
When I use ActionScript to show or hide mc y the button state doesn't change to Over. As soon as I remove the Action script, it works just fine.
Please help me understand why this happens and how I can resolve it.
Thanks in advance!
Here are attached files.
button.zip
Swf Inside A Swf Inside A Swf Resize Problem
I wonder if someone would be willing to help me privately with a simple but annoying problem. I've inherited a Flash-based site which was originally done in Flash 5. I have re-exported every SWF into Flash 7, but have made no changes to scripting, because the job would be enormous. It all works except for one new element I am trying to add.
The site uses a blank loader movie into which the main interface (another SWF) loads. Inside that the different content (more SWFs) load. And inside those other SWFs load. A total of around 60 different small SWF files. Which makes it fast to load and easy to update.
BUT...
I am trying to add another SWF (call it "e-card showcase") which loads inside a SWF inside a SWF. And in my new SWF, other separate movies will load. Those movies are sample e-cards.
The e-cards utilize Sham Bhangal's Flash Camera component, which uses Action Script to control the stage size, and do zooms and pans without physical tweening.
Here is the problem: When I test the e-card showcase SWF alone, the e-cards all load at the correct size, which is 550x400.
When I test it inside the main movie-inside a movie-inside a movie (stage size 800 x 600), the e-cards load at 800 x 600, which is too big. What's more, if I click to load a new e-card while another one is still playing, the new movie loads at whatever size the Flash Camera has set the stage at that moment.
The Flash Camera script uses the size of the _root stage as its reference, which I suspect is the heart of the problem. But I cannot alter the Flash Camera script because I do not have the source FLA files for most of the e-cards.
I therefore need a way to force each e-card to load at 550 x 400 when the button is clicked.
I've posted a similar question with the relevant Action Script about two weeks ago and got zero responses. I wonder whether someone would be willing to help me privately. I'm sure there is a simple answer to this issue, but it helps to have my FLA files to do the testing.
If you're willing to help, I'll be happy to do you a favour in return with a little Flash cartoon illustration for your own site.
Cheers.
Trigger A Button Inside A MC From Another Btn Inside Another MC
Hi,
I have a series of buttons inside a MovieClip, that contain ActionScript. Inside another MovieClip I have another button that I want to trigger the actions from a specific button inside the first MC.
Here is the code for one of the series of buttons (i.e. Menu):
Code:
on (release) {
_root.container.unloadMovie();
_root.container.attachMovie("geral_respCorp", "liveContainer", 1);
this._parent.A.NewY = this._parent.A.OrigY;
this._parent.A.gotoAndStop(1);
this._parent.B.NewY = this._parent.B.OrigY;
this._parent.B.gotoAndStop(1);
this._parent.C.NewY = this._parent.C.OrigY;
this._parent.C.gotoAndStop(1);
this._parent.D.NewY = this._parent.D.OrigY;
this._parent.D.gotoAndStop(1);
this._parent.E.NewY = this._parent.E.OrigY;
this._parent.E.gotoAndStop(1);
this._parent.F.NewY = this._parent.F.OrigY;
this._parent.F.gotoAndStop(1);
this._parent.G.NewY = this._parent.G.OrigY+this._parent.Control.FH-this._parent.Control.ButtonH;
this._parent.G.gotoAndStop(1);
play();
}
This code is for the button named "A" inside the MovieClip "MainMenu".
Now, in the movieclip loaded in the container MC, I have a button named "Next", and basically this button unload the MovieClip loaded inside the container and load another one, but I want to assign the code of the "A" button, to this button.
I had tryied to make somthing like this:
Code:
on (release) {
_root.container.attachMovie("business_key", "liveContainer", 1);
MainMenu._parent.A.NewY = MainMenu._parent.A.OrigY;
MainMenu._parent.A.gotoAndStop(1);
MainMenu._parent.B.NewY = MainMenu._parent.B.OrigY;
MainMenu._parent.B.gotoAndStop(1);
MainMenu._parent.C.NewY = MainMenu._parent.C.OrigY;
MainMenu._parent.C.gotoAndStop(1);
MainMenu._parent.D.NewY = MainMenu._parent.D.OrigY;
MainMenu._parent.D.gotoAndStop(1);
MainMenu._parent.E.NewY = MainMenu._parent.E.OrigY;
MainMenu._parent.E.gotoAndStop(1);
MainMenu._parent.F.NewY = MainMenu._parent.F.OrigY;
MainMenu._parent.F.gotoAndStop(1);
MainMenu._parent.G.NewY = MainMenu._parent.G.OrigY+MainMenu._parent.Control.FH-MainMenu._parent.Control.ButtonH;
MainMenu._parent.G.gotoAndStop(1);
play();
}
But nothing happens. can someone help me in this matter?
thank you
Eduardo Ribeiro
Loading A Swf Inside A Swf Inside A Swf...
my main movie is basically just navigation buttons that load a content swf into a movieclip - that's ok.
but when the content swf is also loading a second swf into itself, the second swf isn't showing up.
when i test the content swf by itself it's ok - the second swf shows up
it's only when i load the content swf into the main movie that the second swf doesn't show up in the content swf.
i don't know what is wrong - can someone help?
Loading An Swf Inside An Swf Inside An Swf
Hi everyone, I ve been trying to make this for days now but its
not working.
I have a main "base" swf that has a holder MC that on it I
externally load my "main menu". That works fine.
On that menu I have buttons that supposed to load a "sub page" each.
I cant find the problem on the coding(obviously I am new to this)
but the MC "buttons" of my main menu are not working at all.
I dont know what to do. Please help if you can .
Here is are the files to the whole thing.
http://rapidshare.de/files/20790041/web_page.rar
[HOW?] Form Inside MC, Inside MC.
1) I have a .swf which just has AS and empty movie clips which get loaded with the different sections of my site. There is the "navigationContainer", which loads the navigation.swf, then there is a "contentContainer" which loads the content.swf, and finally there is a "formContainer" which loads the form.swf.
2) form.swf will run by itself in my browser. form.swf is where I have my AS which is populating the combo-boxes inside form.swf, and where the listeners for those combo-boxes are. (I have 3 combo-boxes)
3) When the _root. stage loads up the form.swf into the "formContainer" empty movie clip on the stage it doesn't seem to be populating the combo-boxes.
4) I think I need to have the listeners in my main "holder" swf and to populate the combo boxes from there, but I am not sure of how to do this.
Someone, anyone, please help me! My combo-boxes sort and display data records, and when I run form.swf by itself, alone, it works fine; however, form.swf needs to be inside of my mainStage.swf for the site to look right.
How can I do this?
Thanks!
Button Inside Of A Mc Thats Inside An Mc
yeah so umm basically i suck at life. yah im making this site right and im using drop down menus so you have a button inside the mc that is the menu droping and then that mc is inside an mc that puts it all together. My problem is that i think the button is soo far down inside the many layers of mcs that it can't hear the click. So it does nothing. So lets say everytime that button was clicked i wanted it to switch to a different scene, that is just not happening...any help would be much appreiciated... your good buddy, alex
Loadmovie Inside A Mc With A Btn Inside Another Mc
Hi, I have this problen..
I have a button that is inside a movie clip (this mc is on the stage), and I want that button to load an swf on a movie clip (target) that is inside another movie clip<--(this mc is on the stage too and has an image). I have this code:
on (release){
_root.loadMovie("movie1.swf", _root.loadpic);
}
this code actually loads the movie.swf movie clip ... but it does not load on the target (loadpic) it loads on the top left corner of the movie and also erases the image that is on the mc that holds the target.
I hope I explained myself, thanks.
Loading Movies Inside Movie That Are Inside Other Movies
I have built a website in flash.
I have a main interface with navigation. On press of a button (topic) it loads a movie into a certain area.
//area on timeline to stop any probs or overlapping
on (release) {
gotoAndStop ("1");
}
// get the clip
on (release) {
loadMovie ("mainmovies/products.swf", "_root.mainmovieframe");
}
this works fine and is the simplist and most effective way (i think)
NOW... what happens if I have buttons inside the products movie that inturn call movies inside the sub movie..
It will now work, just crashes flash player. I am using the same command as in the interface but with different clip/instance name...
Please tell me how to make movies work. I cannot make layers and stuff work for some reason.
Loading An External Swf Inside A Movieclip That Is Inside Of A Movieclip
I was wondering if anyone could help me!!!! I used the tutorial for loading external swf's into a movieclip off of this site. But what I am trying to do is load another external swf inside of that external movieclip. Not sure if that makes sense. I kind of have it working where it loads the first external clip. But when I press a button to load a different one, it plays the transition then loads nothing. It's just blank.
This is the AS 2.0 that I am using for the external swf button that is inside another:
on (release) {
if (this._parent.currMovie == undefined) {
this._parent.currMovie = "StrategicPlanning2";
container2.loadMovie("StrategicPlanning2.swf");
} else if (this._parent.currMovie != "StrategicPlanning2") {
if (container2._currentframe>=container2.midframe) {
this._parent.currMovie = "StrategicPlanning2";
container2.play();
}
}
}
And this is the AS that I am placing on the last frame in the actions layer
this._parent.container2.loadMovie(this._parent.cur rMovie+".swf");
Please help!!! I am only a Graphic Designer!!
Loading Text Inside Movie -> Inside A Movie
Ok so I have a movie that has a bunch of little movies which are played on a click of a button. Now inside the second layer movie I want to load some text from an external txt file but for some reason it is not working. I am using, loadVariablesNum("content.txt", 0); and my dynamic txt area is suppose to retreive the variable rafting. now for some reason it is not loading the text into the text area, could it because it is not in the main scene??? Can someone please help me out???
Thanks
Nick
[F8] Display Inside MC A Bigger Image But Only Display Image Inside Size Of MC
Hey...
I have an easy question,
I want to display an image that is being loaded inside a Movie Clip which is working as a picholder...
This movie clip has borders and the size of the mc (the size that the borders create) is: 200 x 150
But the image that is being loaded inside the MC is bigger than the mc...how can i tell flash to only load just 200 x 150 of the picture ? AND/OR automatically resize the picture to fit the MC size
Any ideas?
Thanx for the reply!
A Movie Inside A Button Inside A Movie
OK... I need to tell a movie (named contact_movie) that is inside a button (named Contact Button) that is inside a movie (named navigation) to gotoAndPlay (6) on the release of Contact Button, but I can't figure out how to do that.
any suggestions?
Thanks
Charlie
Button Inside Movie Inside Button
Ok, i hope someone can help coz im stumped.
I have a button which plays a movie clip on rollover. The movie plays outside the buttons hit state and has a further button within it.
My problem is that whenever i roll out of the original button to press the new button within the movie clip i am outside the original buttons hit state so the movie vanishes.
I cant extend the original buttons hit state as i have 8 buttons close by which would interfere with each other and i also only want the rollover to work on a small area.
Any ideas how i can maybe change the hit state once the movie has played??
Or any other ideas.
Thanks
Images Inside MovieClips Inside MovieClips
Hi. I'm trying to create a virtual photo album that you can drag photos into and rearrange them etc. The plan is to have it load/saveable using XML
In my library I have two MovieClips called Page and Photo.
Page is supposed to be able to contain many Photos. A Photo is supposed to hold or be an image (a photo).
I have declared two classes, Page and Photo, which are linked to their respective MovieClips
Actionscript:
class Page extends MovieClip {
private var _photo1:MovieClip;
function Page(){}
public function addPhoto(){
attachMovie("Photo", "_photo1", getNextHighestDepth());
_photo1.loadPhoto("File0025.jpg");
}
}
Actionscript:
import mx.controls.Loader;
class Photo extends MovieClip {
private var _photoLoader:Loader;
function Photo(){}
function loadPhoto(url){
trace("Inside Photo trying to load " + url);
_photoLoader = new Loader();
_photoLoader.load(url);
}
public function onPress(){
this.startDrag();
}
public function onRelease(){
this.stopDrag();
}
}
However, I can't get an image to show. The Photos have to be draggable so they have to be MovieClips. I can't use loadMovie() because I have to abe to control the size of the image. I'm trying to use Loader but I can't get it to work.
Question: What is the best way to allow my Page obj to have draggable images (which I'm trying to do as Photo objects)? I figured it has to use a Loader component.
Advice?
EventListeners Inside Clips, Inside Clips
if you have a movieclip in a movieclip...both are their own class...can you assign differnet eventListeners for mouseOvers, etc , or will only the inner most respond?
did that make sense?
Button Inside Button Inside Movieclip
Now that I've got your attention with the hideous thread name, here is my problem.
I have a button inside another button which is inside a movieclip. *whew*
I have it so that when you click on the movieclip, a dialog box pops up. I have two buttons on the dialog box, but for some reason you can't click on them and when you do, the dialog box just disappears. Here's a picture of what I'm talking about, so how do i get the "YES/NO" buttons to work? Oh, the buttons are not included in that Graphic
Button Inside Button Inside Movieclip
Now that I've got your attention with the hideous thread name, here is my problem.
I have a button inside another button which is inside a movieclip. *whew*
I have it so that when you click on the movieclip, a dialog box pops up. I have two buttons on the dialog box, but for some reason you can't click on them and when you do, the dialog box just disappears. Here's a picture of what I'm talking about, so how do i get the "YES/NO" buttons to work? Oh, the buttons are not included in that Graphic
Buttons Inside Movie Clips Inside Buttons Inside Movie Clips
Hi I'm having super trouble with a website I am trying to make. I have a really complicated navigation system with a top bar that is a movie clip which contains a button. Inside the button on the OVER phase is another movie clip, which has animations and stuff and generates yet another button inside it.
The major problem I am having is when writing the code, it doesn't recognise the movie clip in the OVER phase. Is there something else I have to write in the code to acknowledge it is OVER rather than UP? I've wasted so much time with this already.
Thanks heaps.
Movie Inside Movie Inside Movie Problem :P
Ok, this is probably something stupid that i havent realised how to do but here goes...
I have a health bar which is in _root.bar.health movie clip. when the health gets to the end frame i want it to go to another scene, the goto command won't work for some reason.... any suggestions?
Using A Movie Clip Inside A Movie Clip To Start A Frame Of An MC Inside A Movie Clip
Situation:
I have a movie clip inside a movie clip with a button inside of it.
This button on release goes to a different movie clip(svideo) in a different frame on the maintime. This movie clip has a movie clip(portfolio) inside of it.
Okay: I use an absolute path on the aforementioned button
on release
_root.svideo.portfolio.gotoAndPlay(60);
But, for some reason Flash won't go to frame 60 of the portfolio movie clip that is inside of the svideo.
I have tried numerous variations on reaching frame 60 of portfolio. Like going to the maintime line and going to the portfolio MC. Also, portfolio and svideo are the instance names and not the name of the actual movie clip.
If anybody could help, I would appreciate it. Thanks.
How Do I Do This? Look Inside
Hello,
Can someone show me how to do this, I want the menu, or something like it... how would I be able to make that, what code do I need and where?
Jus for the rotating menu, with the circles.
http://www.widegroup.net/
Go there and enter the site, you will see what I mean.
Thanks,
Ian
One Inside The Other?
How put one movie inside the other? Is there some action script I can use to "call" the other? This may be a simple question.. I just do not know how? Or can I only use movieclips in side moive clips?
Thanks
.swf Inside A .swf
What I would like to do is play an already created .swf file inside an .fla as I'm creating it.
What's the best way to do that?
byolson@aol.com
Swf Inside Of Swf
i'm building a website with mutliple swf files. i built the first one main.swf then i close that one and open a new document and built a new one and named it picscroller.swf but for some reason when i load the picscroller.swf into the main.swf the actionscript isnt working. how do i make the actionsciprt for picscroller.swf work under main.swf?
Swf Inside Of An SWF
I'm trying to put an swf, which is a calculator i made into a frame of a new site I'm building. However, the calculator does not work. How would I get to work?? I tried searching around. but it seemed no one else had quite the same problem as I do now.
Heres what I did:
filoe>import>then selected the file and thats all...
|