Flash And HTML/CSS
- Started
- Last post
- 6 Responses
- ajxthompson
Hey Yall
I have some css code i wanna execute in my html page from a flash movie
onclick="con1.style.pixelHeight...basically i want to resise a table using css but through my flash movie
any help is appreciated
- ********0
why do you have to do it that way? workaround?
- ajxthompson0
i have a header in flash and i need the rest of the page to be in html but i don't wanna load the flash movie over and over again and i don't wanna use regularframes
i gonna use iFrames in a table but the content expands for each page so i need to make the table size increase and decrease
but my menu is in flash so the goess my problemhttp://www.215designgroup.com/in…
here's something i was doing last year using the same idea but i never finish it
however the table that contains the content is an iFrame and it resizes to fit the contenti just need to call that action using flash
- ajxthompson0
anyone?
- jkosoy0
Use Javascript as a middle man.
I don't have a specific example, but you could simply do:
button.onRelease = function()
{
getURL("javascript:changeCSS...
};And then in your header have the javascript neccessary to switch up the appropriate CSS.
- Anarchitect0
and your javascript should look like:
//give your item a specific id
function changeCSS(){
document.getElementById('id').st...
}
- jevad0
getURL jscript function