Actionscript 3.0 :: Total .noob() - Play A Movie Via An XML Generated List
Jul 19, 2009
you may quickly determine I am totally new to flash and actionscript. Tried learning it a while back but got distracted and just started over. Trying something that I thought would be real simple only to discover that nothing about AS is simple... So I wanted and play a movie via an XML generated list. Followed one of the tutorials here and tried to adapt it for video. The list works and the path for the video traces properly but for some reason the video never appears on the stage. I can take out the variable "vid" and put the path in manually without changing the structure and it works fine. Can someone point out my error. And if I am totally doing this wrong I am open to criticism as long as its constructive.
[Code]...
View 4 Replies
Similar Posts:
May 8, 2009
I am working on my first AS3 project, working on an upload routine for images. Simply, I upload an image and place it on the stage. Piece of cake. Now, what I can't figure out, is how to apply a filter to it. For some reason, I have a big ol brain fart about accessing my clip. I've positioned a clip on the timeline and can apply my filter to it, so it is definitely a reference issue.
Code:
/*
displayImage imports the uploaded image onto the stage,
[code]....
View 1 Replies
Jul 26, 2009
i have an xml file, that has lets say n nodes. in the .fla file, i have a list, that is bound to the xml schema, taking the name from each of the node. i have some AS scripted to this list, which includes the total number of fields. how do i get that number, as a general (like n, or totalIndex [dunno if exists], not a number)
View 1 Replies
Aug 15, 2011
Currently I have to create a website where some videos should be played automatically.
When a User opens the URL and lands on the page, a random video of a total of 5 should be played. When the video is finished, it should chose another video of the total of 5 videos.
So an example: It should chose one video of 5 videos. Play it, then it should chose 1 video of 4 videos, then it should chose 1 video of 3 videos..and so on. And after all 5 are played, it should repeat the process.[code]...
View 3 Replies
Dec 16, 2010
By default, the iconFunction of List and Tree return only Class as the icon, which is for embeded images or iconUtility kindly provided by this site http:[url]...... It works very well with pre-created images.But what I really want is to accept a completely runtime generate sprite object, similar to what is done by Legend, with the color changes according to what the current status. I assume I could do something to make the ListBase to accept icon argument other than Class.
View 2 Replies
Jun 9, 2011
I have 4 flv playback instances on a stage.
1. when i load 4 videos and ensure they are fully buffered from video progress event and bytesloaded==bytestotal . and then play them. I get sync issues for every other second.
2. when i download the vidoes and place them in my project folder and then load them ( no loading time) there are no sync issues. I cant understand why 1 is different from 2 as we are completely loading the videos in cache.
View 0 Replies
Apr 14, 2009
Using Flash CS4 and having the Flash plug-in ver 10 on my PC, the generated html file will not play the swf in the browser.I noticed that the active-x javascript is now included in the header as well as the javascript portion in the body tag.But it won't play. I get the typical blank window in IE with the "X" in the upper left corner.I don't have this problem with Flash CS3.
View 10 Replies
Jan 17, 2011
If I have a sound waveform stored as a ByteArray in actionscript 3, how would I go about converting this into a Sound object that can be played?
Note that the array is full of sound samples - a complete generated waveform. It isn't an array containing an mp3 or other compressed data.
View 2 Replies
Jun 28, 2007
I have a video object attached to my flash and I want to display a time readout of how far into the video has been played. I know I need a dynamic text field, but I cannot find any methods of the NetStream that gets the total duration.
View 5 Replies
Apr 23, 2006
i need a way to get flash to tell me the number of frames in the random clip that has been loaded. this is what i'm trying to use now to give me a random #, within the # of frames loadedCode:var rNum = Math.round(Math.random(emptymc1,_totalframes))the clips im using have 90-100 frames, but the number im getting is either 1 or 0
View 1 Replies
Nov 25, 2006
I am looking for a total frame control on a movie clip.
for ex: if my mouth rollover my clip, my clip play frames 10 to 18 in loop. (i dont know how to loop)
and on rollout play frames 1 to 9 in loop.
View 1 Replies
Feb 4, 2010
I have a two questions regarding XML and AS3. Even though I've been using flash for a few years now I would still consider myself to be at a nOOb level... Question One: Basically I have a website (all in flash) and there's a passworded section for clients to access their own information. Previously I've done this by adding the username and password info into the flash movie itself each and every time I have a new client - which works but is very time consuming (considering the number of clients I'm getting now). Is there a way that I can put all the names and passwords into an xml file, and flash checks it?
Question Two: Up until now, once a client has entered their username and password it takes them to a new .swf that has their info in it. And once again, I've been creating separate swfs for each clients (and again, time consuming). What I would love is after they've entered their username and password it takes them to a different scene or frame (still in the original swf) that has dynamic text fields that load the info from an xml file. I assume that these questions have relatively simple solutions, but I'm not sure how to do it.
View 9 Replies
Jun 26, 2010
I am relatively new to flash. I have made a DJ application that streams it's audio live across the internet.The audio format is OGG. I noticed that Adobe have released an Alchemised version of vorbis here [URL].. I am not expecting anyone to tell me exactly how to get a player working but could someone give me some pointers??
View 1 Replies
Apr 6, 2011
How do I find the total maximum width and height of a movie clip with respect to every frame of that movie clip?
So for instance if the movie clip was circles of radius 5 registered at their center at various positions where:
frame 1:circle.x=-30
frame 2:circle.x=0
frame 3:circle.x=30
The total maximum width of movie clip would be 30--30+5+5=70.
View 1 Replies
May 27, 2009
I'm trying to make an escape the room game. I've set up four different views of the room, each separated by ten frames in the timeline. I'm working on writing the Actionscripts to make the navigation buttons. I've gotten the first one to work, but when I use the same actionscript for the second button and test the movie, the movie just keeps running from one view of the room to another, despite the fact that I have stop scripts set up for each frame. I'm sure it's really obvious what the problem is, I just can't figure it out.
[Code]...
View 5 Replies
May 25, 2009
I am trying to exclude dark(er) colors, not sure this is the right way, but its the best with my level of knowledge
Code:
var color:uint = (Math.floor(Math.random() * 0xFFFFFF));
function randomColor(color:uint):uint {
[code].....
View 2 Replies
Oct 25, 2009
I am fairly new to programming and i have gone through a few flash cs4 as3 tutorials and recently i have started to try and alter them. The one i need help with is a number guessing game where you guess a number between 1 and 10, and i am trying to change it to a color guessing game, where you guess either "red" or "blue".
I keep getting an error in line 5 "var red = true;". The error is 1151: A conflict exists with the definition red in namespace internal. There is also a "Warning:3596: Duplicate variable definition" for the same line. Here is the code:
[Code]...
View 3 Replies
Aug 24, 2010
I'm linking an XML document to a Flash file to control all sorts of things and it's going quite well until i tried to fill a dynamic text field with a paragraph of type from the XML document. I've done this a million times in AS2 and I've done it in AS3 using attributes, but this time I'm using childNodes. The dynamic text field is in a movieclip. When I tested it using this code:
var oneComments:String=xmlTestOne.firstChild.childNode s[num].childNodes[1];
oneClip.txtComment.text=oneComments;
...it sort of worked but I get the element tags along with the paragraph text.
[code].....
View 4 Replies
Sep 4, 2010
In AS2 I would do this:
for(i=0;i<10;i++){
this.attachMovie("clipLinkageName", "instanceName" + i ,this.getNextHighestDepth());
}
But now in AS3, I'm learning to use:
var instanceName1:clipClassName = new clipClassName();
addChild(instanceName1);
But I don't know how I can put that in a for loop like I did above..this["instanceName" +i]:clipClassName = new ClipClassName(); does not work.
View 9 Replies
Aug 16, 2011
Users provide various elements of content for the final Flash movie, eg. text and photos. We want to be able to allow the user to download the movie they create in a format such as MP4 which they can play on their local computer or upload to YouTube.
View 2 Replies
Mar 29, 2006
I need to know how to the lead a empty movieclip that i made with ASi already tried deletemovieclip is there any other way
View 6 Replies
Mar 30, 2010
I dynamically generate movie clips in a for loop. But at the end of the loop, only the last created movie clip exists. Others simply disppears.[code]...
View 2 Replies
Feb 4, 2009
I have created an empty movie clip in the root, I load dynamically some jpg to the empty movie clip, but now I want to center it and I can't I have this code, it centers the movie clip but on the registration point of 0,0 not in the middle of the movie clip so the movie clip will show up nice and centered.
ActionScript Code:
var stageL:Object = new Object ();
stageL.onResize = function () {
[code]....
View 9 Replies
Aug 16, 2009
I am trying to test it. I am loading swf's into movie clip with XML stacking each other vertically. I found out that after movie clip is reached the height of 65000 px the other loaded swfs will not be loaded correctly. They are loaded from the 0 point again overlap previously loaded swfs.
View 4 Replies
Aug 16, 2009
I am trying to test it. I am loading swf's into movie clip with XML stacking each other vertically. I found out that after movie clip is reached the height of 65000 px the other loaded swfs will not be loaded correctly. They are loaded from the 0 point again overlap previously loaded swfs.
View 1 Replies
Jun 3, 2009
I'm trying to write a piece of code that creates a number of movie clips, gives each a random bitmap from an external source and then stores the movieclips into an array.Here's my code:
Code:
var array:Array = new Array();
for (var i:uint = 0; i < 10; i++)
[code].....
View 4 Replies
Feb 15, 2006
I'm trying to detect a mouse rollovers on dynamically generated movie clips but I just can't make it work. Only way I can make it work is to put actions inside the duplicated movieclip.
var total = 6;
myThumbs = new Array();
for(i=0; i<total; i++) {
[Code]....
Everything works fine except when I roll over the mc the value of this["myThumb"+i] is undefined.
View 4 Replies
May 22, 2008
I have a flash file that reads and XML file, it creates an empty movie clip in a placeholder (mc_image_holder) for each entry in the file, so 4 entries in the XML file = 4 movie clips inside the placeholder. it does this like so:
Code:
if(success)
{
var nm:MovieClip = mc_image_holder.createEmptyMovieClip("swfHolder"+i,-((i) * 10));
nm.loadMovie(filename);
[code]....
however, for some reason, the last created movie clip in the place holder never fires the onEnterFrame event more than once, so, If I were to trace the word "hi" I would only get it once, where as if I apply that to each of the other three that are created, it would put it many times, as it should.
View 2 Replies
Feb 18, 2009
I hope this is the right place to ask my question. OK, I need a list of softwares that can play FLV on my computer, and I mean just play FLV in the software, not through web browser. For I have seen a lot of people asking this question on the Internet, I'm interested in it, too. I know Realplayer cannot play FLV, so please don't say Realplayer again, It's a stupid question, I know. I think you Flash gurus must know the answer.
View 2 Replies
May 13, 2010
I was wondering if I could pick your brains for moment. In my XML there are video URL's.[code]...
View 2 Replies