ActionScript 3.0 :: Accessing Embeded XML Easily?
Jun 15, 2011i have a basic xml file which im able to load externally easily using :
Code:
private function loadXMLFile():void
{
[code]........
i have a basic xml file which im able to load externally easily using :
Code:
private function loadXMLFile():void
{
[code]........
Recently I share some videos in my blog: keyfun.wordpress, clarify how to convert ppt to flash easily with effect samples. Or you can visit [URL].
View 2 RepliesI really want to attempt in making my own game kind of like Farmville. I know most of the actionscript, but I do not understand how they make the artwork. I try to make those isometric art in photoshop and stuff, but it's almost impossible for me. I use a tablet.So I'm wondering how do so many people make that art work so easily?
View 1 RepliesAs the title, is there a class method in Flash to limit and round of a number's decimals ?Like :roundToTwoDecimals(1.2362 ) = 1.24
View 8 RepliesIs there a good tool can asily download SWF files from internet?
View 2 RepliesI am using FlashDevelop and Flex SDK, I use this to embed things on the swf:[code]Now, I would like to embed more than 100 files (or maybe more!), and doing this one bye one will take long and will be very exhausting Is there any easy way to that easily?
View 1 Repliesso I'd like to get some input on how exactly to go about coding this thing in the most efficient manner..i have 4 portfolio galleries im trying to display (web design branding motion)and the thumbnails for each of my projects are going to be displayed on a grid of 50x50px squares.id like to dynamically populate these 50x50 squares with thumbnails pulled from a folder and then populated into the grid sequentially then when an individual square is clicked have a full size version of the image (also pulled from the folder) populated in the same manner.
View 1 RepliesJust about all the screens require the text to be set to dynamic text and have character embedding set to basic latin(95 glyph) The problem is that because the project is so big and has so many dynamic text boxs the publishing time is really starting to slow down.
I dont mind if it doesnt embed that fonts while im publishing for debugging. I just need it to publish with the glyphs when im showing it to the client.
Can embedding be set by code?
If it is i could just take some time out to set my dynamic text boxs to look at a specific class or somthing?
Or Am i missing a propertys overright button somewhere that will switch embeding off through out the project when I need to?
Lets say I have an array which has n dimensions. Now in order to access a slot you typically use: array [1][0]What if the number of dimensions are not known at compile-time, is there an easy access like:
slot = "1,0"
array [slot] // accessing 1,0
Which means I can also easily navigate back and forth
[code]....
Let me first say that the project I am working with was my first foray into AS3 as well as OOP. I wanted to be a grown up so I wanted to use classes and not rely on individual swfs.Unfortunately, I didnt quite understand the spirit of OOP, or at least I dont think I did, and I made each section of the site into a separate class. I then integrated the classes and their library materials into one large project. The thing works great - but unfortunately the file has gotten too big.What is the most straightforward way to now break this project back up? Do I need to load in external swfs
View 0 RepliesI have a massive json object that I return from my php script. The object holds strings as well as variables that are of type php associative array. When i trace my json object it's totally not formatted and not readable by human. However If I use a free online json formatter, it looks good. My question is if there is an easy way to trace out all properties and their contents in an easily readable way using as3?
View 2 RepliesI'm currently working on side scroller that has an isometric-type perspective (think Double Dragon) and the only thing I could think of to use to easily manage the depths of the MCs was a bubbleSorting algorithm. (It seemed to lend itself well to the swapChildren command).
[Code]...
Is there a way to have a flash control scroll through a number of images with descriptions without knowing Flash?Perhaps like LightBox but with nice scrolling.
View 1 RepliesFor some "mysterious" reason I cant surf on my text fields. And when I choose a combo box, the focus insist to not move to the next field unless I double click the next field...
I removed the code, and everything worked. Since the file is quite big, i uploaded here:
here: [URL]
I just learned that you can do this in actionscript 3:
someLabel
//code goes here
break someLabel;
}
I have a building type animation where many buildings enlarge then I want a small bouncing type animation once they do... I don't want to do this all manually as I have 100s.... Is there an easy way to do this with AS3?
View 3 RepliesI know this goes against the logic of most menus. I am building a menu. I have very nice mc called "menu_list" and loading into the movie loads a easily editable external XML file with all my over categorys and sub menus
it looks like this...client.niallohara.net/xml_menu.html
[Code]...
Does anyone know where to find examples, tutorials or source files on how to integrate flash with backend to create a dynamic image gallery that can easily be updated?
View 2 RepliesI have read all sorts of answers all over the internet on this subject, but I can't get anything to work, even with AS3. I've read all over the place how changing an individual movie clip's fps can be done dynamically separate from the main fps of the movie using AS3, which is what I'm using, but it still doesn't work for me.
Can it be done or not? My movie has 2 different scenes. In Scene 1, I have to embedded clips that I would like to move at 25 fps but the rest of the movie can I want to still run at 12. I get all kinds of error messages when I try to script an fps change and the movie plays the errors.I have even tried to raise the overall fps of the entire movie and then slow each element down to where I want it, but that doesn't work either. (I read somewhere that you can script for less fps, but not more, so I tried that, too, and it didn't work). Is it possible to script 2 different sets of main stage fps for the two different scenes?
If I can't get it to run with these 2 embeded clips faster than the rest of the movie, would it just be better to make the whole thing into 2 separate movies and run them back to back (or would that be too much hassle for a user/server)?
If you go to click on the animation link the skin at the bottom of the video is visible then fades away. If you navigate away from animation then come back the skin isn't there. I don't know why.Here's the code for the animation swf with the parts I think are relivern in bold:
Code:
import mx.video.*;
var totalRecord:Number = 0;
[code].....
How do I send an even from an embeded swf and receive it from the class that called it?Code the dispatches from account_settings.swf file.
Code:
dispatchEvent(new CustomEvent(CustomEvent.ACCOUNT_INFO, {theData:pipeSize.selectedItem.data}));
[code].....
When I embed a swf it does not function the way it does when not embeded. I don�t no what the problem could be. Here are the links and source code below. The scroll bar on the bottom does not function and the 360 click and drag of the photos does not work.
Code:
//******************* Scroll Functions for Large Images *******************************
var maxSpeed:uint=50;
[code].....
I have a flash movie which uses a loader to load another flash movie. how can I pass variables from one movie to the other, without using global variables?
View 1 RepliesI have a web page which has a SWF file embeded. I have an issue with the focus.
Click on a HTML Text Field and Click on a Flex Field. Begin to type a text.
Expected Result is the entered text should go in the Flex TextInput field but the actual Result is it goes into HTML text field.
I'm working on a project which involves usage of the same font on few loaded swfs. These are 95 base symbols and 11 more (specific for my language). Now i have them in library as movie clip. Is it possible to somehow share it ? Or export them and then reload to swfs? I've did a lot of searching but nothings really doing it right.
View 1 Replieshow to pass variables from the HTML the Flash is embeded to the SWF, but can I send text to a SWF from another HTML page?
Here's the setup:
On page one.html there is a SWF with a dynamic text box in it with the instance of "txtBox".
On page two.html, the only thing on the page (including code) is "hello".
I'd like the SWF on page one.html to say "hello" in the text box.
I am new to flash and have created my first flash video, a simple set of fading photos for my website front page.I am using Flash, Dreamweaver and Fireworks all CS3, The flash video is embeded in the webpage and works fine in preview mode in Dreamweaver but does not appear at all in the uploaded webpage.The flash video works fine through the link on the webpage.I have uploaded the AC_RunActiveContent.js script to a scripts folder and to the folder where the webpage is and also the folder containing the flash video file.
View 8 RepliesThe project i'm working on contains many flv's which are dynamically loaded into our custom media player, and then again loaded into our flex application. We are having an issue with these flv's. Well i should say some of them. Our problem is based on browsers. In IE everything runs fine. In firefox, some work, some dont. We run different courses though our application. In 1 loaded course, the flv's play perfectly fine. No loading issues or delaying or freezing. But on this one course all of the flv's contained within it will not load. Like i said before, when we test this on IE they work. Only firefox is causing the issue. I have researched this issue and have came up empty handed.
View 6 Repliesso I have 3 swf's that im loading with buttons into the main swf. The thing is that these 3 external swf's have embeded flv's. when switching between the swf's with the buttons, im using vid1loader.unload();the only thing is that while the video switched to the other video like it should, the audio keeps running on any number of videos(swf's) that are loaded. My question is how do you stop the audio when using simple Loader and URLRequest to load the swf's?
View 1 RepliesI need dinamicaly create LinkButton with icon. The names of files (icons) have the format "images/icon_0.png","images/icon_1.png", ... "images/icon_1000.png". But I don't know specific image for this button. I know only index of icon.I tried this, with no success:
var path:String = "@Embed(source='images/icon_" + imageindex + ".png')";
myButton.setStyle("icon", path);
I get a runtime error Type Coercion failed:
[code]........