all groups > flash actionscript > may 2004 >
You're in the

flash actionscript

group:

Window component help


Window component help milkhead
5/15/2004 6:03:59 PM
flash actionscript: Hi All
I am having trouble loading a URL into the window component. I tried
myWindow.contentPath and also just tried entering the URL in the Parameters
field.
Any ideas or tricks I need to use.
Thanks in advance
Re: Window component help rlc5611
5/16/2004 10:08:09 AM
either method should work equally well. Can you post the script you are using
for myWindow.contentPath = ?

Do you get an error message? What does the window look like when you test
(i.e. does it look like the window component and just not displaying your
content or is it a white rectangle without the drag bar on top)?
Re: Window component help milkhead
5/16/2004 3:48:20 PM
The Window shows up but just blank. Here is my code:

Movie clip is called weather_mc
weather_mc.setStyle(color ="0x333333", fontFamily = "Arial", fontSize = "11",
fontWeight = "bold", textAlign ="center", borderColor = "0x999999");
weather_mc.contentPath = "http://www.starladesign.com";
I am assuming the window left justifies the loaded site!

All the set style features work on the window.
Re: Window component help rlc5611
5/17/2004 3:09:12 AM
I give up. I have spent 2 hours on this without success. I have read through
the documentation from MM as well as ultrashock and done everything it suggests
but it still will not work.

Go to www.ultrashock.com and click on tutorials and then MX 2004 and then
Flash MX 2004 UI Components and finally the Window component (#15).

A quote from the Ultrashock tutorial:

"You should be aware that the Window component cannot display a form that has
external content loaded into it via its contentPath parameter. This issue is
not addressed in the documentation so I cannot say for certain whether this is
a bug or a fact of life (a known design limitation of the system.)"

This is interesting because I can load an SWF from a website but if I load the
corresponding HTML that contains the SWF file, nothing is displayed. Something
else I found interesting. When you put in the URL reference, it is actually
finding it and just won't display it. For example, if I try to load
http://www.msn.com, the window is empty. If I try to load
http://www.monosodiumglutimate.com, I get a file not found error.

Then I tried my website which is just a SWF embedded into an HTML page.

In the window,
If I load http://www.mysite.com, nothing happens
If I load http://www.mysite.com/index.html, nothing stubbornly insists on
continuing to happen
if I load http://www.mysite.com/index.swf, nothing suddenly stops happening
and something now takes over

It looks to me that the Window component is simply flawed or else the
documentation is misleading allowing you to think you can do something that
really is not possible. Maybe the only way you can display an HTML popup is
with the getURL("http://www.mysite.html","_blank"); or else load it into a MC
holder that has the look and feel you want to achieve.



Re: Window component help milkhead
5/17/2004 3:34:05 PM
Thanks so much for your effort. Definitely a misleading component. Why would they include contentPath if it doesn't function correctly.
Ah well.
AddThis Social Bookmark Button