Flash :: Passing Data Between Objects/classes?

Dec 27, 2010

So i a building a categorized menu of different foods. I have a class for "categories" (buttons) which essentially will return a string "salads", "drinks", etc. I now have another class "menuItems" for items within categories and this handles sizes such as "small", "med", "large", etc. My problem now is that when i return "salads", i want to invoke an array which contains all the elements of salads, send it to menuItems which will populate the menu. So far i have both the category objects and the menu object setup. I just cant seem to be able to send the data that the category object is returning and pass it to the menu object. Both of which are added to the stage as shown below:

If there was a way that i could say add all these classes to one class so that they can talk to each other that would be great but i dont know how to do this.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Passing Classes Through Other Classes?

Nov 30, 2009

how to pass one class that holds all my math for a betting game though all my other classes that hold the pages.

View 2 Replies

Flash :: Data Integration - Xml.load() Failing - Passing All Of The Data Via A Query String Appended To The Movie's Url

Sep 5, 2006

We have implemented a Flash photo slideshow on our site and it works just fine for most of our users. Whenever the xml.load(success) returns false I have the Flash email me a debug report. For the life of me I can not find a common thread between all of these people having problems with the Flash. I don't think it's a cross-domain issue because it works for most people, and I have the crossdomain.xml files where they should be.

[Code]...

View 1 Replies

ActionScript 3.0 :: Passing Objects Into Flash From JS?

May 12, 2011

Can you pass an Object into flash from a button click instead of a String?

View 2 Replies

Flash :: Objects Still Created When Omit Importing Classes?

Oct 2, 2011

I'm working through a tutorial to create an mp3 player in actionscript. When I delete my first 4 lines of code, the .swf still works great! I thought you needed to declare what classes you're importing for every object you create later on.

import flash.events.MouseEvent;
import flash.media.Sound;
import flash.net.URLRequest;
import flash.media.SoundChannel;

[Code]...

View 1 Replies

Actionscript 3 :: Flash - Passing Objects To External Swf

Aug 28, 2011

I have a object, called friends, It contains the url to facebook profile picture, ie friends.friend1 = "http:// etc"; I have a swf file called, master.swf, which is passed the information to create the object through flashvars. I need to get the object OR the flashvars info to the externally loaded swf, called pageOne.swf. I have seen and tried several different methods, but now seem to give me what I need.

[Code]...

View 1 Replies

Data Integration :: Passing Data From Flash To Php And Back Into Flash?

Aug 23, 2010

I have a swf (swf#1) with links to another swf (swf #2). I would like use GET to pass data out of swf #1 to a PHP page that will be holding swf #2. I want swf #2 to start at a specific frame based on the data passed from swf #1.

View 1 Replies

ActionScript 3.0 :: Access Other Objects On Stage In Flash Inside Of Two Custom Classes?

Jan 13, 2009

I have a CustomSimpleButton class and a CustomSprite class which creates a bunch of CustomSimpleButtons and displays them at runtime. How can I access other objects on the stage in Flash inside of my two custom classes? If I want an object tween to occur when one of my custom buttons is clicked how do i reference the object that I want to tween if I'm inside of my custom class.

View 0 Replies

IDE :: Passing Geometry Data To And From Flash?

Jan 12, 2009

Goal: To build an Internet Mapping Site (IMS) using FlashScenario: Using Manifold GIS for the backend. It is a full scale GIS software which easily outputs data (geometry and tabular) into xml. It has built in IMS capabilities, but theWould like to build an IMS using Flash as the front end, and Manifold as backend. How would I set up something where the GUI and display were Flash, the user interacts with the Flash (Pan, Zoom, Selection, Query(SQL)), have Flash fetch that from Manifold via xml, and display the new extent, query results, etc.?

So there would need to be geometry data retrieval and display as well as tabular. For example the user should be able to use a "Zoom by Extent" feature where they draw a rectangle on the map, it returns the coordinates of the box to Manifold, Manifold returns it, etc. On the other hand they need to be able to query the datasets (simple sql queries).I hope this makes some sense. I'm a noob in many aspects to backend so I'm just trying to get a handle on whether this is possible, and what backend needs to be implemented in order to make this happen? Would you know of a possilble better method? Silverlight, etc?

View 1 Replies

ActionScript 3.0 :: Passing Functions From Different Classes?

Dec 27, 2009

Let's I have a class Square that has a several functions. I want to call it from a class Grid, which is a group of Squares.So in the class file for Grid, how would I do this:

Code:
public function doSquareFunction(thisFunction:Function):void{
square1.thisFunction();

[code].....

View 5 Replies

ActionScript 3.0 :: Passing A Variable Through Classes?

Apr 4, 2011

I have two classes, IntroScreen.as and MainMenuScreen.as.I have an input text box on the IntroScreen that captures text and successfully traces it in the same class.

Actionscript Code:
public var nameEntry:String;public function startButton(event:MouseEvent):void {  trace("Start button clicked.")  nameEntry = enterName.text; 

[code].....

View 13 Replies

ActionScript 3.0 :: Passing Variables Between Classes?

Sep 14, 2008

What I have is a list of videos (FLV) and when I click on avideo name (button) I want the menu page to close, open anotherpage (the video interface page) and play the video that was chosen.I do not want the video to play on the menu page but on it's owninterface page. I am guessing I will need to save the String namein an outside file for the video class to grab. Once the video hasfinished playing I want to go back to the menu page.

View 13 Replies

ActionScript 3.0 :: Passing Functions Between Classes?

Oct 27, 2009

This probably has a simple solution, but I'm a complete newb to actionscript and I could really use some guidance.I have a file, called Politismos.fla. The document class of this file is: com.plaidfox.PolitismosClassPolitismosClass.as is as follows:

ActionScript Code:
package com.plaidfox {
import flash.display.MovieClip;

[code].......

View 9 Replies

ActionScript 3.0 :: Passing An EventListener Between Classes?

Feb 2, 2010

I've got an XMLLoader that works fine, but I can't figure out how to integrate it with my main class. I've been going in circles for hours trying to figure out what's the common way of doing this?

View 5 Replies

Actionscript 3.0 :: Passing Arrays Between Classes?

Jul 9, 2009

I have an array in my one class (loadXML) and i want to use it in a different class (player). I have my two classes here. This is not working though. How can i use songsArray in player.as? Its all good and dandy in loadXML, the array is being populated.

Code: Select allpackage
{
import flash.display.MovieClip;[code]..........

View 1 Replies

IDE :: Passing Parameters To Internal Classes?

Nov 18, 2009

is there a simple way to pass a parameter in the "new" statement for a class that has been defined in the IDE? Like so:var newInternalClass:InternalClass = new InternalClass (someVar);So that when the new class is instantiated it has someVar to work with?

View 3 Replies

ActionScript 3.0 :: Passing Variables From Down Classes

Mar 23, 2010

I'm trying to create a oop flash website, but I'm really struggling with some basic things. Example 1: We've got four classes

DocumentClass -> FormsClass -> Form1Class -> ListClass

Let's say someone clicks a next button in the FormClass. That dispatches an event "nextForm". Documentclass is listening for this event, and displays the next page. But it needs to read a value (selected radiobutton) from the ListClass. What would be the best way to get this variable to the documentclass?

[Code]...

View 7 Replies

ActionScript 3.0 :: Passing XML Info Between Classes?

Oct 19, 2010

I am creating an app in Flash Pro using AS3 for my wife to track our son's hockey progress. The app will have three sections: start, data entry, data retrieval.I have created the screens as separate classes to handle their individual functions. My data is stored in XML that I need to pass between these screens.I tried creating a separate class to handle my XML, but I am having trouble reading and writing to the new class. Is there a better way to handle passing this XML information around inside my application? Eventually I would like to have the app write to an external XML file then pull the new rewritten file back in. This code is in one of the .as files already, it's just not working yet.I added my files below (7 as and 1 fla Zipped) if you want to check them out.

View 14 Replies

Flash :: Passing Swf Data Between Using AddElement Instead Of AddChild?

Mar 26, 2012

I had this problem (Error: addChild() is not available in this class. Instead, use addElement() or modify the skin, if you have one.) and I followed the recommended solution:

// container ( IVisualElement ) for DisplayObjects
var container:UIComponent = new UIComponent();
addElement( container );

[Code].....

What I need to be able to do, is get the string Locale to be read by the Child swf.

View 1 Replies

ActionScript 3.0 :: Passing Of Data From Aspx To Flash?

Feb 22, 2011

I am trying to parse in some data from an aspx file into flash when the user first enter the flash website after logging in.

I managed to get the Loading of data part to be successful,how ever the data is not being displayed?

This is a snippet of my code btw

var userName:String;
//*********Loading of userData into Flash when use first enter the website after logging in ******//

[Code].....

View 3 Replies

ActionScript 3.0 :: Passing Of Data From Flash To Aspx?

Mar 10, 2011

am trying to parse in some data from flash to aspx,how do you actually do that?Here is what I am trying to do,snippet of my code btw

ActionScript Code:
//**Sending of data into the asp file after the use has finish the module for the first time**//

[code].....

View 9 Replies

ActionScript 2.0 :: Passing Data From Database To Flash

Mar 11, 2004

I am working on creating a basic message board for my website and I am having difficulty getting things to pass from Flash to Database to Flash. I just checked out the tutorial on this site that shows how to go from Flash to Database. Which is awesome by the way. I was wondering if anyone could help me on how to get the database data back into flash and post in a message board style. In another related note. Through a form set

[Code]...

View 1 Replies

ActionScript 3.0 :: Loading And Passing Images To Classes

Oct 21, 2010

I have a AS3 game with about 300 images to load.
Method A) Now what I do in .net is load images required in each class e.g., Player class has 50 images to do with player movement and Enemy Class has 50 images to do with enemy movement.
Method B) I have read in AS3 you usually load all the images in the game in 1 class and pass the array of images on to the relevant classes so player/enemy images are loaded in a load class and then pass on those images to the classes.
Which method is best as I prefer method A?

View 4 Replies

ActionScript 3.0 :: Passing Updated Data From Flash To The Backend?

Apr 29, 2009

I'm building a Multimedia Player front end and we have some action features we'd like to include. Some of the features are like: add to favorites, bookmark and rating.

For rating and add to favorites I just need to some how send a variable with the value to the server. Do you have any tutorials and or suggestions to approach this?

I don't need to know how the back end works, i just need to know what to pass in the flash and how to send out the updated variable back to the server.

View 3 Replies

Data Integration :: Passing Parameter From Dreamweaver To Flash?

Nov 5, 2007

is it possible to pass a parameter to flash from html together with the call of the .swf file? In the .swf I play different slide shows. The paramter I need, to know which slide show to start. I know that I can load parameters from xml or text files, but not how to pass a parameter directly wiht the call of the .swf.

View 3 Replies

Data Integration :: Passing Colour Parameters From Asp To Flash?

Jan 24, 2009

I find a lot of information to pass variable values i.e. fortext from asp to Flash, but what I need is to be able to change thecolour of items with a querystring. I have to handle the colour of35 items and additionally, I need to fill in text values into theseitems, meaning a pretty long querystring...THis was all working easily with SVG, but now it's time tomove on, sinve SVG has now its official death certificat

View 2 Replies

Flash :: Passing Data From Parent To Child In ActionScript3?

Nov 10, 2011

I have two swf, A.swf and B.swf: B.swf is a child of A.swf.i want to access the variable of a.swf in b.swf.Is it Possible?How Can i do this?

[Code]....

View 3 Replies

ActionScript 2.0 :: Passing Html Form Data To Flash?

Oct 27, 2009

If I want to pass form data from html to flash, do I have to use a server side script from php, asp, cgi, etc?If so, what would go in the FORM action? (FORM action="??" id=form method=post name=form>)

View 9 Replies

ActionScript 3.0 :: Passing Data To Display Input From Flash In PHP

Jul 30, 2009

I'm currently working on a flash combobox and text field passing data to php to display the input from flash. It require using query string method. I'm stuck on the query string code. My as3 has nothing wrong, I just don't know whats going on the php is not catching my data for display.

The php I'm targeting looks like this:
<?php $current_page_num = 1;
require_once 'dir/php.php';
$use_GET = $_GET[ 'use' ];
if ( $use_GET ) {
$timestamp = $use_GET;
[Code] .....

View 1 Replies

ActionScript 3.0 :: Flash Passing Data With Custom Event

Oct 14, 2010

I'm trying to pass a string variable with custom event and having a problem retrieveing the string when the event is handled. The event fires OK, and I can trace the string in the Event, but it returns "undefined" in the event handler. I'm hoping it's just a typo or something, but it's got me stumped. Below is my Event code and the handler code. [code]

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved