View Full Version : how can he do that ????
BirdOnWire
10-29-2002, 07:40 PM
hey guys ,take a look here at http://www.webdesign-ks.de/ how can he just custumize the right click menu in flash , just try it , right click anywhere on the flash ??
is there any answer ?????:confused:
phrequency
10-29-2002, 09:07 PM
It seems as thought he or she is using js to over ride the right click. Not too fancy, just never seen it applied to flash.
I haven't tested my theory but with the good ol view source that IE allows I found the js file which creates the right click.
Not sure if its appropriate to post the direct link to the js file so lemme know and I can tell you the steps I used to find out...or is that just as bad?
Actually the right click isn't on the flash portion at all...top frame is flash navigation bottom frame is html content....
raduCocieru
10-29-2002, 09:10 PM
Hello!
You can find the answer to your question on
http://www.flashguru.co.uk/
there is a section where this trick is explained.
dunnright
10-30-2002, 04:37 AM
Originally posted by phrequency
Actually the right click isn't on the flash portion at all...top frame is flash navigation bottom frame is html content....
That's what I was gonna say....
//turn off the right-click menu
Stage.showMenu=false;
rgdz
tost
jimburton
10-30-2002, 11:34 AM
Not sure if its appropriate to post the direct link to the js file so lemm
appreciate your sensitivity phrequency, but is it bad style to view source and learn from other's javascript/css whatever? I don't think so myself, it's one of the things that got me excited about it in the first place - a transparent medium where anyone can take part etc etc, ripping files wholesale without credit is another matter, but I say live and let learn...when folks have these periodic discussions on here about the difficulties of obfusating swf files, I just wish they were *more* open - right click on a flash movie and select view actionscript! why not...?
sorry for butting in - m2c...:)
BirdOnWire
10-31-2002, 07:02 AM
Originally posted by phrequency
It seems as thought he or she is using js to over ride the right click. Not too fancy, just never seen it applied to flash.
I haven't tested my theory but with the good ol view source that IE allows I found the js file which creates the right click.
Not sure if its appropriate to post the direct link to the js file so lemme know and I can tell you the steps I used to find out...or is that just as bad?
Actually the right click isn't on the flash portion at all...top frame is flash navigation bottom frame is html content....
thnx 4 reply , I didn't think it will be that way cause I never seev it b4 so I thought it would be one of the flash hidden ticks , hehe ,thnx anyway that helped me a lot
phrequency
10-31-2002, 02:24 PM
Figured i share this as I have no clue how many people know it but--at lease in IE you can view the source of a site page by typing in:
view-source:http://www.somesite.com/
that will give you the source for the index page.
You can use this if:
You are trying to get to the source of some page that is perhaps a meta refresh and it refreshes too quick for you to hit View > Source from the menu.
Or if there is a framed site with the js in place to always load the parent and you'd like to see the child you can view the frameset source then figure out which page is being loaded into a certain frame and do the "view-source:" thing on that page since it doesn't actually load the page just opens the source in notepad (for windows)
Not sure about any of this on a Mac since I don't use them.
Figured I'd share, if this is the wrong place, my apologies but its how I found out how this right click menu was being built.
jimburton
10-31-2002, 02:58 PM
thx, that's useful to know...(it is only IE, dunno about mac though)
mac report: IE 5.2.2 on OSX 10.2 here
view-source doesn't work for me
but there's a pc around here too, so tnx! i like it!
greetz
tost
JHallam
11-01-2002, 02:02 PM
it's not flash, and it's simple...you can get this from most freebie sites, and no it's nothing to do with flash.
here you go..
simply put this in the head
<SCRIPT language=JavaScript src="right_menu.js"></SCRIPT>
then add this file to the right path of the above.
SNorTed
very cool
on a pc that is ;)
BirdOnWire
11-01-2002, 05:08 PM
Originally posted by GRaPHiX_FReaK
it's not flash, and it's simple...you can get this from most freebie sites, and no it's nothing to do with flash.
here you go..
simply put this in the head
<SCRIPT language=JavaScript src="right_menu.js"></SCRIPT>
then add this file to the right path of the above.
SNorTed
how can I get icons for the right click menu list then ????
phrequency
11-01-2002, 05:54 PM
Getting the images to appear seem to handled by changing the following lines of code in the js file:
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'home\')" STATUSTEXT="Diese Seite als Startseite"><img border="0" src="../images/startseite.gif" width="12" height="12"> Diese Seite als Startseite</DIV>';
It seems that the js file is building the right menu using DIV tags
The rest of the js seems to handle what happens when the right mouse button is clicked and what happens when an option which appears in the menu is clicked as well as moused-over (the yellow highlight)
What I would do is try to extract all of the obvious html from the lines of code above, rebuild the thing as static in your fav editor then re-up the code into the format of the js file...
have fun...
BTW am I the only one who feels there is little value to a custom right click menu? dunno, just kinda intrusive....
BirdOnWire
11-01-2002, 06:08 PM
Originally posted by phrequency
Getting the images to appear seem to handled by changing the following lines of code in the js file:
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'home\')" STATUSTEXT="Diese Seite als Startseite"><img border="0" src="../images/startseite.gif" width="12" height="12"> Diese Seite als Startseite</DIV>';
It seems that the js file is building the right menu using DIV tags
The rest of the js seems to handle what happens when the right mouse button is clicked and what happens when an option which appears in the menu is clicked as well as moused-over (the yellow highlight)
What I would do is try to extract all of the obvious html from the lines of code above, rebuild the thing as static in your fav editor then re-up the code into the format of the js file...
have fun...
BTW am I the only one who feels there is little value to a custom right click menu? dunno, just kinda intrusive....
no u r not the only one who feels there is little value to a custom right click menu , I was the one who got amazed by this and I think I will add it to my site , it's totally customizable and elligant ! thnx for help again:cool:
ikkon
11-01-2002, 07:21 PM
there is a easier way to make it go away.... try this... I use it on all my movies
in the script for the movie (object tag)
put this
<param name="menu" value="false">
and that is it
jimburton
11-01-2002, 08:01 PM
BTW am I the only one who feels there is little value to a custom rig
I agree, it's a pointless IE gadget.
there is a easier way to make it go away.... try this... I use it on all my
ikkon, this is html/js not flash.
JHallam
11-02-2002, 03:33 AM
Sorry Bird, I didnt answer...but yeh, phrequency answered.
The containing JS file has the script, just simply edit the paths.
BirdOnWire
11-02-2002, 05:41 AM
Originally posted by GRaPHiX_FReaK
Sorry Bird, I didnt answer...but yeh, phrequency answered.
The containing JS file has the script, just simply edit the paths.
thnx GRaPHiX_FReaK I got it already , thnx again for help but what about what ikkon said , where exactly do i put this tag in the flash movie !!;)
Bird,
ikkon's tag goes in the html page that contains your swf,
i posted the actionscript version on the first page on this thread.
put that action in the first frame.
or were you joking?
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.