ActionScript 3.0 :: Loader - Get The OnLoadComplete Info Out Of The Swf Witch Contains The Flv File
Jun 23, 2009
my page contains a Loader to load the different parts of the site as swf but i also have a little intro, witch ist a .flv file. i knwo i can�t load a .flv file in the loader class so i can put it into a swf an load it this way. the thing ist, after the intro is completed my page should get the info to change
1. a var which will change the proberties of the loader
2. the color of the Header/Footer
3. initialize a little x tweening with the body
is there a way to get the onLoadComplete info out of the swf witch contains the flv file or do i have to change the loader to a flvplayback component and afterwards back to a loader
and if i have to do so - how do i implement the flvplayback component into my .as file -i tried it and i always get the message, that he cant find the class.
This simple code: var loa:Loader = new Loader(); loa.contentLoaderInfo.addEventListener(Event.INIT, onLoaderInit); loa.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoaderComplete); loa.loadBytes(someByteArray); Sometimes works, but mostly doesn't. Neither 'onLoaderInit' nor 'onLoaderComplete' fire. 'someByteArray' is always a valid ByteArray, stored in a local SharedObject
I'm trying to use a custom class to create a mosaic type of gallery, and load jpegs in which some may have different dimensions. I'm using the Loader Class and I can get the content width value of the jpegs I'm loading, but I'm having trouble adding that value to the property of the (custom) object. Here is the Class:
I've got a few spites on stage that are created dynamically and live in an array. I'm rotating images through these sprites and now need to know which image is in a sprite when clicked. My code: loading the images:
Created an mp3 player that works fine, but i need the track name, artist name, track timer, to be shown aswell?and i dont have a clue how do go about doing this.
I have some scrolling content (info). I've also made my own scroll bar.I want the scrollBar dragger to be positioned in relation to the info._y as the user scrolls info.I have created two vars: one that worsk out where info._y is as a percentage and the other that works out where the scroll._y dragger should be as a percentage...
Actionscript Code: var scrollBarPercent = Math.round(scrollBar.dragger._y / [code]........
also onMouseWheel working too.I need a small bit of code that takes the % of info._y and moves the scrollBar dragger to the same % but in relation to the Stage.height...so if projectGalleryPercent = 50%, make dragger._y 50% of Stage.height using scrollBarPercent.
I am using Adobe Flash Media Streaming Server 3.5 but I can't find any output file (fx a xml file) that I can pull out info from and use on my website via a PHP or ASP script. It could be nice - in the website - to retrieve info like "online users attending", "running / streaming state" (online or offline) and other relevant info about the streaming, so I on the website can display how many that are online when a webtv event is streaming.
If you have an .as file in the global include directory do you have to upload it to your server with the flash file or does it compile the flash file with the included info?
I am trying to write a preloader for multiple images of unknown size from an external source. Therefore I am counting the clips as they complete and using this as the progress in a dynamic text field. The dynamic text field loader_mc.loadText.text = Percent; Loads only once when the 1st clip has loaded even though the trace within the same if bracket traces out the different percentages as each clip loads
i have and xml that passes these image details to be loaded into flash. image path, x,y,heigt,width, rotation i use moviecliploader and attachemovies with a for loop to load the images. but find difficult set images there respected property after onLoadComplete even if the movieclip loader as i can pass the approriate values in to movies.how to pass the properties into onLoadComplete even of the image
what i need to do is getting the Browser URL. problem is i only have access of FLA file. the SWF file is displayed in an iframe and that iframe will be displayed in some remote server. e.g.
www[dot]parent[dot]com this is the container page of which im trying to get the URL. www[dot]child[dot]com this is the page that will be displayed inside the parent page iframe and my SWF file will be in in that page.
is there any way i may get php referrer ($_SERVER['HTTP_REFERRER']) info into the FLV file?
I'm loading a bunch of images into my AS2 flash movie, and I've encountered some strangeness.
Roughly, my code looks like this:
function doTheLoading() { m_imageClips = [];
[Code].....
why does my array content seem to change when in the onLoadComplete call? If the array is out of scope, then why can I still see the length of the array and determine the type of the contents?
I am dynamically creating a 2 movie clips in a class. in one movie clip i am loading the image using MovieClipLoader. everything is working fine. but the onLoadComplete method is not working properly. i am using onLoadComplete method to find the width of the image but in onLoadComplete event the exact width is not calculating
I'm loading an MC and then attempting to activate a function onLoadComplete in order to hide the MC. The function is actually reused several times through out the "app" I'm building. I know the onLoadComplete works because I tested it, but the function isn't being activated
Code: var msgMC:MovieClipLoader = new MovieClipLoader(); var msgMCL:Object = new Object(); msgMC.loadClip("message.swf"+"?uniqueID="+getTimer(), msg); msgMC.addListener(msgMCL);
I want to integrate following php-file into my Flash-movie, but something still does not work. Following error message appears: "This XML file does not appear to have any style information associated with it. The document tree is shown below."
I need to create an application where user can add multiple text boxes in the canvas and export it to image, user will also have the access to save it for future use they can edit it for which i need to store the canvas information to XML file.how can i send the textbox info to XML file so that I can save it?My main problem is to send the canvas info from flash, I have a feature of adding text box dynamically so when someone save the application i need to send the info of all the textbox from flash is there any way to find out the total no of textbox in the canvas and get the info of it to send it out of flash.
I'm making a yearbook for my school and I have A LOT of information to be shown on it (in case you were wondering, its a digital year book lol). Theres a certain page that has all the headshots of all the students, and when the picture is clicked, a new scene opens with the information on the student (along with fancy opening animations). Firstly, is that the easiest way to do it, or can i have an overlapping MC that appears over the pictures, fading out or blurring the background, then click an X to shrink and fade out and unblur the background...Secondly, is there a way to create a template thingo for this MC or scene so that it can automatically read data from an xml or text file and place it in the appropriate position for that name. For example-the text would look like this
Below, I will copy the code I am using and I have placed to .fla file and images online, but I cannot place the link here (don't have enough posts yet), so ask me if you want.he script runs perfectly and loads its parameters from the "hardcodedXML" variable. This way, however, whenever the images and their information need to be changed, someone with knowledge of flash and AS will need to open the sourcecode and alter the "hardcodedXML".I am currently assigned to make a renewed website for my employers and would like to enable them (no knowledge of flash or AS whatsoever) to edit the contents of the scroll box. The easiest way for "dummies" is to have a .txt file in the same directory, that contains the stuff that is put in the "hardcodedXML" right now.My actual question/problem: how can I create a txt file that is read by the script, to store the string in "hardcodedXML" (the current string that is hard coded looks like "<photos>...</photos>".I've tried searching Google, but didn't come up with anything.
I created an mp3 player but i have problems in getting info from XML file (song duration)
[Code]....
I'm new to the action script and problems about creating functions after preload() function i call for firstsong(). I have firstsong(), prevsong() and nexsong() functions and timebar() function that is called in each firstsong(), prevsong() and nexsong() functions. In problems about streaming audio this can't work for me and i come up with an idea that to add each songs time as seconds on XML.
I am currently trying to modify a hangman game I found on here (URL...). I'm not very good at actionscript and hopefully this will be a good exercise to learn more - I really want to learn how to make games. I have seen hangman games that include clues for words, but the only games I can find that I can read the source in don't have a clue field, and pull the words from an external .txt file. Is there a way of also pulling phrases to be as clues from these files? I could just create another .txt file and make it a new variable, but of course I would have the problem of it not matching the word. I hope i made sense.
I want to upload file and get some information from server at the same time. I have the code: file.addEventListener(Event.COMPLETE, function():void { trace("complete 1"); }); file.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, function():void { trace("complete 2"); });
When the returning data is not empty, I see: complete 1 complete 2 But when the returning data is empty, I see: complete 1 How can I understand that file uploading is compete absolutely even if received data is empty?
I have a submit button created in an Actionscript file. I want to send data when user clicks the submit button(never mind how the data is sent-I just need to check the event listeners). I tried placing an event listener for the button in the AS file like so: I'm getting an error about undefined method,blahblah so I tried going through the main timeline. Go to frame 146(labeled "this"). myform creates instance of class formtest; subbtn is the name of the button created in the formtest.as file. how the heck do I remove this form when user exits frame?
I'm trying to populate an array with info loaded in from an xml file. I've got the xml loading fine and I can trace everything but cannot seem to access the info outside of the function...here's my code:
My trace inside of the populateNav function works great...all the info is there and image_path returns all of my...image paths. So my XML is fine...what I can't seem to do is pass that info outside of the populateNav function. My imageholder trace returns undefined. I think it's got something to do with the fact that the imageholder trace is being performed before the xml is fully loaded...not sure what to do about that though.