ActionScript 3.0 :: Include XML Text With Img?
Dec 23, 2009i want to have text with properties load in via the same xml.
var images:XML =
<images>
<img href="images/image1.gif" />
<img href="images/image1.gif" />
[code]....
i want to have text with properties load in via the same xml.
var images:XML =
<images>
<img href="images/image1.gif" />
<img href="images/image1.gif" />
[code]....
I saw it in this site...[URL].. it says "Include code from external sources using #include".umm... does it mean I can use C code, etc. within flash??
View 1 RepliesI saw it in this site...[URL]it says "Include code from external sources using #include".does it mean I can use C code, etc. within flash?
View 1 RepliesWe have created a very simple swf file which has TLF text within it. Once uploaded to our client's intranet the file will not play when using IE6 and Flash Player 10. Our client's secure intranet may not be able to download the required framework files from Adobe's website so we simply placed the textLayout_2.0.0.232.swz file in the same directory as the swf files. Unfortunately this still did not work.
To be sure that it was the TLF text causing the problem we packaged the framework in the swf wile (from Publish Settings). This did then work, however we do not want to do this for all of our files as this adds quite a significant size per file. We also changed the text to classic text and this too fixed it so we know we have to solve the TLF Framework problem.
is it possible to include text files to be used as code. I would like to have different files to hold some important codes like player stats but didnt know if i could include that file then get the stat from it.
View 1 RepliesI have my level data saved in a text file for this game I made, I realize that it doesnt allow me to import it into my library, so it cannot be packaged into my finished swf. How can I package the game so that it includes this text file? (really don't want to access it dynamically)
View 12 RepliesI'm found the site with the monkey on the the flash thing and all it shows is a name, email and something else and I used it and it works by including a txt file and displaying text from that file as putting down this information
name.text = this.name;
and I can't find the site anymore to get help.I want to know how to include a PHP script that shows this information like this
text=something I need&username=My Name&email=something@website.com
I want to show this stuff on the flash but every time I execute by using it as localhost/test.php, it will show a syntax error.
I am using an include file, and I've noticed that sometimes the the fla file does not refresh new changes to my include file. When exporting with "Ctrl, Enter" Is Flash loading the include file from the cache?
View 3 RepliesHow can I include as SWF created with AS3 into the FLA of using AS2.
I tried using loadMovie("myExternalMovie.swf");
but nothing happens.
I'm trying to make a flash game where people write small files, and they get included into the game. However, I need to use #include with a variable, but it won't let me (malformed). I need it to be a variable so the user can choose the file to be included. Anyways, how can I get around this? I need it so it will import the script and use it, if theres another way I'll be happy to hear.
View 5 RepliesYou know them flash decompilers - can they read your comments you leave in your code?Also, is there anyway to remove the comments if they can -- and can you somehow remove all whitespace and compact it so the swf runs faster, better, and is a smaller file?
View 1 RepliesI would like to include fonts in a SWF that I am building using Flash CS3 and AS 3. I have found lots of examples online that look like
this:
[Embed(source="C:WINDOWSFontsARIAL.TTF",
fontFamily="Arial")]
private var _arial_str:String;
However, the definition of the variable defined below the EMBED tag varies, sometimes its "Class", sometimes its "Font".
In any event, the font is used this way:
mytext.font = "Arial"
The problem is that this does not work for me. I have tried the various types mentioned above for the asset but none makes any difference.
If I embed the font in the library of my project I can access the font this way:
mytext.font = new AvantGarde().fontName;
But when I try this code with the Embed tag I get different errors compile time depending on how I've define the variable.
It appears that the code samples I found are for Flex and not Flash?
I really want to be able to make this work without embedding the fonts in the library.
How to include contextMenu for whole swf?
View 4 RepliesI'm trying to recreate a modernized version of this tutorail here - but I'm having problems building building and referencing an SWC file for inclusion in my project in Flash Builder. Whenever I try to reference the SWC, flash says it's "not a compile time constant" - can anyone help me with the process of building a SWC (mainly, naming it so that Flash Builder can reference it) - and then, in Flash Builder, creating that reference to the SWC?
View 4 RepliesI have downloaded a flash component "Fade In Fade Out Slideshow".and included mu images in it.i don't know how to include it in drupal[code]...
View 1 RepliesI'm trying to create an installer file for my AIR app. I export release build and include all my elements, i.e. assets, a 3rd party .exe file, etc. But my output says file is damaged. Is there s/thing about this .exe file that is doing this? Do I need to create a customer installer to handle running this?
View 1 RepliesI copied and changed the default (Flash Only) html publish file but when I publish my flash file, it doesnt create the AC_RunActiveContent.js file. How can I get Flash to include AC_RunActiveContent.js file when publishing?
View 0 RepliesAll I want to do is include a "game" into a main swf. I'm learning AS3/Classes atm as well, usually I code on the timeline, anyway my Main.as document class looks like this:
[Code]...
How would I include links in an XML file?[code]...
View 2 RepliesI'm working on some classes in Flash Mx 2004 Pro, but I cannot seem to get the #include to work.
This is the error msg Flash gives me:
**Error** myClass.as: Line 1: Classes may only be defined in external ActionScript 2.0 class scripts.
class myClass {
Total ActionScript Errors: 1 Reported Errors: 1
This is my approach, maybe I'm doing something wrong...
1. I have an external AS file called myClass.as, which resides in the same directory as my Class.FLA
2. I have a constructor function in my class called myClass:
Code:
class myClass{
public function myClass(){
}
}
I have used PHP Code:#include 'asfile.as' But it doesn't work in my sig. Any ideas how I could make it work?.
View 3 Repliesi have developed an actionscript 3 app and deployed it on air, now when i compile it, it fails to add to the bundle the import classes i have used... How can i add all imports to the compiled .air bundle ?
View 6 RepliesI've really struggling to understand where to go next I have a file called data.as which contains a URL with a unquire id on for example index.php?id=6957 however depending on which computer the exe projector will be running on the id will be changed in the data file alone.
However when i generate the exe projector it caches the url and wont recheck for any changes in the url.
This is the AS i currnelty have, What i would like it to do is reload the the include data.as everytime it goes to this frame with the below on.
[Code]...
I have a series of AS3 classes that I want to install into the default directory that Flash looks for when, in code, one writes: import com.flashsim.FStEng.Three.*;
In AS2, there is the Classes/ directory within the Configuration folder. Very easy, nice. In AS3, that folder is not consulted, and I understand the Flash IDE does some kind of internal mapping.
I have created a SWC and added it to my Library path. However, I would like to package the SWC in a (code-only) component and put it in a folder that Flash is, by default, looking at to consult swc's. Alternatively, if there were an "include" directory, I could put the as files. However, when I try to put the SWC in the Configuration folder's Libraries, or ActionScript 3.0/libs (the "libs" I had to create), or I put the as files in the Include folder, my Flash code cannot access the stuff being imported.
I have to include a PHP page in a flash movie.
View 1 Repliesis there any way to include files in air application by as3 like #include in as2 ?
My problem is when i add files in included files its take the full path and when i change the application directory to another partition for example its still keep the old one, i need it to be relative like ( appName-app.xml and appName.swf )
does anybody know how to include a scrollbar in a textbox?
View 1 RepliesI can't seem to include <?xml version="1.0" encoding="UTF-8" ?> when creating XML in AS3. note: I am not trying to read it in, I need to create XML to save/process elsewhere.
var myXML:XML = <ROOT><myChild>test</myChild></ROOT>;
trace(myXML); //this works
var myXML2:XML = <?xml version="1.0" encoding="UTF-8" ?><ROOT><myChild>test</myChild></ROOT>;
trace(myXML2); //this DOESN'T work - it is blank
I can only include the header if I treat everything as a string, not as an XML object.
i open up .fla file, but when i click window->action, there is not actionscript inside it. may i know where else can i check the .fla file is importing .as file. where to check it in flash cs3?
View 1 RepliesI was wondering if I could include some flash animation within the html on hover,
View 1 Replies