Welcome visitor
* Login
* Register
It is currently March 19th, 2019, 7:53 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Flash / ActionScript » Flex



Post new topic Reply to topic  [ 1 post ] 
Author Message
  Setting module x and y coordinates
PostPosted: March 12th, 2010, 5:39 pm 

Posts: 1
Hello,
I'm pretty baffled by the lack of information I've found about this and even more baffled that it doesn't look like there's support for this functionality.

I'm building a custom module loader and I want to send x, y, width, height coordinates for each module I'm loading so I can dynamically place modules where I want them.

I have my moduleReadyHandler as such but when I set the x, y coords the modules placement is unaffected

private function moduleReadyHandler(event:ModuleEvent):void
{
   child = module.factory.create() as DisplayObject;
   dispatchEvent(event);

   if(child)
   {
      var p:DisplayObjectContainer = parent;
      child.x = 100;
      child.y = 100;
      addChild(child);
   }
}


Any ideas?

Thanks,
Eric


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

FORUMS » Flash / ActionScript » Flex


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron