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
Similar Posts:
Nov 26, 2010
I have an swf file on the homepage that is the intro followed a menu. When the user types the URL for the home page from an outside site, I need the entire flash file to play from frame 1, but if you have already seen it and then clicked around to subpages within the site and then want to go back to the home page , I want the movieclip to start from a specified keyframe.
View 8 Replies
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
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
Apr 5, 2004
How I can play a movie based on the url you are at? I got a swf movie included in my indexpage: index.php. With PHP different content is included in the framework based on the $_GET['page'] variable with PHP. Basically the swf's menu just uses urls like 'index.php?page=home' or 'index.php?page=contact'. Now I only want to play a movieclip in the swf if im on the homepage (index.php?page=home) and not on the other pages. Is this possible with AS?
View 1 Replies
Apr 5, 2004
how i can play a movie based on the url you are at? xample: I got a swf movie included in my indexpage: index.php With PHP different content is included in the framework based on the $_GET['page'] variable with PHP. Basically the swf's menu just uses urls like 'index.php?page=home' or 'index.php?page=contact' Now i only want to play a movieclip in the swf if im on the homepage (index.php?page=home) and not on the other pages. Is this possible with AS?
View 1 Replies
Aug 1, 2011
I am trying to play some videos from a XML based playlist. I found this, but it's for AS2: Quote:
[Code]...
The instance is named flv and the XML file flv.xml, what would be the correct way to do this in AS3?
View 9 Replies
Apr 29, 2009
So what time trying to do is play a specific frame in the movieclip based on the time of day:
PHP Code:
onClipEvent (enterFrame) {
var myDate = new Date();
var hour = myDate.getHours();
[code]....
but when I change to "gotoandPlay" the movieclip just loads from the beginning frame and seems like it doesnt check the time.
View 7 Replies
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
Jan 15, 2011
On Scene1 I'm trying to add some script that will continuosly recognize what the x axis value is and if it is greater than 600 it is supposed to play frame 1 of the movie, and if it is less than 600 than it is supposed to play frame 10. The code I'm using seems to work, but only at the initial startup of the movie. How do I modify this code to have it continually updating the shoot movie based on where the mouse is at on the movie?
[Code]....
View 1 Replies
Aug 29, 2006
I recently got back into animating and I need some help with my latest project. I have a number of different animations that I would like to be played on the inside of a tv, however I would like for these animations to play at certain times. For example, at 9:00 pm (real time) the tv displays the animation of the character sleeping. I'm not sure how to do this, and I'm not sure if I need an internal clock.
View 6 Replies
Apr 28, 2009
I am making flash CS4-based music player with ActionScript 3. When I host the player on my site, e.g. [URL], and play an mp3 on the server of my site, e.g.[URL], it works well.
When I link to an mp3 of another site, e.g. [URL], in my local machine, it also works. However, when I host the music player in my site [URL], and play an mp3 of [URL], then it can't be played.
View 8 Replies
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
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
Aug 4, 2010
Based on user input height, weight, measurements and other data, dynamically generate a person (can produce 3D graphics)?
View 1 Replies
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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