ActionScript 3.0 :: Using 2 External Documents?
Jun 13, 2011
I have a dillema with Flash, and that is using more than 1 external document... Over the years I've tried using the include statement WHICH worked in as2 but now as we have progressed into as3 it seems to cause more and more errors! Why is Adobe screwing up actionscript? Back when Macromedia owned it everything was sooo much simpler than it is now
Right now I am making a Flash Game which is almost finished and I'm already using the external document for the GameController, I've added a brightness setting for portable users to make it brighter, I borrowed code off a kind coder and I'm now responsible for converting the external document into the actions keyframe...I used the include 'Main.as' statement and I get this error, packes cannot be nested.....is it possible to put the full code in my keyframes actions layer instead?
View 9 Replies
Similar Posts:
Mar 13, 2010
My XML scripts work fine in the local swf. If I load an external swf, can I still retrieve XML data from the same way. What problems will I encounter with XML and externally loaded swf files?
VARIABLE TYPES
var timer:Timer = new Timer(10);
var myString:String = "";
[code].....
View 1 Replies
Jun 17, 2009
I am a beginner when it comes to Flash and Actionscript. I know how to create a few things using Flash, but when it comes to programming in actionscript, I am clueless. I work for a local government agency; my boss and I want to simulate a digital signage system using Flash.
I have a document that changes weekly, I want to load it in a Flash file that will display it as is and autoscroll it and loop back to the beginning. The file itself is created by a secretary in different office. We want her to save the file in a designated folder and it will automatically apear on screen. (does any of this make sense?)
I was able to set up an application that uses xml and css. I had to go through the microsoft word document copy and paste it to an xml editor which was 14 plus pages and add xml tags. I was able to get it to show up online, but I could not find code in actionscript 2 that uses autoscroll.
View 0 Replies
Oct 23, 2010
I am trying to make an interactive book that will have a chapter broken into several paragraphs that will load into dynamic text boxes.
For my first chapter, I have 3 text boxes, in which I have 3 different .txt files being called upon with 3 separate loader(); events It's important that the .txt files are loaded dynamically so the content can be edited easily.
Is there a way to do this with array or classes so I don't need to create and code 10 boxes for each chapter?
View 1 Replies
Apr 29, 2011
I've got this interactive poem I've been working on for a class. I've basically finished each "episode" seperately. I made a parent document which essentially loads one of the ten child documents onto the respective key frame. Here's a sample of the code for the first key frame of the parent document:
stop();
import flash.net.URLRequest;
import flash.display.MovieClip;
import flash.events.Event;
stage.addEventListener(Event.ENTER_FRAME, LoadSWF2);
[Code]....
Well Two things are messed up about it, well my "ChildTimeline2" variable will off and on assosciate itslef not with the main time line of a child document, but of a nested symbol inside said child document. Even worse, the "gotoAndStop();" command I will give sometimes applies to Parent document... yaay! but often it will apply to the child document. The end result being this horrible looping moment where you are stuck in one child document for all time.
I wish I could attach the documents but they exceed the 300KB. how I can get Actionscript to listen fro the last frame of the maintimeline of the child document, or tell flash to gotoandStop for the parent document
View 4 Replies
May 29, 2009
In Flash CS3 when you did Modify/Document it allowed you to type in a document Title and Description which were metadata searchable by internet search engines. According to the book "Brilliant Flash CS4" this is still possible in CS4, but I think they have removed the option, and the book is wrong. add metadata for searching to FLA documents or is this now gone?
View 1 Replies
Jul 16, 2011
I want to load my xml file from my documents. What url should I use? in this request
xmlLoader.load(new URLRequest("medialist.xml"))
View 1 Replies
Apr 24, 2008
i'm trying to create a mix and match clothing application using flash for a school project but am having trouble with xml documents. Using an old gallery tutorial on the site, i found it was quite easy to load up one xml document, excerpt of code below.
I thought it would be as simple as copying all the code and changing the variable names to load a second xml document but i find when i run the code, that only the last xml document in the code loads
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
[Code]....
View 1 Replies
May 25, 2009
Well what i want to do is a background in an internet source page. You know that ur deskopt background can be a web page right ? well i want to create such a page with dreamweaver which i can do and insert some flash button that i would be able to click on and open my folders such as My Images, My Documents, My computer... not open a file but the folder itself. Ive seen a lot of fscommand and gourl but they dont work cuz one open an internet browser and the other nothing appears. Id'like to know if it is makeable with Flash 8 to click on a button and then my documents appear and even better that you can choose dimmension of the pop-up.If i want to open my documents as an example do i need too have the button and the webpage in my documents?
View 3 Replies
Apr 19, 2010
We're working with a product called ProForm to create online courses that are Flash-based. It's a pretty cool product, created by Rapid Intake and using ActionScript 2 as the basis.
The problem we're seeing is that when we try to use this method to connect directly to Office documents, the links fail to open the documents in Internet Explorer. When using Firefox, they work fine, and soon after clicking the link the user receives a dialog asking if they wish to save or open the document. This is the behavior which we expected in IE, and which one can achieve by holding the CTRL button and clicking the link (and don't ask me how that was figured out, 'cuz I don't know). But when just clicking the link in IE, a browser window briefly pops up, then the thing disappears and nothing else happens - no file opens, no dialog appears, nothing.
View 2 Replies
Jul 21, 2010
Just fired up Flash CS5 to a surprise. My screen-based SWF from years ago will no longer load. how does one achieve the equivelant of nested screens in CS5 now? I have outer chrome that's common to all screens and switch between nested screens to show different shared form screens that get populated with content from a database. Short of duplicating the shared content over and over, how do you get the layered effect I'm after? Does everyone simply jump around on the master timeline? Or does CSS play a role here?
View 1 Replies
May 25, 2011
Is there any way to load Word Documents, PowerPoints, and .pdf files within a label using AS3?
View 1 Replies
Jul 11, 2011
My team and I are considering switching to using the "Flash CS5 Uncompressed Document (*.xfl)" option in Flash CS5 based on the assumption that it will allow better collaboration and conflict resolution when working in a version-controlled (SVN) environment. We would like to avoid the common situation of irresolvable conflicts when multiple people edit an FLA. at least in the initial release of Flash CS5: [URL] Has anyone had success or failure with this approach? Is this a favourable or detrimental change in workflow?
View 1 Replies
Oct 3, 2011
I want to know is there any flash viewer which i can embed on my website, for opening word, pdf files?
or is there anything else that i can put on my php website, that can view the document
View 1 Replies
Jan 27, 2011
We're looking into an automated nightly build process using ANT or Maven. The build machine is separate and runs headless... in fact it's just a Virtual Machine on our corporate servers. I know it can easily enough handle normal command-line compilation using mxmlc.exe, but my developers are all using FlashBuilder Pro. My question: Can vanilla mxmlc.exe compile Pro documents without FB Pro being installed? Could I just copy the latest ProSDK over to the build machine or (god forbid) do I have to buy yet another copy of FB Pro only to have it sit mostly unused on the build machine? Enquiring budget-conscious minds want to know.
View 0 Replies
Jan 17, 2007
I'm currently making myself a new portfolio, mainly because I want to start learning some more advanced actionscript skills. I'm trying to setup my site so it runs completely off xml data. Firstly I have an xml menu loading into "menu.swf" and also a xml document with loading into a "project.swf"... Now instead of making a different swf for each project I thought it would be better to have one swf. This would mean loading in a different xml document into the projects window. Where I'm stuck is i'm unable to load a new xml into projects.swf. This is a button I'm generating from xml in menu.swf
[Code]...
View 1 Replies
Oct 28, 2009
For some reason whenever I try to access a any of the files within a project that I'm working on it goes extremely slow. I'll click something, or type something and it'll take like 30 seconds before I actually see it do anything. I never had this problem with this project before, seems like it came out of no where. If I just make a new document, or goto another project it's fine.
View 7 Replies
Dec 30, 2009
got a new problem with Flash CS4 which came up yesterday after trying to profile a swf with Flex Builder (3).As soon as I close a open document (like fla, as) or close a running swf (started with Cmd+Enter) it crashes. Reinstalled CS4 today, but the problem is still there. Really annoying stuff.
View 1 Replies
Dec 1, 2009
I've got a document reader application that I'm trying to add a print option to, but I'm having real difficulties with PrintJobs.On my first attempt, I prepared all my pages in advance, then called PrintJob.start, followed by PrintJob.addPage for each page, then PrintJob. send to finish.On longer documents, however, this was falling foul of the script execution time limits.I could get 90-100 pages spooled before the runtime threw an exception and cut the print run short.On my second attempt, I prepared all my pages in advance again, then called PrintJob.start.I then tried using an event handler to call addPage for each page (first using the frame_enter event, then using a timer). However, calling PrintJob.addPage from an event handler like this caused an exception to be thrown.I've been tearing my hair out all afternoon trying to find a solution to this -- does anybody have any idea how I can get long PrintJobs to work?
View 1 Replies
Apr 9, 2011
I'm a newbie in actionscript. I created a world map in flash. The map has regions (Europe, North America, Latin America, etc.). The regions on the map are defined as buttons.
The final flash map will be embedded in an html document (map.html). The idea is that when you click for example the "Europe" button on the flash movie, this will open an html document called Europe.html and will show it underneath the map flash (inside map.html). The "Europe.html" for example contains a list of countries. In this mission I have 2 problems:
1. What script I have to attach to every region button on the flash map so it will call the right html file into the div on the map.html?
2. What script do I have to put inside the html document?
View 5 Replies
Apr 2, 2011
I have been trying to find solutions to this everywhere and cannot find any concise, clear instructions on how to set up Flex and Actionscript properly on TextMate. That is, I have the bundles but in terms of setting shell environments etc so that you can compile with ANT, find documentation for keyword (Reference Doc) within the app. For the latter ,when i try and do that it says no documentation found.
My shell env stuff is as follows:
TM_FLEX_PATH /Applications/Adobe Flash Builder Burrito/sdks/flex_sdk_4.5.0.17689 TM_FLASH_HELP /Users/doronkatz/langRef (this is where i have the as doc zip file i downloaded)
View 1 Replies
Jan 24, 2012
I have flash movie with 5 frames in swfloader. Is there any chances to scroll between frames like documents?
View 1 Replies
Apr 9, 2011
I created a world map in flash. The map has regions (Europe, North America, Latin America, etc.). The regions on the map are defined as buttons.
The final flash map will be embedded in map document (map.html). The idea is that when you click for example the "Europe" button on the flash movie, this will open an html document called Europe.html and will show it underneath the map flash (inside map.html).
The "Europe.html" for example contains a list of countries.
In this mission I have 2 problems:
1.What script I have to attach to every region button on the flash map so it will call the right html file into the div on the map.html?
2.What script do I have to put inside the html document?
View 2 Replies
Apr 8, 2007
I accidentally posted this topic in the Game/AI Programming section by mistake right below this due to lack of sleep so I reposted here. I was wondering if anyone has a way of making it so a webpage is loaded within a swf. For example: Say I have a swf file that has a menu on the left and title animation at the top. Kinda like this.
View 1 Replies
Jul 18, 2008
Is there a way to search multiple documents from Flash? I have a whole bunch of DOC files that I can either make to PDF or FlashPaper documents.
View 8 Replies
Jul 7, 2009
I actually dotn do a ton of flash work but I have a client who would like to have the ability to post PDF documents to the web using a flash based document viewer like the one found here: [URL] they want the ability to make certain areas of the document clickable like links so they can take you to a url - and they want the ability to roll over or click on an area of the document to zoom in on it. is there some kind of canned component i coudl either get as freeware or purchase that woudl allow me to do this?
View 6 Replies
Apr 27, 2010
I was hoping to do this from a flash plugin, kind of how flash accesses the microphone or webcam but it doesn't seem possible. Is this going to be possible using Java, or ActiveX, or some other strategy that I haven't looked at yet?The idea is to do it without a client install, or at least something lightweight and browser and platform independent.
View 1 Replies
Sep 20, 2010
We have an AIR client which talks to a WAMP server. We store documents.One of the customer requirement is: they want to their website users to view the documents stored in the AIR application. It should be a read only access. The users will not have our air client installed on their machines. All they do is to check the customer's website.
View 1 Replies
Dec 10, 2009
I've seen a lot of people with great documentation that looks just like the Adobe site. I got the impression from an article that there was an app (java?) that made the documents from comments written in the classes themselves?
View 9 Replies
Apr 29, 2010
I wonder if it is possible to read Excel documents like a xml document with Flash.
View 3 Replies