# Css won't work in loadMovie

**URL:** <https://forum.kirupa.com/t/css-wont-work-in-loadmovie/61177>\
**Category:** Uncategorized\
**Created:** [August 16, 2004, 7:29pm UTC](https://forum.kirupa.com/t/css-wont-work-in-loadmovie/61177 "2004-08-16T19:29:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lone\_wolf](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@Lone\_wolf](https://forum.kirupa.com/u/Lone_wolf)\
**Post date:** [August 16, 2004, 7:29pm UTC](https://forum.kirupa.com/t/css-wont-work-in-loadmovie/61177/1 "2004-08-16T19:29:31Z")

</div>

[font=Arial]hi,

I have this weird problem.

i have a main movie (site.swf). In this movie there are buttons and a target named “target”

now, when i push my button “portfolio” in my mainmovie, the movie portfolio loads in the target.  
But my css won’t work then.

When i go to my portfolio.swf directly, the css works.

problem: movie loaded in target = css won’t work  
movie loaded directly = css works…

AS in portfolio.swf where the textfield is placed:

myTextStyle = new TextField.StyleSheet();  
myTextStyle.load(“myText.css”);  
this.klantVak.styleSheet = this.myTextStyle; [/font]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 16, 2004, 7:56pm UTC](https://forum.kirupa.com/t/css-wont-work-in-loadmovie/61177/2 "2004-08-16T19:56:45Z")

</div>

I’ve never really dealt much with loading CSS but I have worked with externaly .swf files a lot. It sounds to me like it is definetly a path problem. Double check your paths and instance names. Make sure when you are referencing something in the portfolio.swf, that you use the instance name of the target that it is loaded into. Hope I didn’t confuse you.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 17, 2004, 10:08pm UTC](https://forum.kirupa.com/t/css-wont-work-in-loadmovie/61177/3 "2004-08-17T22:08:10Z")

</div>

> [@Gumby19](#):
>
> I’ve never really dealt much with loading CSS but I have worked with externaly .swf files a lot. It sounds to me like it is definetly a path problem. Double check your paths and instance names. Make sure when you are referencing something in the portfolio.swf, that you use the instance name of the target that it is loaded into. Hope I didn’t confuse you.

it was so easy!  
just changed my publish settings to Actionscript 2.0 and Flashplayer 7 and it worked!
