IDE :: Get The TRT Of Loaded FLV?
May 11, 2009I'm using custom script to run a NetConnection and NetStream object.
Is there any way to get the TRT of my loaded FLV?
I'm using custom script to run a NetConnection and NetStream object.
Is there any way to get the TRT of my loaded FLV?
I have a shell swf that is loading a swf. How do you have the loaded swf tell the parent loader to unload itself after the loaded swf finishes playing?
View 4 RepliesIm working on a project that has a main swf file associated with the document class. It loads XML that provides the text content for the project, then it loads a swf that contains a font in its library, then it loads the first of several content module swfs. When the font swf has inited, I'm registering its library font with Font.registerFont(), and using it in a TextFormat object. After everything is done, I can add code to the document class to create a text field on the stage of the main swf and format it successfully with the TextFormat object, but when I try to do the same thing inside the loaded content module swf, the text doesn't show up there at all.
View 1 RepliesI'm working on a project that has a main swf file associated with the document class. It loads XML that provides the text content for the project, then it loads a swf that contains a font in its library, then it loads the first of several content module swfs. When the font swf has inited, I'm registering its library font with Font.registerFont(), and using it in a TextFormat object. After everything is done, I can add code to the document class to create a text field on the stage of the main swf and format it successfully with the TextFormat object, but when I try to do the same thing inside the loaded content module swf, the text doesn't show up there at all.
View 7 RepliesI am in the process of building a site for an Architect... Jamie Fobert Architects (projects) I am useing transitions between the projects and am loading details/text and images externally through flashvars, php and a mySQL database. Within my transitions I have a a preloader on the forst 2 frames the code is as follows (taken from a Voetsjoeba tutorial):
[Code]....
This works pretty well if the content is within the .swf, but when it is loaded externally it doesnt preload it at all. Does anyone know how I can adapt/improve this preloader? or somehow ensure that all the content being loaded externally is loaded before the transition plays?
Code:
var slideNo:Number;
slideNo = 0;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, showXML);
[code]....
I have three btns on stage, clicking on each one i want them to load an external mp3.The problem is the previous loaded sound doesn't stop when a new one is loaded so I have all sounds playing at the same time
View 3 RepliesI have a swf loading another swf. The loaded swf has a button (mc) whose purpose is to unload (kill) itself (the swf).
View 3 Repliesvery annoying bug.. I load a SWF and monitor the loading progress using
Code:
_swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onSwfLoaded);
_swfLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onSwfProgress);
[code].....
The following code loads correctly the xml file but not the stylesheet. Do I have to change the ordrer of some chunks of this code? (ta = textarea movieclip; in the css I only have, for the test, spectacle>item>title {font-size:40;})
[Code]....
I'm loading an external .swf files for my site.
ActionScript Code:
function whattoload( eye:Number){
var ld:Loader = new Loader()[code]............
This works perfect for loading the said .swf and displaying it on my flash program. However I have a next button which When clicked I want it to increment so that It picks a new swift from the array.
ActionScript Code:
var swiftI:Number = 0;
var maxI:Number = 3;[code]...........
This also works well for my desired effects. However I need to remove the previous loaded .swf before the next one is loaded. How do I do this?When I try to use removeChild(ld); It doesn't work.
I am loading an externally loaded swf that uses a mask to transition in. When the user clicks a different button I am doing a gotoAndPlay that goes to a mask that "unloads" the content (it doesnt actually unload the info is just outside of the mask area. As soon As I jump to that section the movie is no longer loaded and just shows the container clip that I had created for it. The Container Clip is never changed and is the same throughout the whole process. The only thing that changes is the mask animation.I have tried both loadClip and loadMovie but no luck on keeping the clip loaded.
EDIT - I have narrowed it down. When I change the mask movieclip the movie unloads for some reason. Is there a way I can keep it loaded?
I'm loading an external swf that is a button to close other loaded movies. I want it to stay above all the other movies at all times so that the user has a way to close them and go back to the main stage. There are buttons on the stage that load external movies and the close button movie loads automatically. All of the movies load in fine but once I load in a movie from a dynamically created movieclip button on the stage, it covers up the close button movie.The following code is where I dynamically load movies from the dynamic movieclip buttons and then after that is where I load in the external swf for the close button.
//Dynamically assign external movies to load from
//the dynamic buttons
for (j=1; j<holderArray.length; j++) {
[code]...
I have a "photo" gallery that loads numerous SWFs through xml, one by one on click. All works fine. All my SWF work fine stand alone. But when I load them into the player, many swf dont work properly.in example, I have textinput textfields in many of the swfs, which work fine on their own but not when loaded into the player. Then I have a word search game that works fine when alone, not when in player. I can see there is something as my mouse cursor changes into the "button finger", but nothing visual.
All drag and drop assigments work fine etc. I have no idea whats up. I have receantly switched to as3 and in as2 there was _lockroot declaration that solved similar problems, but now in as3 (where it supposedly should be automatic) it doesnt work. As it seems that it cannot recognise it own stage value, or selection_focus when loadedinside another swf through xml.Using cs4, as3.
I have my main swf (swf1), that loads another swf(swf2). At some point, swf2 loads an external image. What's the best way for swf1 to align the loaded image from swf2??
View 2 RepliesWhat I'm trying to do is get the total bytes of all the files I want to load and display the percentage loaded of total bytes and bytes loaded of all the files. Its a slideshow so i want all the files loaded and then it will play. I've looked at bulk-loader but it wasn't what I needed. The image are loaded from an xml file. I think I would need to create an Array and then find out the total bytes but I don't know how to reference the loader in the progress.
[Code]....
I've read about 15 threads on this topic, my apologies for another, but am still stuck. I have loaded a .swf into a mc, placed it, scaled it and it works fine. Now I need to mask it with setMask(). I read that the .swf must be fully loaded to mask it and am having trouble with this part. I tried 'onLoaded' and a couple of other ways with no success. Here's my code:
[Code]...
I've been successful to load a external swf using the loader. Lesson_mc is a movieclip I have on stage that I am loading the external swf. I have some masking that is there, that is why the movieclip. myLoader is a Load object. I can find the swf loaded using the debugger and see the currentLabel and Frame but when I try to get the information it sends a DisplayObject error. I have a Menu in the Main Window that controld the navigation. Getting to the frame on the first click works but trying to go to a frame within the same sef does not. Any thoughts?
myRequest = new URLRequest("overview09.swf");
myLoader = new Loader();
myLoader.load(myRequest);
[Code].....
I have a root stage, and a MC that is called from the root stage.Now from that MC, i will called in another MC2, and I wanted to placed the MC in the center of the stage. The reason I could not use normal ADDED_TO_STAGE at MC and define the center is because MC is not place in the exact position of the root stage (as in x, y=0). So if I would target MC2 at MC stage center, it would not be the exact center of the root stage/screen.How can I called the root stage properties rather than adding MC2 into the stage?
View 1 RepliesI have a homepage with five "links" to each swf. Now the first swf I have a custom cursor that hides the mouse. When I click on that link it plays and when I quickly go to the homepage again it hides the mouse there when it's not supposed to do it.
Same with every other link. When I was busy with the first swf and want to go to the last swf of the five, my mouse just disappears! It is almost as if it keeps on "playing" without seeing the swf...
Here is the code that I have so far!
var currentpage:uint = 0;
//one loader object per project:
var loadingobject1:Loader = new Loader();
loadingobject1.x = 445;
[Code]....
Is it possible to control one loaded SWF File eg.(MOVIE-1.swf) from another loaded SWF file eg.(MOVIE-0.swf) on a different level? eg. with a syntax like:
onRelease
_MOVIE-1.SWF.gotoAndStop (4)
or:
onRelease
gotoAndStop (MOVIE-1.swf, frame4)
I'm using the suggested method of duplicating a swf that has been loaded by a Loader object. However, the player thinks my swf is AS2 when it definitely is AS3. The Error Message: Quote: Warning: An ActionScript 1.0/2.0 SWF file has loaded an ActionScript 3.0 SWF; code in the ActionScript 3.0 SWF will not run. The duplicate a swf stratgey:
[Code]...
I have a parent swf with three buttons: next button, back button, ticker on/off button.I have three child swfs, each with a ticker mc. When I click on ticker button on parent swfit dispatches a custom event which brings ticker MC on stage and thus ticker becomes visible (ticker off button displaces it out of stage by changing the value of ticker_mc.y).
the problem I am facing is when ticker is on and I click next or back button to load next or previous child swf, the ticker goes off. How can I make sure that ticker is on all the time and closes only when I close it. How can a loaded child swf 1 communicate to next child swf, child swf 2, which is currently not loaded, that since the ticker is on on swf 1 so you please keep the ticker on on swf 2 as well?!
I think I know the problem. I have put a default value of ticker_mc = 160 (makes ticker inactive) on every child swf. So, the ticker becomes inactive everytime I load a new child swf. If someone could guide how can I do this, my problem will be solved: When first child swf is loaded, the default value of ticker_mc.y should be 160. I want to hold this value in a variable. When I click ticker active btn, position of ticker_mc changes to 194 so the value of variable should change to 194. When I click next btn, the variable value (160 or 194) should be sent to next child swf and ticker_mc.y should be equal to variable value.
This is the code so far
"Next button"
go_mc.next_btn.addEventListener(MouseEvent.CLICK, playNext);
function playNext(e:MouseEvent):void {
if (swf_no < (clips.length-1)) {
[code]....
I'm trying to do this if swf loaded then load swf and if not then don't load anything. This is what I'm using.
[Code]...
i have looked around at what seems to be a million forums trying to find this answer and nothing i do seems to work. I am just trying to unload() or removeChild() or something to get the SWF removed from the loader(). Maybe i'm not understanding the relationship correctly but is there a reasonably simple way of doing this? I just want it to get rid of the previously loaded SWF so the next time i click on a button to load an SWF into the same "holder" it will remove the previous SWF.[code]
View 5 RepliesI'd like to do if a certain SWF is loaded do some actions: I upload many swf at the same location and the user can navigate them with Next and Back buttons. one of the swf has some buttons. I'd like to check if that swf is loaded then do some action. how ? page.addChild(swfLoader); var ext:MovieClip; var ch1_btns:Array; swfLoader.contentLoaderInfo.addEventListener(Event .COMPLETE, onCompleteLoad); function onCompleteLoad(e:Event):void { ext = MovieClip(swfLoader.content); ch1_btns = new Array(ext.less1, ext.less2, ext.less3, ext.less4, ext.less5, ext.less6, ext.quiz); for(var k:Number = 0; k < ch1_btns.length; k++) { ch1_btns[k].addEventListener(MouseEvent.CLICK, onChapter1Buttons); } } in the code above, I have created an array of the buttons in the first swf, so the array will be created when any SWF will be loaded. and the Error #1010: A term is undefined and has no properties. is out. How I can stick to a certain SWF.
View 1 Repliesi am using is flash cs3. the as2 swf contains a tween code using mx transitions.when i remove this tween code and hard code it on the enterframe there seems to be no problem.afaik avm2 should fully supports the as2 and as1 code. so i am unable to understand why this disparity when coding a simple tween in as2 swf.i had made a post in the actionscript forums hoping to gain some light on the issue.URL...[code]
View 2 RepliesUsing the URLLoader is there anyway to get the filename of the file that has been loaded?
public function loadCSS():void {
var urlLoader:URLLoader = new URLLoader();
urlLoader.addEventListener(Event.COMPLETE, urlLoader_complete);[code]....
why are people using xml and as for photo gallery? the pics are still the same size and they can be loaded from outside the swf anyway with as.so why bother with xml? what s the advantage?
View 1 RepliesI have a pattern made of little boxes, each one being a MC that loads an external SWF file. There's a little preloader in each little box.Now, once a swf is loaded, I want to be able to re-use it in other parts of the flash file, without having to reload it all over again. For example, one of the little boxes loads a picture of a donkey. Now if the user clicks the donkey box, the box scales up and displays the donkey. But there's a dozen other boxes that can display the same donkey, or maybe I want to use the donkey later on in the flash file.Basically, my question is: once an external file has been loaded, and I load it again, do flash reloads the file all over again or will it just use the one which is already loaded? and if not, how do I tell him to use the one already loaded?
View 3 Replies