# Using Symbols inside Packages

**URL:** <https://forum.kirupa.com/t/using-symbols-inside-packages/324973>\
**Category:** flash\
**Created:** [September 18, 2011, 8:40pm UTC](https://forum.kirupa.com/t/using-symbols-inside-packages/324973 "2011-09-18T20:40:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreffonseca](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@andreffonseca](https://forum.kirupa.com/u/andreffonseca)\
**Post date:** [September 18, 2011, 8:40pm UTC](https://forum.kirupa.com/t/using-symbols-inside-packages/324973/1 "2011-09-18T20:40:46Z")

</div>

Greetings…

OK, heres the thing. Since i cannot stop the code from continuing while i’, waiting for amf to send the data, i remember to put a simple rectangle with alpha 0 in front of the stage while waiting for amf to arrive, then remove it.

Since the amf call is done from another class. I don’t know how to do this.

OK…heres the deal.

I got the main DocumentRoot:  
(…)

```php

//This is AS3 code...just put this tags to differentiate from the rest

container = new Sprite();category = new CategoryForm();
category.cat_parent.addItem({data: -1, label:"Choose a Parent Category"});
category.cat_parent.addItem({data:0, label:"Root Category"});
var cat:CategoriesManager = new CategoriesManager();
cat.getAllCategories(); //Here he call the amf server         

category.submit.addEventListener(MouseEvent.CLICK,changeCategory);
container.x = stg2Width;container.y = stg2Height;
container.addChild(category);
addChild(container);

```

This is another \*.as file, another package that is reference by documentroot

```php

public function getAllCategories(){

// Here i with to put the the rectangle.
_netConn = new NetConnection();
_netConn.connect("http://172.31.1.100/categories/managecatgoriesexternal");            
_resp = new Responder(onRes, onError);_netConn.call("App_ShopCategoriesManager.getAllCategories",_resp);
}

```

Can someone please help me to achieve this??

Thanks in Advance,
