Groups | Blog | Home
all groups > flash actionscript > june 2004 >

flash actionscript : Help please!!! Stuck with a problem Actionscript



hackysack
6/12/2004 10:21:23 PM
posted.by(Vern);
6/12/2004 10:27:30 PM
I dont think you will be able to get that to happen. It will work on any
computer that has the Flash Authoring tool installed, but for the average
view, there isn't a stand alone player that is avaialable to them. You
could make the swf into an exe, but of course you are looking at security
issues on the users machine then. You can double check the MM site to
verify that I am correct about that Flashplayer.

--
Regards,
--Vern
===========================
onClipEvent(doSomethingStupid){
setProperty("Face", color, #FF0000);
_root.audio = "uh oh!";
}

Archangel689
6/13/2004 6:15:39 AM
The question really is why do you want to do this.... it seems a little weird
to me....

if you're looking to remove all the window like features you can do that using
javascript.... its called a cromeless window... search around the net for an
example.
hackysack
6/13/2004 9:53:13 AM
hey thanks for replying so soon, to give you an idea of what im trying to create check out http://www.theused.net/archive/
posted.by(Vern);
6/13/2004 1:37:58 PM
Ahhh. I see. The idea is to launch a new browser window with no controls
and have it the exact size as your SWF file.

Put this code in the head tag of the HTML doc:

<SCRIPT LANGUAGE="JavaScript">
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
var winprops =
'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+''
var win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
</SCRIPT>

and this code on the button to open that window:

<A HREF="YOUR DOC HERE"
onclick="NewWindow(this.href,'YourWindowTitleHere','900','400','no','no','re
sizable=no','toolbar=no','location=no');return false;" BORDER="0">THIS IS
THE LINK TO OPEN THE WINDOW</A>

Note that this will open the window in 900 X 400 res, change it to whatever
you want. Create your HTML page to display your SWF, then call that HTML
page where it says YOUR DOC HERE. This will also open your new window in
the center of the screen, regardless of the users screen resolution.

Hope that helps!

--
Regards,
--Vern
===========================
onClipEvent(doSomethingStupid){
setProperty("Face", color, #FF0000);
_root.audio = "uh oh!";
}

Dheeraj Mehta
6/13/2004 3:43:21 PM
i dont know wht exactly you are looking for..... But if you are looking for a
script which will execute your swf file in fullscreen mode then you can use
javascript for that, the code will be something like this:
//use inside head of the starting html file
function launchwin()
{
newwin = window.open("filename.swf","WindowName","fullscreen=1, scrollbars=1")
newwin.resizeBy(15,0)
}

//This code was given to me by some person on this forum (dont remember the
name) Thanx to him...!
posted.by(Vern);
6/13/2004 6:55:14 PM
Post some more details. I copied and pasted that out of an existing and
function website that uses a pop up to display a SWF. Can you provide more
details?

--
Regards,
--Vern
===========================
onClipEvent(doSomethingStupid){
setProperty("Face", color, #FF0000);
_root.audio = "uh oh!";
}

hackysack
6/13/2004 8:48:31 PM
hey vern thanks for the code, but it doesnt seem to work......been trying for
about an hour.......ive put it in all the places that ya told me to but doesnt
seem to work.......

Thanks for trying thou, could be my fault or a slight typo in the code not
sure.....
:)
hackysack
6/14/2004 8:24:42 PM
AddThis Social Bookmark Button