Outline ·
[ Standard ] ·
Linear+
trouble wiff flash web browser, pop up wif no toolbar windows..how?
|
TSjunkieG
|
May 4 2006, 04:11 PM, updated 20y ago
|
|
hello... this is the Action script for my button @ flash...pls view the attachment my problem is, i want to jump to 2nd frame...i tried the on (press) {gotoAndPlay(2);
} but it seems it doesnot want to go to the 2nd frame... why? where should i place it? This post has been edited by junkieG: Jul 13 2006, 07:38 PM Attached thumbnail(s)
|
|
|
|
|
|
siaukia
|
May 4 2006, 06:17 PM
|
|
so i see you're applying frame script right?
1. means you have buttons on stage... 2. the button has name of "home_mc" 3. so if you want it go to and stop at frame 2 when it's pressed you type somehing
home_mc.onPress = function() { this.gotoAndStop(2); }
-------------------------------------------
for the rollover and rollout action, are you sure you want to apply it like that?
1. because when you rollover the button...it will goto frame2...and... 2. when you rollout it will goandstop at frame 1... 3. so...although you put .onPress which means when user click on it will stop at frame2....when user leave the mouse...it will jump to frame 1 back because the script still reads the 'onRollOut'
|
|
|
|
|
|
TSjunkieG
|
May 5 2006, 10:59 AM
|
|
so whut do u suggest for rollover n rollout button?...i am totally stupid when it comes to flash home_mc.onPress = function() { this.gotoAndStop(2); }the AS that u provide i already tried ...it seems doesnt work..i apply ur AS on my button, on AS keyframe both doesnt work... demn im sad
|
|
|
|
|
|
momochi zabuza
|
May 5 2006, 12:21 PM
|
|
ok try to remove the frame script.. use the button script. the button script suppose be like this [ assuming home_mc is the movie clip and that you have rename it on the instance box. and in home_mc got two frame with two label, _over ( which is frame 1 ), _out ( which is frame 2 ) ] on(rollover){ home_mc.gotoAndStop("_over")// -- you can change the _over to 1 to tell it to go frame 1 } on(rollout){ home_mc.gotoAndStop("_out)// -- you can change the _out to 2 to tell it to go frame 2 } on(release){ gotoAndPlay(2) - the current frame. } ----- hope it helps...
|
|
|
|
|
|
siaukia
|
May 5 2006, 05:10 PM
|
|
QUOTE(junkieG @ May 5 2006, 10:59 AM) so whut do u suggest for rollover n rollout button?...i am totally stupid when it comes to flash home_mc.onPress = function() { this.gotoAndStop(2); }the AS that u provide i already tried ...it seems doesnt work..i apply ur AS on my button, on AS keyframe both doesnt work... demn im sad  remove the this. to solve the problem, sorry didnt notice the this will make it to play the 'timeline' inside the home_mc not the want you want it to move  my bad solution? i'll see if i can do one when i get back home, cant promise yet ;O
|
|
|
|
|
|
mclelun
|
May 5 2006, 10:01 PM
|
|
just make sure 2 thing, if u using the "button" as when u create a new symbol,then u dun need the onrollover script. if u using "movieclip" when u create new symbol. then script provide by siaukia or momochi will work, for me, it just seems that you didn't understand the "scope" and "level" within flash. - edit - a zip of fla with 3 types of button for u This post has been edited by mclelun: May 5 2006, 10:09 PM Attached File(s)
btn.zip ( 92.07k )
Number of downloads: 10
|
|
|
|
|
|
TSjunkieG
|
May 8 2006, 01:10 AM
|
|
okie...i attached mclelun files...once u open it, u should get whut i mean.. i want my navigation to be like dis, when i click on the button @ the main stage, it will navigate to 2nd frame ( at the main stage) it doesnt help wiff --> on(release){ gotoAndPlay(2) - the current frame. }still havent resolve the dellema...pls help... whoever can solve my problem will have a nice fre treat at subang parade ice blended coffee bean This post has been edited by junkieG: May 8 2006, 01:10 AM Attached File(s)
Untitled_1.zip ( 46.62k )
Number of downloads: 11
|
|
|
|
|
|
kidmad
|
May 13 2006, 09:55 PM
|
|
done. have a look is dis wat u want. just click on button and ull go to the next _root keyframe.
This post has been edited by kidmad: May 13 2006, 09:56 PM
|
|
|
|
|
|
Stupid Khor
|
May 15 2006, 08:55 AM
|
Getting Started

|
I'm not sure whether which button do you want to do navigation... is it 'test', 'test2' or 'test3'? if it's 'test', then try this code (the changes are commented) : CODE stop(); // this is for stopping the frame...
test.onRollOver = function(){ this.gotoAndStop(2); } test.onRollOut = function(){ this.gotoAndStop(1); } test.onRelease = function(){ _root.gotoAndStop(2); // change 'this' to '_root' to navigate the _root stage... }
test2.onRelease = function(){ trace("KLIK2") }
test3.onRelease = function(){ trace("KLIK2222") } to kidmad: I guess you've included the wrong fla file... This post has been edited by Stupid Khor: May 15 2006, 09:43 AM
|
|
|
|
|
|
kidmad
|
May 15 2006, 09:23 AM
|
|
opsss. paiseh. haha did i insert da wrong fla? haha.
|
|
|
|
|
|
Stupid Khor
|
May 15 2006, 09:44 AM
|
Getting Started

|
hehe... not really... just that the fla file you've inserted is the unchanged version, I mean the one which junkieG submited... XD
|
|
|
|
|
|
momochi zabuza
|
May 15 2006, 11:15 AM
|
|
eh.. my post and siaukia post and junkieg post lost oledi... so junkieg need the file back ah ?
|
|
|
|
|
|
kidmad
|
May 15 2006, 03:57 PM
|
|
haha ok dis 1 is da 1 inside my pc. forget to add it back to .rar before posting up. lol.
[attachmentid=107934]
This post has been edited by kidmad: May 15 2006, 04:02 PM
|
|
|
|
|
|
mclelun
|
May 17 2006, 10:38 PM
|
|
QUOTE(junkieG @ May 8 2006, 01:10 AM) okie...i attached mclelun files...once u open it, u should get whut i mean.. i want my navigation to be like dis, when i click on the button @ the main stage, it will navigate to 2nd frame ( at the main stage) it doesnt help wiff --> on(release){ gotoAndPlay(2) - the current frame. }still havent resolve the dellema...pls help... whoever can solve my problem will have a nice fre treat at subang parade ice blended coffee bean  haha sorry for late reply, quite busy playing with Blender3d this few days. yup, just like other say, if u want the main stage to stop at second frame use "_root" or "_level0" if you use "this", then the button itself will go to stop frame2. This post has been edited by mclelun: May 17 2006, 10:38 PM
|
|
|
|
|
|
TSjunkieG
|
May 22 2006, 10:36 PM
|
|
my hardisk @ d office go dead on me today...  momochi zabuza do u mind posting back for me the file dat u created for me and the others? um sure alot of other people will benefit from ur kindness regards
|
|
|
|
|
|
momochi zabuza
|
May 23 2006, 07:04 PM
|
|
i think this is it rite? tell me if i was wrong. Attached File(s)
Untitled_1_fixed.zip ( 47.29k )
Number of downloads: 4
|
|
|
|
|
|
TSjunkieG
|
May 23 2006, 08:09 PM
|
|
|
|
|
|
|
|
TSjunkieG
|
Jul 13 2006, 01:26 PM
|
|
hello, got myself into a trouble again... i try to create a "close" window button...however, it seems like it doesnt work... i put the AS @ the button....why it wont work? anione here got better method pls guide me 1st btnQuit.onRelease = function() { getURL("javascript:window.close"); } 2nd- on (release) { fscommand("quit"); } problem= it just wont work
|
|
|
|
|
|
siaukia
|
Jul 13 2006, 01:43 PM
|
|
the 1st script can be only used when your swf is placed inside a html file QUOTE btnQuit.onRelease = function() { getURL("javascript:window.close()"); } your forgot the bracket the 2nd script can be only used when you open your swf by itself.
|
|
|
|
|
|
TSjunkieG
|
Jul 13 2006, 03:28 PM
|
|
QUOTE(siaukia @ Jul 13 2006, 01:43 PM) the 1st script can be only used when your swf is placed inside a html file your forgot the bracket the 2nd script can be only used when you open your swf by itself. ur the man!
|
|
|
|
|