Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Java Script Help



How do you call java script that is in a html page so it loads from a flash button.



FlashKit > Flash Help > Flash ActionScript
Posted on: 07-24-2001, 04:36 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Java Help
I would like to install JavaChat, but i dont know how. It has instructions on this site. http://www.vijaymukhi.com/ under projects, JavaChat. If someone knows how to install it could they help. Thanx
________________
_____
____________

Java Pop-Up
i must start here by saying...
i do not have any programing experince outside of flash action-script. i am so lame.

working on my site and would like to know
how i can have my flash movie pop-up in a separate window from the browser.
I would use the Pop-Up window to frame my 750X550
pixel .swf-file. Would be SO much better than having it
as i do know, just in the main browser window.

Best Regards,
Kevin Quatman
okworldwide.org

Java?
is there a java or action script code that centers your html file to any browser at any resolution? a good example of what i'm talking about it 2advanced.com. whether your resolution is set at 800x600 or 1024x768, mac or ms IE it's still in it's center when you go in

Java Pop-up
I know this question has been asked time and time again but how do you create a pop-up browser window with JavaScript in Flash. I want to be able to chose the size, border, scrolling, sizing, etc.
Thanx

JAVA
How do I make a flash movie call a java script?

Java
I tried putting a script in a button in flash that when u click a pop up will appear. Dunno why it messes up. Errors keep coming up.

If I send you the file and it will make it easier for you to check leave your mail. I'll send the fla and the popup html.

Thanks guys.

Java Pop Up ?
Hiya i have tried using the http://www.flash-db.com/PopUp/ site, but when i use the generated script i get two windows appear. The 2nd one displays [object] and has a java script in the window. is there anyway i can modify the script so that it works correctly on MX?

Many thanks


on (release) {
getURL ("javascript:Visual Designs Ltd=window.open('http://www.visual-designs.co.uk','newWin','width=800,height=600,left =0,top=0,toolbar=No,location=No,scrollbars=No,stat us=No,resizable=No,fullscreen=No'); Visual Designs Ltd.focus(); void(0);");
}

Little Java And A Little A/S
I was wondering if i could use a variable in actionscript to translate into my java in my html.... example

Code:
<SCRIPT LANGUAGE="JavaScript">
function popup() {
window.open('http://aaronfrancis.home.mindspring.com/picture[n].html','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1280,height=1024,left=0,top=0');
}
</script>
And then have n defined in my actionscript??
Possible or no?

Java
http://www.scriptbreaker.com/examples/popup_image.asp

This is what I am trying to do.

How can I do this is Flash?

Thanks!

Michael
www.twofortap.com

Java Help
Anyone willing to help me out? got some programs to do in java, and struggling to work out what i'm doing, would appreciate some help, thanks.

Java
hi,
i have a flash button on the "enter" page of my site, and i want it to popup a window with the width=737 height=467, and i want the opened window to 'shake' with java script. i have seen a few codes for the shake and java pop up. i have a code for the pop-up, but i don't know if it can work with the flash button. help is much appreciated

current java pop-up code:

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=737,height=467,left = 271.5,top = 278.5');");
}
// End -->
</script>

Java Help
I have a script that launched a java window, on release....


What I need is a way that when the Java is fully open, to gotoandPlay a frame......or movie.....

If thats possable.......

Due to I want the java to pop and the scene underneath to change, but dont want the end user to see it change.

Java Pop Up
OK i know this is way n00b, but i forgot how to make a java pop up window from flash
(thanks to the 3 years i took off designing to be an army Ranger)

is this right?

action =
on (release) {
getURL("javascript:windowb('http://www.domainhere.com')");
}

java = <script language="JavaScript" type="text/JavaScript"><!--
windowb(URL,one,two){
window.open(URL, null, 'toolbar=0,location=0,directories=0,status=0,menub ar=0,scrollbars=0,resizable=0,width=400,height=200 ')
}
// -->
</script>

is this right?

Java
this isn't exactly an AS question, but i respect this board and know someone here should know this.

i have a flash peice getting loaded off of a CD rom. i want the window to maximize bun not show address bar, status bar etc... this is the java i have in the head of my index.html:

code:
</style>

<script language="JavaScript">
<!--
if (document.all || document.layers)
{
window.moveTo(0,0);
window.resizeTo(screen.availWidth,screen.availHeig ht)
} else if (window.screen) {
window.moveTo(0,0);
window.outerHeight = screen.availHeight;
window.outerWidth = screen.availWidth;
}
//-->
</script>


i am not a java expert. what do i need to throw in to remove the browser extras?

thanks much for any help.

Java + Swf
This thing in HTML looks like this

Quote:




applet archive="x.jar" code="y.class" width="800" height="600" align="" MAYSCRIPT
param name="src" value="z.swf"
param NAME="Scale" VALUE="showall"
param NAME="SAlign" VALUE=""
font face="Arial" You don't have Java installed/enabled. Please enable or download and install a href="http://www.java.com" target="_blank" Java Virtual Machine/a for your browser /font
/applet




So it's an swf file that uses Java applets. How can I load it in other SWF using AS?

P.S. This forum understand Java - good hole for a hacker.

Java
i need some help with some java homework and i didnt know where to post this, sorry

its really simple stuff, if you could help me send me an instant message on "cat go bling"

or if someone is willing ill go into detail here

Swf To Java
Hi there…
I am looking for a way to make my swf in to java.
I saw that there was Animoi but cant find it anymore.
Is there another way to make a swf in to a java file?
I am asking since I am trying to make my flash file run in cellphones without the use of flashlite.

Cheers.
Leo.

Java 3D
Hello

Is there a flash version of this:

http://www.ski.com/interactive/aspenmaps.aspx

Anyone know what was used to make this? all the zoom, rotation, etc

S

Java SDK
I see references to a "Java SDK" for Flash Media Server in some places (e.g. http://livedocs.adobe.com/fms/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000888.html )but thats about it. Does anyone know more about it?

Swf To Java
Hi there…
I am looking for a way to make my swf in to java.

I saw that there was Animoi
but cant find it anymore.
Is there another way to make a swf in to a java file?
I am asking since I am trying to make my flash file run in cellphones without the use of flashlite.

Cheers.
Leo.

Java Help Please
Everytime the java window pops up to download Java I click download and it says my computer does not understand it, theres an error Help.

Java
I have a very cool spinning vortex effect I purchased that's written in Java. It has a class file, 2 html files, a bitmap, and a jpeq file, all part of the effect.

I use flash for classroom presentations. Can I incorporate this Java set into flash (I think it's possible but how?)

Java Help
I want to use the GetURL command on a on(release) handler. But I want to add javascipt so that when the new browser window I want just the window a certain size with no tools bars or anything.

Can anybody help me as to what the javascript code is and where in the actionscript it goes.

Thank you for help in advance.

SWF In Java
http://forums.devshed.com/showthrea...&threadid=38988

Can anyone help me?

Browser Java
Does anyone know the java script to make the browser expand as in the "Featured Flash website" on Flashkit??
Help appreciated!

Java And Flash
Im trying to pass java paremeters into actionscript to determine wheteher or not a window has finished loading. If it did finish, make the Flash movie show the loaded window instead. Any help with integrating Java and Flash and ActionScript would be great.

JAVA LOCO
lol, Im getting totaly crazy here

http://users.skynet.be/digizone/Cyber-x.htm

My first page is dreamweaver

When you click the enter button
it gets url http:blabla/Cyberintro.html
which looks like this:
<html>
<head>
<title>XIntro</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>

<body bgcolor="#666666" onLoad="MM_openBrWindow('Cyberintro.swf','XIntro', 'width=800,height=600')">
</body>
</html>

So it opens in a window WITHOUT buttons & ...
I would like to know how to set it exactly to the center of the screen!!
And I cant get rid of the extra window it opens

Does somebody knows how to change the java so it only opens that specific window, and exactly in the midlle??????

Im also trying to import my swf of the intro to a second dreamweaver page,
can somebody give me some advice on that for dreamweaver??
whick code should I use when im in DW
HREF:...

thx guys
[Edited by PixelAddict on 09-20-2001 at 10:25 AM]

Java And Cgi Scripts
hi,

i'm new here nice to meet you all.. I have 2 questions.. which mite have been asked.. if so sorry!

my first question is about java.
I would like to know how to make the window popup as a new window with given tags already. like when clicked on the menu, the item will open up in a window say 400x600.

my second 2nd question is about Cgi.
is there a way to insert a cgi-script into the swi file? like a BBS type??

thank you.

JAVA QUESTION
Does anyone know how to open a page with Java? Like so I could just type in http://www.anywhere.com and it would open with java.. not have one window open, then open another with java. I need the first window to be opened with it. Might be simple.. I hope it is.

thanks.

PS the reason is, because I have a close window button in my flash, and it has that stupid window asking if the user wants their window to close or not..

kal

Java & Flash
Ok I must be some sort of jack-ass cause i still can't get flash to make a new window pop-up. One that i can specify Height, Width, Scroll bars, and junk like that. If any one reads this and can give me any clues I would appreciate it. I've been tryin' to do this for a couple weeks now and it's bein' the biggest pain. It's the hardest thing i had to do so far; as far as takin' time to get it finished goes.

Thanks
Mike

kreski@beadfans.com

Java Window
Anyone know how to call files off the server with buttons in a flash movie?
Trying to call up content (jpeg/quicktime/swf) from my FTP to open in a separate 250 X 300 pixel pop up window from flash. I have seen sites that do this and it looks so great and allows the site to run better (less initial loading).

Best Regards,
Kevin Quatman

I Need A Java Person
I would like to know if there is any way that i can get a button in flash to shutdown or restart someone's computer.

Is there any one out there who can give me the code so that i may do that. I am wanting to do it as a prank or if someone doesn't type in the right password to my site,etc...

I'm guessing it could probably be done in java script. something i might be able to put in my html part of the site.

Please help!
[Edited by kyleblind on 12-09-2001 at 05:47 PM]

Java Code
This is my problem, @ this address http://www.kfyi.com/fitnessinstitute.html, I have the locations of his place appear in a Java Pop Up.

Only thing is i have to have them appear in a new pop up each time. Currently, if you have one open and do not close it, when click on another location, it pops up in the same window.

I have this code on the buttons...
javascript:window.open(.../camelback.html','win1','width=372,height=325,top=0 ,left=0'); void(0);

HELP PLEASE!

Java Question
i have a java script i stole from a site that lets people use it for free can u help me imlement it in my swift button it make the screen shake here is the code

its for a custom signature btw




<!-- TWO STEPS TO INSTALL SHAKE SCREEN:

1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript1.2">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function shake(n) {
if (parent.moveBy) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
}
}
}
}
// End -->
</script>
</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<BODY>

<center>
<form>
<input type=button onClick="shake(2)" value="Shake Screen">
</form>
</center>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 1.09 KB -->

Help With Fullscreen/java Please?
hey! if anyone could help me with this,
big respect and thanks...
1) i specify "fullscreen" in fs commands but i know
i have to use java it to make it work. but when the java opens the new window, its stretching my swf and i need the
swf to stay at 100 percent because it contains jpegs....

anyone know why or how to stop it!!!

Java App In Flash
Hello all,

Anyone know of any way I could put a Java App in my flash 5 project? any ideas at all would be a great help thanks alot for your time and have a great day. ( ps hang in there 2 days to go till the weekend hehe)

Flash & Java ?
G'Day All,

Is there any way to get Flash and Java to communicate in a similar way to ASP and Flash???

The reason is that I want a intranet site built with a Java back end that also uses flash for the front end. Any clues?

Java And Font
when i vist websites such as http://www.allmediastudios.com and when i see the intro and the time when the screen is supposed to shake, i get an error and the screen doesnt shake. when i had windows me this doesnt happen but now i have xp proffesional. by they way, does anyone know anything about W32.Weird ? sometimes when i try to open a program an error comes up saying that it is not a vaild win32 appilication. maybe that file is related. i am also looking for a font. if u have seen lord of the rings you would see it. in the begining of the movie when the title comes and say the lord of the rings, that is the font i am looking for. so help me out here. thanks in advance.

Can You Help Me With Flash Vs. Java?
i want to go from 1.html (src = 1.swf)
to the 2.html (src = 2.swf) ...easy
but i want to choice 1st or 2nd frame from the 2.src
i used for the button in 1.src this code:
A HREF=javascript:MM_controlShockwave(','2.html','Go toFrame','2')
but it doesn´t work
t.y.

Linux And Java
has anyone had success with installing the flash 5 plugin for linux...
actually that part is working but it's the java vm that is the sticking point..

Java Popup From EXE
Is it possible to lauch a java popup from a Flash projector without using a application like 'Jester J Tools'????

Thanks in advance Oll

Flash And Java...
I need a java script(run from flash) that lists every file in a directory and puts every file in an array in flash.

Trouble With Java Pop Up
stop ();
getURL ("javascript: window.open('../html/spa/dowRea.html','','scrollbars=yes,resizable=yes,widt h=417,height=200'); void('');");");

Java Classes
is there a way to retrieve or send values for variables from a java .class file.

thanks

New Windows 'java'
Hello,
I have a simmilar pop-up window problem to one recently posted.

My pop-up windows work OK but when I press a button to open up a new pop-up window, it opens in the previous pop-up window.

This would be fine if the pop-ups were the same size, but they are not.

The script I have on the button is:-

on (release) {
getURL ("javascript:NewWindow=window.open('messageboard.h tml','photo','width=730,height=500,left=0,top=0,to olbar=No,location=No,scrollbars=Yes,status=No,resi zable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}


I basically need some script that opens up a new window everythime.

Can anyone please help.
Thanks

Java POP Up Window
I know many people have asked this before but i am struggling to do it, i need to pop up a HTML window from a flash button size 430 by 330, scrolebars and stus bar
aswell hope someone can help me its doing my head in.

Cheers Evy

Turn Java On In IE?...
Ive got a question, maybe not relevated to Flash but, how can I turn Java on in Internet Explorer?

And yup, it's a newb-question...

Plz need some assistance here!

Java Windows
When I display my flash mx movie and use java to get rid of all the toolbars, size e.t.c there is a white boarder created around my movie which should not be there. HOW DO I GET RID OF IT?

Java With Flash
Hello. I am learning Web page development, and now trying to incorporate Flash. I am using the following JAVE script to open 2 frames at the same time:
<TD><A HREF="javascript:location='index.html';parent.page name.location='hometext.html';parent.middle.locati on='homemiddle.html';parent.links.location='linkta ble.html'">HOME</A> </TD>

It works fine, but I want to replace HOME with a Flash button. I can't seem to make it work.

Any suggestions?

Thank you very much!

Copyright © 2005-08 www.BigResource.com, All rights reserved