[flexcoders] Can I lookup a div in the html page and hide it from within my Flex app?

2007-04-27 Thread wdsnapper
Hello,

Can someone tell me if it is possible to lookup DOM elements within
the web page hosting a flex application?  If so, can I manipulate the
DOM element from within my application without relying on javascript
to do it?

The page I am placing my swf on does not allow you to add javascript.
 I want to show an item beneath my Flex app on pages that disallow
scripting and restrict networking to internal.  I want to hide the
element on pages that have allowNetworking set to all.

Can this be done and if so how?

Thanks in advance.



Re: [flexcoders] Can I lookup a div in the html page and hide it from within my Flex app?

2007-04-27 Thread Flexing...

use can invoke  JavaScript function from Flex i.e.

- write javascript function in the page hosting the flex app to  
manipulate div/

- invoke Javascript function from Flex.

Refer to the documentation of flash.external.ExternalInterface.



On Apr 27, 2007, at 7:18 PM, wdsnapper wrote:


Hello,

Can someone tell me if it is possible to lookup DOM elements within
the web page hosting a flex application? If so, can I manipulate the
DOM element from within my application without relying on javascript
to do it?

The page I am placing my swf on does not allow you to add javascript.
I want to show an item beneath my Flex app on pages that disallow
scripting and restrict networking to internal. I want to hide the
element on pages that have allowNetworking set to all.

Can this be done and if so how?

Thanks in advance.