runtime sharing Q
- Started
- Last post
- 5 Responses
- jpea
is it possible to dynamically set a shared library item? ie : there are 5 items in the library that are imported for runtime sharing. what if, based on a variable passed into the main swf, only 1 of these is needed. can it only set 1 to pull in that shared data, since otherwise you'd end up having to preload 5 times as much data?
- caseyc0
With runtime sharing it has to load the entire library swf, even if only one thing is imported.
You "could" use 5 symbols from 5 different swfs but there's no way to load them individually, you could try and jump frames but that wont work either... the player wont let you go past a frame with a shared symbol on it until that swf has fully loaded.
Sorry :(
- jpea0
doh, that's what i was doing. 5 different language swf's.
damn.
- caseyc0
Well, if its fonts there is another way...
Basically the way the shared fonts guys do it:
One swf with an exported mc which contains a textfield with embedded font
One swf that imports that mc as a shared symbol
Then you load the second swf in via loadMovie and you can use the font in your main swf
- jpea0
that'd be great! i'll give it a go.
thanks!
- jpea0
crap. doesn't seem to work. i'm able to access the font from the 2nd swf as usual, but when it's loaded via loadMovie to the 3rd swf, no font comes along for the ride.