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




Problems Targeting A MC



I´m having trouble trying to target a MC, but it´s not in the main timeline, it´s sort of hidden.
i´ll post a pic:

I downloaded this sample , but I can´t figure out how this is done, please help



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 09-05-2003, 11:22 PM


View Complete Forum Thread with Replies

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

Targeting...
Hey, is it possible to target a Movie clip to load an external swf file? I think it is, just not 100% on how to do it.

Targeting One Swf From Another?
I have a master swf file [master.swf] containing an empty MC [empty] containing another swf file [second.swf].

I would like second.swf to have a back button that needs to unload itself from the MC in the master.swf - is this possible and what is the correct syntax for this?

Any help appreciated.

Targeting Mc's.....
I have several html pages, each with a swf movie. Can I target different Mcs and frame labels from one html doc to another html doc? Does that make sense? I bascially have a standard menu for all these swf files, and I want to be able to target specific areas in these pages...or do I have to wait until the page loads and then navigate to these areas???

Targeting
I have a button in a movie (old.swf) in level 1. This button loads a new movie (new.swf) into level 1 thus replacing old.swf.

The problem is I want the new movie to go to frame 10 when it loads. At the moment I can only get it to go to frame 1 when it loads.

I have tried
on (press)
load movie ("new.swf",1)
tellTarget ("_level1")
gotoAndStop ("10")

This doesn't work...
Is it because old.swf which has the button and thus the tell target command is being replaced by new.swf?

Can anyone help me?

Thank you for your time
Regards
Slade Smith

Targeting URL
HI,

can someone tell me if its ok to put in just filename.html without specifying directory when wanting to open a url from within a flash clip. ( i want to put in onto either cd or disk, but am not sure..thats why am asking)

and is ''window'' , the frame where you want the url to open in?

thankyou.

Need Targeting Help
I have my main movie. In it I have a MC (instance is named outer) which contains a button. The button's down state contains a MC (instance named theclock). The "theclock" MC was designed originally as just two frames, the first did date calculations and the second just sent control back to the first fame to repeat and update constantly.

I was thinking it might be better if I used the onclipevent(enterframe) control in the button's down state to run the date calculations instead of running the calculations within the movieclip itself. First, will it make any real difference if I have actions of the MC instance "theclock" run the calculations instead of running the calculations from within the MC itself. Second, if I should do that, what's the proper path so that the onclipevent(enterframe) calculations target the text fields in the "theclock" MC? I thought this.textfieldname=whatever would work but it doesn't. Any help is appreciated.

Targeting Swf
say i have a html with 2 swfs in it, how do i sent variables from one swf to another?

Targeting
I'm having trouble targeting a certain object and using hitTest.i want to do A hitTest on board1 and railtop


onClipEvent (enterFrame) {
if (_root.guy.ollie.board1.hitTest("/rail/railtop")) {
tellTarget ("/guy") {
gotoAndStop (11);
}
}
}

railtop is in the clip rail. and board1 is in ollie, that is in guy.when they touch i want them to play frame 11 in the clip "guy". I dont know what i did wrong. if any1 can help please do.

Targeting
I asked about pop up windows in another post. I was wondering if I wanted to have a button loaded in an empty movie clip open up a pop-up browser window if i has too target the button as in _root.empty3
Shesssh I'm SO lost!

Targeting A Swf
i am working on a website where i want my global features to remain constant, while my content is all in separate swf files. This works fine if i make the swf the same size as my level 1 movie, but i ran into a problem with pages where i need to use a scroll. what i am trying to figure out is how to open a smaller size swf on top of the global and target it to the xy where i want it to open. I know it's probably something simple- but I'm kinda new at this....

Targeting Help
OK i have a file named red, another blue.
If a had a dynamic text box in the center of my screen, and a red and blue button to the left of it, how would i make the red.fla open in the text box once you click on the red button (same with the blue)...?

Help With Targeting?
Hello. I need help with a script.
I have a movie clip, news_box, with a button, details_b, inside the movie clip. The news_box mc is placed on the main timeline of my movie, upcoming.swf . So when I press the button, details_b, I want to advance to a different frame labeled, show1,on the main timeline of upcoming.swf . I tried this code, but It doesn't work. I know it's something simple:

on (release) {
gotoAndStop._root."show2";
}

any help appreciated!

Please Help With Targeting
Please help with target
I need a button to load a movie .swf and then go to a specific frame label. How would the code look?

mark

Targeting MC's Within MC's
Hi there guys how do I target a movie clip within a movie clip.
For example I have a movie clip called ‘Dom’ with a movie clip inside that called ‘the_bom’ what I want to do is get ‘Dom’ to do something (this part works fine) however load a url into the ‘the_bom’ MC, however since the MC ‘the_bom’ is inside the MC ‘Dom’ the following syntax will not work.

on (rollOver) {
dom.gotoAndPlay(“start”);
loadMovie("picture1.swf", "the_bom");
}

I know the problem is down to the latter part of the load movie line, however I have no idea how to target an MC ‘the_bom’ that is embedded with another MC ‘Dom’

Really simple question if you know how – thanks is advance

Targeting...
Hi
I have a movie clip on my main timeline.
When the clip is triggerred to play, it contains a "close" button.
On release, I want the movie clip to play, AND send the main timeline to frame 37.


The close button contains this action:

on (release) {
_root.gotoAndStop(37);
play();
}

This isn't working...it's sending my main timeline to the first frame. I tried replacing _root with _level0 and that didn't work either.

What am I doing wrong?!
Thanks

Targeting
Hi all,

I am making a simple futuristic jousting type game. The opponent will be coming towards you and you will have to hit the target (a shield) by aiming your lance at it with the mouse. I guess this could be a variation on a shootng type targeting system!?

I want the lance to wobble so that it is not too easy to aim. Is this quite easy and does anyone know how this type of thing can be done? I also need some type of simple scoring mechanism...any help appreciated!

Targeting
First let you take a look at my first website:

http://www.ddrnetwork.net/ali/index.html



ok now the problem you cna probably see is that it is annoying that once you clik the link it has to load a whole new page. is there a why i can for example, click on the story link when i'm the home and it loads up in a specific part of the flash document? plz help me. i'm on a schedule.

Url Targeting
Ok i have a few buttons, that I want to use for navigation, and here is the code I use:


Code:
on (release) {
getURL("http://www.cold-xero.com/forum/index.php", _self);
}



The problem is when you click a button, it opens in a new window. Am I missing something here?

Targeting
Can I target an area that is used specifically for the majority of the site's content? I want to leave all the stuff on the home page and load the links in a designated window for all the linked pages.
Can i do that?

Tom

Targeting (I Think)
Hi all i have a big problem that is probuably very easy to sort out but my deadline was yesterday and i need some help!!

I have a main movie that loads in other movies. THe first movie that loads in is home.swf, in home.swf i have a copy of the menu. How do i get it to load the .swf's in the parent and not in itself??

any help will save my ass!

Thankyou all in advance

Adam

Targeting .swf To .swf
Pelepiano - Thank you for your help that last bit worked!

I have another....
I have loaded two external .swf's into my main movie. One is on Level 2 one on Level 1 - How do I speak to one from the other?

This is what I have guessed incorrectly...

on (press) {
_root._level1.etc.swf.gotoAndStop(2);
}

Thanx much!
-M

Targeting MC From Another MC
Hello flashers,
i have a problem making a targeted MC go to a specific label inside of it. Here's my problem>

i have two MC inside the root (MC1, MC2)
Inside the MC1 i have MC1a and inside it a button
Inside MC2 i have a label2

I need the button in _root.MC1.MC1a to go to and play MC2 and label2

the code is>
on (release) {
_root.mc2.gotoAndPlay("label2");
}

which works fine if the MC2 is in the first frame, but i need it to be further down in the timeline.

any help greatly appreciated

ondrej

Targeting
Hi--

Is there a good tutorial about levels and targeting...ie loading external swfs inside empty movie clips within a "master file"?

Any help would be appreciated...

Thank you...

Targeting An MC Help
I've got a button inside a movie clip that's trying to send a command to the root level. The script tells it to load a JPG (from a list of variables) and targets a move clip on the root level named "main."

Here's the code:


Code:
on (release) {
x = 2;
loadMovie(myVars["full"+x], "_root.main");
stop();
}


Where am I going wrong?

Thanks!

Targeting One Swf From Another
Hi,

I've got two swfs -- nav.swf has all the site navigation, e.g., frame 1 holds everything pertaining to Chapter One, frame 5 holds everything pertaining to Chapter Two, etc.

How can I use a button in the second swf to target back to frame 5 of the nav swf? I know how to do this much:

loadMovieNum("nav.swf", 1);

but that starts nav.swf in frame 1. How do you automatically go to frame 5 of nav.swf from a button in second swf?

Thanks

Targeting Mc's
hey out there.

problem.

on (press) {

this.yellow_mc.Spider_mc.current_mc.gotoAndStop("s tart");

play();
}


this is teaser_mc, which sits in yellow_mc, which sits in Spider_mc
current_mc also sits in Spider_mc

when teaser_mc plays I want current_mc to gotoAndStop("start");
it wont - what am i doing wrong?

thanks,
helen

One SWF Targeting Another
I have a table in HTML with three rows - the top row is a SWF file which is a nav - this swf contains buttons that, when pressed, should signal scene changes in the main movie which is in the second row of the table.

The movies are top.swf and main.swf

What is the syntax to go to, say, Scene2 in main.swf when clicking a link in top.swf?

Thanks much!

Like this:

<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="top"><object etc.>
<param name="movie" value="flash/top.swf">
<param name="quality" value="high">
<embed src="flash/top.swf" quality="high"></embed>
</object></td>
</tr>

<tr>
<td class="main"><object etc.>
<param name="movie" value="flash/main.swf">
<param name="quality" value="high">
<embed src="flash/main.swf" quality="high"></embed>
</object></td>
</tr>

<tr>
<td class="bottom">&nbsp;</td>
</tr>

</table>

[cs3]Targeting Help
I have a working preloader for my external swf file but it will not let me target where the preloader is attached. I can attach the external swf to whatever container I want but the preloaderMC will only let me attach it inside the MC I am coding in. I target it elsewhere but it doesnt work. A functioning and unfunctioning file is attached. The code is in the subNavTxt Movie Clip in the loaderActions layer. Any suggestions?

Targeting
I'd like to relocate the script proceeded by "// RELOCATE //" to the location marked "// NEW LOCATION //", but need help figure out how to retarget...basically how should I change "this[event.target.parent.contentTarget" when it's moved to the new location?

PHP Code:



function overPanel (event:MouseEvent) {        var myTimer:Timer = new Timer (500, 1);    myTimer.addEventListener (TimerEvent.TIMER, buttonDelay);    myTimer.start ();    function buttonDelay (event:TimerEvent):void {        // NEW LOCATION //    };        this[event.target.parent.contentTarget + "BG_mc"].alpha = 1; // RELOCATE //};

[CS3] Help Targeting URL...
do not worry; sorted

Targeting XML
This is probably really basic however this is my first XML project so I apologize in advance.

THis is my XML File

Code:
<menu>
<button>
<label>Yahoo</label>
<link>http://www.yahoo.com</link>
<pic>home</pic>
</button>
<button>
<label>Amazon Books</label>
<link>http://www.amazon.com</link>
<pic>faq</pic>
</button>
<button>
<label>Almighty Zeus</label>
<link>http://www.almightyzeus.com</link>
<pic>help</pic>
</button>
</menu>
<date>Thursday May 16, 2005</date>
<user>User Name</user>
I have a script that is looping through the menu and generating the menu system just fine. I'm having trouble getting the date and the user. What am I targeting?

Code:
trace(featXML.firstChild[1].firstChild.nodeValue);
I've tried multiple variations but with luck!

Targeting Help
So I have a movie clip named next_btn and inside this MC is another MC named "text." I'm trying to make it so that when someone rolls over next_btn the MC named text will turn orange. I don't want hard code the path because other buttons will be using this code.

So here's the code I have:


Code:
next_btn.addEventListener(MouseEvent.MOUSE_OVER, navOver);

function navOver(evt:MouseEvent)
{
evt.target.transform.colorTransform = orange;
}
Now whenever someone rolls over next_btn the whole MC turns orange. So how do I target just the MC named text inside it? I thought it would look something like "evt.target.text.transform.colorTransform = orange;" but that just gives me an error. This has got to me simple but I'm new to AS3.0 and could really use your help. Thanks in advance.

Help With Targeting
Hi having a problem
Flash 8 targeting of content loaded into a scrollpane

main.swf loads
news.swf onto a level
in news.swf is scrollpane "myInfoScrollPane"
myInfoScrollPane loads swf/featured.swf into it

I need a button in news.swf to tell the content in the scrollPane (featured.swf)

to go to frame 2.


ActionScript Code:
this.rok_btn.onRelease = function(){
    this.myInfoScrollPane.gotoAndStop(this.myInfoScrollPane.(2));

}

I'm not sure of the thi or this.parent and the rest..

thanks so much.

Targeting In As3
Hi All
Still trying to get the as3 down so sorry if this is easy. in as2 this was real easy


ActionScript Code:
this.createEmptyMovieClip("container",100);
for (i=1;i<5;i++){
     container.attachMovieClip("myBtnMc",this["mb"+i]);
     container.this["mb"+i].onPress =  function(){
           //do something.
     }
}

so I am trying to do something similiar in as3



ActionScript Code:
var _flipBtn:Sprite=new Sprite  ;
_flipBtn.graphics.beginFill(0xFF0000);
_flipBtn.graphics.drawRoundRect(0,0,15,15,10,10);
_flipBtn.graphics.endFill();
var _con:Sprite=new Sprite  ;
addChild(_con)
var _mcBack:Sprite=new Sprite  ;
var _mcFront:Sprite=new Sprite  ;
_con.addChild(_mcBack)
_con.addChild(_mcFront)
_mcFront.addChild(_flipBtn)
_mcBack.addChild(_flipBtn)
//here is where I am stuck.
_flipBtn.addEventListener(MouseEvent.CLICK, cl);
in as2 I would be able to attache a different listener to each _flipBtn by targeting _mcBack._flipBtn , but this does not work in as3. I am not sure how to go about this. Hope this makes sense.

Targeting Several MC's
I have this lines of code:

on (release) {
mc1.gotoAndPlay(2);
mc2.gotoAndPlay(2);
}

Now I need to apply similar functions to 25 movie clips, instead of just three.
Is there a way of creating an array of all these mc's and target them all at once?

Thanks a bunch,
- w

SWF Targeting?
Can anyone help?
Is is possible to have image thumbnails in one embedded swf that when clicked will target another embedded swf to load the enlarged version of the image? I'm sure that there is some action-scripting involved, but I'm not sure how to begin or even what to search for when looking for references on the topic.

Targeting
Hello !
Another problem yet,
I have one MC (mc1) which loads another one (mc2). In mc2 i have buttons that has to load mc3 in Mc1 so here's the code for the button :

ActionScript Code:
on (release) {    _parent.bar.content.loadMovie(mc3.swf);}


bar is a mc into mc1 and content is the container.
It doesn't work, can someone tell me what is wrong with it?
I don't use _root because Mc1 is loaded into my main movie

Thanks
Ubik

Targeting
hi. i'm trying to lay out 7 text fields (which are nested inside movie clips). i'm pretty sure i've got it just about right, but....the text fields aren't appearing which makes me think i'm not targeting them right in the "Set Text Field Properties" area.

i was hoping someone might be able to fix my erratic thinking.

below is my code:


Code:
for(var i:Number=0; i < numCols; i++){
// Create the Movie Clips
var dayHeadings:MovieClip = _root.createEmptyMovieClip("dayHeadings"+i,101);

// Create a Text Field Inside Each Clip
dayHeadings.createTextField("dayHeaders"+i,100,0,0,indColWidth,colHeight);

// Set Text Field Properties
_root.dayHeadings["dayHeaders"+i].selectable = false;
_root.dayHeadings["dayHeaders"+i].autoSize = "left";
_root.dayHeadings["dayHeaders"+i].border = true;
_root.dayHeadings["dayHeaders"+i].text = headings[i];

// Define the Formatting
var format:TextFormat = new TextFormat();
dayHeadings._root["dayHeaders"+i].setTextFormat(format);

// Position this Clip
dayHeadings._x = indColWidth * i;
dayHeadings._y = startSecRowYPos;
dayHeadings._width = indColWidth;
dayHeadings._height = colHeight;
}
thanks. fumeng.

Mc Targeting Another Mc
I think I'm taking a completley wrong approach and need advice. I have 6 movieclips on the stage that need to independently target a response movie clip. So, 6 movieclips that I have acting like buttons and 6 response movieclips that are targeted to be visible. I need help on the scripting. Any ideas on how to approach this?

Targeting MC
I have a MC with buttons in it. When the button is pressed, I need to tell another MC to go to a marker on its timeline.

Any help?

Do i target the MC name (from the library) or the instance name?

would it be something like


Code:
_root.mc1.mc2.mc3.gotoAndPlay("label");

OOP Targeting
I'm trying to use OOP to code a slider -- Basically I want to attach the AS class to a movie called mc_slider and within that MC will be mc_knob and mc_track

I have the code and kind of know where i need to go But I don't undestand how I say something like this.knob_mc.onPress when the syntax i'm supposed to be using is function onPress(){}

also if i were to say something like

Code:
class slider extends MovieClip {
function onPress() {
this.knob_mc.startDrag(false, 0, 0, 100, 0);
}
it would tell me that there is no method called knob_mc


Thanks
JÜMBOshrimp

Targeting A Mc With Within An Mc
Ok... I have searched and looked around and can't seem to find the answer to my problem. I have made a navigation that is a movieclip, now within the movieclip are 6 movieclips that are the "buttons" of the navigation. This is then placed on the maintimeline as the movies navigation. When one of the "buttons" is pressed i want it to go to a specific point on one of the 6 movieclip "buttons" timeline. This is the code that I have used before on the maintime line to target a movieclip there... but never a mc within an mc. First, would I still place this code on the maintime? or within the mc that the 6 mc buttons are placed? Second how would I target the nav buttons mc's? I am confusing myself... If anyone has any insight that would be awesome.

stop();

but1.onRelease = function() {
this.gotoAndStop(9);
but2.gotoAndStop(1);
this.enabled = 0;
but2.enabled = 1;
but3.gotoAndStop(1);
this.enabled = 0;
but3.enabled = 1;
};

Help With Targeting
I was hoping someone could help me out with this targeting issue (at least I think it's targeting..).

I've got two swf's - main (which holds a display_mc for the displaying image) and
thumbs. Below is the code I'm using for my thumbs - I just can't seem to get it to load the image when you click on a thumbnail. display_mc isn't nested, and the thumbs are loaded via the loader component and into a thumbs_mc on the main swf.


Code:
bdy1_btn.contentPath = "thumbs/body1.jpg";
bdy2_btn.contentPath = "thumbs/body2.jpg";
bdy3_btn.contentPath = "thumbs/body3.jpg";
bdy4_btn.contentPath = "thumbs/body4.jpg";
bdy5_btn.contentPath = "thumbs/body5.jpg";
bdy6_btn.contentPath = "thumbs/body6.jpg";


//This is where I think my problem lies

function portfolioLoader (image) {
_root.display_mc.contentPath = image;
}

bdy1_btn.onRelease = function (){
portfolioLoader("images/body1.jpg");
}
bdy2_btn.onRelease = function (){
portfolioLoader("images/body2.jpg");
}
bdy3_btn.onRelease = function (){
portfolioLoader("images/body3.jpg");
}
bdy4_btn.onRelease = function (){
portfolioLoader("images/body4.jpg");
}
bdy5_btn.onRelease = function (){
portfolioLoader("images/body5.jpg");
}
bdy6_btn.onRelease = function (){
portfolioLoader("images/body6.jpg");
}

Targeting MC's
This is my first time posting a question so please excuse me if I don't explain everything correctly. A little background on the project: I am creating a flash site. I've done this before but since I don't have a lot of experience with actionscript, I use timeline tweens which increases the flash file size drastically. This time around I'd like to create an efficient lightweight flash site using actionscript tweens.

On to the question... I have my page title mc's on the stage with instance names like title1, title2, title3, etc.. I'd like to create a reusable function that I can call when clicking a button. I want the function to fade out any title mc that already has an alpha of 100 and when that tween is complete, fade in the new title mc. How can I target the mc that has an alpha of 100 without creating a function for each? Here's what I have (it doesn't work & excuse the mess, I'm very much a newbie with as):

function fadeTitle(target) {
target._alpha = 0;
var oldTitle = "title"+n; //this is what I need help with. I want n to be any number 0-6
if (oldTitle._alpha=100) {
var fadeOutTween:Tween = new Tween(oldTitle, "_alpha", mx.transitions.easing.None.easeNone, 100, 0, 20, false);
var xPosOutTween:Tween = new Tween(oldTitle, "_x", Regular.easeOut, 16, 26, 20, false);
trace("fading old title out");
}
xPosOutTween.onMotionFinished = function() {
var fadeInTween:Tween = new Tween(target, "_alpha", mx.transitions.easing.None.easeNone, 0, 100, 20, false);
var xPosInTween:Tween = new Tween(target, "_x", Regular.easeOut, 6, 16, 20, false);
trace("fading new title in");
};
}

navAbout.onRelease = function() {
fadeTitle(title2);
}

Thanks! I probably have this all wrong

E4X XML Targeting
Stay on target...

I have two issues that I can't wrap my brain around with E4X. First, I'm using Faust to transform my xhtml code into an xml variable that flash can read via swfobject. More info here: http://blog.space150.com/2007/1/11/f...ting-standards

I can read the XML no problem and even turn specific nodes into an XMLList, specifically the one below.


Code:
<div id="Menutitle">
<p class="MenuImage">
<img src="images/image1.png" />
</p>
<p class="title">TITLE</p>
<p class="subtitle">SUBTITLE</p>
<p class="description">Description</p>
</div>
What happens though is if the "subtitle" is empty, the node appears like


Code:
<p class="subtitle" />
1 - How can I target the above node if there is no content between that tag? Or any empty node?

2 - How can I target just the attribute "subtitle" in that xmllist, therefore seeing if it exists or not?

thanks for any help!

Targeting
Hello !
Another problem yet,
I have one MC (mc1) which loads another one (mc2). In mc2 i have buttons that has to load mc3 in Mc1 so here's the code for the button :

ActionScript Code:
on (release) {    _parent.bar.content.loadMovie(mc3.swf);}


bar is a mc into mc1 and content is the container.
It doesn't work, can someone tell me what is wrong with it?
I don't use _root because Mc1 is loaded into my main movie

Thanks
Ubik

Targeting
hi. i'm trying to lay out 7 text fields (which are nested inside movie clips). i'm pretty sure i've got it just about right, but....the text fields aren't appearing which makes me think i'm not targeting them right in the "Set Text Field Properties" area.

i was hoping someone might be able to fix my erratic thinking.

below is my code:


Code:
for(var i:Number=0; i < numCols; i++){
// Create the Movie Clips
var dayHeadings:MovieClip = _root.createEmptyMovieClip("dayHeadings"+i,101);

// Create a Text Field Inside Each Clip
dayHeadings.createTextField("dayHeaders"+i,100,0,0,indColWidth,colHeight);

// Set Text Field Properties
_root.dayHeadings["dayHeaders"+i].selectable = false;
_root.dayHeadings["dayHeaders"+i].autoSize = "left";
_root.dayHeadings["dayHeaders"+i].border = true;
_root.dayHeadings["dayHeaders"+i].text = headings[i];

// Define the Formatting
var format:TextFormat = new TextFormat();
dayHeadings._root["dayHeaders"+i].setTextFormat(format);

// Position this Clip
dayHeadings._x = indColWidth * i;
dayHeadings._y = startSecRowYPos;
dayHeadings._width = indColWidth;
dayHeadings._height = colHeight;
}
thanks. fumeng.

Targeting Mc
hi,

i have a stop/play button (which is inside a mc).

when you press "stop" i need to tell an attached mc on _root _level1 to "stop"

also a "container" mc called "container" on _root level 0 has to "stop" ("container" has various .swf movies loaded into it)

i am writing

on press
_root._container.stop()
_root._level1.stop()

but it is not working....am i missing something?

Targeting
Hey, just wonder if someone know a way around my problem. I'm building a hybrid site(that's flash menu and html body) and I'm trying to target a iframe from a button within the flash menu. The thing is I'm getting nowhere. Anytime the button is clicked, it opens a new blank window instead of opening the document in the iframe. Need help please.

Targeting An _MC
Last edited by jabbronies : 2003-09-03 at 12:32.
























I have 15 buttons on my screen. when I roll over one of them a sub menu pops, when I roll out it disappears. I'm trying to make it so that the only way for the sub menu to disappear is when the user rolls over another button.

this is the code I'm using on subnav button 1:


on (rollOver) {
for (i=1; i<15; i++) {
frm = eval("subNav"+i+"._currentframe");
if (frm == 9) {
trace("subNav"+i+"._name")
this.subNav1.gotoAndPlay("start");
}
}
}


My question is how can I isolate only the "subNav" that is on frame 9 so it can be reset back to frame 1.

Does that make sense?? :P

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