Jump to content
Search Community

DOURADO

Members
  • Posts

    10
  • Joined

  • Last visited

Contact Methods

Profile Information

  • Location
    Barcelona

DOURADO's Achievements

0

Reputation

  1. Hi Jack, Thanks for a fast answer. About the file, ".pat"'s are commons files in AR. Basically pattern references for the AR kit. In some cases we have to load 4, 5 or more files to be able to identify different objects on the scene, so it's useful have a loader. I will try with DataLoader Thanks! Jorge.
  2. Hi Jack, I'm building an app using "FLARTOOLKIT". It's possible to load ".pat" files? If it's possible, how can I access those files? Thanks. Jorge.
  3. Hy Jack, Well I think it's scope problem. I made some tests with youtube videos and it works just fine. It seems somehow that if we wait to the first content to be loaded it works, doesn't make to much sense. If you think it's necessary I can send you the "big code". Thank's once more.
  4. Hy Jack, Once more thanks for such a fast answer. I just made a new FLA document width the code: //create a VideoLoader var loaderVideo1:VideoLoader = new VideoLoader("assets/consejo1.flv", {name:"myVideo", container:videoSprite1, width:980, height:580, scaleMode:"proportionalInside", bgColor:0x000000, autoPlay:false, volume:0, estimatedBytes:160000, onComplete:completeHandler}); loaderVideo1.load(); function completeHandler(event:LoaderEvent):void { //play the video loaderVideo1.playVideo(); //tween the volume up to 1 over the course of 2 seconds. TweenLite.to(loaderVideo1, 2, {volume:1}); } to load the video and it work's. I have no idea why I have the netConnection problem. Before the video I have to many things loading.. If I comment the code it work's just fine... I also have some youtube videos running in the app but in different class. Can this be a problem? Note: I'm using CS5 running on mac and for more than one time I'm having problems and the program closes.. Especially when I'm using external calls or calling to external APIs like youtube or facebook. I will look for something missing.. if I can't find any I will mail you the code. Thank you.
  5. Hola Jack, I'm trying to load a video but I'm getting this error: Error: Error #2132: NetConnection.connect cannot be called from a netStatus event handler. at flash.net::NetConnection/connect() at com.greensock.loading::VideoLoader()[/WORK/Vil/Flash/com/greensock/loading/VideoLoader.as] at jd::HomeBackgroundGp()[/WORK/Vil/Flash/jd/HomeBackgroundGp.as] //..... here is where the code is.... at jd::Main$cinit() at global$init()[/WORK/Vil/Flash/jd/Main.as] The code: addChild(videoContainer); videoContainer.addChild(videoSprite1); //create a VideoLoader var loaderVideo1:VideoLoader = new VideoLoader("assets/consejo1.flv", {name:"myVideo", container:videoSprite1, width:980, height:580, scaleMode:"proportionalInside", bgColor:0x000000, autoPlay:false, volume:0, estimatedBytes:160000, onComplete:completeHandler}); //Or you could put the VideoLoader into a LoaderMax. Create one first... var queue:LoaderMax = new LoaderMax({name:"mainQueue", onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler}); //append the VideoLoader and several other loaders queue.append( loaderVideo1 ); //start loading the LoaderMax queue queue.load(); function progressHandler(event:LoaderEvent):void { trace("progress: " + event.target.progress); } function completeHandler(event:LoaderEvent):void { //play the video loaderVideo1.playVideo(); //tween the volume up to 1 over the course of 2 seconds. TweenLite.to(loaderVideo1, 2, {volume:1}); } function errorHandler(event:LoaderEvent):void { trace("error occured with " + event.target + ": " + event.text); } //end I guess that I'm missing something.. Do we have to import the usual packages for playing video or any other type of package or class? Thanks!!
  6. Hey Jack, I wans't at any moment try to say that I was right or try to prove wherever. I think you are one of the best programmers in the world! You optimize a lot and you are always pushing to give the best way possible! So I know that you would forget memory issues or performance. You are right common for developers put their stuff in a sprite before they start the app, I do that . And yeah we can dispose() it... I didn't know that you did first model with it. I'm sure that you are further away in testing the loader and in such small cases that we want to clone you are right it's just fine using the rawContent. One more time, thank you a lot!!
  7. Hola Jack, I'm at home so I right now I can't test anything but it would be great if we could deactivate the raw property and work straight with raw content. I think it would be best if those contents aren't in the flash display list. Otherwise we are creating in some cases to many sprites that could be avoided. As a result we are using more memory. An other case If we want to clone bitmap's for any reason, once we have different classes and objects with bmp's I think it would help to improve the workflow if we don't have to look always for the rawContent. Even so great work with LoaderMax is so as3 tasty as TweenLite. Gracias!
  8. Hola Jack, mmm... I thought that somehow you were creating a sprite or even an array of raw loaded content... Ok so I use "LoaderMax.getContent(allObjects[kk][1]+tt).rawContent" to get the swf/bmp/video... But in case of the XML, do I also use the node that I want like "node.rawContent" to reach his string? Or by doing this would be ok xml = new XML(LoaderMax.getContent("primaryXml").rawContent) //? It's possible to activate or deactivate this in a way to reach always the rawContent. Thank you a lot for such fast answer! Regards. Jorge.
  9. I know it sounds quite strange... specially because the trace goes well and xml has nothing to do with ContentDisplay... But it's also strange that width the bulkloader versión I had no problem.. and I have been working with it for a while. I'm sure that maybe it's something missing..I will send you the code and try to reach you by email. Thanks for the time!
  10. Hola Jack, First congratulations for the amazing work and thanks for the effort. I'm having some issues with XML. I have been using bulkloader for my major project's and I have Class that manage all my load needs. Since you release the LoaderMax I made necessary changes to work with it, so far so good, the class seems to be working ok. The problem that I'm having is when a try to read a node from an XML and put it's content, in this case a text, inside a textField. So in this class I read an XML and than I read the content that I want of some of those nodes. Example(resume): static private var xml:XML; loader = new LoaderMax({name:"mainQueue", onProgress:progressHandler, autoDispose:true, noCache:true, onComplete:allPreContentLoaded}); loader.append(new XMLLoader(myXmlFile, {name:"primaryXml", integrateProgress:false}) ); static private function allPreContentLoaded(event:LoaderEvent):void { xml = new XML(LoaderMax.getContent("primaryXml")) XML.ignoreWhitespace = false; XML.ignoreComments = true; XML.ignoreProcessingInstructions = true; xml.toString(); // than a call for a method of one of my classes where a pass the xml Main.myClass.addContent(xml); } //Once in my Class: //"containerSWF" it's a swf that was loaded that has my text field myTitle. public function addContent(theXML:XMl):void { trace("theXML.topContent.titulo: "+theXML.topContent.titulo) //the trace goes well and shows the text of "titulo".. // the error comes when I do this containerSWF.myTitle.text = theXML.topContent.titulo; } error: ReferenceError: Error #1069: Property titulo not found on com.greensock.loading.display.ContentDisplay and there is no default value. // end.. I did also: var tempText:String = String(theXML.topContent.titulo) containerSWF.myTitle.text = tempText; I try to pass the "titulo" over a string even so I still have the error. //the XML: <?xml version="1.0" encoding="UTF-8"?> Álbum de fotos Regards, Dourado.
×
×
  • Create New...