ActionScript 3.0 :: Passing Data To A Costume Component?
Apr 20, 2011
I'm very new to flex and to flash in general. I walked trough one of the exercises in "flex in a week", specifically the MVC exercise which talks about how to seperate the view to a different component and later on send him the data as one of his fields.
I had no problems in the exercise and everything worked BUT, when I tried to do it on my own code it doesn't work.here is my relevant parts of the code:
[Code]...
View 1 Replies
Similar Posts:
Aug 22, 2010
I have a main mxml file (flex4) and want to pass a parameter (user_name) to a component in a directory called components. When I run the program, the user_name is NOT being sent from the main to the component file. (Interestingly, if you make the component visible, you can see the parameter has been passed).
I have hacked much larger files down to get the following two files:
Main
<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
[Code] .....
View 1 Replies
Oct 15, 2010
I havent found quite what I want elsewhere or at least am not accomplished enough to adapt I'm trying to create a project that shows radio stations with logo, listen button etc The datasource is an xml file with child tags like 'name','image' and 'listen' for each parent, 'station'. I access this data via the main application with creationComplete="radioService.send()"
[Code]...
View 5 Replies
May 7, 2010
Im trying to use dynamic SQL tables on my PHP server so I need to pass the table name to the PHP script. I don't understand why the Data Management system that sets up CRUD won't allow this extra parameter. It says it can only have one input: item. I can get all records, but when I try to create, update, or delete I get an error.
Or is there another way I can pass the tablename variable to the php file before I call any functions?
View 3 Replies
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
Feb 26, 2007
I'm having trouble retrieving the value of a multi-select list component. It always traces the last value selected, but I need to trace all values to parse the data.
I've been using trace(myList.value);
View 2 Replies
Nov 18, 2010
I'm having trouble retrieving the value of a multi-selectlist component. It always traces the last value selected, but Ineed to trace all values to parse the data
View 8 Replies
Apr 20, 2010
I've got 2 files, my Application and a custom component. In my component I have a httpservice and a string named _requestUrl that is bindable. The httpservice uses this.
<mx:HTTPService id="srv"
url="{_requestUrl}"
result="parseHttpResult(event)"
[Code].....
View 1 Replies
Jun 2, 2009
my flvplayback component is not working when i tried to pass the url of the video to be played from js to the actionscript.(using actionscript 2)
I properly embedded the swf and added the object ids as well. i just assigned the url to a string and then passed it to the function in the as but it's not working...
View 3 Replies
Oct 18, 2009
I created a custom button component that accepts an array as a property. I set the property as follows:
titleDims="[{Month: comboBox1.text, Year:comboBox2.text, Sales Order:comboBox3.text}]"
and I get the following error:
"1084: Syntax error: expecting rightparen before colon."
Wat is wrong with the array syntax?
View 2 Replies
Jun 13, 2011
I have created a Component class and it's working fine .I want to pass an ArrayCollection of Objects to the Component .I have read in many articles , that we should use [Bindable] to make an ArrayCollection of Objects .What are the ways can we achieve that ?
View 2 Replies
Nov 12, 2007
Im using tree component and XMLConnector here.as far as i can see results in my tree (when testing my movie) it ouputs data thats loaded fom ext. XML file.But the problem is that it publishes [type Function] in the tree. no actual xml nodes are visible, just bunch of [type
Function] ive also searched for info / tutorial how to publish actual xml data in the tree component but without any luck.So what should i do and how ?
View 2 Replies
Apr 11, 2007
some feedback onthe following. I'm stuck. I have a form that I can get to workusing text input fields, but I need to get it to work using thecomponents.I have a flash form with the following:
prmZip instance: text input box
prmMilage instance: combo box
prmUnita instance: data= Mi, label= Mi
[code]......
View 3 Replies
Jul 6, 2007
I'm using the XML Connector to bind information to a List Component. Everything binds okay but when I run the MC I only get one item of information. The object I'm binding from the XML is called "Location" and there are a total of 5 listed in the XML. The five are Los Angeles, Seattle... The only one being displayed is Los Angeles. What do I need to do get the other 4 locations to display in the list?
View 1 Replies
Mar 9, 2010
I've been given a video url that I want to pull into an the flvplayback component. The url for the video I've been given is:The problem is when I set the contentPath with the above url the component won't load the video with the extra parameters ?var_log=102|441100001-1|- added as it says the path must end with .flvI am asumming that the video provider needs this extra var/parameter to be called in order to track the number of video requests, in which case I will need to keep this in.
View 2 Replies
Sep 7, 2010
I'm trying to pass some properties to a component I've created in Flash Builder 4. In my example below I want to pass the "label" property to update the label property of the Button.
// MyApp.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:local="*">
[Code] .....
View 1 Replies
Jan 3, 2008
Any example of the Actionscript code structure needed to pass a variable name from Flash to a Cold Fusion Component using ActionScript?
View 1 Replies
Apr 4, 2010
I am trying to build a Calculator used in health circles to project next year's profit and loss etc. I am using flash cs3 and actionscript2.My flash project is based on accordion component with 6 child panes, each pane having a movie clip with input text, dynamic text etc.I have a couple of push buttons that has click eventhandlers taking care of calculations . All the calculative functions are in the actions layer frame 1.I need help in displaying the same calculated fields as dynamic text in a new movie clip in another layer before printing the same movie clip.The present situation is like this, I am able to calculate all the fields, but when i click a button to show a new movie clip with all the calculated fields, all the variables are displayed as "undefined".
the dynamic variables in the new movieclip is referenced correctly i guess, i use pp_acvcfy = myacc.overheads.acv_cfy; where myacc is the accordion component , overhead the child pane and acv_cfy the dynamic text inside the pane 'overhead'. pp_acvcfy is the dynamic text in the new movie clip. Please help
View 1 Replies
Jul 28, 2009
In my flex app there are a few custom components. I want to create instance of these components at runtime and assign them properties by reading in a config file. I know how to read xml and instantiate components, however my question is about being able to get the type of the component from the xml attribute and then creating an instance of that type.
View 1 Replies
Jul 8, 2011
I would like to pass my SWF file an amount of data (textual).Is there some limit? I am talking about thousands of characters longI know the simple way of file.swf?data="mydata" but I know that you can pass data via "flash vars", when you embed the file in html(<object> How do I pass data in that way? Is it better to just read from a text file?
View 3 Replies
Oct 26, 2009
I've been researching for days on the issude but till now I still haven found a solution yet. I have 0 knowledge on ASP. And I just want to able to pass and get var/text from ASP.
ActionScript Code:
private function loadASP():void {
var aspSend:URLRequest=new URLRequest("testASP.asp");
var aspLoader:URLLoader = new URLLoader();
[Code].....
View 0 Replies
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
Aug 5, 2010
So I'm trying to make a project with multiple rss feeds on one page. All the rss feeds are in one xml file. this works fine but now I need to retrieve rssdata from each rsslink.
To do that I want a variable to be filled up with the rssData that I retrieve via an external actionscript file.
So in my main actionscript I would have something like this:
ActionScript Code:
var rssLoader:RssLoader = new RssLoader;
var rssData = /* THIS IS WHERE I WANT MY RSS DATA TO COME */
[Code].....
View 9 Replies
Dec 11, 2010
I'm trying to pass a string of text out to a html web form. Something I've never done before.
Tadster suggested I use something like this:
ActionScript Code:
var outDataToJavaScript:XML =
<script>
<![CDATA[
[Code].....
The movie runs fine and shows no errors, but when my browser opens forms.html the data is not there. I assume this is because I'm using navigateToURL(new URLRequest("form.html) and therefore opening a new instance of form.html rather than the one I've already loaded into flash. Am I right? and if so how do I open the pre-loaded version? Or....am I way off and have failed to understand something quite basic?
View 2 Replies
Dec 1, 2006
A map of the US comes up and users will select where they work, before getting to the next page, which is a form where they fill out the rest of their contact information. The Submit button sends the form variables to a php file on a different server which then stores their info in a database and will take the "location" variable from the map (in the previous .swf) to send the user the correct demo map.
My vars from the form post to the PHP and a confirmation e-mail is sent to the user etc. etc. this works fine...i'm just confused as to how to send the location variable that was pre-selected to send along with the form.
View 3 Replies
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
Apr 28, 2010
This problem is a lot more complex than title implies.I am trying to pass public var "quote" from player class document to movieclip function and on to a 2nd gigyaSocial.as method. I can trace the var in player.as but, it disapears when I try to access it in the MovieClip.
Code:
import fl.controls.Button;
import com.player;
import com.gigyaSocial;[code]....
View 3 Replies
Nov 14, 2009
I want a comboBox that will allow the user to select what colour palette they want the application to have.I am using a comboBox to do this and want to have a function with arguments as the data in the comboBox item.I've managed to do it and pass arguments but these are running when the comboBox is set up. I only want the function to run when the user presses the submit button. How can I prevent the function from running on set up?Here is my code:
Code:
package
{
[code].....
View 14 Replies
Jun 12, 2009
I am trying to pass an xmlList from this class, and am having some issues. The thing is, how can I call a method that listens for a result, then calls another method..
package com.ryancanulla.utils
{
import mx.rpc.events.ResultEvent;
[code].....
View 3 Replies
Jan 2, 2011
I found this example of a lobby in my flash media server book. But there's a little
var nc:NetConnection;
var rtmpNow:String;
var userName:String;
[code].....
View 1 Replies