Current location: Hot Scripts Forums » General Web Coding » Flash & ActionScript » createClassObject returning null value when creating dynamic components.


createClassObject returning null value when creating dynamic components.

Reply
  #1 (permalink)  
Old 09-07-09, 05:10 AM
qburst qburst is offline
New Member
 
Join Date: Sep 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
createClassObject returning null value when creating dynamic components.

createClassObject returning null value when creating dynamic components.

I am using the following code

var __reg2 = new Object();
__reg2.label = _label;
__reg2._width = _w;
__reg2._height = _h;
__reg2._x = this.width / 2 - _w / 2;
__reg2._y = this.height / 2 - _h / 2;
__reg2._alpha = 0;

this.launch_button = this.mc.createClassObject(controls.PixtorieButton, "launch_button", this.mc.getNextHighestDepth(), __reg2);

this.mc is a movieclip which has the correct value during runtime but when i use createClassObject() with it its always returning null value.

I have the component dragged into my library.

Also the code fails even when i am using mx.controls.Button instead of controls.PixtorieButton .

Any help will be greatly appreciated

Thanks in advance
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Keypad Login smithygotlost Script Requests 26 07-11-07 12:29 PM
MYSQL database countll Database 2 06-19-07 04:20 PM
What do you think of my database structure? Oskare100 Database 5 12-27-06 07:43 AM
Left Join with Where & Count is eluding me CutAndPaste PHP 8 12-13-05 03:46 AM
picking random entries with a filter... Double selection problem dsumpter PHP 7 11-16-03 07:19 PM


All times are GMT -5. The time now is 06:46 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.