Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Making An Inventory List



How could I make an inventory list. Such as clicking a button and have it add itself to the inventory, then click a "clear" button to remove it.
I am pretty good with actionscript, but have never tried this before.
Thanks,
Blaine



FlashKit > Flash Help > Flash ActionScript
Posted on: 04-04-2004, 03:37 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

[F8] Making An Inventory
I need to make an invemtory but i have no idea where to begin.

ANY help or links would be much appreciated.

Making An Inventory In A Seperate Frame.
Right now i have an inventory, but it is on the same page as the character and the map and stuff. I am trying to get it so when you pick up an item that it will go to a seperate frame or something. Like just an inventory page. And then I would need to know how to go back to the main screen from where you left off. If you have any piece of info or anything it would be much appreciated.

Making An Inventory For A Point And Click Game
Hi there, im working on a point and click game in flash 8 and im having a hard time getting my head around how i might get my inventory working.

Basiclly, what im trying to achieve is -

you see an object on the stage, and you click it, a message comes up 'you have collected <item>' and the item is added to you inventory. your inventory is a box you can bring up with a little icon for each item youre holding which you can then click and use the item and blah blah blah, thats not the hard part.

So whats difficult is this inventory, how can i load movie clips into a certain place from seemingly no where, because what you click on screen isnt exactly whats going to appear in inventory. And how will i make it so the item loads into the next availiable on screen slot?

Its alot to get my head around, any thoughts, suggestions or examples would be HUGELY appriciated

Making A List With MCs
As per an earlier post, I wasn't able to find any way to control the list component as well as I need to. So, I am looking at an alternative, in a way creating my own list using MC.

So, I have a main movie clip on the stage called "mainMC" and inside that I have another movieclip called "textMC" and inside that I have a dynamic textbox named "data".

Now I am pulling data from an XML document and based on that I want to create a list using the above MCs.


Code:


...
count = myXML.firstChild.childNodes[i].childNodes.length;
for(p=0;p<count;p++){
_root[mainMC].duplicateMovieClip("textMC", "text"+p, _root.mainMC.getNextHighestDepth());
//Now I need to adjust the ._y value to move the duplicated MC down each time.
...



So, my duplication isn't even working, and I am not sure how to call the duplicated MC after to move the Y value.

Any assistance would be great!

Making List Of Variables
I am cuurently working on a simply list for a client where you enter you e mail and name and then you can choose from a list of films that you are interested in. The variables/films choosen then becomes the message for to my client. The problem is that I want the variables to be listed after each other on separate lines.

Like so

film1
film2
film3

and so on..

What I am now doing is setting the message variable like this:

message="message"+"film"

This makes a list like so

film1film2film3

So the thing is to make each new variable added on a new row?

How do you do this?

What Is Your Favorite? ... Making A List
I am trying to create a favorites list. When one clicks on a mc have the value go to a dynamic text field (multiline) – this works. What I need to know is how to add the second selection to the next row. Right now it only shows the last selection, overwriting the previous selection. I tried +newline and /n but it didn’t work.
I also searched the forum for similar, but didn’t come up with much…

_root.favlist = 0; //init dynamic text field var called favlist

orange.onPress = function () { //mc orange
_root.favlist = "orange";

grape.onPress = function () { //mc grape and so on…
_root.favlist = "grape";

I am also open to other ideas... have the first click go to 1. second to 2. and so on for all 5 fruits (or movies, bands,... the list could go on -hee hee)
Thank you,
A

Making A List And Checking It.
I'm making a simple Memory game, and I've gotten so far as too make a script that dumps 20 cards on the scene. Every two cards must be associated with a picture, so I made ten frames within the card.

The problem is that I must make sure only two cards per picture are choosen, and to do that I need some kind of list that says which cards or numbers already have been picked. Any ideas?

Making A List In Flash
Hi, I have a Flash question I hope someone can help me with.

I am a novice programmer and actionscript user (to say the least) and I was hoping someone could point me in the right direction.

I am making a just for fun kind of site that I will send to just my friends getting them to sign up to play football on Thanksgiving. The idea I want to use is when one of these 12 guys gets to site they can enter their name in a text field acknowledging they want to play and then their name would show up in a list with other guys names. Is this possible in Flash?

I understand that you probably need an external file to store the info and to pull from in Flash, but I am not exactly sure how to do it or the exact code I need. If anyone has time and would be willing to help please let me know.

Thanks in advance...

FF

Making Xml List With Links
I was able to create a list component in Flash 8 and load the items from an
xml file, but I can't figure out how to make each line clickable in order to
work as a link. The code used to populate the list is:

form = new Object();
form.load=xmlConn.trigger();

The xml file is something like:

<?xml version="1.0" encoding="ISO-8859-1"?>
<articles>
<articles_items>
<title>Link text 2
</title>
<urlstring>article2.htm
</urlstring>
</articles_items>
<articles_items>
<title>Link text 1
</title>
<urlstring>article1.htm
</urlstring>
</articles_items>
</articles>

I intended to use the second field of each "articles_items", the "urlstring"
field, to associate with each "title" listing on the list component, so that
when "Link text 1" gets clicked it takes to "article1.htm". The instances
created are named articlesList, xmlConn, articles_ds.

Making A List Of An Array
Hai,

For my work i'm trying to get an Array properly into a text field. The array is being taken out of XML and then turned into the array and fed into a textfield. But it shows up like this:

Name1, Name2, Na
me4, Name4, Name5

But i want it to show up like

Name1
Name2
Name3
Name4

How could I achieve this?


This is my code:


var xml = new XML();
xml.ignoreWhite = true;

xml.onLoad = function() {
var score, name, time, position;
score = this.firstChild;
if(score.hasChildNodes()) {
var name = new Array();
var time = new Array();
for(var i = 0; i < score.childNodes.length; i++) {
name[i] = score.childNodes[i].childNodes[0].childNodes[0].nodeValue;
time[i] = score.childNodes[i].childNodes[1].childNodes[0].nodeValue;
position = i+1;
//naam_txt.text = position + ": " + name + " -- " + time + " sec."
naam_txt.text = name;
tijd_txt.text = time;
//trace(score.childNodes[i].childNodes[0].childNodes[0]);
//trace(position + ": " + name + " -- " + time + " sec.");
}
}
}

xml.load("tijden.xml");
//xml.load("http://gigakids.nl/files/save.php");
/*var uitslag_array;
var scoren_xml = new XML();
scoren_xml.ignoreWhite = true;
scoren_xml.onLoad = function(succes){

if(succes){
var score = this.firstChild;
var name, time, position;
uitslag_array = scoren.childNodes;
PopulateLists(uistlag_array);
}else{
trace("Dat gaat zo niet goed he!")
}
}
scoren_xml.load("http://gigakids.nl/files/save.php");

PopulateLists = function(xml_array){
naam_txt.text = tijd_txt.text = "";
for (var i=0; i<xml_array.length; i++){
name = score.childNodes[i].childNodes[0].childNodes[0];
time = score.childNodes[i].childNodes[1].childNodes[0];
var ding = xml_array[i].attributes;
naam_txt.text = ding.name + "
"
tijd_txt.text = ding.time + "
"
trace(name + " -- " + time + " sec.");
}
}*/


var uitslag_array
var xml = new XML();
xml.ignoreWhite = true;

xml.onLoad = function() {
var score, name, time, position;
score = this.firstChild;
uitslag_array = score.childNodes;
if(score.hasChildNodes()) {
for(var i = 0; i < score.childNodes.length; i++) {
var scoren = uitslag_array[i].attributes;
naam_txt.text = scoren.name + "
";
name = score.childNodes[i].childNodes[0].childNodes[0];
time = score.childNodes[i].childNodes[1].childNodes[0];
position = i+1;
naam_txt.text = name
tijd_txt.text = time + " sec."
//naam_txt.text = position + ": " + name + " -- " + time + " sec."
trace(position + ": " + name + " -- " + time + " sec.");
}
}
}
xml.load("http://gigakids.nl/files/save.php");


Thanks in advance for your help!

And yes, i have searched the forum.


Bye!

Making List Component Collapsible
Hello all,

I have a List Component on the stage with a height of 240px. I want to create a button so that when clicked, the height changes to 480px, and if clicked then, it goes back to 240px.

I can do this by just doing:

myList.height = 480;

Easy, right? Now, is it possible to Tween or Animate this change? If I do a motion tween and do a Copy Motion to ActionScript, it scales the component. I couldn't do a shape tween on just the bottom left and right anchor points. I'd like this effect, and as a bonus, easing would be super cool.

Any pointers?!

PLZ Help Making Mailing List/newsletter
In my flash website i have included a field to enter email address. How do i actually allow the user to submit?? Thanks.

Making A List From Files In A Folder
Hello all!... it's been a while since i bothered any of you so here's more botherness! :twisted:

I have the first partof this application that records the streaming webcam/audio from the user and it goes to a folder. For the second i need to make one that plays the streams that have been recorded. I know i need a listComponent, but i'm really not sure how to call the items in the folder into the list, and then make them play... any suggestions or ideas?... thanks!

~pako

Making A List Component ._visible = False;
I am trying to make a list component invisible for now by using the following code

tileList._visible = false; //(And later there will be a button that activates it)

And this is the error that it's giving me

1119: Access of possibly undefined property _visible through a reference with static type fl.controls:TileList.

If anyone could help me out that would be awesome Thanks

Making Events Bubble -down- The Display List?
I've read that by default events only bubble to parent DisplayObjects, not children? I'd like to dispatch an event near the base of my application and have it flow down the tree to children of the DisplayObject that dispatched it. Is such a thing possible?

Making A Dinamic List Of Team Members
Hi.

I have to load from a mysql database a full list of members of a team wich must be placed in a drop down menu. How can i make that dinamically? I mean i take the number of members from a php and all their names and display it in a text field. How can i do that? try to create text fields and place one under each other based on the number of members the php sents to me? Or should i try to place all the names in a sigle text field (but then how do i format the names so that they appers under each other)?

Making A List Component Collapsible With Animation
Hello all,

I have a List Component on the stage with a height of 240px. I want to create a button so that when clicked, the height changes to 480px, and if clicked then, it goes back to 240px.

I can do this by just doing:

myList.height = 480;

Easy, right? Now, is it possible to Tween or Animate this change? If I do a motion tween and do a Copy Motion to ActionScript, it scales the component. I couldn't do a shape tween on just the bottom left and right anchor points. I'd like this effect, and as a bonus, easing would be super cool.

Any pointers?!

Making A Sprite Move In Directions From A List In An Array ?
I found myself confused again while experimenting with flashy was hoping you wonderful people may have the answer once again !.
I wanted a sprite to move round on the screen when a play button was pushed. I have a left and a right button which store strings "left" or "right" into the next positions of an empty array called history.

When i push the play button i want i want the sprite to move either left or right according to what commands are in the array. My code just seems to play one single command and then stops when i hit play again it just repeats the same command.

Is there any way to make it play through all commands in the array one after another?

Here's the loop that i was trying to use.


PHP Code:



 if (historyPlay == true)  {  for (var i = 0; i< history.length; i++)   {   switch (history[i]) {    case "left" :     if (sprite.facing == "N") {      sprite.facing = "W";     } else if (sprite.facing == "W") {      sprite.facing = "S";     } else if (sprite.facing == "S") {      sprite.facing = "E";     } else if (sprite.facing == "E") {      sprite.facing = "N";     }     dir = "left"     this.moving = true    break;    case "right" :     if (sprite.facing == "N") {      sprite.facing = "E";     } else if (sprite.facing == "E") {      sprite.facing = "S";     } else if (sprite.facing == "S") {      sprite.facing = "W";     } else if (sprite.facing == "W") {      sprite.facing = "N";     }     dir = "left"     this.moving = true    break;   }  }  historyPlay = false; } 




Thanks in advanced!

Inventory
Im pretty much known at the SFDT forms and Image Gear Studios Forums.

Well, i want to know how to make an inventory in a Flash 5 game.

Lets say when i click on "item" it should show up in my inventory.
How do i do that?

any help would be accepted.

Inventory For RPG
I am currently working on an RPG and I need a inventory system that works. I need to be able to get the item from a shop and be able to use them later in the game. If anyone can help with this please email me at shiny_89@hotmail.com or post through this.
Thank you for your help
~Trent~

Inventory
i've done a search on this subject and its been posted a million times but i think i'm even more confused!!

basically i'm new to flash and i'm making a simple game, i've created about 6 different scenes (not sure if that the best way to go about it) and in each scene are items (mc's) i need to collect (keys for doors, etc).

i need some kind of inventory that keeps the stuff in throughout the game and obviously the items disappear from scene when collected and dissappear from inventory when used.


any help would be greatly appreciated.

Need Inventory
I really need to make an inventory, like that in Diablo...

anyone, know a tutorial?

or do anyone got a .Fla file within an inventory?

Inventory
I have seen someone make one of these inventorys before-exept theirs worked. Whats wrong with mine:
[code}
if (loop != 1) {
loop = 0;//assign the
}
///////////////inventory///////////
if (loop == 0) {
items = new Array();
items[0] = 0;// items in inventory
items[1] = 0;//blank slots
items[2] = 0;
openslot = 0;
loop++;//no more this again
}
///////////////////////////////////
_global.additem = function(itemFrame) {
items[openslot]=itemFrame;//assign the array's openslot the item's number
_root.inventory.slot0._currentframe=items[0];//check the
_root.inventory.slot1._currentframe=items[1];//slots to see if there
_root.inventory.slot2._currentframe=items[2];//is a change in the items
};
[code]

Inventory...
Anybody know how to make something like an inventory?

i use some mc symbols which i drag n' drop on the stage but if i want to have more than 1 of the same symbol i have to make lots of them (copy-paste) as a stock. Is there anyway that a movie clip can be reproduced "infinitely"? THanks

Inventory
I'm trying to make an inventory for a point "n" click game, but im having problems with...everything.
Help is definitly needed.

Inventory
Right I'll keep this brief because I've been searching on forums for an answer to
this for hours now, and had several shots of doing this myself, but for the life of me I can't figure out how to build a CLICK activated INVENTORY not a HITTEST one.

(by click I'm mean as in an inventory you might find in a point "n" click game)

Heres my most recent attempt...

Any help on how to build an inventory would be much appreciated

Inventory
im working on a point and click style game. My goal is to pick up items and have them put into and inventory. Because the game involves multiple rooms, i have the rooms set in different frames. Any way in which if i pick up and item in 1 frame, when i go to a different frame, the item will stay in the inventory going into that frame?

RPG Inventory-Help
I've been making an RPG with Flash Pro 8. It's one of the ones that you walk around, work etc. The insides of the buildings are on different frames to the main one. Inside a school, you can pick up some books for a mission. I made the inventory, and when I click the books they go to the inventory, but when I go back outside to the other frame, the books aren't in the inventory anymore. Can someone please help me?

Inventory
Hello! I have a question!

How would i make an inventory? Like for example.

I press i, then a inventory window takes place of the screen.

I can press up and down to chose what item, and from their i can equip it and such.

I know its not much to work with, but could i get some help?

I use flash mx professional 2004

Making Automatically Updating "top 10" List
Hi, all,

Hope this is the right forum for this.

I built this Flash-based MP3 player for a client. It runs off of an xml file. It works fine, but, now that my client's work has expanded, he'd like to have an automatically updating "Top Ten" list appear on the main page of his site.

I know that there is a way to post the most-played songs data into the HTML file; my question is, exactly how do I do that? I am fairly new to Flash, but I know a little... I am using Flash MX 2004. I assume that there will have to be some sort of data in the xml file so that the Flash player knows what song was played... And then the Flash player ought to be able to compile the data and post it automatically to the HTML page.

What code do I need, specifically? Exactly where do I put it.

I can provide files/code snippets/ whatever to anyone who needs it. I would really appreciate the help. If it is a super easy thing to do that wouldn't take someone experienced at Flash and the functions I'm talking about long to do... I might be willing to pay for it.

Thanks tons!
Charity

Inventory On My Game Needs Some Help
Hey everyone - for anyone thats following along Ive made some progress on my inventory for my game but Im only half way there - when you click on the bubblegum it wont go to the box because its inside of an mc and the _x and _y gets messed up - how do I fix this? also the inventory box moves around on screen so how can I get my bubblegum to get dragged with the box?? I would also like to thank xdrunkcowx for all the help and not getting pissed off when I asked lots of questions - I would be no where without him! so someone please help me solve this mysterious puzzle and get it to work- ive attached the file so you know what Im talking about

Inventory Software ?
I am building a website for a car dealership and they have asked for the capability to update their inventory via a control panel that post directly to the web. Any Ideas ??

Inventory Kicking The Shi* Out Of Me
These are the links to my threads on it.
the full file and code
and...

my problem with it

Inventory Kicking The Shi* Out Of Me
These are the links to my threads on it.
the full file and code
and...

my problem with it

Inventory Code
Hi, I've followed the tutorial here for an inventory:

http://www.flashkit.com/tutorials/Ga...-805/index.php

And it works fine.

Except, when you move to another frame, the item gets dropped again.

Any ideas how to fix it?

Array Inventory
I am currently working on an rpg, and I need to know how to display objects on an array. I have knowledge of how to use an array (push, pop, shift, etc.) and it is the easiest to use when you want to save a file. And when I remove an item from the inventory how can I make it so it updates objects.

inventory: knife, apple, potion.

I remove apple

inventory: knife, potion.

Apple is removed from slot 2 and potion is moved to slot 2.

How can I do this?

[CS3] Inventory System Help
Hello,

I've wanted to try making an inventory for a game I'm planning. Kinda got stuck a little. I'm trying to make the items get attached to some containers, following which items you clicked first. Here's a flash movie to better illustrate what I'm trying to achive :^)

I've already gotten until making the inventory window to pop up when you click on the items in the stage. Then attaching the movieclips to the item slots was too confusing for me. Most of the scripts are undoubtedly wrong...

There's also the .fla file! Please help :^O

Game Inventory
With the help of a more actionscript literate friend I have created a simple inventory window. That is, a movieclip with an invisible button overlaid, which when clicked leads to the inventory window opening. I'm now stuck on a way to move an item somewhere else in my game to the inventory window, once clicked on. One way I tried was to create a movieclip in my inventory window. The first frame is invisible, the second is an icon of the inventory item, and the third an enlarged version of the item. When the actual item is clicked on in another location( it is a movieclip designed to disappear once clicked, with an invisible button overlaid), i added actionscript that, on release, it should go into _root, then my inventory movieclip (called invent) then the item movieclip (called paper1)
the coding for the button is thus:
on (release) { gotoAndStop (2);
this._parent.invent.paper1.gotoAndStop(2);
}
I've gone through this many times and the item just does not appear in the inventory window, any hel pwould be much appreciated!!

Inventory System
Ok Im making a RPG game: (Here it is in development) (arrow keys to move)

http://www.imgupload.co.uk/uploads/b...d95764a4ef.swf

In the frame I have:

currentslotnum = 1;
stop ();
function addToslot (item) {
if (!item.found) {
item._x = eval ("itemSlot" + currentslotnum)._x;
item._y = eval ("itemSlot" + currentslotnum)._y;
item.found = true;
currentslotnum++;
}


Among other stuff - and on items which can be picked up I have:

onClipEvent (enterFrame) {
if (_root.character.hitTest (this)) {
_root.addToslot (this);
}
}


- Yay that works fine. But now when I try to Have it so you click a "Inventory" button the inventory pops up - I get this:

http://www.imgupload.co.uk/uploads/e...5d05bdde1e.swf

Code on the Items:

onClipEvent (enterFrame) {
if (_root.character.hitTest (this)) {
_root.inventory.addToslot (this);
}
}


Code on the two frames of the inventory MC:

currentslotnum = 1;
stop ();
function addToslot (item) {
if (!item.found) {
item._x = eval ("itemSlot" + currentslotnum)._x;
item._y = eval ("itemSlot" + currentslotnum)._y;
item.found = true;
currentslotnum++;
}
}


I now longer have that script on the main page. And the two Items are inside the inventory MC

What should happen?
Upon touching the two items - they should both go into inventory whenever its popped up or closed. (and you can turn the inventory off and on without it messing up)

What Happens:
Touching the two items with the invent closed does nothing - if you turn it on then and touch them - nothing happens.
But if you touch the items for the first time with the inventory open - they go into the invent - but they dont close when the inventory closes.

I think part of it is to do with the mc inventory having two frames - with the script on both frames - presumably I could use attachMC which Im new at.

Making the items disspear with the inventory when closed could be solve (i think_ with just _root.item = false; or something.

Help please?

Inventory In Rpg In Flash
Hello all,
I'm a newby in flash, and I wish to create an adventuregame (Rpg, first person view) similar to many others, just for testing my drawing abilities.

The general coding of the game is clear enough to me, but I need an inventory in which to keep useful objects during the game.
To store items inside the inventory, I used the simple tutorial suggested here in kirupa. I attached this code over the item-mc:

on (release) {
_root.addToSlot (this)

this code call the addToSlot function

function addToSlot (item) {
if (!item.found) {
item._x = eval ("itemSlot) + currentslotnum)._x;
item._y = eval ("itemSlot) + currentslotnum)._y;
item.found = true;

...and then one is added to currentslotnum (with currentslotnum++), a variable set to one in the beginning

With this code the inventory is actually functioning, the item goes to the first free slot in the inventory. But obviously I need to use later this item in the game (i.e. a key inside a hole). How can I do this? I tried with a Mc containing a button: with StartDrag and StopDrag method coded with hitTest or _droptarget nothing happens, that is the Mc don't come out of the inventory - the drag command seems to be ignored.

anyone knows how to do?
I need something similar to skutnik's Daymare town
http://www.daymaretown.com/dmt1.html

o something similar...

http://www.minijuegos.com/juegos/jugar.php?id=6821

tankhing you all in advance

Game: Inventory
I was just wondering If someone could explain to me ho to make an inventory for the RPG I'm making. Also if you could uplaod some examples that would be really good also.

Massive Inventory
I am doing a site for a hockey company and they want (i think they are crazy) me to make an index for about 1500 hockey sticks. They want teams, players, coaches ect ect to be able to check out there stick via internet. Please justify me in reality they will look once and never go back. Anyways were do I start. Maybe one of you guys have a different solution.
i was thinking of having it broken into east midwest west and canada.
please help!!

Inventory : Load Swf Instead Of Attach MC's
Hey guys,
For this problem I've included a download of the fla file so you can check out the code.

<a href="http://www.geocities.com/emtaolovesanhtao/my_controlbox.fla">http://www.geocities.com/emtaolovesanhtao/my_controlbox.fla</a>

I've managed to create an inventory, by collecting the object from 4 different scenes which are 4 separate MC's. What I want to do instead, is collect it from 4 separate swf files. For instance:

These are the 4 movie clips in the game:
MC1 = scBeach
MC2 = scSand
MC3 = scStreet
MC4 = scWater

The user has a map which uses the attachmovie function and removeMovieclip to load up the selected scene. I've created 4 swf files:

scBeach = beach.swf
scSand = sand.swf
scStreet = street.swf
scWater = water.swf

Instead of loading the MC, I want the swf to load as the scene, but I still want the inventory to work. Can I also create a separate control panel (the inventory bar which is the "frame" symbol in the fla) as a swf file too still??
Sorry if its a lil confusing . . . I'll try explain a lil more if its needed. If you can help I'd appreciate you droppin a message! thanks (:

Inventory: Load Swfs Instead Of Mc
Hey guys,
For this problem I've included a download of the fla file so you can check out the code.

<a href="http://www.geocities.com/emtaolovesanhtao/my_controlbox.fla">http://www.geocities.com/emtaolovesanhtao/my_controlbox.fla</a>

I've managed to create an inventory, by collecting the object from 4 different scenes which are 4 separate MC's. What I want to do instead, is collect it from 4 separate swf files. For instance:

These are the 4 movie clips in the game:
MC1 = scBeach
MC2 = scSand
MC3 = scStreet
MC4 = scWater

The user has a map which uses the attachmovie function and removeMovieclip to load up the selected scene. I've created 4 swf files:

scBeach = beach.swf
scSand = sand.swf
scStreet = street.swf
scWater = water.swf

Instead of loading the MC, I want the swf to load as the scene, but I still want the inventory to work. Can I also create a separate control panel (the inventory bar which is the "frame" symbol in the fla) as a swf file too still??
Sorry if its a lil confusing . . . I'll try explain a lil more if its needed. If you can help I'd appreciate you droppin a message! thanks (:

Attachmovieclip Inventory System?
I am attempting to generate an inventory system. When you roll over an item and press "o" for obtain, it disappears from the stage and goes into your inventory (press "i" to view"), to show the item in the inventory, I cant use the simple _x and _y, I have to create "spots" to hold the items. NEbody know how this can be done?

Here is my attempt:

Computer Inventory In Floorplan
I currently keep a floor inventory of the computers in my department in Illustrator. I was thinking of importing the floorplan into Flash and create movie clips for each "computer" record from my inventory database and place them on the floorplan background.

So my question is..... is this a Flash CS3 project or more of a Flex application?
I'm not sure which development environment to use.

Has anyone ever done a Flash Inventory system before?

[CS3] Game Inventory Problems
Hello,

I've wanted to try making an inventory for a game I'm planning. Kinda got stuck a little. I'm trying to make the items get attached to some containers, following which items you clicked first. Here's a flash movie to better illustrate what I'm trying to achive :^)

test movie

I've already gotten until making the inventory window to pop up when you click on the items in the stage. Then attaching the movieclips to the item slots was too confusing for me. Most of the scripts are undoubtedly wrong...

Here's the .fla file! Please help

Inventory Point And Click
Hi

I'm in the midst of writing a point and click game and i'm trying to get my head round how I will make my inventory. I understand that I need to store the objects into an array but I'm struggling a bit. Does anyone know how I would do this using Actionscript 3.0. BTW I'm not using frames in my game I'm doing it in seperate classes (loads of different .as files)

Cheers

Prooster

Why Won't Inventory Work Inside A Mc?
Hi, I made an inventory and it works, the problem is that I need it to be inside a movieclip (menu) but it won't work. Here's how I made it:

I made movieclips that are squares with no fill and gave the instance "itemSlot" + number (I made 16). Then I added this code to the main actions frame:


ActionScript Code:
currentslotnum = 1;
stop ();
function addToslot (item) {
 if (!item.found) {
 item._x = eval ("itemSlot" + currentslotnum)._x;
 item._y = eval ("itemSlot" + currentslotnum)._y;
 item.found = true;
 currentslotnum++;
 }
}

And items are movieclips smaller than the slots with instance "item" + number with this code:


ActionScript Code:
onClipEvent (enterFrame) {
 if (_root.player.hitTest (this)) {
 _root.addToslot (this);
 }
}

("player" is the user)

It works, I've tested it, but only when it is out of the movieclip. Can anyone tell me how to make this work inside the movieclip?

Thanks in advance

Copyright © 2005-08 www.BigResource.com, All rights reserved