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




SHOPPING BASKET ITEM REMOVE BUTTON-help Please



Hiwe have a shopping basket data grid component called basket info. we have various items on the stage - when you click on them they are added to the datagrid.everything works fine apart from the remove item button.we are trying to make it work so that when you select an item in the basket , you can click the remove button to delete it and update the pricehas anyone got any ideas?thanksalexgregsie74@yahoo.com- my email addresscode follows------>var aItem:Array = new Array();aItem["toys"] = {instance:this.shopPage.toyShelf, product:"Toys", price:34.99, quantity:0};aItem["calender"] = {instance:this.shopPage.calender, product:"Jonathan's Book 2009 calender", price:1.99, quantity:0};aItem["mugs"] = {instance:this.shopPage.mugs, product:"Mugs", price:3.99, quantity:0};aItem["clothes"] = {instance:this.shopPage.clothesRail, product:"Clothes for your wardrobe", price:9.99, quantity:0};aItem["caps"] = {instance:this.shopPage.capsBtn, product:"Fun cap", price:6.99, quantity:0};aItem["magnets"] = {instance:this.shopPage.magnets, product:"Magnets", price:1.99, quantity:0};aItem["sweets"] = {instance:this.shopPage.tillPoint.sweetJar, product:"Assorted sweets", price:0.50, quantity:0};aItem["badges"] = {instance:this.shopPage.badges, product:"Badge", price:1.99, quantity:0};aItem["key chains"] = {instance:this.shopPage.keyChains, product:"Keychain", price:1.99, quantity:0};//for (var i in aItem) {    shopPagePopup.addItemBtn.onRelease = function() {        trace("add item btn clicked");        aItem[currentProduct].quantity++;        updateDatagrid();        _root.shoppingBasketBTN.basketAnim.gotoAndPlay(2);};this.basket.clearBasketBtn.onRelease = function() {    clearDataGrid();};        //}this.basket.removeItemBtn.onRelease = function() {        //aItem[currentProduct].quantity--;                //totalPrice -= aItem[i].quantity * aItem[i].price;        trace("remove item btn clicked");        var emptyArray:Array = new Array();    //this.basket.basketInfo.dataProvider = emptyArray;        var removeIt = this.basket.basketInfo.selectedIndex;        this.basket.basketInfo.dataProvider = removeIt;this.basket.basketInfo.dataProvider.removeItemAt(t his.basket.basketInfo.selectedIndex);this.basket.basketInfo.selectedIndex = removeIt -1;//this.basket.basketInfo.dataProvider.removeItemAt(t his.basket.basketInfo.focusedCell);//updateDatagrid();    }//--------------------------------------- functions ----------------------------------------------//function updateDatagrid():Void {    totalPrice = 0.00;    var aBasket:Array = new Array();    for (var i in aItem) {        if (aItem[i].quantity>0) {            aBasket.push({Product:aItem[i].product, Quantity:aItem[i].quantity, Price:aItem[i].price*aItem[i].quantity});            totalPrice += aItem[i].quantity*aItem[i].price;        }    }    this.basket.basketInfo.dataProvider = aBasket;    this.basket.basketInfo.vScrollPolicy = "auto";        this.basket.tTotal.text = totalPrice;}this.basket.basketInfo.multipleSelection = true;function clearDataGrid():Void {    totalPrice = 0.00;    var emptyArray:Array = new Array();    this.basket.basketInfo.dataProvider = emptyArray;    this.basket.basketInfo.vScrollPolicy = "auto";    this.basket.tTotal.text = totalPrice;    this.basket.basketInfo.items.clear();}//////////////////////



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 12-17-2008, 08:20 PM


View Complete Forum Thread with Replies

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

SHOPPING BASKET ITEM REMOVE BUTTON-help Please
Hi

we have a shopping basket data grid component called basket info. we have various items on the stage - when you click on them they are added to the datagrid.

everything works fine apart from the remove item button.we are trying to make it work so that when you select an item in the basket , you can click the remove button to delete it and update the price

has anyone got any ideas?

thanks

alex
-------->

var aItem:Array = new Array();
aItem["toys"] = {instance:this.shopPage.toyShelf, product:"Toys", price:34.99, quantity:0};
aItem["calender"] = {instance:this.shopPage.calender, product:"Jonathan's Book 2009 calender", price:1.99, quantity:0};
aItem["mugs"] = {instance:this.shopPage.mugs, product:"Mugs", price:3.99, quantity:0};
aItem["clothes"] = {instance:this.shopPage.clothesRail, product:"Clothes for your wardrobe", price:9.99, quantity:0};
aItem["caps"] = {instance:this.shopPage.capsBtn, product:"Fun cap", price:6.99, quantity:0};
aItem["magnets"] = {instance:this.shopPage.magnets, product:"Magnets", price:1.99, quantity:0};
aItem["sweets"] = {instance:this.shopPage.tillPoint.sweetJar, product:"Assorted sweets", price:0.50, quantity:0};
aItem["badges"] = {instance:this.shopPage.badges, product:"Badge", price:1.99, quantity:0};
aItem["key chains"] = {instance:this.shopPage.keyChains, product:"Keychain", price:1.99, quantity:0};

//for (var i in aItem) {
*** shopPagePopup.addItemBtn.onRelease = function() {
*** *** trace("add item btn clicked");
*** *** aItem[currentProduct].quantity++;
*** *** updateDatagrid();
*** *** _root.shoppingBasketBTN.basketAnim.gotoAndPlay(2);
};

this.basket.clearBasketBtn.onRelease = function() {
*** clearDataGrid();
};
*** *** //}
this.basket.removeItemBtn.onRelease = function() {
*** *** //aItem[currentProduct].quantity--;
*** ***
*** *** //totalPrice -= aItem[i].quantity * aItem[i].price;
*** *** trace("remove item btn clicked");
*** *** var emptyArray:Array = new Array();
*** //this.basket.basketInfo.dataProvider = emptyArray;
*** *** var removeIt = this.basket.basketInfo.selectedIndex;
*** *** this.basket.basketInfo.dataProvider = removeIt;
this.basket.basketInfo.dataProvider.removeItemAt(t his.basket.basketInfo.selectedIndex);
this.basket.basketInfo.selectedIndex = removeIt -1;

//this.basket.basketInfo.dataProvider.removeItemAt(t his.basket.basketInfo.focusedCell);
//updateDatagrid();
*** }
//--------------------------------------- functions ----------------------------------------------//
function updateDatagrid():Void {
*** totalPrice = 0.00;
*** var aBasket:Array = new Array();
*** for (var i in aItem) {
*** *** if (aItem[i].quantity>0) {
*** *** *** aBasket.push({Product:aItem[i].product, Quantity:aItem[i].quantity, Price:aItem[i].price*aItem[i].quantity});
*** *** *** totalPrice += aItem[i].quantity*aItem[i].price;
*** *** }
*** }
*** this.basket.basketInfo.dataProvider = aBasket;
*** this.basket.basketInfo.vScrollPolicy = "auto";
***
*** this.basket.tTotal.text = totalPrice;
}
this.basket.basketInfo.multipleSelection = true;

function clearDataGrid():Void {
*** totalPrice = 0.00;
*** var emptyArray:Array = new Array();
*** this.basket.basketInfo.dataProvider = emptyArray;
*** this.basket.basketInfo.vScrollPolicy = "auto";
*** this.basket.tTotal.text = totalPrice;
*** this.basket.basketInfo.items.clear();
}
//////////////////////

Shopping Basket
Anyone know have script for a shopping basket (flash 5) - needs to be easily updateable and have fields for Item, Size, Quantity and a total.
Cheers

//d-b//

Shopping Basket, Is It Possible ?
Hello guys

Is it possible to make a simple shopping basket in actionscript and if it is, how is it done? I don't want a "real" shopping basket, I just need to give customers an opportunity to collect pieces for a product and look at the final price/product. I don't need online payment, etc.
Any help is really appreciated.

Regards

Michael

Flash5 Shopping Basket
Hi there,
I am looking for a tutorial or a .fla to go through that will teach me how to create a shopping basket for an e-commerce website. I have found a number of related topics (drag and drop tutorials and array tutorials) but want to be able to put it all together.

Can anyone please point me in the right direction. Or if they have/know of one could I have a look at it please.

Cheers Mike

Email Shopping Basket
I'm trying to create a shopping basket of 10 items. Once the user has selected the items, quantity etc, a click on the Submit button should place the order in the Outbox of the email client. How do I code the Submit button?

Many thanks.

Shopping Basket Tutorials?
Does anyone know of any tutorials where i can learn about creating a shopping basket type site using Flash 5.

Scripting For Shopping Basket
i need to set up a shopping basket for my flash website, i have the scripting for html code from paypal. do you have any suggestions on programs i can use? preferably free, paypal is a free and easy option im just not sure how to convert the code from html. im using flash 8

thanks

Shopping Basket In Flash?
Hi.

Can anybody give me a few hints as to how I go about implementing a shopping basket/checkout in Flash. I have used PayPal in html before but I think my latest project will be more complex. I shall have the work of several designers in slide shows that will be in different categories in the Flash movie. At present, I cannot think if it is possible that If a client wants to purchase different items from different categories - how does the shopping basket and checkout work to add up the final quantities and costs?

Thanks

Lets Go Shopping, In A Flash Basket
so ive got my complex site creating a set of variables for a custom product.

collating the variables into a nice english sentance.

formulating a price for the individual product.

and placing it all into a dynamic txt box in plain english with the price.

BUT

i'll be a fuoking pamela anderson before I can work out how to let the user add the items to a basket and being able to remove items too. (yes, i want flash to do this bit!)

yours, singlehadedlykillingmyselfwithactionscript, faithfultotheknowlegesomeonecanhelpme, chris

Very Simple Flash Shopping Basket
Does anyone know of a tutorial for a simple shopping basket in flash? No creditcard or bank stuff - just a script that totals up and displays the order, and passes on the detailsto the seller by email.

Flashkart And SecureStores For Shopping Basket?
Does anybody have any experience of Flashkart and SecureStores for creating Shopping Basket in Flash. Ive done this kind of stuff in html before but not Flash. What do you recommend?

Thanks

Educational Shopping Basket Game
Here is the premise for the program:
The user can select items (one of each) from the left of the screen and place them in their shopping cart basket to the right. The game will sum up the prices of everything in the cart, and subtract items taken out of the cart.
Does anybody know how I could add/subtract the total $ amount in the cart based on whats in it? Any suggestions would be much appreciated.
Here are some diagrams to help show the program:
URL
URL
URL

link to images: http://picasaweb.google.com/tylerpenney/GuavaCreativeSolutions#5253005255747063202

I understand how to drag and drop the items and register when they are placed in the shopping basket using startDrag(), stopDrag() and eval(this._droptarget) == X ) as shown below:

Code:


banana_mc.onPress = function():Void {
this.startDrag(true);
this.swapDepths(this.getNextHighestDepth());
};
banana_mc.onRelease = function():Void {
this.stopDrag();
if (eval(this._droptarget) == shoppingBasket_mc) {
// Add the price to the shopping cart total
} else {
// Don't add the price to the shopping cart total
}
};

Maths Calculation Problem When Deleting Items In Shopping Basket
I am having problem calculating values to be stored in variables in my flash shopping basket project. I have 3 items that can be bought and 3 output fields each showing the number of the specific item in the shopping basket, the price per item and lastly the accumulative cost of that item. this all works fine.

I have now added a bin button that is placed next to each output field that on press, will delete that output field. The button press will also reduce the total order by
(amount of item x previously in the basket*price per item x)
I also have a stock figure for each item that was retrieved from a database on load. If a shopper wants to buy then this stock figure needs to be returned to update the database (or a minus figure needs to be sent back) - not a problem in this particular button press as the stock figure is adjusted on the flash front end.

Any way, hope you are following, here is my code for the "bin" button press.

on (release) {
_root.output = "";
_root.tobuy = "";
_root.total = _root.total-_root.mcdrag.accum;
_root.stock2 = _root.stock2+_root.mcdrag.itemqty;
_root.bin1._visible = false;
_root.mcdrag.itemqty = _root.mcdrag.itemqty-_root.mcdrag.itemqty;
}


Everything seems to work fine -i can drag item x to the shopping basket and calculations are performed to give a running total of it's contents . The bin button also works and when pressed will reduce the total basket value by the value of the particular good (good "x"). All stock figures are too updated.

The problem is that if i have 6 or more units of item x in my basket, when i press the bin button, the total figure doesnot display "0" it displays "3.55127.."
Everything works fine until you decide to bin 6 or more of any item.


I cannot understand this can anyone help?

Remove Lib Item
need to remove a png from library in MX2004 pro. crashes app when selected. assume corrupted. any ideas?

Add To Basket PayPal Button - PLEASE HELP
Thanks to the generosity of fellow Flash users, I was able to make use of this script for my 'Add to basket' Paypal button. The button works beautifully however I do not know how to include a 'Flat postage rate' - a one-off charge irrespective of the number of items a customers purchases. I'll be selling many different items on my web site and this button will be next to each item. Please could someone let me know what I need to add to the script below and if needs be, take away. Flash MX used. Many thanks.

on (release) {
var formData = new LoadVars();
formData["add"] = "1";
formData.cmd = "_cart";
formData.business = "my email address";
formData.item_name = "Glass Lariat";
formData.item_number = "GL_01";
formData.amount = "40.00";
formData.page_style = "PayPal";
formData.no_shipping = "2";
formData["return"] = "my web address/html/payment_status_01.html";
formData.cancel_return = "http://www.my web address/html/payment_status_02.html";
formData.cn = "Message from customer...";
formData.currency_code = "GBP";
formData.lc = "GB"
formData.bn = "PP-ShopCartBF"
formData.send("https://www.paypal.com/cgi-bin/webscr", "_blank", "GET");
}

Remove Item From Array
names = Array(); // this consists of 100 dif. names.
players = Array(); //Empty

EASY PART
Now what I want to do is to randomly take 50 diffrent names
from the namesArray add them to the players array.
Thats the easy part.

HARD PART
I don't want duplicating names I want 50 unique names from the names Array.

Any thoughts out there? .

Can't Remove Item From Array...
Hey everyone,

Right now, I'm running a function that uses a for loop to go through an entire array of objects. If the current object meets a certain condition, it is removed from the array. For some reason, it never removes the item from the array. I've tried both delete and slice... nothing works. Here's the code I've been using.


PHP Code:




for(i=0; i < givenArray.length; i++){
    // Do something to the item.
    if(givenArray[i].property > 100){
        givenArray.splice(i, 1);
        // or delete givenArray[i];
    }
    else{
        // Do something else.
    }
}







Is it because I'm cycling through the array, and so, I can't modify it? Any help is greatly appreciated!

Remove Item From Array
I am making a game with labels on a time line kept in an array as strings:

var tokens:Array=["tokenOne","tokenTwo","tokenThree"];

When the character in my game collides with certain items, I want to delete the reference to that label on my timeline from the array. For example if he collides with tokenOne_mc, I want to delete "tokenOne" from the above array and so on. Assuming that I have something like:

character_mc.onEnterFrame=function() {
if (character_mc.hitTest(tokenOne_mc)) {
// How do I remove tokenOne
// from tokens
// and update array
// ??????
}
};

Thanks in advance -
sleepydad

Remove Item From An Array
I am trying to remove an item from an array.

var myArray= new Array("A","B","C","D","E","F");
delete myArray[2];//this will delete C and the output will be like this.

trace(myArray); // A,B,undefined,D,E,F

what if i dont want that "undefined" there? I want the output as A,B,C,D,E,F


thanks...

Remove All Item From Array
Hi
Is it possible to all item fron and array and keep one or two that i want.


ActionScript Code:
_global.manfListMain = new Array(pao,laz,dop,whi,ver, );


This is a small example but there is a long list of item in above array and i am looking for something like

manfListMain.delete(laz,whi)

deleting it by variable name and not by its position.

Remove An Item From Array
ok, I want to randomly choose an item from an array. ok here, I think. My question is this, how can I remove an item from the array after I get teh info out of it so that next time I call a random item from the array, I will not choose the sam eone again? thanks-
Aaron

Remove Item In Array Output
I'm trying to output the values from an array then subtract the value that the item is currently on. Does anyone know how to do this.

For example (this code has been edited to save space!):
My array is being pulled from a text file ->

ActionScript Code:
// this is where it's split it up

labelArray = this.mainMenu.split(",");
numLabels = labelArray.length;

//Here it's being duplicated using the labels in the "labelArray"
for (var i = 0; i<numLabels && i<numLinks; i++) {
name_mc.duplicateMovieClip(labelArray[i], i);
_root[labelArray[i]].name_txt.text = labelArray[i];
_root[labelArray[i]]._y = (i*name_mc._height)+name_mc._y;

//THIS IS THE PROBLEM!!
// the statement below gives me the correct name of the array element, works fine
thisLabel = this._name;

// This gives me all the elements in my array, works fine
trace(labelArray);

//How can I subtract  "thisLabel" from "labelArray" and not have it removed from the ARRAY!!
//THIS DOESN'T WORK
labelMinus = eval(thisLabel - labelArray);
trace(labelMinus);


Does anyone have any ideas? Thanks in advance!

Remove Item From 2004 ListBox
Is there a simple method of removing a selected Item in a listbox (v.2) which was populated dynamically?

I have a feeling I have create a new function to loop thru the array again to remove the item that was selected.

Remove ClickHandler From 1 Item In Combobox
hello everyone,

I'm using a combobox to map out my menu.
Some buttons in my menu don't have pages only sub pages, these pages have to be visible in the combobox but not active. when i choose a inactive one the combobox there should be no action and it shouldn't collapse.

So the question is how do i make a item in the combobox inactive?

I hope someone will understand what i mean.

thanx in advance,

Maxgrafx

Remove Part Of Any Array Item? Pos?
Hey all
I am currently storing the items of this array as a variable. thats cool, but what I want to do
is remove the b so I get 1 2 3 4 5 6 7 8 9 10
instead of b1 b2 b3 b4 etc.



Code:
buttonArray = [Enter_me.b1, Enter_me.b2, Enter_me.b3, Enter_me.b4, Enter_me.b5, Enter_me.
is that possible??

Remove Item From 2004 ListBox
Is there a simple method of removing a selected Item in a listbox (v.2) which was populated dynamically?

I have a feeling I have create a new function to loop thru the array again to remove the item that was selected.

Remove ClickHandler From 1 Item In Combobox
hello everyone,

I'm using a combobox to map out my menu.
Some buttons in my menu don't have pages only sub pages, these pages have to be visible in the combobox but not active. when i choose a inactive one the combobox there should be no action and it shouldn't collapse.

So the question is how do i make a item in the combobox inactive?

I hope someone will understand what i mean.

thanx in advance,

Maxgrafx

Unable To Remove DataSet Item
I've never experienced this before, but tracing the method, shows it's returning false.

I can addItems no problem although....

any idears?

Button That Acts Like A Button Or Like A Menu-item?
Hello! Of you have a button, you can choose if you want to act like a button or like a menu-item. What is the difference?

Martin

Flash Button To PAYPAL Shopping Cart...
Hi all....
I'm trying to figure out the coding to get to my shopping cart from a flash button....

I think I almost got it!!!! What I have is this:

on (release) {
cmd = "_cart";
business = "homerwebsite@mac.com";
item_name = "CoinOne DVD";
amount = "29.95";
shippping = "6.00";
page_style = "HALproductions";
no_shipping = "2";
return_str = "http://www.homerliwag.com/shop.htm";
cancel_return = "http://www.homerliwag.com/cancel-order.htm";
no_note = "1";
currency_code = "USD";
bn = "PP-ShopCartBF";
getURL("https://www.paypal.com/cgi-bin/webscr", "_blank", "POST");
}


I get NO errors, but it takes me to a PayPal page (https://www.paypal.com/cgi-bin/webs...PP%2DShopCartBF)

the page says" We have detected a problem with this shopping cart. If problem persists, please contact the merchant"


Anyone see anything missing or why that page comes up and not the correct actual shopping cart???

PLEASE, ANY HELP IS APPRECIATED!!!! :-)
THANKS

-Allison

How Can Put Ball In The Basket
Hi

Please guide me putting ball in the basket.

thanks

Paypal Button Item Name?
ok heres the code i've been using for my paypal buttons on my flash sites.
not the only thing is i put my item Name in the "item_number=" and for some reason i need to put underscores or someting, it wont work it i put spaces in between the words of the item name, and it i put the code in for a non-breaking space it makes the word before that code the only word you see in the paypal cart page in the desciption.
So ive been doing this This_New_DVD (thats what the item name looks like in the paypal cart description section.
anyone know a solution?
am i even doing this right?



on (release) {
getURL("https://www.paypal.com/cart/add=1&business=MyPayPalEmailAddress&ItemQuickname= Shopping+Cart+Button&item_number=ITEM_NAME&amount= 19.95&page_style=MyPayPalStyle&shipping=4.00&shipp ing2=0.00&handling=0.00&return=http://www.paypal.com&cancel_return=http://www.paypa", _paypal);
}

[F8] Drag And Drop To Basket
Hello,

I'm creating a small Flash greeting card with some limited interactvity, using Actionscript 2, using Flash player 7. The beginning has some intro text, then
goes to a simple "game" screen.

I'm creating a drag and drop "game" where the user will drag six items into a basket. A few of the objects need to animate. When the six items are successfully placed in the basket, the user will go to a new movie with simple rollovers. The new movie is the reward for finding all the objects in the scene. I am new to this, is it pretty simple? and can you point me to a template for this?

Thank you, PDekar

Track Button As Menu Item
i thought i had better post here as the answer may be very simple. does anyone know what the properties of 'track as menu item' are in the button instances panel?

thanks

Add Item After Selected Item In Tree Component?
I've got a tree component which works great, but I'm trying to add an item at a particular location (immediately after the item they select) into the tree.

The problem is that I'm trying to add an item within a branch. I'm using myTree.getDisplayIndex(myNode) to get the position within the tree, but it gives the location relative to the entire list, but I need to get the position relative to the parent (which is what myNode.parentNode.addTreeNodeAt is trying to write to)...

Anyone know how I can get the position of the item the user selects relative to it's branch???

Thanks!!

How Do I Stop Carousel On Item When Item Is Clicked On?
Yeah ...some of us are still trying to tweak the carousel... I need to know how to stop the carousel when an item in the carousel is clicked on. Of course I'd also like to have that item come to the front and center as well. This carousel is done without XML.

Any help would be greatly appreciated.

here's my current code:

var numOfLogos:Number = 6;
var radiusX:Number = 300;
var radiusY:Number = 50;
var centerX:Number = Stage.width / 2;
var centerY:Number = Stage.height / 2;
var speed:Number = 0.05;

for(var i=0;i
{
var t = this.attachMovie("item"+(i+1),"item"+i,i+1);
t.angle = i * ((Math.PI*2)/numOfLogos);
t.onEnterFrame = mover;
}

function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = this._y /(centerY+radiusY);
this._xscale = this._yscale = s*100;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 100);
}

this.onMouseMove = function()
{
speed = (this._xmouse-centerX)/1500;
}



//INFO PANELS//
phInfoPanel_mc._visible = false;



//NOW FOR THE CLICK ACTIONS//

item0.onRelease = function () {
phInfoPanel_mc._visible = true;
phInfoPanel_mc.swapDepths(Math.round(this._xscale) + 1000);
}

Linking Button To Specific Item In Array
I am using the script on the bottom of this page to create a shopping cart. It works great, but I am having some trouble. I am building my "View Cart" page according to the usage notes in the script. I have it listing all my items, but when i try to delete an item with my delete button, I can't seem to get it to delete the specific item. It just deletes the last item.

I know why this is, but I don't know how to fix it. The onRelease function reads the value of i, but by the time you click, i is set to the last id, so clicking on any item deletes the last item.

here is my code:

ActionScript Code:
//To get the items in the cart
var cartItems = _level5.cartMC.myCart.getCartObject();
itemy = -125;
for (var i in cartItems) {
    trace("id:"+i+" = "+cartItems[i]);
    b = this.itemList.attachMovie("viewItem", "viewItem2", itemList.getNextHighestDepth());
    b._x = 0;
    itemy = (itemy+b._height)+15;
    b.cart_title_txt.text = i;
    b._y = itemy;
    for (var subItem in cartItems[i]) {
        trace(" prop:"+subItem+" = "+cartItems[i][subItem]);
    }
    b.delete_btn.onRelease = function() {
        var deltedItem = b.cart_title_txt.text;
        var cartItems = _level5.cartMC.myCart.Remove(i);
        _global.getCartTotal();
        _level5.cartMC.cartLoader.loadClip("viewCart.swf",_level5.cartMC.PopupMC);
    };
}

ps: if anyone has used this class before, I would love the chance to ask you some specific questions about things. Let me know if you have used it, if you don't mind.

Paypal Button Item Quantity Problem
i want to make this button code have an order of ten of my items at once (bulk order)
the "add script has the numer of items, but when i enter say, 10, paypal only adds 1 item still...
any suggestions on how to change the number of items to more than one added to the cart at once?


on (release) {
var formData = new LoadVars();
formData["add"] = "1";
formData.cmd = "_cart";
formData.business = "email@email.com";
formData.item_name = "Product Name";
formData.amount = "13.00";
formData.page_style = "Paypal Page Style";
formData.shipping = "5.00";
formData["return"] = "http://www.website.com";
formData.currency_code = "USD";
formData.lc = "US"
formData.bn = "PP-ShopCartBF"
formData.shopping_url = "http://www.website.com/shopping.html";
formData.send("https://www.paypal.com/cgi-bin/webscr", "_self", "GET");
}

Difference Between Track As Button/Menu Item
What's the difference between "Track as Button" and "Track as Menu Item" for a button in the Properties pane?

Item Movement(button/MC Etc) On Mouse Move....
sry it may sound confusing but i dont exactly know what to call this hence not knowing what to look for....but i want a certain item (or 2) to move when the mouse moves the opp. direction


4 example

http://www.rollups.com.au/

hit "join later" then once it goes in....this is more or less what i want to re-create...the movement of items on stage when the mouse moves.

any ideas

PS, sorry if this is in the wrong place.

ive tried googling it and going to diff forums etc to find like a tutorial etc, but i dont know exactly what this is called so i dont even know what to look for...thanks

[F8] Update Combobox Selected Item On A Button Click
I am working on a pagination module.
In the top of the page there is a list of items where I have to show only ten items and if there are more than ten items then a combo box will display 1 of 2, 1 of 3 etc., depending upon the number of items in the list. I have done it using XML and arrays and it is working fine.

But there is also a next and previous button which is also working but now what I want is suppose if we are in # 2 of 3 page and click on the previous button then the selected item of combo box should also change from 2 of 3 to 1 of 3.

Please let me know how should I do this.

Please let me know if I could not express myself clearly.

How Can I Select An Item From A List Component With A Seperate Button
This is a repost, I decided it'd probably be better here than in the general discussion board. I will try to delete the other one.

Hello Everyone,
This is my first post here. I am trying to figure out how to select an item within a list component with a button. This button is calling a function. I have searched for the past 3 hours online and I can't find anything about it. I thought perhaps I could set the selectedItem parameter, but that is read only, and I believe it returns an object reference rather than something like a number so even if i could set it, it would be pointless. I also found a get focus button, thought that may lead me somewhere, but I think that is for setting which component has focus currently as far as typing in and things like that. I am lost.

Basically I am looking for a way to type this myList.setSelected(5); where 5 is the 5th item in the list.

Any help would be much appreciated.

> Mysql - Php - Flash Frontend - Basket Isn't Working - Help Needed
dear guys n grrls

i have to build a shop system using mysql php and flash frontend! i'm a flash beginner but already coded some c++,assembler,php,mysql stuff and i 've made it to build selectable menus showing product groups and products.i now need help because the damn basket isn't working properly.

if you click on a product to add it into the basket flash push the product info into an array and start the mc basket. inside basket is a masked mc. this clip duplicate a input text row mc depending on the lenght of the product array.

// every copied clip is given a rownum.
something like:
for(cx<length_of_array_product;cx++){
_root.shop.basket.productmc.productrow.rownum = cx;
}

also i use a duplicator array to see if the product was choosen once or several times and to push a updated price (something like: (duplicator[cx]*price) into the duplicated product

//in every copied clip i need to read out a specific array
id = _root.shop.basket.id_array[rownum];
price = _root.shop.basket.price_array[rownum];

as i clicked on products to add them into basket the product was added but just neither the duplicator nor the price of product i could see on the screen. ;(

i have trouble with placing or timing or updating the mc and the scripts because it seems that the code cant't be so bad because if you click on more than 3 different products the code adds the products into basket and the it's finally showing the correct price.

i'm stucked . help is badly needed ... please, do you know a solution for my problem.
it's just that i'm sitting here for 2 days now in front of my computer and i can't get the #!$%*? code working properly. hope you can figure out what i tried to explain . sorry ... i live in berlin germany and my english still need a lot of practice!

see the running version on:

http://www.lutz22.org
pw: 2fat2****

thanx!
ANALoG

Menu Item / Button Not Working. Multiple Layers / Movies
Hey Everyone, I'm New to this forum, but ive talked to a few people here, and they told me I should join so here is my question:

I have Created a Website by Combining Multiple Templates and what not, and adding my own scripts to it, and well here is the domain the site is currently launched under: http://www.royalgorvideo.com and the problem is that When someone clicks on portfolio then they select a category, then video or photographs, there is no way to go back to the portfolio page with the different categories such as weddings, commercials, concerts, etc. because all those other movies are loaded on top of the main page, and there is page checking on the button, and when i remove it, it looks liek it loads the portfolio main page for a split second then goes away, if you guys have any idea i would appreciate it, about 12 people tried to figure this out, and no one had an idea, they all tried the same stuff i tried, so hopefully i can target more people on here, if you need the source i can upload it or u can decompile it, you can also instant message me on AIM at ProDJAllenV3.

here is the AS on the button:

on (release)
{
if (_root.link != num && _root.animation == 1)
{
unloadMovieNum(3);
unloadMovieNum(4);
this.gotoAndPlay("s3");
_root.animation = 0;
_root.link_prev = _root.link;
_parent["item" + _root.link].gotoAndPlay("s4");
_root.link = num;
_level0.pages.page.play();
} // end if
}

num is like the page number it needs to load, and thats defined in a symbol before this one...

There may be other errors in this for example mail script i'm using the _visable an its not working on a "thank you your message has been sent" text field, or the pop-up for privacy notice, if u guys can find out why those arnt working either that would be great...

Id appreciate anyone's help here...

-Allen

Thanks in advance

Make Item Grab Another Item
I am working on a game right and i want oneitem that when it touches the other stays with it like glue here is my code:

instance name:

i have a guy _root.player.hand
A ball _root.ball



so I put on the ball this code....

onClipEvent(enterframe){

if(this.hitTest(_root.player.hand)){

this._x = _root.player.hand._x;
this._y = _root.player.hand._y;

}



When the hand touches the bal he ball goes where the hand was originaly and that is it it never moves again.

can some one help ???


}

Remove Button Help
Howdy! To me, what I'm trying to do is difficult, but since I'm new to ActionScript, it's probably something second-hand to most of you.

I'm using Flash MX and I have a .gif on the screen that is hidden by 9 graphic objects (not movie clips, just shapes like squares and triangles). I want to have a button that when you click it the first time, one of the shapes disappears (is removed or deleted) from the stage, revealing a tiny portion of the underlying .gif. When the same button is clicked a second time, a second shape disappears... when the button is clicked the third time, etc., etc., etc. You get the idea.

I figure that by defining a variable that increments by 1 each time the button is clicked, and then naming each shape (a graphic element in my library) shape1, shape2, shape3, etc. I can tell the button which shape to remove (delete) by concantenating the string "shape" and the variable together.

My problem then is this:

1. Will that work?
2. What ActionScript removes (deletes)a graphic object from the stage?

Thanks in advance for any and all help you can give me!

---Greg

Remove Button
How do u remove button after onRelease?

thx

[F8] Remove Button?
Hi,

This is not the first time it happened to me, but I was too lazy before to look for a solution, and preferred to use a turnaround... But now it's time to solve that!



I have an invisible button called btnInv, and I have attached it with attachMovie. I would like that it auto-remove itself when pressed. So I tried all of 4 options below (one at a time of course) and no one of them seems to work:

code:
_root.attachMovie("btnInv","btnInv",60001);
_root.btnInv.onRelease = function()
{
_root.btnBig.removeMovieClip(); // didnt work
this.removeMovieClip(); // didnt work too
_root.btnBig = undefined; // guess what - didnt work
this = undefined; // yeah, again it didnt work
}


Maybe Flash do accept to instantiate a button using "attachMovie" but doesnt allow to remove it with "removeMovieClip"?

How To Remove A Button?
Is there a way to remove a button, not a movieClip that you are using as aa buttons but the actual Symbol button?????

I want to do a
on(release){
//remove another button from stage
}

I dragged it onto the stage so it doesn't have a layer number, or not sure what layer number it is

thanks

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