ActionScript 3.0 :: Flash Smile File Xml Isn't E4x Friendly
May 10, 2011
I'm loading in a smil file (follows the xml format) and it won't let me select properties via name (eg. xml.body) instead I can only access the data by xml.child(0). I've tried xml.child('body'), but still nothing. Anyone know a quick workaround? I would like to be able to access xml.head.(@name=='rtmpPlaybackbase') and the XMLList xml.body.switch.video
I'm loading in a smil file (follows the xml format) and it won't let me select properties via name (eg. xml.body) instead I can only access the data by xml.child(0).I've tried xml.child('body'), but still nothing. Anyone know a quick workaround? I would like to be able to access xml.head.(@name=='rtmpPlaybackbase') and the XMLList xml.body.switch.video.[code]
I've made a Flash site and I want it to be optimized for search engine.What I need is, for every query on Google for this organization name I want respective Flash page to be displayed.
I have been googling for hours and have not yet found a solution to this problem.currently, I retrive the data from the twitter xml fileeverything works fine, my date format shows this: Fri Aug 12 03:25:40 +0000 2011But I want it to show this: 17 days agohere's my flash as3 code:
var myXMLLoader:URLLoader = new URLLoader(); //myXMLLoader.load(new URLRequest("http://twitter.com/statuses/user_timeline.xml?screen_name=arunshourie"));
My 2D game has a simple snow effect, but I would like to improve the framerate performance during this effect.I animate 500 sprites with a particle system, using a white 2x2 .gif image.I animate to whole pixel values only.I turn off smoothing and image compression.I don't rotate or scale.No calculations, just modifying the sprite's x values every frame.I've heard some people discuss bitmap caching.
I created a scrolling text box loading an external file, and I added 2 buttons with this code:
[code]...
The problem with this code is that you have to click a lot to see the text, because it goes line by line.how to edit this code to make it easier for user to scroll down and up?
I know how to load external text files in AS3 but I want the user to be able to do it from within my excited swf file. The obvious way to do this is to load the text file using a string from a dynamic text field (e.g: "myfile/myTextFeild.txt") but i want it to be more user friendly.If you click file open in Microsoft word, for example, you get the user friendly open box where you can find the file you want to load by browsing through your hard-drive.
We're currently developing a flex web app and our build situation is far from ideal. At present we're (as in individual developers) just building using FlashBuilder and deploying manually. The programmers are currently screaming bloody murder for two reasons, though:The lack of CI is like going back to the stone ageWe don't much care for FlashBuilder(Note: We're only using FlashBuilder because it was the easiest way to set up a flex project in conjunction with Away3d and get it building / rendering correctly -- it's a stopgap solution).As a predominately .NET development shop, we're used to doing continuous integration as well as continuous deployment. Ideally, we'd like to get something comparable to this for our flash projects without tying ourselves to a particular IDE.
Requirements:
The build process must be:
.. runnable via the commandline .. runnable on both developer and CI build machines (and certainly not requiring an IDE!) .. preferably as IDE-independent as possible (pragmatism will kick in though; if this causes a lot of friction we'll just pick one). .. able to run on Windows (we develop using Windows)
We don't mind a touch of duplication or a few manual steps (e.g. tarting up the build scripts if we add a new project via an IDE, or generating one configuration from another if tools exist), but the less duplication / maintenance required the better.
I have a project that I'm working on where I want to allow a user to control some text formatting for a Flash interactive via external XML. They want to create links and bold text in paragraphs and such.Create dynamic text field on the stageGo to library, create font symbol for HelveticaNeue fontSet dynamic text field on stage to font symbol for Helvetica Neue Turn on embedding for dynamic text fieldSet HTML formatting to true on dynamic text fieldWrite out ActionScript for filling dynamic text field e.g. <b>THIS FIELD:</b> + someVariableFromXMLPublish movieBold text disappears.What am I doing wrong here? I need to make sure font symbols are present and dynamic text fields are set to embedded fonts to ensure PC/Mac font display for dynamic content for oddball non-standard fonts.Why doesn't this work? When I create the font symbol and set it to bold, STILL doesn't work.
I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?
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 have to work with a .fla file. I would like to rewrite this file in AS3. Is it possible? I mean, I would get a .swf file as result of compilation of mxml file in Flash Builder 4 IDE, not Flash CS5 (I don't know CS5, I'm a newbie) . Main target is getting a .swf file by compilation of mxml file, not fla file. Could you explain in detail how this code works? For example what's TXT ? Is it a inputText? Where is this variable defined? Now I 'm linking .fla file ....
I have the need to change a variable in a child Flash file.
The setup is a parent Flash file, that has called a child Flash, and placed it in a movieClip.
I can send a variable using Javascript to the parent Flash file, but not directly to the child Flash file. Is there a way that I can access the child Flash file directly with Javascript?
Or do I need to send the variable to the parent Flash file, and then have the parent send the variable to the child Flash file? Is there a sort of dot notation that I can use with Javascript to get to the child Flash file without first accessing the parent, when the child is added to the parent using the loadClip function in flash?
I have created a booklet in InDesign cs4 that includes page turn transitions. I have saved it as a SWF file and it works perfectly on my PC with the ability to sweep through the page turns. My issue is now, what type of file can I export the SWF file to so that I can view it on an iPad and am still able to have the page curls?
I'm having some problems inserting my ammap into my webpage. I've read through the documentation and it isn't helping. The map works with if I use the .html file in my original folder but all the paths are relative and I'm trying to make this work in an ASP.NET MVC project using visual studio. It's rather tough to explain the problem since I don't know what's wrong (no javascript or flash debugger).Here is the code that embeds the ammap:
Is there any "mainstream" library used for this purpose? Commonly spread, well maintained, documented etc.I found these (using flash):
Uploadify - not many releases, latest 12/2010, no documentation (!) SWFUpload - latest release 03/2010, documentation fancyupload - looks buggy.
phpfileuploader - looks heavyweight, and looks commercial (?) I cannot read the licence (you can download it but are you allowed to use it forever without paying?) plupload New version of pure javascript (no flash) Valums' ajax upload claims to handle file size limit and progress bar, which is quite suspicious to me: these features require to guess the file size before the upload, which seems impossible in javascript (look also here). Or can it work?
I need to find a way to detect keystrokes when the flash file is not selected and send that information to an .swf file. The file would be stored locally (not on the internet).
is there a simple way to just pull back a true or false value from an associated javascript file to a flash file? here is what i have:
Code: var bincheck:Boolean = fscommand("eval", "parent.check_bins(\'"+img+"\')"); if (!bincheck){return false;} return true;
check_bins(img) is a function in my javascript file that simply iterates through an array, returning false if "img" is found. im simply trying to get the true or false value back into flash, but its not proving that simple. i added a couple alerts so that i could see what the "bincheck" value was, and i keep getting an 'undefined' value for "bincheck" in flash.
how to pass variables from one Movie clip's AS file to my Main AS file. Let say my Movieclip's AS file is calling damage = 1; so how the Main AS file retrieve the damage value from the Movieclip's AS?
Code: public class robotMC extends MovieClip { public function robotMC() {
I have a Flash movie which is embeded in 'base.aspx' file, when a button is clicked in the flash movie another 'something.aspx' file need to be called.When I run the flash movie from the Adobe Flash Professional CS3 IDE , it (the flash movie) calls the 'something.aspx' file just as expected.However when I embed the flash movie in to the 'base.aspx' file it doesn't work as expected .
I have a problem with SharedObject. I created SharedObject using AS2.0 it's working fine.... my question is can it possible to store the variable values in an .txt file where the flash file is saved... basically the SharedObject will store the vallues in localdrive with file extention. not only using SharedObject if any other way to store the vaules in .txt file will be helpfull for me... my requirement is to store the the position of the swf file and when the time it reopen, it should start from previous position.
I changed a layer entry of my Flash file by moving around various elements within the layer. I sitll have the original file, too. I'd like to put it back exactly like it was in the original file. How do I replace the changed sprite element from the new file with the original from the old file?
I am using a flipbook Flash/Actionscript 3.0 framework for a digital magazine[url]...
You can have videos embedded in the pages of the flipbook, but they can not be display fullscreen like Youtube videos, for example.
The flipbook can also import swf files to display as pages of the flipbook, so another way of embedding videos into a page of the flipbook would be to have the video player in the swf page you are embedding. This gives you more control over the style and the positioning of the video.
My question is: Is there a way with AS3.0 to togle the embedded video from normal predefined size to fullscreen and back?
I am very new to ActionScript. I have a .fla file which contains the AS2 code for the frames. What I need to do is that I have to export this code as a separate file. There may be a separate file(or class file) for each frame code. Is it possible to me do it automatically without losing animation interactivity and functionality? Or is there any other way?
Let me give the context first. A user opens a local html file which has a reference to a network url of an swf file to embed.
(1) If the embed swf requests a local image file , will Flash allow the request? ( 2) If the embed swf requests an image file on a non local url other than one of the swf file, will Flash check a crossdomain.xml file on the url?