Getting Targets From Events
this is indeed strange. I solved it with a nasty workaround so i want to ask if anyone know why it is caused. Here goes:I made an Accordion menu that gets data from XML, using some AS2 code by Senocular. This is what i call at some point: ActionScript Code: menus.title.addEventListener(MouseEvent.CLICK, TitleButtonPress);function TitleButtonPress(e:MouseEvent):void{ var menu:MovieClip = e.currentTarget.parent; //trace(e.target+"---"+e.currentTarget+"---"+e.currentTarget.parent); //Output: TextField --- DynamicLabel(custom class) --- MovieClip if (menu.masker.height > titleHeight){ menu.addEventListener(Event.ENTER_FRAME, MenuClose) }else{ menu.addEventListener(Event.ENTER_FRAME, MenuOpen); }}function MenuClose(e:Event):void{ var menu:MovieClip = e.currentTarget; //trace(e.target+"---"+e.currentTarget+"---"+e.currentTarget.parent); //Output: MovieClip --- MovieClip --- MainTimeline menu.masker.height -= speed; if (menu.masker.height <= titleHeight){ menu.masker.height = titleHeight; menu.removeEventListener(Event.ENTER_FRAME, MenuClose); } PositionMenusBelow(menu.i);} as you ca see, the target of both events is the same "menu" MovieClip. However when i compile it i get this error: Code: 1118: Implicit coercion of a value with static type Object to a possibly unrelated type flash.display:MovieClip. if i change the first line or the second function to: ActionScript Code: var menu:MovieClip = e.currentTarget as MovieClip; then it works fine! But why doesn't it work in the first place?
ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 03-14-2008, 12:09 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Load Movies Into Targets That Load Lovies Into Targets
Hi,
I am designing a website for FM ROcks - a production ompany in Loas Angeles.
The home.swf file loads commercials.swf file into an empty movieclip called "main" on the main timeline of home.swf
I then want commercials.swf to load about.swf into the movieclip called "sections" on the main timeline of commercials.swf
It is saying that it can't find the file...
see for yourself:
http://www.projectorstudio.com/fmrocks/beta
click on commercials.
-m
Register Classes - Mc Events Vs Button Events
I'm experimenting with register classes today, and wasn't careful typing the code with only button events for my custom movie clip class.
First I wrote
Code:
CustomClass.prototype.onMouseDown = function(){
this.gotoAndStop("blue");
}// end onMouseDown
Then all the mc-buttons in my movie went to the blue state. (.fla provided)
When I realised the error, I corrected it, and now it works.
I just don't understand what happened.
Do Movie Clip events turn out to be class methods (don't know what to call it in Java script, only used to Java), while button events stay instance events??
Hope somebody have the time - it's not about life and death, but it would be really nice to know how these things work.
Respond To Mouse Events Inside A Movieclip That Has Mouse Events...
I have a main MC that has a couple of mouse events associated with it (onPress mainly). There are also MC's inside this main MC that have Mouse events associated to them (onPress, onMouseMove, onRelease). The child MCs don't seem to get the mouse events (which makes sense, the parent is taking over the event)...how can I make this work? I don't want to have to delete and recreate the event handlers like 900 times as its not efficient...there has to be a better way.
Can Events Trigger Other Events?
Hello brothers and sisters of the Nets most helpful community!
I am going insane in the membrane trying to get my custom cursor to work in my scene. I have successfully completed many tutorials about how to do this in AS3 (the danielmclaren.net solution was particularly helpful) and have scoured this forum a bit for info, and (gasp) also read through a bunch of stuff on live docs. But, alas, I cannot understand why I cannot get the custom mouse (cursor) to work in my file. It works like a charm until I try hammering it into my scene.
I believe that the problem has something to do with with too many events being fired off at the same time and (possibly) my not removing them at opportune times. Or, maybe my coding style is not so elegant? Anyway, the FLA (with easy-to-read structure and commenting) can be downloaded here since I am not certain which part of my code is causing the custom cursor not to work. With all the comments, it should not be too difficult (I hope) to see what it is I am trying to do.
Any feedback would, as always, be most appreciated.
Download_FLA
Regards,
-john
Tell Targets, I Think Please Help
Hi,
I am a relative newbie to actionscipt. I have created a site that has an image in the middle as the focal point. When a button is pressed i want the image then to be wiped off using an effect i have created. Then i want the correct image corresponding to the button pressed to appear once the 'shutters' open.
Any suggestions as the best way to accomplish this or directions to tuorials would be much appreciated
Tony
My 1st Tell Targets...Help
Please help! I'm trying to make a button with rollover and rollout MCs. I've tried the tutorials and it doesn't work in Flash 5. I can't figure this out! Here is my fla...please fix my action script inside by button clip from the link below. Thanks, this way I can see what the settings are for this...
http://www.hyattart.com/flash/navmenu-test.fla
Targets..........PLZ PPL
I've got an HTML file divided to 2 frames:
topFrame : a flash menu that I've created
mainFrame : an html page that have in it an <IFRAME>
<IFRAME>'s name : main ,here comes all the content.
Now, when I specify the target in GetURL() what should it be?
I tried something like: _parent.mainFrame.main
but it doesn't work!!!
please help, it's kinda urgent...
thanx
Kugy
Targets..........PLZ PPL
I've made ab HTML page with 2 frames named:
topFrame : Where is a flash menu
mainFrame : Where is an <IFRAME> called main and that's where I want the content to be
I attached a getURL action to a button with a target like this:
_parent.mainFrame.main but It doen't work!
please help!
It's kinda urgent
Kugy
Tell Targets
Hi,
Could somebody describe the logical process of tell targets to me.
Have been through the literature and cannot seem to make sense of it.
The closest I have come is with a tutorial on this page:
http://www.flashkit.com/tutorials/In...20/index.shtml and I will use this in my example.
I am really trying to find out why, on page 2, you leave frame 1 empty and also, more crucially, what is the link between naming the instance 'over', 'buttonover' and what is its connection with the 'telltarget("buttonover")' lines on page 4 of the tutorial.
Sorry, but I am getting old!
Best regards
David Jacobs
Targets
I can't get the whole target thing to work. When I try to enter any sort of movie clip anywhere, it doesn't acknowledge that there are clips in its little table. This means that it doesn't acknowledge clips at all. Please explain how I can tell a movie clip named "test" to goto frame 6. Also, how to tell "test" to have alpha 50%. (With setProperty) Thanks.
Mr. Guru
::Better Way Of Tell Targets?::
When i create a button in a mc with a tell target option i have to put the movie i want to load in that same mc. is there a better way to do this. or to get around it? thanks
n.
Tell Targets To Tell Targets
I have a MC in my flash, and with in it is a button. Now, how can that tell a movie clip on main flash timeline, to do something??
I have tried...
tellTarget ("_level0") {
tellTarget ("MUSIC") {
gotoAndPlay ("MUSICOFF");
But that don't work, how do you do it??
Pop Up Targets
this may not be as clear as it could be.
i'm not a very good scripter so help will be gratfully recieved
i want to roll over a link to reveal a contents movieclip etc.(i can get start drag to work with a invisible button) then on press i want to open a new window and launch the site.
simple enough but the pop up window code is in a smart clip which will not allow me to target the individual rollover movies.
i need both functions to work. any ideas
rat
Targets ?
On the main movie timeline I have created a button with a script to change the alpha property of a movie clip called purple which is also on the main timeline. I have tried several scripts and tried to understand what’s written in books etc but so far nothing has worked. What am I doing wrong. I wonder if I understand targetting properly.
The last script I tried was
on (release) {
_root.purple._alpha = 35;
}
Tell Targets
I have a series of buttons on my main timeline. Each button targets a different movie clip on the main timeline. The movie clips are all in the same place, meaning they will overlap each time another button is hit. What actions do I apply in order for only one unique movie clip to pop up when a different button is pressed? In other words, how can I stop playing a movie clip once a new button is pressed? This is something easy, I'm sure, but its driving me nuts!!
<Flash 5>
More Tell Targets
I am trying to use a button to activate a movie using tell target but when I click the button, it says "Target not found: Target="/HCSinglePlayerMenuB" Base="_level0""
How do I make it so that it will recognize the target? Currently the movie clip I would like the button to go to is in my library.
OR is there a way for me to not have to use tell target?
(Using Flash MX, but it needs to be exported into Flash 3)
Targets
I have 2 swf videos in 1 page. Can't join them all up as its in a U shape and i got an I frame to form a square. And i can't use iFrames in flash.
Well the point is, the bottom flash file is a navigation and the right side is sort of a display page. How do i make it that when i click a button in flash file 1 (bottom navigation) it will change the frame or scene in flash file 2 (display page) to load a new frame or new scene? And how do i make it so that when i click on a text in the iframe it will have the same effect to flash file 2? I need to know BOTH so anyone who knows how to do it please tell me how
Can I Tell 2 Targets At Once?
can i refer to 2 targets in one tellTarget command, to be more efficient in my code? if so, will it run both simultaneously or one after the other?
thanks in advance...
...kp
Tell Targets?
i have a cursor trail movie i made but i dont know how to tell target something in the code. where do i find Begin Tell Target and End Tell Target, all i could find was tell Target? if i a button within a movie, so that when the user clicks it should play the movie but where do i put it in my .fla file? right now i have it on the down state of my button, but it only plays if i click and hold down the mouse instead of just clicking and releasing.
also on a side question, how do i get it so that when i click the movie plays where i clicked instead of the movie just following wherever my cursor goes?
if anyone can answer any of these questions id be much abliged!
Web Log & Targets
I have a issue, my previous site used levels but now i am using targets. Everything else works fine accept for my web log. Basicaly what i have is a MC on root, and i have a child that loads into that. RandVar = random
ActionScript Code:
(100000000000);
theXML = new XML();
theXML.ignoreWhite = true;
theXML_firstChildXML = new XML();
theXML_secondChildXML = new XML();
theXML_thirdChildXML = new XML();
_parent.iItemParent.iItem._visible = 0;
theXML.onLoad = function () {
theXML = this;
Path = "_level2.iBlog.iItemParent";
trace("theXMLpath=" add this._target);
buttonOffset = 100;
_level0.levelTracker = 1000;
_level2.stripWhitespaceDoublePass2(theXML);//trace (theXML);
theArr = new Array();
theArr = theXML.childNodes;
theArr_firstChild = new Array();
theArr_secondChild = new Array();
theArr_thirdChild = new Array();
//trace ("theArr:" add theArr);
for (i=0; i<theArr.length; i++) {
theArr_firstChild = theArr[i].childnodes;
//trace ("theArr_firstChild:" add theArr_firstChild);trace ("");
// Reset y-offset to zero for new second-level menu
itemOffset = 0;
itemName = null;
for (ii=0; ii<theArr_firstChild.length; ii++) {
nodename = theArr_firstChild[ii].nodename;
nodevalue = theArr_firstChild[ii].firstchild.nodevalue;
nodetitle = theArr_firstChild[ii].attributes.title;
nodedescription = theArr_firstChild[ii].attributes.description;
//( nodeactiontype != "loadmenu" ) ? nodeaction = theArr_firstChild[ii].attributes.action : nodeaction = "";
theArr_secondChild = theArr_firstChild[ii].childnodes;
//trace ("secondChild=" add theArr_secondChild);
trace (">> nodename=" add nodename add " : nodetitle=" add nodetitle add " : nodeactiontype=" add nodeactiontype);
if ( nodename == "item" ) {
// Create Expanded Item List
(itemName != null) ? higherItem = itemName: higherItem = "";
itemName = "iItem_" add _level0.levelTracker;
duplicateMovieClip (Path add ".iItem", itemName, _level0.levelTracker);
set (Path add "." add itemName add ".higherItem",higherItem);
trace ("Path=" add Path add "." add itemName);
trace ("higherItem=" add higherItem);
_level0.levelTracker++; //trace (_level0.levelTracker);
// Position Expanded Item List
trace("ITEMOFFSET = " add itemOffset add " : ITEMNAME=" add itemName add " : actualoffset=" add _level0.iMoluv.iItemParent.iItem_1000._y);
setProperty(Path add "." add itemName,_y,itemOffset);
itemOffset = itemOffset + buttonOffset;
for (iii=0; iii<theArr_secondChild.length; iii++) {
nodename2 = theArr_secondChild[iii].nodename;
nodetitle2 = theArr_secondChild[iii].attributes.title;
nodevalue2 = theArr_secondChild[iii].firstchild.nodevalue;
nodedescription2 = theArr_secondChild[iii].attributes.description;
//( nodeactiontype2 != "loadmenu" ) ? nodeaction2 = theArr_firstChild[ii].attributes.action : nodeaction2 = "";
trace (">> nodename2=" add nodename2 add " : nodetitle2=" add nodetitle2 add " : nodedescription2=" add nodedescription2 add " : nodevalue2=" add nodevalue2);
// Put action info and data into Items
( nodename2.toLowerCase() == "title" ) ? set (Path add "." add itemName add ".tTitle", nodevalue2):trace("this is false") ;
( nodename2.toLowerCase() == "dc:creator" ) ? set (Path add "." add itemName add ".tAuthor", nodevalue2):false ;
( nodename2.toLowerCase() == "dc:date" ) ? set (Path add "." add itemName add ".tTimeStamp", nodevalue2):false ;
( nodename2.toLowerCase() == "description" ) ? set (Path add "." add itemName add ".tDescription", nodevalue2):false ;
( nodename2.toLowerCase() == "description" ) ? set (Path add "." add itemName add ".tDescription2", nodevalue2):false ;
}
} // end if statement
}
}
};
theXML.load("http://www.otradesign.com/blogXML.cfm?" add RandVar);
can any one modify the code here to work in targets?
Targets
I have a question:
is it possible to call 2 targets at the same time, with different mouse behaviours?
for ex:
on (press) {
tellTarget ("nfi100") {
gotoAndStop(2);
}
}
on (release) {
tellTarget ("bd") {
gotoAndPlay(1);
}
}
thx
Targets
Hello
I am making a semi flash site and i am using a flash header with buttons to navigate round to site.
I have also used an iframe where the pages are loaded.
the iframe id is: iframe
on each button i has used the command getURL to navigate the pages.
This is what i used:
Code:
on (release) {
getURL("homepage.html", "iframe");
}
However, the target doesn't work, instead of the pages loading in the iframe they load in a blank window.
I have tried: _iframe and iframe as the target.
Also the defualt for the page is the iframe but it still loads in a new window
The site i am on about
Stealth
Targets
Hello
I am making a semi flash site and i am using a flash header with buttons to navigate round to site.
I have also used an iframe where the pages are loaded.
the iframe id is: iframe
on each button i has used the command getURL to navigate the pages.
This is what i used:
Code:
on (release) {
getURL("homepage.html", "iframe");
}
However, the target doesn't work, instead of the pages loading in the iframe they load in a blank window.
I have tried: _iframe and iframe as the target.
Also the defualt for the page is the iframe but it still loads in a new window
The site i am on about
Stealth
XML Href Targets
Hello, I am importing a .xml which basically just displays text with a hyperlink, can any of you tell me what syntax I use to specify targets like _top or a frame name.
I have this sort os syntax so far...
"<a href="+ link +">"
Im guessing the target reference goe's in that bit somewhere.
Thanks
David
Multiple Targets
is it possible to have multiple targets in the same set property script?
Scene Targets?
Hi guys
I've got multiple scenes. And the movie size is 700x3000px
I wanna connect scenes with buttons at the bottom each scene.
But I want to go to the top of the page in the scene -of course.
Can anyone help please.
Tell Targets Not Working Together
Here is my main script:
function ship1MineSelfExplode () {
if (_root.ship.hitTest(mineDrop)) {
tellTarget ("_root.mineDrop") {
gotoAndPlay("explode");
}
tellTarget ("_root.ship") {
gotoAndPlay("boom");
}
_root.player2++;
}
in the ship script, after "boom" I have this:
tellTarget (_root) {
gotoAndStop ("Scene 1", "levelchoose");
}
OK. Now in the Mine script I have this:
stop ();
tellTarget (_root) {
minedropped = false;
}
removeMovieClip (_root.mineDrop);
What happens is when the ship hits the mine, the ship explodes and the mine explodes. After a certain point, the script should send you back
to the level choose frame label. If only one tell target is used in the script, it works. if they are together, as they are in the script above, they
both blow up, but won't go back to the levelchoose frame. Any clue why? Thanks,
Andy
P.S. The mine script is set so if after a certain amount of time the ship doesn't hit the mine, it explodes itself, allowing you to drop another
mine.
Two Tell Targets Together Not Working
This is a part of my script:
function ship1MineSelfExplode () {
if (_root.ship.hitTest(mineDrop)) {
tellTarget (_root.ship) {
gotoAndPlay ("boom");
}
tellTarget (_root.mineDrop) {
gotoAndPlay ("explode");
}
}
_root.player2++;
}
What happens is if a ship hits a mine, it explodes. The problem is, when both tell targets are used, they go to the first frame of the mc that they are suppossed to, then stop.
I have tried not using tell target, placing them in different functions that are called at the same time, etc... If I take one tell target out (it doesn't matter which one) it will work. Any clue why? Thanks.
Assigning Targets But...HELP
ok so i have 2 movie clips...one of the movies clips contains a graphic which contains a button inside of it...i want that button to control the other movie clip (the one that it is not inside of) it is named "pictures"...so i added this code to the button:
on (release) {
tellTarget ("pictures") {
gotoAndStop (2);
}
}
so i run the movie in the flash preview and click on the button and a little window comes up telling me this:
Target not found: Target="pictures" Base="_level0.instance20"
...am i doing something wrong...please help me out, i've been trying to figure this out for hours...
thanks,
james
Multiple Targets
Hi there,
I have alot of targets called a,b,c....
I would like to apply a SetProperty to those targets:
setProperty ("a;b;c", _rotation, 90);
What is correct code to have multiple targets in one setProperty?
"a;b;c" dosen't work in my example above, and I can't find the right syntax.
Thank you for any help,
Francois.
Targets/Bookmarks
I have Flash 4 and I was wondering if anybody knew how to link to a target/bookmark with a button. I used the normal #[name] for the target, but it doesn't work. Does anybody know if and how I can do this? Quick help would be much appreciated. Thanks.
Tell Targets & If Statements
Ok...it's never taken this long to receive some good advice. So, I thought I'd try again.
Is there a way to check if a Movie Clip is open in the main scene and then if it is opened, close it by telling it to go to a certain frame and closing with an animation?
I've got 5 Movie Clips with 5 respective buttons. When one of the buttons is clicked, it needs to check if there are any movies open. If so, close with an animation and then open the Movie Clip of the button that was clicked?
I've been trying to use "If" statements, but nothing seems to be coming from it.
Many Thanks!
Drag And Targets
guys i am really new to this whole flash thing. i saw a tutorial on dragging a cerain symbol to drawn target and getting it to go to another frame once it is on the target. but no matter how i do it, when it is running, it doesnt go to that frame.
thax alot
Print Targets
I am trying to print a map. The map is in a movie called map.swf. In the movie there is a movie clip called map2. The movieclip map2 is the map I want to print. The button to print map2 is on the main timeline of map.swf. The movie map.swf is loaded into level 2 of another movie oneworld.swf.
How do I script to print map2. So Far I have only got no reaction or the printer starts to print off the whole of the oneworld.swf movie.
Dynamic Targets
I'm trying to do a loadVariablesNum where I unput a target name and then do a loadMovie function where the target name opens up the jpg here's what I have Frame 1 Button Load:
on (release) {
fscommand ("exec","file.exe");
}
that finds the file name and saves it to img.dat... next button go!:
on (release) {
gotoAndPlay(2);
}
and the frame has the action: stop();
Now Frame 2: frame actions:
loadVariablesNum("/fscommand/img.dat", 0);
loadMovie(imgText, imgMov);
stop();
where img.dat says something like:
imgText=C:\WINDOWS\Desktop\webcam1\arm.jpg
and imgText is a dynamic text field and imgMov is a blank movie clip, can anyone help?
Relative Targets
Hi people
okay Im in the process of contructing a simple text scroller now Im having a little difficulty using the setProperty command
heres my code for the actions of sidescroll (which is a button converted to an MC):
onClipEvent (enterFrame) {
if (dragging) {
setProperty ("_root.scroller.words", _y, (-(_root.scroller.sidescroll._y)*((_root.scroller.wo rds._height-80)/100)));
call ("");
}
}
and heres the structure of the movie
Main time line
|
scroller(MC)
|
words(MC), sidescroll(MC)
This code works fine but Im trying without success to modify the above setProperty command so that the targets are relative so instead of "_root.scroller.words" it would be maybe "../words" and instead of _root.scroller.sidescroll._y simply _y or ../sidescroll._y
okay Ill leave it with you and hope it makes enough sense
thanks !
Targets In Flash?
how do i make a link go to a target (lets say the target is an iframe named _blank) plz help me, thx
What Are Targets And Expressions?
trying to load an external swf, but it goes where it wants to in the movie. i'm using setproperty, but it has no effect, does expression, or target have anything to do with it? I have no idea what those mean
How To Have Multiple Targets
i want to change the color of multiple movie clips all in one big whoop.so here's what i have:
------------code:
gray = new Color(_root["mc1"],root["mc2"].....);
gray.setRBG(0x7D8287);
------------
but it's not working any suggestions?
thanks
Loadmovie Targets
Ok, here's my setup. I have Main.swf which is basically a blank swf with a loadmovie action on the very first frame:
loadMovieNum ("Layout.swf", 1);
I am loading Layout.swf into level 1, because in Layout.swf I have buttons that when clicked I want to open something (say a guestbook) underneath the border and layout of the Layout.swf.(so i want the guestbook to appear underneath my main layout in my main movie)
How do I code my LoadMovieNum so that when the Guestbook button in Layout.swf is released it loads Guestbook.swf into level 0 of Main.swf? Is this possible? I am new to the loadmovie action and i am still trying to get the hang of it... Any help would be appreciated.
Multiple Targets?
can a button have multiple targets?
if not than how can i make it so my button still has an animation on it and also tell a MC to go to a certain frame?
Levels Vs Targets
can anyone help a beginner understand the difference between levels and targets. I'm learning how to load and unload movies from my site and wanted to know any great resources on how to do this. Here is a site that I really like viewing and do not know how its produced.. any advice?
http://www.rui-camilo.de/main.html
Controlling Targets
Hello, I was wondering if anyone might help me with a little actionscript problem?
What I'm trying to do:
I have a back ground (template) containing user controlls
>back
>forward
>play
>stop
Then I'm loading an external movie containing (5 to 10) scenes
onto a target area.
loadMovie("template_1.swf", "_root.mtarget");
I'm trying to controll my external movie using the buttons on my template
The play and stop buttons are working fine using this code:
on (press) {
_root.mtarget.play(); // or stop //
Now my problem is getting the "back" and "forward" buttons to
jump to NEXT SCENE or PrevScene
I've tried:
on (press) {
_root.mtarget.nextScene();
}
If anyone has any Ideas they will be apreciated.
Thanks
SPR
Loading Into Targets
I'm trying to load different background images into a target named BGFrame. For some reason, it seems to be loading into level 0 instead of the target. Here's my code:
Code:
on (release) {
_root.loadMovie("BG1.swf", "BGFRrame");
}
Having Trouble With Targets
I am trying to program starting and stoping of some sound narrations from music clips. For some reason I can not stop the sound on different music clips
Here is my code and explanition
Movie Scene Links----> Calls Text All Movie Clip---> Calls Bio Movie Clip. Within Movie Clip Bio Code stops PESound and starts BioSound
PE.Stop("PESound");
Bio = new sound(Bio);
Bio.attachsound("BioSound");
Bio.Start();
The main timeline is stopped waiting for the user to click a button to take them to another movie clip. The user clicks a button that calls another movie clip(Lets call it ProExperience). Within this clip the following code takes place.
Bio.Stop("BioSound");
PE = new sound(ProExperience);
PE.attachsound("PESound");
PE.Start();
The problem is I can not stop the sound from either of the movie clips. I suspect it is related to targeting. I have tried an absolute path and relative path. I guess I just do not understand targeting to get the proper path can someone respond.
Thx
Multiple Tell Targets?
Can I have multiple telltargets? I want 5 different movie instances to goto 1 and stop.....do I have to make 5 different telltarget commands or can I do them all in one? Seperated by commas or something?
This is how it looks now (buttton action, release):
}
on (release) {
tellTarget ("_root.comp") {
gotoAndStop(1);
}
}
on (release) {
tellTarget ("_root.solu") {
gotoAndStop(1);
}
}
on (release) {
tellTarget ("_root.case") {
gotoAndStop(1);
}
}
on (release) {
tellTarget ("_root.contact") {
gotoAndStop(1);
}
}
Thanks,
Mik
Button Targets?
Ok here is basically what im trying to do. I am creating a portfolio site kinda like whoswe has (with the scrollable buttons that hold each project).
Anyways, I created a scrollpane to scroll the buttons. Because I have to use a symbol holding all my buttons for the scrollpane, how would I go about coding the buttons to gotoandstop at a certain frame in the main scene (called Scene1)?
I tried this but it did not work at all.
on (release) {
gotoAndStop("Scene1", 131);
}
Any suggestions would be very helpful. Thanks.
I Just Can't Get My Head Around Targets
Hi,
I am trying to make a button load a MC into the place of an existing MC, i.e. I have an MC on my timeline called music, with the instance name "musictarget" and on the click of a button I want to load another MC, nomusic from the library into it's place. All this is within another MC, not the main timeline. I also want to be able to load the original "music" MC back in again with the click of another button.
I'm assuming that I have to use a target, but I just can't get my head around the whole thing. I'm really bad with ActionScript, I don't have a clue what I'm doing, so as much help as possible would be greatly appreciated.
Thanks a lot...
|