ActionScript 2.0 :: XML Structure And Tracing In Flash
Feb 19, 2007I have an XML file that I pull into Flash. I want the nodes of one parent node to trace, but I don't want all of the children to be traced.
[Code]...
I have an XML file that I pull into Flash. I want the nodes of one parent node to trace, but I don't want all of the children to be traced.
[Code]...
I seem to run into compile issues in Flash Builder when I import 3rd-party libraries at the wrong level in the directory structure. For example, sometimes I'll import a library one level too deep into its directory tree, and the package explorer ends up excluding the prefix root-level package, usually "com." or "net.". Even though the content of the source itself doesn't change, this will cause compile errors.
Thus: Is it a 1) convention or 2) language requirement that a class's package structure (e.g., "foo.bar.Class") must match its path location (e.g., foo/bar/Class.as)?
If it's a language requirement, why is it a requirement? Wouldn't that overdetermine the package structure, since it is already specified in the source code and quite happily consuming the first three to eight columns of each line? If it's not a language requirement, are my compile errors just a result of Flash Builder enforcing the convention?
[Code]...
Why does this not work? Is there somthing about tracing multiple pieces of information in the same trace statement in AS3?
Last night i found myself tracing a trace statement through a function by mistake but it lead to an interesting error! if you try to run this -
[Code]...
Obviously its not much of a problem since you'd never have to use it, but im interested in why it happens anyway Anyone have any insight into this?
I have object in which I have rectangle on one layer and following code on another layer:
[Code]...
And Object(this).play() or checking for current frame doesn't work, nor tracing a value define outside the function. How shall I reffer to the movieclip that events is called from?
Can I somehow log all AS3 finctions swf calls during runtime with debug version of Flash player?
View 1 RepliesI dont know if its the right forum for my post or not. But I need to ask if there is anyway to show the folder structure of a clients PC in flash when the user clicks on a browse button in a web site just like the one below? I googled for a "Multiple File Uploader using flash" but what I found there is that an open file window opens and we are able to select multiple files from it. I could not found anything like below. So my question is that whether we will be able toshow all the folder structure or not?
View 2 RepliesIs there a way for an XML file to be displayed in a textfield in Flash just like it's displayed in a text editor? I mean... displaying it and keeping the original XML text formatting (including white spaces, indents etc.)?
View 2 RepliesWhat is a good structure for a complete Flash website. ex.
1) Index.swf ( which is just a container and loader for the actual SWF site content)
2) Main.swf (the main content of the site that gets loaded in by Index.swf)
Should the index.swf load in several SWF's , like navigation file , news reel file , etc....Also , if anyone know of a web site that has this information or knows of a book that covers this material ,
I saw a post from circa 2006 on Kirupa, regarding the best way to efficiently structure a flash website. I'm wondering if this has changed? Should I be coding everything in document class... using xml.... using only external swfs as my 'pages'? an anyone offer advice or a resource on the best way to organize contemporary clean and efficient flash websites?
View 2 RepliesIs it possible to use a Document class that is above the FLA in the directory structure?[code]...
View 1 RepliesI didn't see anything posted on this, hopefully these questions aren't repeats. So, in the tutorial, it shows how to define globals, import XML, import CSS, and load some external files into movieclips. My questions are:
1. How do you control the play order of the imported .swfs? For example, if I load my movie border/bg and it has action, then the menu with action then the main image which also has an action, how do I set up the movie clips to play in order?
2. When I import my bg swf, how do I scale it to 100% but leave the rest of the items unscaled?
3. Can certain parameters of the DropShadowFilter that gets assigned to "filtersArray" be accessed to alter the distance (as an example) so specific params can be altered for different movie clips?
I will probably add to this. The tutorial was so useful that I am trying to relearn my methodology, but there are some gaps.
How do I organize my flas, class, xml, shared library, and deployment files? What does the com in the standard layout stand for?Here is my attempt so far:
1) com
1a) source
1a1) assets
1a2) xml
[code]....
There are many articles available online regarding directory structure best practices, but none of them seem to fit exactly what I need/would like. That, and it seems regardless of what I try, I always get a "5001: The name of package '[package name]' does not reflect the location of this file..." error. This is my current directory structure:
Code:
- colorselector
- assets
[code].....
making tree menu structure in as3 flash........
menu1
1.submenu1 2.submenu2
menu21.submenu12.submenu2
and it is expandable and collapseble with some effect.also there is textarea on rightand content 4 each menu link.
Does any one know of an article's on the element's / structure needed to create a flash , php , MySQL cms ? I failed to mention flash would be the GUI for the CMS
View 1 RepliesI've got some actionscript which begins with:
package obfus_plugin{
import org.flowplayer.model.Plugin;
import org.flowplayer.util.Arrange;
import org.flowplayer.model.PluginModel;
import org.flowplayer.view.Flowplayer;
public class obfus extends Sprite implements Plugin {
and when I try to publish, I get the error:
5001: The name of package 'obfus_plugin' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:flowplayerurl_securesrcactionscriptobfus_pluginobfus.as
the location of the .as file is:
C:flowplayerurl_securesrcactionscriptobfus_pluginobfus_plugin.as
In my classpaths I have:
C:flowplayerurl_securesrcactionscriptobfus_plugin
Is it possible to upload a complete folder with subdirectories and files (in the subdirectories) in Flex?
I am using a Flex / BlazeDS / Spring application. The question is not how to transfer the data to the server.The question is: if it is possible to get access to the files and subfolders (recursive) with Flex?
I was just wondering what the best data structure would be to use to represent data objects in a side scrolling game, basically the stuff the user can't see isn't on the stage so I would generally create a custom class to define its properties (x,y,weight,type, derp, etc) and then push that into an array and as the user moves forward I project the info from the array while checking if their x position is.
The problem that can occur is that the user can move left and right so whats the best way to keep track of the indexes?
how to build and structure a full flash website using the OOP approach. I have an idea of how to structure an application using the MVC design pattern, but I cannot put things together in order to structure a whole website.
View 4 RepliesI'm building an application that is going to use Flash Remoting very heavily. I'm wondering how I should structure my Service connections. Should I put them in each(several) loaded movies or in the root timeline where any loaded move can access them. The latter would cause issues when trying to test each movie individually. But by putting the Service connections in each movie would require imports needed for FR at the top affecting load time. Also, I'm new to using the moviecliploader. I have a few functioning properly, however, is it wise to try and create a "smart" loader? Meaning use one loader having code to zip when the zip.swf is loaded and zag with zag.swf. Or should I just accept, and get in the habit of using a zip loader and a zag loader separately, meaning each loader simply serve a specific function.
View 3 RepliesScenario 1: Within some 3D container object, I would like to add two Cubes: one without any transformation, and one with small position, rotation and scale adjustments. After adding those two cubes, I would like to also transform the container's position, rotation and scale.
Scenario 2: In a 3D character's body, it consists of many hierarchical children (and subchildren), each having various transformations over the course of an animation.
How do I calculate these individual 3D object transformations efficiently? Can it even be possible to do this with only one VertexBuffer3D? Or do I need several VertexBuffer3D to keep track of each objects? Using multiple VertexBuffer3D seems like it could hit a limit (but I haven't read enough of the Stage3D / Context3D documentation to know for sure).
I downloaded the Sothink SWF Decompiler, which allows you to open and view the structure of a .swf file. (the unregistered version limits the amount of actionscript you can view). It even can resave as a .fla file. Does it concern anyone that when you host your Flash code and applictions, it is basically open sourced, whether you want it to be or not?
View 7 Replies[URL]
I have a "person" so to speak, in flash, with a few different parts; head, pants, shirt and hat. There can be, for example, 10 different colors of shirts for the person. I've done a lot of the AS3 code behind it, but I'm awful in flash, and I've had a ton of trouble with this.
What I'm really trying got figure out (in vain) is how I can have basically a blank skeleton structure (i.e. I'm trying to have "blank" or "placeholder" symbols connected by Inverse Kinematics as bones) consisting of the pants, shirt, & head, and when I find out that shirt #6 needs to be on the person... put it in that placeholder. Does that make sense? That's the big problem. The other thing is that I've had nothing but trouble figuring out how to have, for example, one or two outlines of shirts, and when it sees shirt #6, it fills in that shirt with blue dynamically. But that might be for another question.
How I have it now: In AS3, each of the parts, the shirt, the pants, the head & hat, have their own custom classes behind movieclips, and for example, I've got it set up that the body contains the pants, shirt and head classes, and the head contains the hat class, etc.
I got a problem with adobe flash cs4 : I can't launch it normaly and its says that a fatal error has occured.. I really don't know what I must do.. Please, help me.... I've just lost like 3 or 4 files of adobe by trying to reinstall it.
View 3 RepliesI am using the Loader class to load 3 external swfs: sharedTopics.swf (does not have a document class) fonts.swf (document class is FontManager) main.swf (document class is Main) The same loader is used to load all 3 assets.
[Code]...
I had seen one code of the yahoo map component for the flash cs3 like
[Code]...
What i want is to make the import structure is like above "com.yahoo.maps.api.YahooMap;" i created a small component and imported to flash lib all are working fine. But one problem is there it contains 3 functionality. ie in my component i need to call there sub components from inside my orgianl component. so i just need to
[Code]...
i'm trying to create a function where when i pass a variable to it it displays both the var and the value...like:
sex = "yes please";
checker = function(var){
trace([var] +"=" + var);
[code].....
I am interested in making an animation that would be the equivalent to watching somebody write with a pen. The line tip would start moving and the path that that tip traces would stay on the screen.
View 1 RepliesI have a document class and a subclass. In the subclass I have a trace. I've done this dozens of times before.I've checked everything and I'm stumped. I can't for the life of me figure out why it's not running a trace.
I checked AS3 settings like usual. The FLA finds the document class but I can't get the subclass to show up.[code]...