Point'n'click Navigation Not Working Right...
I have a problem with my point'n'click navigation setup. After adding speed formulas, my object doesn't move down any more...
I am using Flash MX (educational version).
Could anyone help me find out what the problem is?
FlashKit > Flash Help > Flash ActionScript
Posted on: 11-18-2004, 10:18 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Point And Click
Hi!
I was wondering, instead of using a drag and drop interface, how do you make an interface where you click, and the object moves to that spot? This was done in the site, dubit(http://www.dubit.co.uk/), where you simply clicked anywhere on the screen, and the character moved there.
Cheers,
Willy
Point Click Help
Here is my moving code for my game I'm working on
onClipEvent (load) {
clickSpot_x = _x;
clickSpot_y = _y;
speed = 5;
clickMode = true;
}
onClipEvent (mouseDown) {
// set position of target spot when mouse is clicked
if (clickMode && _root._xmouse>1 && _root._xmouse<550) {
clickSpot_x = _root._xmouse;
clickSpot_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (clickMode) {
gotoSpotX = clickSpot_x;
gotoSpotY = clickSpot_y;
}
// calculate angle of current position to target position
delta_x = _x-gotoSpotX;
delta_y = _y-gotoSpotY;
targetRotation = -Math.atan2(delta_x, delta_y)/(Math.PI/180);
// calculate the two methods of rotation
if (turnMode) {
if (_rotation<targetRotation) {
_rotation += 10;
}
if (_rotation>targetRotation) {
_rotation -= 10;
}
} else {
_rotation = targetRotation;
}
}
onClipEvent (enterFrame) {
if (_root.walk==false) {
} else {
if (Math.sqrt((delta_x*delta_x)+(delta_y*delta_y))>sp eed) {
_y -= speed*Math.cos(_rotation*(Math.PI/180));
_x += speed*Math.sin(_rotation*(Math.PI/180));
}
}
}
What I want to is completely get rid of all the rotation stuff and make it so if the charactder is moving in a certain direction it does a goto and play to a frame for example if he's walking down, one of him facing forward walking, right = right walking and then when he's not moving go to another frame of him standing in the direction he stoped in. I've tried everything I could think of and it always gives me weird results, can somebody help me?
Point And Click.......
Hi
I was wondering.Howwould you do somthing like this. click anywhere on the screen and the guy well walk there.thanks
Point And Click
Can somebody please send me a link to a tutorial on how to make point and click games?
Point And Click
Hi there.
well ive looked for tutorials on games like this but havnt found ne at all.
What im wondering how to do is make a classic point and click adventure game with a story line of course, inventory, and when the use clicks the mouse around the screen the character i have animated plays their walking aniamtion and walks to the mouse clicked position not just appears their.
well ne help on how to make games like that would be great thanks in advanced
[F8] Point To Navigation
Hi, sorry, I know this probably has been asked already but I don't really know what to search for.
How would I make a navigation bar that has an arrow that points to the page that its on, and when another navigation button is pressed, the arrow slides to point at that navigation item? If anyone could point me to a tutorial or simple code that'd be great. Thanks.
Point & Click Adventure
Hi, Im making a point & click game similar to Space Quest or Monkey Island, which brings me to my question. Is there a tutorial or anything on how to click and make a movie clip move to that location, adding of course collision detection to walls, etc.
Any help would be appreciated.
Thanks again
Point & Click Game
Hi all,
Before I begin, I must stress I have read the other 2 posts in the Flash Kit forums re this subject (if there are are others, i've missed them ).
Now, this is probably far to complex a project for me right now, but hell, why not just jump right in to the deep end :P I'm also quite stoked with the story I've written for this, but that part is secret right now :P Graphics, i'll be doing myself, backgrounds as per-rendered 3d images, perhaps some animated cutscenes, items as 3d pre-rendered objects.
All i'm really after is perhaps if someone could provide the key points i'll need to bear in mind.
I'll probably be keeping the game 1st person, no main character visible for ease. I'm assuming for an inventory, I could begin with an array with all the items already in, but each item has a value of 0. Once the player clicks on the item, the value can be adjusted to 1. For itmes that can be combined, perhaps have three items as follows; item A, item B and item A&B. Initially they are all set at 0, then when both items separate items are 'used' together (this will require more thought :P ) then item A&B will be assigned the value 1 and the separate items' values reverted to 0.
Anyway, to sum it all up, can someone point me to any resources that will come in useful and to give me some idea of how I should be structuring this.
I look forward to hearing from you all.
Thanks for reading.
Help With A Point And Click Adventure
I'm trying to make a point and click adventure. I've gotten some script to work that allows a movie clip to move to an area that the user clicks, but I cant get it to animate properly. I want something like this: if x increases then character go to and play frame 2. If x decreases then character gotoandplay 2, xscale = -100. Same deal for a change in the y axis, but I would try to map it so that it would shrink according to the distance. Any ideas?
Inventory Point And Click
Hi
I'm in the midst of writing a point and click game and i'm trying to get my head round how I will make my inventory. I understand that I need to store the objects into an array but I'm struggling a bit. Does anyone know how I would do this using Actionscript 3.0. BTW I'm not using frames in my game I'm doing it in seperate classes (loads of different .as files)
Cheers
Prooster
Point And Click Movement
I've experimened a bit, but I cant find a way to get smooth movement from a players current location to a clicked location. Help please!
(Also, is there a way for the script to check if there is an obstical in its way, and if so, disallow movement?)
Cue Point Navigation Buttons
Hi there
I am trying to navigate through an flv with butons,
I have 1 flv with 2 cuepoints cp1, cp2, I have 1 button b1,
i want the flv to play from the start and play through cp1 and then when it hits cp2 i want it to go back and play from cp1 basiclly a loop between the two cuepoints.
i then want o be able to hit my button b1, and when this has been hit i want the flv to play from cp2 and on complete goto timeline frame 2 andStop
Please can anybody help me as I have spent litterally weeks tring to find the answer.
Cheers
FLVPlayback And Using A Cue Point For URL Navigation
I'm using FLVPLayback, and I need to use a CUE point to trigger a new URL for the browser to advance to. However, I can't figure it out in AS3 - and the AS2 lines I was using generate some kind of security problem - does anyone have a snippet for this? it seems as though it would be a common thing, but I can't find a tutorial that will sink it into my grey matter.
Much thanks!
Point And Click Adventure Game
I'm trying to develop my own point and click adventure game like the Lucasarts Monkey Island games (gameplay would mostly resemble the third one).
Does anybody know of a good tutorial on how to make one? I myself do know how to actionscript but the current engine I made is so riddled with bugs that it would be easier to just start from scratch.
Point And Click Email Wish List
hi
could you help me?
i would like to create a simple point and click wish list which would go something like this:
user clicks on an object/graphic/mc (button or invisible button) and that object is added to a list which can be then emailed to the owner of the site.
would you have a tutorial with this kind of possibility or script to share to make this possible?
thanks!
leelaa
[MX04] Point And Click Wish List
hi
could you help me?
i would like to create a simple point and click wish list which would go something like this:
user clicks on an object/graphic/mc (button or invisible button) and that object is added to a list which can be then emailed to the owner of the site.
would you have a tutorial with this kind of possibility or script to share to make this possible?
thanks!
leelaa
Point And Click Inventory System
OK i am half way through an elaborate point and click game i am making and i am using variables for my items and i was wondering if anyone know how i can make an inventory system around that?
Maybe like that when i click the the inventory button it checks for my variables like :
if(key eq 1){
//show the image of it
} else {
//dont show the image
Can't Find A Point And Click Game Tutorial
Hey i'm really interested in making a room escape game but i can't find a tutorial anywhere. I have very basic flash experience but i think if i could find a good tutorial i could manage pretty well.
Can anybody point me in the direction of a tutorial like this?
Flash Based 'point And Click' Games?
Hi folks,
I want to develop a 'point and click' style game in flash, using actionscript 1.0 (if possible) I no of various game engines that would do this but I want the portability of Flash, I have searched the forums but cannot seem to find anything that will help, can somebody point be into the right direction?
Thanks,
Making An Inventory For A Point And Click Game
Hi there, im working on a point and click game in flash 8 and im having a hard time getting my head around how i might get my inventory working.
Basiclly, what im trying to achieve is -
you see an object on the stage, and you click it, a message comes up 'you have collected <item>' and the item is added to you inventory. your inventory is a box you can bring up with a little icon for each item youre holding which you can then click and use the item and blah blah blah, thats not the hard part.
So whats difficult is this inventory, how can i load movie clips into a certain place from seemingly no where, because what you click on screen isnt exactly whats going to appear in inventory. And how will i make it so the item loads into the next availiable on screen slot?
Its alot to get my head around, any thoughts, suggestions or examples would be HUGELY appriciated
[AS2] How To Make A Walk Around In Point And Click Style
Hi everyone. I'm making a game and almost everything is done, but I still need to know how I can make a point-and-click style walk around in Flash by mouse... That's the only thing left, like this: you click a place somewhere in the ground, the character begins its walking animation and when it arrives the place you clicked, it stops and the walking animation is stopped too, coming to an idle animation where the character is sttoped. Please, if anyone knows, please tell me.
Thank you since now
Creating A Menu/navigation Point For A Website
hey! well, i am somewhat new to flash, and macromedia products. i am currently attempting to use flash, dreamweaver, and fireworks/photoshop to build a website. i am trying to make a flash toolbar/menu/navigation point opr whatever like the one shown here. But unfortunatley i am not sure where to even begin. I want it to absically look just like that and operate that way but be different colors, to match my site. anyway, i ahd the idea and started looking for sites that might have had it and i found that one. so thast what i want to make, would someone be able to tell me how or point me to somewhere where i may be able to learn to do this? i have tried the tutorials but havnt found one yet that shows me how... also, this isnt really related to flash, but when i amke a site, like the site above, i am trying to make it so that when you click on different links the url in the address bar doesnt change. how do you do that?
thats just a side thing, the most important question is the flash one, so can someone help me out?
thanks for your time.
mach
Allow User To Insert Standard Image At Click Point
I am looking to allow a user to dynamically insert a ballon image with a number inside at a click point. I am fairly new to flash but do have a understanding of most techniques. If someone could give me some pointers on accomplishing this it would be greatly appreciated.
Thanks,
Sean Marchiafava
Moving An MC To A Specific Stage X,Y Point By The Click Of A Button
Hi there
Does anyone know how to move an MC to a specific point on on the stage?
For example I have a draggable MC sat on a stage (760 by 540)
what I want to happen is when a button is clicked the dragable MC moves automatically (by sliding - not jumping - just so that it is smoother) to say stage value: X:150, Y:200
BTW - MC is called box (not that it makes much difference)
Please note that it is important that the MC slides to the new point, rather than just reappearing at the specified XY location
Cheers dudes
Breaker
Allow User To Insert Standard Image At Click Point
I am looking to allow a user to dynamically insert a ballon image with a number inside at a click point. I am fairly new to flash but do have a understanding of most techniques. If someone could give me some pointers on accomplishing this it would be greatly appreciated.
Thanks,
Sean Marchiafava
Allow User To Dynamically Insert Standard Image At Click Point
I am looking to allow a user to dynamically insert a ballon image with a number inside at a click point. I am fairly new to flash but do have a understanding of most techniques. If someone could give me some pointers on accomplishing this it would be greatly appreciated.
Thanks
Click And Draggable Navigation Bar
I would like to know how to make a click and draggable navigational bar that I could insert into a flash movie, sort of like the one that is used in Windows Media Player. It should progress normally when not clicked on, but as soon as the user clicks and drags the bar, it should move the movie ahead to the corresponding frame. Any help would be VERY apprecciated. Thank you!
Click-scrolling Navigation
Hello all!
I have searched the Kirupa.com tutorials and cannot seem to find a close-enough solution to the navigation that I'm trying to make.
It can be seen at Fifaworldcoup.com on the home page where it says "QUALIFIED TEAMS".
For those who might've gone to this page before, the same navigation was there but was only scrolling over one square at a time. this one is doing a bunch at a time. does anyone know how to do this, or, point me in the direction of a solid tutorial?
thank you.
Decimal Point Display Not Working.. Why Why?
i am using flash5.
why is it that in debug mode or test mode the decimal points are displayed correctly but in the swf file displayed values do not have the decimal values.
what i am trying to do..
flash file has a draggable slider where the _x value is used to calculate a value which is display on screen using
e.g.
if (int(slider._x+0)>100) {
_root[_name+"slider"] = 30.0;
} else {
bmix = (Math.round((slider._x*10)+1000, 4)/10)+30.0;
_root[_name + "slider"] = (Math.round((slider._x*100)+10000, 5)/100)+30.0;
_root["bmi"] = (bmix/(_root["yslider"]*_root["yslider"]))
}
where _name+"slider" is displayed on screen using a variable with this name.
On Click - Zoom / Floating Navigation
I absolutley love sites like this.... the movenent / layers
http://www.matthewmahon.com/
This is general, but hows it done? Tutorials, source file movies ... anyone?
ANY INFO WOULD BE GREATLY APPRECIATED!
TW
Right & Left Mouse Click Navigation
I am doing a cd rom presentation for a client and at the moment they can sroll through each section, going forwards or backwards with the left and right arrow keys on the keyboard.
They have come back and asked if they can navigate to the next pages by clicking on the mouse.
The going forward bit is easy but was wondering if it is possible to asign a backwards comand to the right mouse button?
Can anyone please let me know if this is possible and if so what the scripting would be?
Thanks
Dan
AS2 - AS - GotoAndPlay/navigation/referring Click/?
Last edited by Drioux : 2008-08-12 at 13:06.
Oye - okay, half this question is resolved by the realization that I was overthinking; I still have the question of how to detect which button was pushed and gotoAndPlay the corresponding Frame Label. Anybody?
LOL Jeez. Old age is really kicking in early for me. Time to start taking Gingo biloba.
---
Hopefully I'm posting this question to the right forum.
I have a very stripped down and simple Flash site I'm working on here:
http://client.driouxgalvan.com/paskingroup/
What I would like to do is figure out how to script this movie so that when you click around, the transition build plays out before moving on to the next screen. (An example of what I'm trying to do can be seen if you click "Available Properties")
I *think* probably what I want to do is have a script that tells the movie gotoAndPlay from Frame Label "Begin Build" to "End Build", and THEN when it hits "End Build", determine which of the three buttons was pressed in order to gotoAndPlay the corresponding frame label to the button. This site is so simple, I'm building it in the root timeline- that may or may not be kosher, I dunno- usually I hire AS programming out but this project didn't have the budget.
Maybe I'm doing this ass-backwards- my AS and overall movie-planning skills are a bit remedial- so if there's a better way to do this, I'm all ears.
Global Mouse Click Navigation Sound?
Is there a way to add some code to a flash movie so that whenever you click a link, or movieclip/button a sound is played, without adding an event to every movieclip/button in your movie?
Flash 5 - Scrolling Images On Navigation Click
i'm trying to figure out how to do this, so i'm sorry if i don't know quite what i'm talking about.
there's a way to make it so that when i click one of the links on the navigation, the images in the background will scroll to the image associated with that section. i imagine this may be actionscript, but i'm really not sure. can anyone help me?
this is for a website redesign i'm doing for a client, but i can't seem to figure this out. if someone can give me a hand, i'd really appreciate it.
thanks so much.
-- Chaosmuse
Wierd Double Click Issue With Navigation
Hello all,
I built navigation for my site to include subnavigation for each high level category. Everything works fine, except when you click on a subnav category twice, it loads the very next section.
Has anyone ever run into this? If so, how did you correct it.
Here is the AS I am using to display the subnav.
HTML Code:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse) == true) {
if (_currentframe == _totalframes) {
stop();
} else {
play();
}
} else {
if (_currentframe !== 1) {
prevFrame();
}
}
}
Thanks for the assistance!!
-J
.draw(MovieClip) Not Working With Centered Registration Point
Hey guys, kinda new to the forums but you've saved my asses before! So here's another el questidentia:
Code:
var mc1:MovieClip = this.attachMovie("libname", "libname", 0);
trace(mc1._width); //traces the width fine
var bmd:BitmapData = new BitmapData(mc1._width, mc1._height);
bmd.draw(mc1);
Now, my problem: mc1 has a centered registration point and I'm only getting the bottom right-hand quadrant of the movieclip drawn to bmd.
I've tried to fool around with the Rectangle in the .draw() method:
Code:
bmd.draw(mc1, new Matrix(), new ColorTransform(), "normal", new Rectangle(x, y, 250,250));
But this doesn't seem to work...it will only ever clip the Rectangle(0, 0, 250, 250) from mc1! It will move this rectangle of data from mc1 to (x, y) of bmd, and that's handy but not what I need...
I can fix this problem by moving all the content in mc1 into the bottom right quadrant, but this makes other problems with rotating mc1 (I would like it to stay centered).
I have found a bit of a workaround by putting the clip into a bottom right hand quadrant of an empty clip and drawing that:
Code:
var mc1:MovieClip = this.createEmptyMovieClip("name", 0);
var mc2:MovieClip = mc1.attachMovie("libname", "libname", 0);
mc2._x = mc2._width * 0.5;
mc2._y = mc2._height * 0.5;
var bmd:BitmapData = new BitmapData(mc1._width, mc1._height);
bmd.draw(mc1);
But this is still kind of ugly...*crosses fingers for a more elegant solution*
Solve the riddle and win a prize! (my profound thanks, and a gift certificate to dev/null)
My On (click) Is Not Working
This is the script I have inplace...
on (rollOver) {
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndPlay (1);
}
on (click) {
getURL("circ.html", "_self");
but I am getting on click code error that says...
**Error** Symbol=Nav, layer=Buttons, frame=1:Line 9: Invalid mouse event specified.
on (click) {
**Error** Symbol=Nav, layer=Buttons, frame=1:Line 10: Statement must appear within on handler
getURL("circ.html", "_self");
Total ActionScript Errors: 2 Reported Errors: 2
Help
-M
Please Help 1st Click AS Not Working Right
I am hoping someone call help me with this because I am running out of time.
If anyone wants the flash file to better understand this, just give me a email addy or AIM and I will send it your way.
I have a maintime line with only 2 frames right now.
Frame one is a animation of a person walking (Contains two MC, person tweened walking across the screen, and the actual steps of the person walking)
Frame 2 the person stops and a navigation appears. The navigation is its own MC that has the following code on it:
stop();
playMC.onRelease=function(){
if (isFaded == false) {
isFaded = true;
_root.person.gotoAndPlay("startFade"); _root.buttonsMC.gotoAndPlay("buttonMove");
_root.screen_mc.loadMovie("fade.swf");
this.enabled=false;}
else {
_root.screen_mc.loadMovie("fade3.swf");
}
};
here is my problem...point of this code is to have the animation do one thing if it is a first click, otherwise, do something else for all other clicks. First click it does what I want, but if I click this button again, it does nothing, if I click it one more time, than my background stays the same but my animation disappears. With the else statement, seems as though I need to enable this button, but when I put in this.enabled=true, it still doesn't work. So does anyone have a idea of what I am doing wrong?
Step two of the problem:
When I get that fixed, I need to add in the code for the other buttons that are there, so would I do something as follows?
stop();
playMC.onRelease=function(){
if (isFaded == false) {
isFaded = true;
_root.person.gotoAndPlay("startFade"); _root.buttonsMC.gotoAndPlay("buttonMove");
_root.screen_mc.loadMovie("fade.swf");
this.enabled=false;}
else {
_root.screen_mc.loadMovie("fade3.swf");
}
pauseMC.onRelease=function(){
if (isFaded == false) {
isFaded = true;
_root.person.gotoAndPlay("startFade"); _root.buttonsMC.gotoAndPlay("buttonMove");
_root.screen_mc.loadMovie("xxx.swf");
this.enabled=false;}
else {
_root.screen_mc.loadMovie("xxx3.swf");
}
};
Or do I need to declare each button outside of the }; ???
Thanks so much!!!!!!!!
How To Load Movies In One Main Flash Popup Movie As Per Button Click From Navigation
hi,
i am strucked in a practical problem.
I have a navation menu in flash in my homepage.
I have 3 menus>> portfolio1 |porfolio2| portfolio3
so when i click the portfolio1..the popup page opens and one flash movie is opening.
in that popup flash(500px width,300px height)..i have a center portion(500w,15oh) where the portfolio related one small flash will be loading..
Right now when i click one each menu..evrytime by portfilio1 realted small flash file opening..but i want it should load as per button click on main page.
so if i click portfolio2 button..popup should load also portfolio2 related small flash in the main popup flash.
what is the solution for that. I need help..plz
thanks,
Navigation Bar Not Working
Need help !
I am making an navigation bar and cannot get the "roll over" drop down navigation bar to work, its quite a simple roll over , but it just wont jump to the frame i desire it to go and I have Nooooooooo Idea what-so-ever as to why it wouldnt understand such a basic action script .
I did go to this site http://www.kirupa.com/developer/mx/dropdownmenu.htm and modified my fla to somthing similar but that also didnt work. can some one please have alook at it and tell me where exactly am i going wrong
the swf is here
www.geocities.com/ajay_karat/trial6.swf
and the fla is here
www.geocities.com/ajay_karat/trial6.fla
Thankou
...but I Had It Working Before (navigation)...
Hi guys
I'd be glad if you could help me here...
My current site (www.weddings-in-style.ch) already has the working navigation: I'm loading external swf's into a holder on the main level, the buttons are in a mc one level down. The buttons are labelled, ie. client_btn, the corresponding actionscript is placed in Scene1, going as follows:
code: //client: plays client selection movie
_root.menu_mc.client_btn.onRelease = function() {
loadMovie("e_client.swf", simpleviewer_mc);
};
This has been working so far, no problem!
Now I've adapted the menu_mc to include more chapters, ie. adding more buttons, working as before: naming the buttons, adding the AS to Scene1, etc.
Now suddenly, the loading of the external movie doesn't work at all anymore... ... not even for the chapters I've had before.
... what has changed?? Can anyone help?
Thanks a lot!
Fides
(FlashMX btw)
Click Not Working On LoadMovieNum()
Hi everyone.
I have made a flash banner advert (http://www.upssystems.uk.com/_banners/sky_scraper.swf) and I am loading it through a holding movie (http://www.c9dd.com/holder.swf) in this move there is on frame with this action script in it...
loadMovieNum("
Working Out Navigation With MX... Assistance Please
I am a designer not a programmer and I am just learning AS now...
I am trying to figure out how to create a subtle interactive navigational element such as on this site: http://www.rayoflight.net/
the arrow mc is activated when your cursor rolls over the text and fades when the when you roll out...
can someone explain the action script behind this to me? I am having a hard time wrapping my brain around this one...
also... is there a way to restrict where the arrow will travel such as between x/250 & x/500 (rather then the entire x-axis of the movie itself which would be 500px)
hope that all makes sense... any help would be appreciated
thanx!
Navigation Buttons Not Working...
Ok well, I can't seem to get the navigation buttons to work... if i click "Tone Words" then a word, and then click "Tone Words" again it does not reappear, any button on the menu for that fact... anyone know why?
also does anyone know how I could make a pop-up window come when the "Quiz" button is pushed...?
Navigation Bar Stopped Working
I was using Apache and installed IIS after that some of my buttons stopped working. When I copy the website to my laptop, it still works fine. What's going on? Please help!!!!
Flash 8: Navigation Not Working
Ok, so I am doing a full web site in Flash for the first time and I am still trying to figure out how everything goes together. With that said I'm sure the problem is a easy for an Actionscript wiz.
I've created my index flash page so that all the supporting pages/swfs load into it. I've also created a separate FLA/SWF for the navigation that I am loading into the index file. Problem is when I click on the navigation in the index it will not load the other SWF files?
Here is the code that I have attached to a button instance in the navigation FLA:
Quote:
stop();
btnManu.onRelease = function () {
_level0.myMCL.loadclip("manufacturers.swf", 5);
};
I also tried to nest a button into a movieclip and see if that was the problem to no avail. Here is the code for that attempt:
Quote:
MM_aboutUs.onRelease = function () {
this.enabled = false;
_level0.myMCL.loadclip("about_us.swf", 5);
};
Any help would be greatly appreciated!
Navigation, Kind Of Working Need Some Help
http://www.nakedwizard.com/test2.fla
Ok so my file works, kind of, and I'm a bit stumped how to proceed. I used code I found and kind of cobbled it all together but now I'm stuck.
Basically its meant to scale up and down on roll over, which it does....after the first roll over.
The first roll over it just kind of instantly pops up then scales back down, after that its fine and now I'm scratching my head on how to proceed.
Thanks in advance for any pointers I'm sure its probably something really simple!!
Working With External Navigation Help
Hi friends,
I have two files
main.swf & nav.swf
In main.swf i have two frames on Layer1 "s1" & "s2"
on Layer2 i used the following scripts to load nav.swf
PHP Code:
loadMovieNum("nav.swf", 10);
Which works perfecly fine.
But on nav.swf ( external file ) i have two buttons on the stage,
on the 1st button
i have used the following script to go to "s1" frame which is on the main.swf
PHP Code:
on (release) { _root.gotoAndPlay("s1");}
i have used the following script to go to "s2" frame which is on the main.swf
PHP Code:
on (release) { _root.gotoAndPlay("s2");}
Which seems to be not working fine. Any idea??
I have also attached those two fla files.
|