ActionScript 2.0 :: Navigate Downwards Into A File Structure
Nov 21, 2009
I have a large project, and I need to have a complex folder structure separating all my classes, shared libraries, main swf's etc... I understand how to navigate downwards into a file structure for example: Classes.Buttons.ButtonMain How do I navigate upwards though? My shared library is in a seperate folder, so it needs to navigate up one folder, and over to the Classes folder to reference all the classes.
View 0 Replies
Similar Posts:
Jan 23, 2011
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?
View 1 Replies
Nov 15, 2011
I am trying to user Ravis lib for data visualization and the structure of the XML file that Ravis uses is different that what we use in our company. These are as follows:Ravis XML structure:
<Family>
<Node id="1" name="Father" desc="Head of the family" class="HOF"/>
<Node id="2" name="Mother" desc="Wife of Father" class="firstLady"/>
[code].....
View 2 Replies
Nov 2, 2009
I have had to adjust the structure in a XML file and so am trying to adjust my AS accordingly so that it can read it.. but i'm having difficulty as my XML knowledge is only basic.
My new XML structure is:
Code:
<?xml version="1.0" encoding="utf-8"?>
<music>
<song>
<thumbPath>thumbs/image1.jpg</thumbPath>
[Code].....
View 1 Replies
Jun 1, 2011
i'm trying to play external videos using netStream.
My script work fine with .flv files, but with .f4v it doesn't work with Firefox (i've tried versions 3.6 and 4): I get NetStream.Play.FileStructureInvalid
F4v files was exported using Media Encoder from Premiere.
Here's a part of my code:
ncConnection = new NetConnection(); ncConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); ncConnection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
[Code].....
View 10 Replies
Dec 19, 2011
I have an actionscript file,it has a package name,it locate C:demo directory,like follows:
package demo{
import flash.display.*;
public class ABC extends Sprite{[code]............
Then I compile above code like following command,but it raise following error:
C:>mxmlc demoABC.as
Loading configuration file C:sdkframeworksflex-config.xml
C:demoABC.as: Error: A file found in a source-path must have the same package structure '', as the definition's package, 'demo'.Where is wrong above command?
View 1 Replies
Jan 4, 2011
I am trying to import a video in to flash. I have converted it to a flv and used the stream from flash media server option and selected a standard play and stop bar. I have imported it in and it works find when you just select the individual swf that it loads into. The problem im having is that when I go to it through the home page, all the page loads apart from the video. I've tried moving it around, moving where all the assets to the video are etc. I know the file structure is important to this working. I have a main folder called interactive / and in that have a FLA and a SWF folder and the swf and fla home page. Currently I have the the video swf in the swf folder with the flv and the play and stop swf.
View 7 Replies
Nov 18, 2011
im trying to write an array into a XML file/structure for saving. Using the create element function kept saying something like function is not a value, so im using the XML syntax for the nodes;
Array is 1 dimensional loadedlevelrows[5];
[levelnr,tiletype,tileX,tileY,tilenr];
like: 1,1,11,1,2
1,2,14,7,3
[Code]...
View 1 Replies
Mar 26, 2011
I received a Flex project but don't know how to open it in Flash builder. It doesn't contain a project.mxml or .actionScriptProperties, .flexProperties and .project files. the file structure looks like this:
(rootFolder)
-(com)
subfoldrestructure containing only folders and .as files
-(src)
-(_embed)
[Code]...
how do I make a compilable Flex project out of this?
View 1 Replies
Sep 16, 2008
I'm using the code below to allow a user to download a file.The problem I am having is that, if the file is located at/images/english/and I say I want to download it to myDocuments instead of having an images saved in MyDocuments /MyDocuments/1.gif.it creates the same folder structure as the file that was downloaded and saves it here:/MyDocuments/images/english/1.jpg.This isn't the whole code, but I think I included all the stuff relating to downloading files
View 1 Replies
Oct 26, 2004
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
Jan 22, 2011
would someone have the code necessary to navigate to a pdf file if its possilbe?
Here is some suggested code but it doesn't work.
pdfDoc.addEventListener(MouseEvent.CLICK, goToPdfDoc);
function goToPdfDoc(event:MouseEvent):void{ navigateToURL(getURL("mydoc.pdf"), "_self");
}
View 5 Replies
Oct 5, 2005
URL...I was just wondering how you managed to allow the use of the browser buttons to navigate within your SWF file.
View 6 Replies
Aug 26, 2009
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 Replies
Mar 8, 2010
I need to open and navigate a website from a flash file.
I have to use a sort of "iframe"?
View 1 Replies
Feb 23, 2010
have this flash xml menu that loads external swf files like this:
Code:
<item title="ABOUT"content_path="http://mysite.com/folder1/folder2/folder3/about.swf"target=""mouse_rollover_color="0xFFFFFF" mouse_rollout_color="0xDDDDDD" />
and I have this swf file with cms that I'd like for this menu to load. Currently the swf file load external text using this code:
Code:
if (contenturl1 ne "") {
loadVariablesNum(contenturl1 + "/" + userid + "/content.txt", 0);[code].....
but when the xml menu loads this swf file its structure loads but not its data.I tried using :
Code:
this._lockroot = true;
in the loading swf main time line but it did not work.I should also mention that the dynamic data that loads onto the swf that is to be loaded by the menu, resides not in it main time line but 4 movie clips deep .I don't know if that makes a difference or not.
View 1 Replies
Dec 8, 2009
I'm not sure if this is technically a web service or not but I have a Flash file that periodically needs to make a round trip to a DB. As it stands, AS3 uses the URLLoader class to exchange XML with an ASP.NET/VB file on the server. The aspx code then goes to the DB and returns whatever information is requested back to the Flash file.As my program grows and I need to execute a larger variety of tasks on the server, I'm wondering if I should just keep placing functions in that same aspx file and specify in AS3 which function I should load for any given task. OR, is it better to break up my functionality into several different aspx files and call the appropriate file for the task?Are there any obvious pros and cons to either method that I should consider?
View 1 Replies
Dec 28, 2009
I have a XML file with images and tags which should be loaded into movieclips.The tags are separated in maintags and normal tags. Maintags are describing the image itself and "normal" tags are referring to other images. If you click on an image/movieclip its normal tags should be read and referring to other images' maintags which now should be loaded into the movieclips.Sounds complicated but actually it's easy. Theoretically I understand what to do, but I'm not able to express it in Actionscript.Here's my(rudimentary) code:
PHP Code:
import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLRequest;[code]......
View 7 Replies
Sep 28, 2010
I am editing a free template and I have a problem. The original free template (175 Photo Gallery by flashmo.com) has 6 frames; 3 galleries, 2 "text pages" and a contact us form. I want to have 5 galleries and the contact us form.I copy-paste the actions and structure of the galleries on the "text pages" and edit this 2 new actions to link to the new gallery file (in this case the number 4): Code:flashmo_gallery03.load_gallery("flashmo_175_photo_list_04.xml");The problem is, I assume you have seen it already, is that the action to gallery 4 is linked to gallery 3, since no gallery 4 and 5 exists in the structure of the site.I have noticed that the .as file that controls the frames is a "pagecontect_8.as" file (thx to Trillix decompiler) that I assume is internal. The original code is:
Code:
//class pagecontents_8
package flashmo_175_photo_gallery_fla
[code]......
View 4 Replies
Dec 23, 2011
what is xml structure for locale_en.xml if i want to use Locale.addXMLPath("en", "locale/locale_en.xml");
View 1 Replies
Jul 19, 2009
I'm trying to convert this text structure:
[Code]....
How to do this? I know how to transpose the values, but I don't understand how to obtain the needed structure.
View 2 Replies
Feb 9, 2010
I want to show the structure of any xml document and use the drawing API to connect nodes so that is looks like a phylogenetic tree. Each node in the xml document could have any number of child nodes and sibling nodes that need to be arranged at run time so they don't overlap. I attached a sample image to show the idea of the phylogeny.
View 1 Replies
Aug 26, 2009
I'm trying to convert this text structure (data.txt in the attachment):
[Code]....
Let say I have one *.txt file (data.txt in the attachment). These data inside are exported from Excel as tab delimited.
Using the browse, I'm loading (opening) this file in already prepared textArea in Air and the result looks like in the first box (first txt structure).
Below this textArea, I have another one textArea where I want to see the converted (transposed) data from the above textArea (second txt structure in the first post) after pressing a button. As you can see above (second box), ("comp" 4) line must be added above every group.
View 2 Replies
Aug 11, 2010
I'm trying to load and display images (read in dynamicaly with xml) into a rectangular grid format, say, 2 rows of 3 images.
I believe I understand the nuts and bolts about xml loaders, but my code is only showing what I think is the last image:
[Code]....
the trace command reveals that the coordinates are indeed right on where I expect them to be... only thing is on the stage, only one image shows up. The very last one.
View 4 Replies
Jul 26, 2009
I want to add a method called max() to the array data type so that I can say[code]...
View 7 Replies
Mar 24, 2010
I 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 Replies
Aug 19, 2010
I have an all Flash based website with a few sections and UILoaders for PopUps which open up from image buttons from Product section. (url...)
PROBLEM: I have assigned labels to each section of the website. Each section has its own image buttons which open different PopUps. This is the part where the sections differ from one another and thus require its unique part of AS3. However there are main menu buttons present on every section of the site. This is where the sections are identical and require one uniformed AS3.
PRESENT SOLUTION: I have segmented the AS3 layer by keyframes to match the keyframes of the labeled section. I put the code for all the main menu buttons on the first opening keyframe which plays the intro sequence and the stop(); code as well. Then I put stop(); in the beginning of every single section afterwards, I did not repeat the code for the buttons from the first keyframe but started to add the code required by corresponding section only (i.e. products section has only products relative code, application section has only application relative code, etc. and none of the main menu buttons code from the first opening keyframe, even though the main menu buttons are present on every section).
QUESTION: Should the AS3 layer be one uninterrupted layer with all AS3 code needed for all of the website elements on the timeline or should it be segmented by keyframes per corresponding sections of the webstie and repeat all the code from section to section if the elements and functionality repeat as well?
View 1 Replies
Sep 2, 2009
I want to create a folder structure through Flex or AIR... is it possible? I mean the Flex or AIR will receive the inputs on what the folders and file names will be and when i press create, it should create a directory structure...
It is possible in PHP through fileSystem, but i am not sure whether it is possible in FLex or AIR....
View 1 Replies
Feb 28, 2010
I am a student with a mainly electronics background getting into programing. The more I get into it, the more I realize how bad I am at it. I am trying to get better at OO design.One thing I have been reading about is the use of Getters and Setters.
[URL]
Now I can see the point they are making here but I am still unable to see away around some simple problems. And this brings me to my question (finally). I am setting up a simple tower defense game in AS3 as a learning exercise. I want enemies to follow way points so I was going to make an array of way points, and make that a property of a map object. And a way point was to be an object with an x and a y property (more like a struct).
View 4 Replies
Jul 15, 2010
My code is:
[Code]....
Taking the package name out lets it compile, but when it is in it tells me it the package structure isn't right, but I'm not sure what I'm doing wrong. Is it an error I made? Or possibly my version of mxmlc is corrupt? I compile it with
View 2 Replies