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




Detect Html Window



hi,
is it possible to have the flash detect the current html window?
I'm NOT asking for just the domain or the swf file's location (_url property). so:

WHAT I DON'T WANT IS the domain, i.e.: www.domain.com
WHAT I DON'T WANT IS the swf file's location, i.e.: http://www.domain.com/folder/flashfo...y_swf_file.swf

WHAT I DO WANT IS to retrieve the URL i'm browsing, i.e.: www.domain.com/folder/webpage.html

is it possible? please, some advanced user, answer me! i have been looking many places but can't find an answer to my question.



FlashKit > Flash Help > Flash MX
Posted on: 06-21-2004, 04:21 AM


View Complete Forum Thread with Replies

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

Detect Html Window
hi,
is it possible to have the flash detect the current html window?
I'm NOT asking for just the domain or the swf file's location (_url property). so:

WHAT I DON'T WANT IS the domain, i.e.: www.domain.com
WHAT I DON'T WANT IS the swf file's location, i.e.: www.domain.com/folder/flashfolder/my_swf_file.swf

WHAT I DO WANT IS to retrieve the URL i'm browsing, i.e.: www.domain.com/folder/webpage.html

is it possible? please, some advanced user, answer me! i have been looking many places but can't find an answer to my question.

How? Flash Links To Html Window Inside Html Window
Hi, at this site, www.jerrycantrell.com, he has flash buttons and when you click on one it changes the content in a small scroll bar window of the page but doesnt reload the whole page, this looks slick. but it is dealing with html, so this question doesnt completely have to do with flash. but i assume the linking commands in flash have most to do with this, all im able to do is change the page entirely with a link, and when i'm only changing somthing in one window its not as quick and because it reloads the whole page just for that one thing it doesnt look as slick because there's a blank white screen between loading the new page.. only for a second, but you get the just of it. anyone know how to do this? much thanks

-randy

Detect Window Focus
Is there a way to tell if a window has its focus set? - is selected. I want to stop the background music when the user selects to go to another page from the site (geturl... _blank), and then turn it back on when the user returns to the originating window.

Detect Current Url Window
hi,
is it possible to have the flash detect the current html window?
I'm NOT asking for just the domain nor the swf file's location (_url property).

My purpose is to have a "language button" always available in a website and redirect the browser to a url which is the same but in another language.

thanks for the help

Detect Current Url Window
hi,
is it possible to have the flash detect the current html window?
I'm NOT asking for just the domain nor the swf file's location (_url property).

My purpose is to have a "language button" always available in a website and redirect the browser to a url which is the same but in another language.

thanks for the help

Detect Closing Browser Window
Hi all,
the problem is this one: i want my flash movie capturing browser windows client closing, to call an actionscript function that is calling a javascript function in the HTML page.
Is this possible?
Or the same problem, but in another way:
I think that once browser is closing its own window, tells flash movie to stop, and then unload it.
Is it possible for Flash to detect that "STOP"?

I need it for AICC.
Really urgent and important.

Thanks a lot.
Bye
AlX

Website Resize To Fit Window Or Detect
This is my first time posting and i'll probably break some rules that will crush the delicate fabric of this forum, but here goes any way. I have published a website that is fully flash for my company, but i'm not getting the sizing that I want. I have looked all over for a way to detect screen size and resize my site accordingly. I'm sure it's here somewhere, but i've looked at tutorials, posts, uploaded files I can't find it! please help! i'll attach the index.html page i'm using to load my site, and right now it's loading an .swf instead of html, because everytime i use html it puts a white boarder around it instead of filling the screen. I also have uploaded an index2.html where i changed the border lines outside of my canvas and they still show up, so my movie is not filling out the way i want it to. any help is appreciated.

website:
www.malltalkonline.com

(just wait for dowload it takes a min b/c my audio doesn't seem to be streaming properly...but that's another post)

screen test:

www.malltalkonline.com/index2.html

Window Shrinkage - Swap MCs On Detect
Hello,
I've been searching for actionscript that detects when someone's browser window is too small. On detection, it swaps out movieclips.
Click on link below and shrink your browser window.
http:// www.futurefarmers.com/homepage.html
It's brillliant... anyone ever come across this?

Any help much appreciated.
Thank you, John

Can Flash Detect The Closing Of A Window?
Hi everybody

My problem is the following:

I have a page with a flash in it that opens a new window with a second flash in it.
Now what i'm trying to do is that whenever the second window is closed by the user, the swf in the first page calls a distant php script. Is that possible?

I hope that this is clear enough..

Thanks for the help

MC Detect Window Size And React
Hello!

So besides having one of the coolest flash sites Ive ever seen and the best artwork, this site also does something I must learn how to do. It adjusts it's MC positions in relation to the objects around it AND the browser window size. You can see that it's size is set to 100% x100%, the background is static while the elements react. I love it.

http://www.cmart.design.ru/

Its so cool.

Anyone know how this is done and can provide some insight for me by way of tutorial or example AS?

cheers

(javascript) I Want To Detect Window Focus
here is the problem:

got a heavy (pig of a) animated menu system. Its moves about only on mouse over. I have set it up so that when the mouse is not in its area it stops calculating its position. however if you happen to move your mouse to the another window without first 'moving out of the quadrant' it churns happily along chewing up tons of resources.

my idea is to detect window focus. if the browser is not focused I turn the menu off. anyone know how?

anyone got a better idea?

and if you do not have any of the above but do have tips on optimizing math heavy dynamically generated movement, that could be useful as well.

Scott

Detect Flash Plugin, Launch Sized Window
Hi.. Can anyone help me with how to detect if the user has a flash plugin in his browser and if the proper plugin is there, to open a new window, the size of the actual flash movie with no scroll bars, menu items, etc of the browser.

Can A .swf Detect What HTML Page It's On?
I'm creating a Flash 4 menu for my website and was wondering how to use ActionScript to load variables from the HTML page.

I want to be able to create one menu file which changes it's on state depending on which page it's on... either by detecting the name of the page it's on or by calling to a variable on that page.

Any suggestions would be greatly appreciated!

Thanks in advance.
Kosmo

Detect If Html Is Scrolled
hello all,
I am willing to make an effect of scrolling about 1000 pages in flash,
let me describe dad : I have a layout in flash that loads a text in particular font size, depending on detected screen resolution . What I have done so far is adjust the font size of the text depending on screen x resolution, to occupy duble the height of screen x resolution (so dad if you would like to see the entire text, you need to scroll it down in a browser window....
Now, what I would like to achieve is : when user rolls down and reaches the "html" bottom of a site (I am counting only with users with mouse wheels)
flash starts to generate new texts for next about 100 "html pages" ...now , is it possibble to detect when user scrolls and reaches the end in html ? ??????????
Or I can detect that only according to mouse wheel ? Is even a mouse wheel movement detectable by flash ??? I mean not for scrolling but to get the amount (set originally in windows) of text which is shifted according to mouse wheel rotation ????

I hope you understand me....
cheers

Detect If Html Is Scrolled
hello all,
I am willing to make an effect of scrolling about 1000 pages in flash,
let me describe dad : I have a layout in flash that loads a text in particular font size, depending on detected screen resolution . What I have done so far is adjust the font size of the text depending on screen x resolution, to occupy double the height of screen x resolution (so dad if you would like to see the entire text, you need to scroll it down in a browser window....
Now, what I would like to achieve is : when user rolls down and reaches the "html" bottom of a site (I am counting only on users with mouse wheels)
flash starts to generate new texts for next about 100 "html pages" ...now , is it possibble to detect when user scrolls and reaches the end in html ? ??????????
well It could be detected in flash sure through listeners, but you can adjust the amount of lines per mouse wheel rotation in windows so I want to be precise ....
I hope you understand me....
cheers

HTML Detect Flash
Can you help me detect Flash by HTML ?
I want if user have not plug-in Flash so it appear a pop-up require them download and this time also automatic download plus with install and if user have problem so website will be jumb into a new page for notify for them know for manual download .
Possible look like detect Ultrashock should be perfect works !

Detect When Flash File Ends By Closing Browser Window
Okay, this one was hard to explain in the title.

What I want to do is know when a user hits another web address or closes the browser window so that I can write out the session ended information to a database. Is this possible? I write to the database when the swf file is started, and can write to it if I hit an end button within the swf file, but my concern is - what if someone doesn't hit the end button and just closes the browser. Can that be captured from flash or some other script?

Thanks for any help.

Can My Parent Flash Detect A Window Which Was Open From Inside Has Been Closed?
Hello everyone,

I have a Flash animation which at one point opens a New Windows and plays an external FLV file. I would like to be able to continue with the animation once the new movie window is closed.

So, I would like to know if there is a way for flash to detect when the user has left the New Window or closed the window?

Khoramdin





























Edited: 10/12/2007 at 12:04:59 AM by Khoramdin

Html. How Can It Detect The Flash Player?
Hi,
I wan't to put in the movie's html code a dialog window, asking a user "There is no flash player on your system. Do you wan't to load it?". If they dont want it, the code will skip the .swf intro and jump to the real website.
How can I solve it? Can you help me?

HoPe

Auto Detect Redirect To HTML
Hello,

I need help setting up a entrance page that will automatically redirect visitors that do not have Flash to my HTML site. Of course if the visitor has Flash it will play the Flash site. Btw, I have Flash 8 which has a detection switch but not sure how to use it for this.

A good example of what I'm trying to do is at sony.com. If you disable your flash plugin in the browser it (sony.com) will auto take you to the html site and inform you by placing a link at the bottom of the page that says "html site".

Thanks,
tdsilk

Publish Swf/html With Flash Detect
The HTML below is generated from flash when I want to detect Flash on a users browser.
I cannot seem to correctly position the content that follows this code.
The Flash movie MYWEBSITE appears at the top of the page but then I need to insert a table in the center to hold an image. This must be as close to the bottom of MYWEBSITE as possible.
How do I do this?

Thanks.



<!-- saved from url=(0013)about:internet -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>images_allsorts_2008_intro</title>
<script language="javascript"> AC_FL_RunContent = 0; </script>
<script language="javascript"> DetectFlashVer = 0; </script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 9;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 45;
// -----------------------------------------------------------------------------
// -->
</script>
</head>
<body bgcolor="#606060">
<!--url's used in the movie-->
<!--text used in the movie-->
<script language="JavaScript" type="text/javascript">
<!--
if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable version
// embed the flash movie
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0',
'width', '100%',
'height', '100%',
'src', 'MYWEBSITE',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'noscale',
'wmode', 'window',
'devicefont', 'false',
'id', 'WEBSITE',
'bgcolor', '#606060',
'name', 'MYWEBSITE',
'menu', 'true',
'allowScriptAccess','sameDomain',
'allowFullScreen','false',
'movie', 'MYWEBSITE',
'salign', 't'
); //end AC code
} else { // flash is too old or we can't detect the plugin
var alternateContent = 'Alternate HTML content should be placed here.'
+ 'This content requires the Adobe Flash Player.'
+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
document.write(alternateContent); // insert non-flash content
}
}
// -->
</script>
<noscript>
// Provide alternate content for browsers that do not support scripting
// or for those that have scripting disabled.
Alternate HTML content should be placed here. This content requires the Adobe Flash Player.
<a href="

Html Flash Version Detect.
Hello, would any know the javascript to detect the flash version the user is using with a html page.

Pls do not refer me to the flash detect sprit macromedia has. Its too different for me to understand.

I just require a simple one. Thnak YOu.

HTML Tags To Detect If User Has Flash?
Hi,

is there some sort of HTML code to check if the person viewing the webpage has Flashplayer, and if not forwards them to Macromedia's web site to d/l it?

Thanks,

-Avenger

Detect Background Color Of Html Page
Is it possible to detect the background color of the html page the flash file will be put on?

I am creating a web page that will randomly choose the background color. I would then like the flash animation to choose from several animations based on the background color.

Any help is greatly appreciated!

Detect Texfield Html Images Loaded
I have a text field in a clip being loaded into a scrollpane component.. easy enough..

I have text and images being loaded into that text field..

when the text is loaded the field thinks that it's done and then fires off a myScrollPane.invalidate() to rfresh the scroll bar to fit all of the text..

The problem: the Images load into the field after the textfield thinks it's done loading and updates the scrollpane component. I know you can target these images using the "id" attribute but is there a way to place a listener to detect an onLoad event or a loaded event for that id?

summary: Can I detect when textfield images are done loading. are there any built in events for this?

Detect When User Rolls Over Certain Text In Html Field?
I'd like to do a term/hint rollover kind of functionality. I have text from XML displaying in an HTML-formatted field, but I'm not sure how to flag a particular word for this. When creating a hyperlink in flash HTML fields, you can of course detect a lick of that link, but can you do anything about when a user rolls over it?

If that's not possible, what work-arounds might there be to simulate this effect?

I wonder about drawing an invisible clip over the word to which I can add a rollover listener. Doing this would require I know the coords that define a box around the word in the text field - is that possible?

Button Going To Html File, Want Html To Be Specific Size In Window
When I click on a button in my flash project, it takes the user to a html file. In that file the user can click on different .pdf files. I would like to make the html file a certain sized window example 300x400. I do not know what code (or where to put it in the html file) to use to make the window constrain to 300x400. Also, I would like the users computer to open acrobat reader in a seperate window, when they click on a .pdf link. Right now, it just opens in the original html file so the user has to hit the back button to get back to the original html file. If anyone can help I'd appreciate it muchly!

Stittch

Opening New Html Window Without Toolbars And Scroll Bar From Html Link
Hello - is there a way to open a new html page( that will have my flash embedded) from my main html page that does not have the toolbars and scroll bar? I am trying for a clean look that will be supported by most if not all browsers.

Opening An HTML Window In A New RESIZED Window?
OK I have a button in flash that I want to open a new window that is 200X400 and NOT resizeable how can I do this?

Information From A Flash/html Window To Another Flash/html Window
I've got some difficulty to get the following done.
The problem: With a button (onrelease) in a Flash movie which is embeded in a HTML page I want to activate a dynamic textbox in another Flash movie which is embeded in another HTML page. Both pages/windows are open at the same time.
Is this possible?

Swf On Html Controlling Swf In Another Html Window?
Hi, i know that may sound crazy but i got to ask...


I need that when i click at a button on my flash website, it calls a new html window that have another swf in it..but i want to this new sfw go to a certain frame according to the button clicked on the first swf... did i get myself clear?

Its like i have 3 button in the SWF(1) and i want that this tree button, when clicked, call a url with a swf in it, the problem is, i want that this swf called from the button go to frame 1 if button one was pressed, frame 2 if button two was pressed and so on...


is that possible? Open and call the frame?

thanks guys!! Flashkit big school

Detect Window Dimensions ---> Put As SWF Dimensions?
Hey folks.

Been googling without luck on this. Any idea if it's possible to have Actionscript or Javascript detect the size of a browser window then write those values into the flash embed?

I know I can scale, but it's not a good idea for my specific task:

To simply present an exact-fit full page flash, no matter the initial window size. But one that does not scale with window resize.

Thanks for the wisdom

Detect Window Dimensions ---> Put As SWF Dimensions?
Hey folks.

Been googling without luck on this. Any idea if it's possible to have Actionscript or Javascript detect the size of a browser window then write those values into the flash embed?

I know I can scale, but it's not a good idea for my specific task:

To simply present an exact-fit full page flash, no matter the initial window size. But one that does not scale with window resize.

Thanks for the wisdom

What Is THE Best Way To Detect Flash And Redirect To Flash Or Html ?
What do you think is THE best way to detect flash and redirect the user to Flash or Html format page.

Nav To Html Not Nu Window
Thank you for the answer but...I did use
for the Get Url the "button name html", "right" frame
and it opens a new window. Is there some other place I need to check to direct it to the local root file instead of opening a new window?
I was following example in Jumpstart Kit.
[Edited by Pepperstar on 10-27-2001 at 11:53 AM]

Pop-up Html Window
greetings,

how i can make a flash button when clicked will show a pop-up html window (not the same window where the flash site is)?

thanx

Html Pop Up Window
I have this problem where I set up a script matching the size to my pop window :: but for some reason the pop window never fits my html file exact :: its off a little :: can anyone help me with this

Pop Up HTML Window
Ahhhhh this is killing me :: I dont understand why this is happening :: Im using Flash MX and everything I make a pop up window using this script ::
============
on (release) {
getURL("javascript:NewWindow=window.open('resume.h tml','portfolio','width=800,height=500,left=100,to p=100,toolbar=no,location=No,scrollbars=No,status= No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}
============
When I test my pop up window it doesnt fit the 800x500 window :: some of it gets cut off. Why is that? Does it have something to do with my publish settings for the HTML? Please someone help
============
Thank You

HTML New Window
I am trying to find the HTML source code which will open the flash player in a new window with constricted size, no menu's and no scrollbar - see www.som.com for an example - thanks

ki@prevestige.com

Pop Up Html Window
I would like to pop up an html window which I can do. But when I try to control the size of the window it does not seem to work. Does anyone know the code to make this work.

Thank you for any help

oh and i am using geturl and some javascript

HTML Pop Up Window? Help
I am making a site in flash and when the user clicks on a button I want an html pop up window to appear. I need to know how to make my an html page a certain size. I know who to go to "open brower window" under behaviors but that won't work if I am using flash. Can anyone please tell me how to make my html page pop up on a certain size?

Thanks

HTML New Window
Hi everyone...

I have searched the forums to try and find the answer to this, but I have found similar answers but not precisely what I'm looking for, I'm not even sure if it is possible...

I have a HTML text scroller that loads a HTML text file at run time, and I am trying to load a JavaScript window that has no borders and menu and address bar etc... but I can't seem to get the HTML in the text document to be so correct to work... has anyone done this before or is it possible?

At the moment I have in my .txt document

Code:
<A HREF="javascript:openIT('page.html', 450, 250, null, null,'mywinname01');" TARGET="frame_Name">images .all images load in a new window
</A>info
and then in my .html document i have


Code:
<script language="javascript" type="text/javascript" src="chromeless.js"></script>
<script language="javascript">
function openIT(u,W,H,X,Y,n) {
var cD ='images/close_down.gif'
var cU ='images/close_up.gif'
var cO ='images/close_over.gif'
var cL
var tH ='<font face=verdana size=1>**Borderless Example</font>'
var tW ='Borderless Example'
var wB ='#003366'
var wBs ='#003366'
var wBG ='#8BB1D8'
var wBGs='#B1CBE4'
var wNS ='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'
var fSO ='scrolling=no noresize'
chromeless(u,n,W,H,X,Y,cD,cU,cO,cL,tH,tW,wB,wBs,wBG,wBGs,wNS,fSO)
}
</script>
Any help would be very appreciated.

Please let me know if an uploaded file would help.



Cheers.

HTML Window
Hi,

Is it posible to open an html page from flash to a given size....? I know how to do this from html using javascript but am not sure how its done from flash.

Any ideas please?????

Pop Up Window In Html?
Hey... I used the following tutorial: http://www.kirupa.com/developer/mx/centered_popup.htm to make a centered, customised pop up window for my site: http://www.vapour-music.co.uk. Does anyone know how I can have the same centered, customised, pop up window except without using flash as it is for a "flash is required for this site" page. Heeeeelpppppp meeeeeeeee!!!!!!!

(PS, yes I now take "html God my arse" with acceptance )

Html Pop-up Window
Im trying to make it so when i click a button a new window pops up with the new html page, i also need it to be specific dementions but i dont know how to do this. heres what i have so far

on (release) {
getURL(www.comboclothing.com/program.htm, "_blank");

}

which by the way doesnt even work, it sends me to comboclothing.com/NaN ( which is a page i dont even have. any help?

Pop Up Window From HTML
I have a swf file that has dynamic text and links being loaded from HTML and CSS. I was wondering if it was possible to create a chromeless pop-up window from a link in the HTML file.

Open 410*500 Html Window
Hi,
I have a flash site, and i need to open from this web, a html window, with "width=410,height=500" properties.
Working in dreamweaver it is easy, but i have no idea of doing it in flash...
anybody can help me?

regards

piraya

Closing HTML Pop Up Window
Hi there
does anyone know how to close a html pop up window?

I've used this script on a button:
on (release) {
getURL ("Javascript:close.window();");
}


but it doesnt seem to work.

Thanks in advance.

HTML Pop Up Window In Flash?
I am making a site where I want to display my artwork. I have seen Flash sites where the links to images pop up a new html window(no menu bar or scroller) fit to the image size.
I would really like this instead of a regular browser window popup.

So how is this done?!?

- Matt

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