loading external css file in adobe edge animate

user1756599 picture user1756599 · Oct 18, 2012 · Viewed 7.7k times · Source

To load an external js-file you can use yepnope like schown here.

But when I define a .css file like this in the stage-composition-ready-window:

 yepnope({nope:['mystyle.css']});

The correct loading code is integrated in the generated source but css is not working.

Can someone please help me?

Answer

Webbly Brown picture Webbly Brown · Nov 24, 2012

Does the solution to call an external source file using jQuery itself not do what you need?

$("<link rel='stylesheet' type='text/css' href='mystyle.css'>").appendTo("#Stage");