ActionScript 2.0 :: Tinting An MC Based On XML Data?

Nov 9, 2006

First off I load 2 variables from a database: selectedTerritory and tintValue.I want to load the tintValue (number: 0000FF, 00FF00 etc) and apply that tint to the selectedTerritory (number: 1, 2, 3 etc).What I've got is:

Code:
function displayTerritoryOwner(selectedTerritory) {
var a:Number = selectedTerritory;

[code]....and apply the tint?

View 1 Replies


Similar Posts:


Flash :: Web Based Visual Programming Interface Based On Python For Data Visualization

Nov 4, 2011

I just discovered impure.com and was very impressed by what can be achieved in terms of visualizing data using their workspace. Although the platform is free to use, but not open source yet. This causes a few problems because the API section works with .com sites for eg. for ebay, so I cannot visualize ebay listings for regional sites such as ebay.in because the link to ebay.com is hardcoded.I searched around, but didn't find other projects that offer a similar way to work with site APIs and other data sources with the kind of user interface and detail that impure.com does in a realtime way within a browser window.This brings me to the questions:

-What technologies would be involved in creating a similar kind of project

-What are the open source tools that can help develop a fullscreen UI to render the workspace. Are there any alternatives to flash for this, and how do they compare

The goal would be to use standard python data structures, python scripts to do some processing on these data structures, scripts to gather data from csv, json and API sources such as google yahoo, wikipedia and flickr, and scripts to render graphs, tag clouds, network visualizations etc. Then bring them all together into a visual interface that supports drag drop and simple type checking.How would the python backend integrate with the UI.

View 1 Replies

Flex :: 4 - Data Visualization For Analysis Of Relational Data (link-based Phenomena)?

Mar 15, 2012

I have been goggling a lot to find anything with link-based data visualization in Flex 4. something like below screen shoot (made using Ravis). Where user can drag these nodes, without removing the links and on double click of any node we can set some properties for that particular node. I found this Ravis (Birdeye), but not much of examples and support is available for that.

View 1 Replies

Flash :: Tinting A MC With Tweener

Nov 28, 2009

I would like to tint a movieclip with the tweener class. This is how I tint the mc without the tween:

var c:Color=new Color();
c.setTint(0xff0000, 0.8);
clouds.transform.colorTransform=c;

it works but I would like to give it a smooth transition that's why I would use tweener.

View 2 Replies

ActionScript 3.0 :: Tinting RGB Values?

May 10, 2011

Given any existing RGB color, what is the best approach to combine that color with another, giving the appearance that the first color has been "tinted" by the second? For instance say I had a datagrid cell with a background color of 0xEEAAFF: I now want to make it appear to have a 10% Green overlay applied to that color, in comparision to the other cells around it.For efficiency, I want to do this mathematically, not use some hack like making a semi-tranparent overlay sprite, or simply setting the color manually.

BTW I tried just adding an arbitrary value to the color (5000) which kinda worked, but some colors became shocking pink rather than a pleasant green tinting when their color bytes overloaded and flowed into the next byte. I know the solution is somewhere along these lines but my knowledge of hex math and how RGB values are calculated are pretty basic =)... is this what HSB format is for???

View 6 Replies

ActionScript 3.0 :: Tinting Out An Object?

Oct 12, 2009

I've done a lot of research and I can't find exactly what I need. I need a way to dim out a MovieClip. First I tried adding a simple Bitmap with some alpha transparency, but because the MovieClip isn't perfectly square that doesn't work right. I then tried the colorTransform class, but that removes all the detail from the object,

View 2 Replies

ActionScript 2.0 :: Script Tinting Into A Movie Clip?

Sep 8, 2004

How can I script tinting?I'm trying to script tinted into a movie clip.I know about _alpha.. but I've never tinted with AS.

View 4 Replies

ActionScript 2.0 :: Play Movieclip Based On XML Data?

Feb 13, 2007

I wondered how to set up a flash movie that read an xml doc and depending on the value of a variable, opened a movieclip or not. so if the xml doc had a variable "cool" that had a value of "on", flash would do something like...

if (variable read from xml) is "on"
loadmovie("")

I just don't know how to set up the movie

View 1 Replies

ActionScript 3.0 :: Buttons To "Tween" By Tinting In Color And Move Down A Bit

Aug 20, 2009

I have a question concerning TweenLite for AS3. I have a button that when I rollover it, I want the other two buttons to "Tween" by tinting in color and move down a bit. Then when I roll off it, I want the buttons to go back there original state or something.

[Code]...

View 2 Replies

CS3 Dynamic Text - Change Colors Based On Data

Aug 25, 2009

I'm building a project for a gaming website and i have an interesting dilemma. How do i make the font color change based on the data loaded from the external .txt file.

Example:

In text files i could have... yes yes yes no no maybe yes no. If the text says yes i would like for the font to change to green, if no to red, or maybe to orange/yellowish.

So basically if i went in and changed the No to a Yes on a .txt file, the next time i viewed that flash section the yes text would be in green instead of the default set by the flash core itself.

I hope i am making sense. I don't even know how to go about starting and i stared at the actionscript list for awhile to no avail.

View 2 Replies

Professional :: Ql Database And Display Results Based On The Data?

Jul 4, 2010

Is it possible for recent versions of flash to directly (or thru Php) access (& update) data from a mysql database and display results based on the data?
 
So if my database were like this (math scores):User 13Jerry | 20Kane | 7 the flash output would be a bar graph like this (those hyphens would be bars in flash)
 
Is this possible these days? Google analytics does something like similar to this.
 
I last used flash somewhere in 2003/4. Never after that :-) I've completely lost touch.

View 6 Replies

Flex :: Algorithm - How To Generate Person Based On Data

Aug 4, 2010

Based on user input height, weight, measurements and other data, dynamically generate a person (can produce 3D graphics)?

View 1 Replies

ActionScript 3.0 :: Load XML Data Into Class-Based Model?

Feb 12, 2009

I'm new to FLEX.I've a requirement where i do have to load the data into Class Based Model(VO) from an Employee.xml which has got employeeName,departmentName,address & projectId tags.

View 0 Replies

ActionScript 2.0 :: Display Animation Based On How Much Data Has Downloaded

Sep 15, 2006

I have a question regarding preloaders.I am wondering if someone could help me figure out how to display an animation based on how much data has downloaded.For example.I have a preloader, it gets to 10% or xxx bytes loaded, I want a movie clip to play (or whatever, sparks to fly, etc.), then at 20% or zzz bytes, another movie clip plays (or again, something else happens).So basically I want the movie to react to how much of it has been downloaded.A real world example of this that I can find quick is.url...(ya ya, everyone uses this as their example).The loader seems to animate based on how much of the movie has actually loaded.play an animation, movie clip, etc based on how many bytes/percent, has loaded.

View 4 Replies

ActionScript 2.0 :: Drawing Curve Based On Data Points?

Jun 25, 2007

I'm trying to draw a curve based on 24 data points. I want to draw a curved line based on the average of these 24 points. I can draw a line from point to point no problem, but would like a smooth curve. The white dashed line is what I'm trying to achieve:

View 2 Replies

ActionScript 3.0 :: Duplicating Movie Clip Based On Xml Data?

Nov 11, 2009

I got a flash file which reads xml data and based on total data I need to duplicate movie clips and show them horizontally. Till now i have read the data and displayed it but dont have idea how to display them horizontally.

Code:
i = 0;
level = 100;[code]....

I have done this till now, it duplicates the movie clip but when i want it to change its x coordinate it shows error

**Error** Symbol=mc_contentHolder, layer=Action, frame=1, Line 20: There is no property with the name 'x'.
newClip.x = 328;

Total ActionScript Errors: 1, Reported Errors: 1

View 7 Replies

Flex :: Format Data Grid Row Color Based On Two Cell Value?

Aug 21, 2009

I have a flex data grid. It contains two column Maths Mark and English Mark. If Math Mark >English Mark for any row then it will set that particular row color as Green.

View 1 Replies

Actionscript :: Making A Flash-based Interactive Map With SVG Vector Data?

Oct 21, 2009

I'm looking for a way to take SVG path info (basically a string of coordinates) and dynamically draw it with Actionscript. Icing on the cake would be if those shapes could detect mouse events to trigger JS and dynamically change their appearance (fill, stroke, etc...).

I'm currently trying something similar to this ([URL]) using SVG but it's just too slow in IE. I've also tried Google's SVG Web ([URL]) which basically does exactly what I'm looking for (it converts SVG to Flash in IE) but again, it's sloooooow - which is why I'm considering doing the whole shebang in Flash.

View 1 Replies

Java :: Implement A Data-based ComboBox Control With GraniteDS?

Oct 26, 2009

I'm trying to integrate Seam and Flex with GraniteDS, with the goal of implemenenting a code generation tool for main use cases of CRUD operations.One of my needs is to have the possibility to generate a combo box to reference a parent entity from another. For example, a state combo box in my county edition/creation screen.

View 1 Replies

Javascript :: Pasting Non-text Data Into Browser-based Apps?

Jun 11, 2010

Imagine I want a user to be able to copy-paste a selection of pixels from MSPaint into a browser-based app. Is this possible using JavaScript in any current browsers? Will it become possible in HTML5?If not, is it feasible using something like Flex/Silverlight, or is it simply not possible at this time, and you'd have to save a file and manually upload it?

update: sounds like HTML5 should allow it, but that's a way in the future to be genuinely useful. Some suggestions of Java applets and Flash are mentioned, probably Flash would be preferable since parts of the web-client would probably use Flex anyway... I'd rather not have requirement for Java and Flash in my site.

View 1 Replies

Flex :: ColumnChart: Color Bars Differently Based On Data

May 9, 2011

How can I color the ColumnSeries differently based on data. I need something like a labelFunction only for the column fill.

EDIT: Attached image for JAX to understand. :)

View 1 Replies

Actionscript 3 :: Filtering Datagrid Based On Data In Rows, Flex?

Mar 23, 2012

I've search all over today trying to find how to do this, and not being familiar with actionscript is starting to catch up to me. What I would like to accomplish is: I have a list of messages in a Datagrid coming from a dataprovider in another class, which in turn gets them from our Oracle DB. I need to all the user to set a visible state on the message, and then filter that out of the datagrid with the click of a button. I have the check box for hide, and it sets that value into the database. I can't figure out how to get the filterFunction to work with an array collection when the filter parameter is within the row data.Here is the code

public function filterResults():void {
modelLocator.notification.messageList.filterFunction = filterRows;
modelLocator.notification.messageList.refresh();

[code]....

View 1 Replies

Data Integration :: Create A Flash Based "widget?

Apr 8, 2011

I need to figure out how to create a flash based "widget? where I can pull in and display basic local airport data, like Delay information.

View 1 Replies

ActionScript 3.0 :: Handling Evals In Objects Based On Each Set Of Data In An XML File

Feb 15, 2011

I need to make a function that creates an object based on each set of data in an XML file. I am currently using bracket notation to do it, but don't know how to increment the next object's name dynamically. I wanted to do something like this:

[Code]...

View 3 Replies

Data Integration :: Xml Video Playlist - List To Change Based On Whose Accessing The Player

Jul 3, 2007

I have a flash video player whose playlist is based off an xml list. Now, I need this list to change based on whose accesing the player. So: Client gets a link, clicks on link, player shows their video. Another client clicks on another link, player shows their video,

View 1 Replies

Flex :: Spark List : Show Subset Of Data Provider Based On Parameter

Aug 1, 2011

I have a situation where I have a List showing a queue of Upload Objects:

[Code]...

I would like to create three different views of the List: One showing All uploads in the queue Another showing only the Upload items with Upload.type == "Update" and another showing only the items with Upload.type == "Create". Another example of this would be on an email inbox, where we could filter "All, unread, or read". I realise I could just create three different lists, one for each view of the list (maybe I'm just being picky) but I was wondering: Is there is any easy way to conditionally select the items to display from a DataProvider based on a parameter (for example type =="Upload") so I don't have to juggle three separate ArrayCollections about?

View 2 Replies

ActionScript 3.0 :: Class To Create Either A Sprite Or Clip That Consists Of An Image And Some Text Based On The XML Data?

Jul 3, 2009

I want a class that I'm going to pass a short bit of XML data And then I want that class to create either a Sprite or Clip that consists of an image and some text based on the XML data Example my XML might look like

<root>
<image url="whatever.com/image.jpg">
<name data="Blanius">
</root>

I know how to get to the data what I'm looking for is the best way to create this Sprite on my stage.should the class create a sprite or clip?should the class called to create an instance and then I addChild in my core script?

View 5 Replies

Flash :: Dynamically Create New Sound Objects Based On Raw WAV / DATA Or Other Sound Object?

Jan 31, 2012

Is there any AS3 library or code-snippet that can create altered versions of a Sound object on-the-fly (at runtime)? Either based on:

An existing Sound object; A ByteArray object;

For example, say you have a "dry" sound of a gun-shot. You could:

[Code]...

View 1 Replies

ActionScript 2.0 :: Sort XML Data Based On An Attribute "price" (or P)

Sep 8, 2006

I am trying to sort XML data based on an attribute "price" (or p). I'm trying to sort the prices numerically so that, for example, 1230.00 does not show up before 19.00. I have defined a preliminary price sort function as follows:

[Code]...

How do I edit this function so that the prices will display in numerical order rather than string value order?

View 4 Replies

ActionScript 3.0 :: Tile Based Game - Creating Multiple Sprites Based On Frames

Nov 17, 2009

I'm relatively new to AS3. There's one thing that I don't quite understand about Sprites. I'm making a tile based game, and all the tile graphics for a level are inside one movie clip in each frame. Would I be able to go about creating multiple sprites based on the frames in said movieclip's timeline I would I have to go through and make a separate library graphic for each.

View 2 Replies







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