Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 trouble wiff flash web browser, pop up wif no toolbar windows..how?

views
     
TSjunkieG
post May 4 2006, 04:11 PM, updated 20y ago

DIGITAL ERA
*******
Senior Member
2,687 posts

Joined: Jan 2003
From: Sue Bunk Jai Yaa!


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)
Attached Image
siaukia
post May 4 2006, 06:17 PM

Regular
******
Senior Member
1,491 posts

Joined: Jan 2003
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
post May 5 2006, 10:59 AM

DIGITAL ERA
*******
Senior Member
2,687 posts

Joined: Jan 2003
From: Sue Bunk Jai Yaa!


so whut do u suggest for rollover n rollout button?...i am totally stupid when it comes to flash blush.gif

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 cry.gif
momochi zabuza
post May 5 2006, 12:21 PM

I never think about money, beautiful things make money
*****
Senior Member
719 posts

Joined: Jan 2003
From: cyberjaya, ampang, malaysia


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... wink.gif
siaukia
post May 5 2006, 05:10 PM

Regular
******
Senior Member
1,491 posts

Joined: Jan 2003
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 blush.gif

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  cry.gif
*
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 yawn.gif my bad

solution? i'll see if i can do one when i get back home, cant promise yet ;O
mclelun
post May 5 2006, 10:01 PM

On my way
****
Senior Member
662 posts

Joined: Jan 2003
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 biggrin.gif

This post has been edited by mclelun: May 5 2006, 10:09 PM


Attached File(s)
Attached File  btn.zip ( 92.07k ) Number of downloads: 10
TSjunkieG
post May 8 2006, 01:10 AM

DIGITAL ERA
*******
Senior Member
2,687 posts

Joined: Jan 2003
From: Sue Bunk Jai Yaa!


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 smile.gif

This post has been edited by junkieG: May 8 2006, 01:10 AM


Attached File(s)
Attached File  Untitled_1.zip ( 46.62k ) Number of downloads: 11
kidmad
post May 13 2006, 09:55 PM

Look at all my stars!!
*******
Senior Member
4,481 posts

Joined: Jul 2005
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
post May 15 2006, 08:55 AM

Getting Started
**
Junior Member
276 posts

Joined: May 2006
From: MMU, Cyberjaya


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... tongue.gif

This post has been edited by Stupid Khor: May 15 2006, 09:43 AM
kidmad
post May 15 2006, 09:23 AM

Look at all my stars!!
*******
Senior Member
4,481 posts

Joined: Jul 2005
opsss. paiseh. haha did i insert da wrong fla? haha.
Stupid Khor
post May 15 2006, 09:44 AM

Getting Started
**
Junior Member
276 posts

Joined: May 2006
From: MMU, Cyberjaya


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
post May 15 2006, 11:15 AM

I never think about money, beautiful things make money
*****
Senior Member
719 posts

Joined: Jan 2003
From: cyberjaya, ampang, malaysia


eh.. my post and siaukia post and junkieg post lost oledi... so junkieg need the file back ah ?
kidmad
post May 15 2006, 03:57 PM

Look at all my stars!!
*******
Senior Member
4,481 posts

Joined: Jul 2005
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
post May 17 2006, 10:38 PM

On my way
****
Senior Member
662 posts

Joined: Jan 2003
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 smile.gif
*
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
post May 22 2006, 10:36 PM

DIGITAL ERA
*******
Senior Member
2,687 posts

Joined: Jan 2003
From: Sue Bunk Jai Yaa!


my hardisk @ d office go dead on me today... cry.gif

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
post May 23 2006, 07:04 PM

I never think about money, beautiful things make money
*****
Senior Member
719 posts

Joined: Jan 2003
From: cyberjaya, ampang, malaysia


i think this is it rite? tell me if i was wrong.


Attached File(s)
Attached File  Untitled_1_fixed.zip ( 47.29k ) Number of downloads: 4
TSjunkieG
post May 23 2006, 08:09 PM

DIGITAL ERA
*******
Senior Member
2,687 posts

Joined: Jan 2003
From: Sue Bunk Jai Yaa!


QUOTE(momochi zabuza @ May 23 2006, 07:04 PM)
i think this is it rite? tell me if i was wrong.
*
ur da men! notworthy.gif thumbup.gif rclxm9.gif rclxms.gif blush.gif
TSjunkieG
post Jul 13 2006, 01:26 PM

DIGITAL ERA
*******
Senior Member
2,687 posts

Joined: Jan 2003
From: Sue Bunk Jai Yaa!


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 cry.gif

siaukia
post Jul 13 2006, 01:43 PM

Regular
******
Senior Member
1,491 posts

Joined: Jan 2003
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
post Jul 13 2006, 03:28 PM

DIGITAL ERA
*******
Senior Member
2,687 posts

Joined: Jan 2003
From: Sue Bunk Jai Yaa!


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! thumbup.gif notworthy.gif

2 Pages  1 2 >Top
 

Change to:
| Lo-Fi Version
0.0764sec    0.64    6 queries    GZIP Disabled
Time is now: 30th November 2025 - 03:06 AM