ActionScript 3.0 :: BulkLoader FLV Metadata Error ?
Jun 2, 2010
I'm having a particularly frustrating issue with the BulkLoader API [url] that I thought perhaps someone here might be able to help resolve. What I'm trying to do, is to capture the metadata from a loaded .flv (through Bulkloader) so that I can check its duration. In all my efforts to facilitate this, Bulkloader either misfires once the video has loaded and/or returns null. For the sake of preventing redundancy, here is what I've tried/checked so far...
-I've pulled the metadata of my video(s) through a simple custom net connection... so it is there, and I can grab the duration this way. However, in this particular case, I need the data from BulkLoader.
-I've encoded/re-encoded the video(s), and have also injected custom data. Still no luck.
-I've changed the loading parameter "pausedAtStart" to true, as suggested, and have used netStream.seek() to jump to later frames or back to the first.
Needless to say, this is a very frustrating issue that I just can't seem to find a way around. Here is a link to my source files w/Bulkloader library: [url].
Here is a look at the code:
ActionScript Code:
View 2 Replies
Similar Posts:
Oct 5, 2009
I'm trying to embed a font in Flex and the code I'm using looks the same as the example, but throws an error. This is the code I've written:
[Embed(source="data/posca_mad_thrasherz/posca_mad_thrasherz.ttf",
fontName = "fontGraffiti",
fontWeight = "bold",
mimeType="application/x-font")];
private var funFont:Class;
But I get the error, "Metadata requires an associated definition." I can't seem to get rid of it.
View 1 Replies
Nov 16, 2009
I'm using bulkLoader to load an mp3 and an flv using their simple-example.as
It works fine if I make the SimpleExampleMain the file's class, loads sound and video and plays them both when they're finished. However, if I DON'T make it the class and just use:
Code:
var se:SimpleExampleMain=new SimpleExampleMain();
it loads both, plays the audio fine, but doesn't show the video?? It says that it's loaded, but it doesn't show anything. NOTHING is different except it's not the file Class...
Here's the SimpleExampleMain.as:
Code:
package{
import br.com.stimuli.loading.BulkLoader;
import br.com.stimuli.loading.BulkProgressEvent;
[Code]....
View 2 Replies
Apr 19, 2010
i'm working on a project that uses a lot of external files (sounds, videos...)So I decided to use the class Bulkloader to load my items.
First item I try to load : i'm stuck.The item (a flv) is loaded, but is not playing once the COMPLETE event is fired.All the code above is in the first frame of my flash. (I don't like to work with external classes).
Code:
import br.com.stimuli.loading.BulkLoader;
import br.com.stimuli.loading.BulkProgressEvent;
import flash.events.*;
[code]....
The 'loaded' string IS traced so everything works fine until that.Seems it is the resume() function (or something else ?) that do not work.
View 1 Replies
Jan 28, 2009
I'm having a little issue during my project, cause I can't use those "normal" preloaders. The problem is that I have all the website-graphics in the library, export in frame 1 (because I don't have any more frames than that, everything is done by actionscript), so I need some magic trick to show the loading bar, while loading, though everything is in the library... I tried this one here, to load my stuff from another swf :[URL] BUT... it gave me this little error here:
[Code]...
View 0 Replies
May 31, 2010
How can I use the bulkLoader library? I downloaded it, but I don't know how to link it with my .fla file.
View 2 Replies
Feb 23, 2010
I use BulkLoader to load images for the application. But when I try to use them, I can display only one instance of each image. If I have repeats, the image actually displays only once, in the last occurrence. How can I create multiple instances of the loaded items?
[Code]....
View 4 Replies
Jan 18, 2011
I'm currently using BulkLoader to load in swfs as MovieClips. What I'm trying to do though is duplicate the loaded movieclips and attach them to other clips?
I seen something that senocular posted about creating duplicates of display objects in AS3 but it didn't seem to work with BulkLoader and swfs?
Is there other ways to duplicate loaded movieclips?
View 1 Replies
Sep 21, 2008
I have a bit of an elaborate loading setup I have written asa reusable framework. Right now I have this one kink in it that Ican't get passed.I have class HeatmapComponentController which is a simpleclass extending another class BaseCompoentController.HeatmapComponentController is the DocumentClass of another moviecalled heatmap_component.swf. After my BulkLoader's COMPLETE eventis fired (having fully loaded the swf) I try to use theLoadingItem.content as a BaseComponentController... like so...
private function _onLoadComplete($evt:Event) {
var _baseComponentController:BaseComponentController =
loadingItem.item.content as BaseComponentController;
[code].....
View 2 Replies
Sep 3, 2009
Anyone have any experience with bulk-loader for multiple files? Its great for preloading single files, but I am now trying to preload essentially a folder of images. The images have different names (and will change over time), so I can't just create a for loop to preload for example 'image01' then 'image02' etc. They are referenced via XML however, and I'm wondering how I could loop through those, and use bulk-loader to retrieve these...? Essentially I'm confused about integrating XML nodes with bulk-loader, and then also about how to do it with multiple images...?
View 1 Replies
Oct 7, 2010
My problem maybe a development problem is that i've a preloader file.This preloader with bulkloader load and external swf that is the index file.Now because of i'm using the preloader every stage reference in the index class like stage.stageWidth will generate a #1009 error. So my question is how can i access to the an index class function so that when the preloader's stage will resize some index sprites must will assume the new width of the stage?
View 0 Replies
Aug 18, 2009
I'm using BulkLoader as my main loading class for the project I'm working on. I would like to know how to set the name of a MovieClip that has been loaded with BulkLoader. Here's an example of my problem:The error I get is as follows:Code: Select allError: Error #2078: The name property of a Timeline-placed object cannot be modified.I have tried to set the name of the movieclip before I load set it to the swf that was loaded with BulkLoader, like this:Code: Select allvar random:MovieClip = new MovieClip();random.name = "random";random = _bulkLoader. getMovieClip ("randomSwf. swf");However, this results in the name property being changed to the random instance name that flash assigns it when it gets loaded in.So my question is, is there any way I can change the .name property of the movieclip that is loaded in with BulkLoader, so I can get access to it through the getChildByName() method?
View 3 Replies
Oct 7, 2010
i've a preloader that load an swf with bulkloader. How can i access to a function of the loaded swf?
View 3 Replies
Nov 17, 2009
I'm using bulkLoader to load my mp3 and flv files (thanks to dawsonk for hooking me up with the answer there), and now I need to be able to play/pause and jump ahead and back in the movie that I loaded, but I can't figure out how to reference it?Also, when I go to load another movie/audio from a button click, do I need to do anything with the old instance, or will flash take care of that??
Here's the class:
Code:
package{
import br.com.stimuli.loading.BulkLoader;
import br.com.stimuli.loading.BulkProgressEvent;
import flash.events.*;
[code].....
View 2 Replies
Jun 8, 2010
The problem: how can I get access to instance items after an external swf loaded?[code]...
View 2 Replies
Jan 19, 2012
I'm using BulkLoader to load in images, SWFs, XML, etc into a game. When working local, the content property on the LoadingItem is always good depending on the type of asset: Bitmap if it's an image, MovieClip if it's a SWF etc. When I test the same swf, but under localhost, or online, the content property is always a Loader object. Is this normal? Am I missing out a parameter or something?
View 1 Replies
Apr 28, 2010
i am loading some external swfs with the bulkloader. The strange thing, they start playing in the background ( i can hear the sound) without even having added them to the stage.
Here is my code:
ActionScript Code:
public function init():void
{
bLoader = new BulkLoader("bLoader");
[Code].....
View 0 Replies
Dec 24, 2009
I am using bulkLoader to load dozens of SWFs into my Flex app, and all of SWFs are static (1 frame only). 'Everything' works fine, however, I'm not sure how to handle data from bulkLoader... I am getting MovieClip types for all of my SWFs, and I am not sure how to tell to Image or SWFLoader classes to use some of those MovieClips as source.
View 1 Replies
Mar 21, 2011
i've been using different loaders in the past, here are the most popular:.
[Code]...
which one is the best one and for which challenges?
View 1 Replies
Apr 11, 2011
I am successfully loading and using several swf's with bulkloader. They are games, and when the user is done with one they are returned to a main menu. However if they go back to the game it is is in its finished state. Is there a way to force bulkloader to "refresh" the swf to it's original state?
View 1 Replies
Sep 20, 2008
I don't know why, I don't know how, but for some reason setting the FLVPlayback.bufferTime property to anything past its default value of 0.1 will (more often than not) make it so the .flv metadata does not ever make it to the video player. Granted, this may also have to do with my slow connection, but I know I am not the only one who has had this problem hose of you who have made players with custom seek-bars know the lack of metadata is can be a problem because the FLVPlayback.totalTime property is set directly from the"duration" property of the FLVPlayback.metadata objecty suspicion as to why this is not a more widespread issue is due to the "one video per player" nature of players on websites. I don't believe that players often reuse the net connection of the same FLVPlayback control to load one video after another (however, I could be wrong, this is all assumption on my part anyways).1) The FLVPlayback's net connection is reused (that is, you call the load() or play() method several times during the lifetime of the videoplayer.
2) You notice that occasionally meta information is never received when you increase the buffer time to a value above the default.3) Your seek-bar does respond or you get a run-time error when you try to seek (most likely because totalTime property NaN and the playheadPercentage property relies on this value)The simple solution (or so I am led to believe ): set the buffer time back to the default value before every call to the new connection. In other words, make sure that the the FLVPlayback.bufferTime property is set to 0.1 before calling the load() or play() method for a new video. This will ensure that the metadata is properly received by the component for playhead calculations.
Code:
//assume we have an existing FLVPlayback component
myFLVplayback:FLVPlayback = this.flvPlayer as FLVPlayback;
[code].....
View 9 Replies
Jan 28, 2009
I've been trying very diligently to recieve id3 metadata from a streaming mp3. I have it streaming and it works great, but I need to grab the duration in the metadata.here's the jist of my code,
id3_ns = new NetStream(connection);
id3_ns.addEventListener(NetStatusEvent.NET_STATUS,
netStatusHandler);[code]....
The only other thing I can think of trying is see if my mp3 is screwed-up, but I don't think it is because I can see the
metadata in the properties of the file.
View 1 Replies
May 29, 2009
In Flash CS3 when you did Modify/Document it allowed you to type in a document Title and Description which were metadata searchable by internet search engines. According to the book "Brilliant Flash CS4" this is still possible in CS4, but I think they have removed the option, and the book is wrong. add metadata for searching to FLA documents or is this now gone?
View 1 Replies
Jul 27, 2009
I am trying to get metadate from my NetStream object and do things depending on what is going on. here is what I have, but I get an error I don't know what it means.
var customClient:Object = new Object();
customClient.onMetaData = metaDataHandler;
function metaDataHandler(infoObject:Object):void {
[code]....
The error I get is:Error #2044: Unhandled AsyncErrorEvent:.text=Error #2095: flash.net.NetStream was unable to invoke callback onMetaData. error=TypeError: Error #1010: A term is undefined and has no properties.
at AMG_ASP_ICS_072709_fla::MainTimeline/frame1()
View 6 Replies
Apr 6, 2010
I´m playing around with SWF files exported from indesign CS4. I wonder if there is a way to read any metadata from those files. Or is there any? I have not found any AS3 method to trace metadata like time/date or even some unique ID...something that I could use later to specify that file.
View 4 Replies
Nov 1, 2011
For the longest time, I've been tearing my hair out trying to figure out why my CS4 FLAs were getting larger every time I did a Save and Compact. I finally tracked it down to the @#$% metadata. Every time you save an FLA, it appends a useles chunk of metadata to it, that looks something like this:
<rdf:li rdf:parseType="Resource">
<stEvt:action>saved</stEvt:action>
<stEvt:instanceID>xmp.iid:BD2F8041D0ACE01185F1A1E26A912C41</stEvt:ins tanceID>
[Code]....
This can be viewed in Flash by going to File -> File Info... -> Raw Data.
On frequently-updated files, this junk can easily add dozens or hundreds of K to the size of an FLA. So my question is this: Is it possible to edit an FLA's metadata?
View 1 Replies
Sep 21, 2010
What software is available for extracting metadata from an FLV? I'm testing an flv streaming module for apache (mod_flvx) and need to extract keyframe info from an flv for debugging purposes. I was only able to find FLV MetaData Viewer, but its dated, from 2006, and doesn't install properly on Win7. [URL] Edit: I'm open to any method of extraction, either app or library.
View 1 Replies
Mar 6, 2011
I've set a custom client for a FLVPlayback's netStream, to attach my own functions (onXMPData, onMetaData) to parse the various info myself. However, i'd still like to pass the meta data back to the VideoPlayer. How do I do this? I tried dispatching a METADATA_RECEIVED event with the metadata object (tried dispatching from the client, the netstream, the video player, the flvplayback..), but it does not work.
View 1 Replies
Oct 20, 2009
I think this is in the wrong forum... sorry! Should be AS3) I am trying to dynamically create listeners using metadata from a list of instance names in an array. Here is my code:
[Code]...
View 1 Replies
Jan 27, 2011
I have a AS3/CS5 project in which I am dynamically loading in a font whose location is passed in via XML.
I want to then embed the font per below:
Code:
//font location string passed via xml - "/fonts/randomfont.ttf"
var fontLocation = xml.navigation.font.@fontLocation
[Embed(source=fontLocation, fontFamily="font1", embedAsCFF="false",
[Code]....
it works fine. Are you not able to use variables as metadata in the embed tag? Is there a work around for this?
View 7 Replies