Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-11-2017, 06:34 PM   #1
CrazY.
Registered User
 
Join Date: Dec 2015
Posts: 2
Question [HELP] Inventory dont work...

Hey, did this code to give a message of the item, and the instance of the slot when entering the frame, but it is not working properly, why? Some help?

Code:
var slotsArray:Array = new Array(vcam.inventory.slot_01);

for (var i=0; i<slotsArray.length; i++)
{
	var _currentSlot = slotsArray[i];
	_currentSlot.itemID = "empty";
	
	trace (_currentSlot._name + " " + _currentSlot.itemID);
}

//output:
//undefined undefined
Attached Files
File Type: zip Arquivo do jogo AS2.zip (10.6 KB, 5 views)
CrazY. is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT. The time now is 11:39 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
[HELP] Inventory dont work...[HELP] Inventory dont work...
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.