|
> I
discovered something interesting. The original ActionScript class
> extended Sprite. I changed this to Canvas, and now it works without > setting the endpoint in ActionScript. So I now have what I originally > wanted, except that I needed to extend Canvas to get it. *lightbulb illuminates* I know what the problem is now. If
your channel endpoint has relative tokens in them, such as {server.name} and
{server.port}, then these need to be resolved at runtime based on the URL used
to load the SWF. The way that the channel gets this information is through the
mx.messaging.config.LoaderConfig.url property, which is initialized when the
main mx.managers.SystemManager starts up (as it is the one that has access to
the root DisplayObject.loaderInfo).
So, if you do need to use Sprite, then you could either
avoid the relative tokens in your XML config for the channel or we'll need to
get you to initialize the mx.messaging.config.Loader config.
Pete
__._,_.___
-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- RE: [flexcoders] Re: FDS and componentized development: Bug? Peter Farland

