ActionScript 3.0 :: Importing Other SWF/FLA Files?
Feb 16, 2011
I'm trying to approach another method for making a particular game that I've been working on for the past year. I'm wondering if it's possible to create the game in 'pieces' and import all of the files into one .FLA file. For example, some of the game features include:
-a turn-based tic-tac-toe system (player vs. computer)
-File save/load storage system that will save/load the game files from the user's computer (note: this is NOT an online game)
-An options screen for the user to toggle sound and controls
-The game is played using the mouse
Is it possible to create separate .FLA files and import them into one single main FLA file? For example: For the turn-based game, could I just develop the AI portion of this (since this is extremely difficult to do and will take a lengthly amount of code) in a single FLA/SWF file, then develop the interface, graphics and controls in another separate FLA/SWF file and import all of that into a single, main FLA file where the actual game will be compiled for the final version? For the options screen, can I create all of this in a separate FLA/SWF file and import it in a single, main FLA file with the rest? if I can organize each part of the game into separate FLA/SWF files and then when I get ready to compile the entire game into a single, stand-alone EXE file, everything will all be together? If the game is compiled into a stand-alone file, will it still need all of those separate FLA/SWF files each time it's run? or when I import those files while I'm developing the game, will they already be included once I compile it?
View 3 Replies
Similar Posts:
Jun 4, 2004
I've always been able to import dwg/dwx files into Illustrator, edit out layers I dont need, export to swf, and import into Flash MX. I just got some new CAD files that wont open in Illustrator and am kinda stuck without a solution. Purchasing new software is no big deal I just want to be sure that it will open these new files and be able to export to Flash in a usable format.
View 1 Replies
Sep 8, 2008
I've masked out the backgrounds around some photos (of people) in Photoshop, and I'm importing them into Flash CS3 (Mac). When I import them in, they appear to have a color shift...they look lighter, more washed out than they did in Photoshop. My color space in Photoshop is sRGB, and I've tried importing the images as PSD and as PNG files, but no difference.
View 1 Replies
Nov 18, 2009
I'm importing a swf file with on/off buttons into Captivate, and the sound is not playing. I'm not sure if this is a Flash issue or a Captivate issue. I have posted this same question on the Captivate forum and have not received a response. The swf file seems to be playing fine, however, when I import it into Captivate the sound will not play anymore.
View 6 Replies
Sep 3, 2009
I have inherited a website - http:[url].... and I will need to edit the first page from time to time (Flash). I have the original .fla files and I only have Flash CS4. Not sure which version of Flash the originals were built in, but opening in CS4 I can only see 35 frames - not enough to go through the whole thing. If anyone cares to have a look at the site there's a stopwatch in front of a garage door. This quickly fades in and out, then a car and other stuff appears. I can only get as far as the stopwatch. I can see the whole lot in Flash player though.what I am not doing right?
View 1 Replies
Nov 3, 2010
im trying import multiple swf files(games) into one fla so i can have a little gallery for all my games. the games imported fine but im trying make a button in each game after it is over to gotoAndPlay(1) on my main timeline but it doesnt seem to be communicating, heres the method im trying to use
startGame("game_1");
function startGame(gameName:String)
{
trace("game_1")
[Code].....
View 3 Replies
Oct 19, 2008
I have imported few external file (jpg) into a grid of 9 empty mcl. The import works perfectly but if I click them they disappear (?!) and they are not button but simple images .
I am using the following code to import the files
Also I get this output log:
initHandler: [Event type="init" bubbles=false
cancelable=false eventPhase=2]
httpStatusHandler: [HTTPStatusEvent type="httpStatus"
[Code].....
View 7 Replies
Dec 6, 2010
I was working with a sample code and when I do a 'cntrl + ENTER' I get a 'Type was not found or was not a compile-time constant: LoginEvent' error I also get the same error for the other events of 'RoomEvent' and 'XIFFErrorEvent'. My source files 'Test.FLA' and 'Test.AS' are located here: 'xiff_3_0_0src' whereas the various packages refered to in the source file are located here: 'xiff_3_0_0srcorgigniterealtimexiff'. My import statements are as follows:
import flash.display.MovieClip; import org.jivesoftware.xiff.conference.Room; import org.jivesoftware.xiff.core.JID; import org.jivesoftware.xiff.core.XMPPSocketConnection; import org.jivesoftware.xiff.events.LoginEvent; import org.jivesoftware.xiff.events.RoomEvent; import org.jivesoftware.xiff.events.XIFFErrorEvent;
View 1 Replies
Aug 16, 2011
so Flash was importing my PSD files in the folders I had my layers filed into. Well ... now, Flash will only import PSD folders as one big file and so I cannot edit in Flash.
View 2 Replies
Dec 2, 2011
I have a problem while trying to import any sound file into flash CS5.5. I have not successfully done it since purchasing the program. I have tried opening the file in a sound editor and saving it, as well as trying to convert to a different sound type that is still Flash compatible. I'm trying with .mp3 and .wav files mostly. The error messages i receive are "Couldn't import C://*file location* or else i get"One or more files were not imported because there were problems reading them." I havent figured out a pattern as to why either might be showing or the connection to the file.
View 1 Replies
Sep 14, 2010
i created a 3d model using sketchup and exported it as a DAE file.
then i try to import the model into papervision, but the model never appear.
when i use the DAE file provided in the examples, it works. only when i tried to create my own models, it doesn't work. does this have anything to do with sketchup?
View 2 Replies
Nov 11, 2010
Very basic question here: Are there any disadvantages to using the ".*" qualifier when stating our imports into ActionScript files.
In other words, is this only a compile-time directive or does this actually affect the footprint and performance of our final builds?
View 1 Replies
Aug 8, 2009
Basically I am making a website and have made separate swf files for the individual pages, partially because of the size they are and the amount of time it initially took to load.
I invented the function RevCont
ActionScript Code:[code]....
which uses the variable PAGEURL, so on the click of a button, PAGEURL becomes relavent to that page, for example
ActionScript Code:
_root.button001_btn.onRelease = function () {
PAGEURL = "001_stationery_printing.swf";[code].....
Now this works fine and dandy... except for the actionscript embedded within that external swf file becomes inactive... buttons don't work, external images aren't loaded and i'm left looking at a green box (my loader mc).The only thing that does work, is the stop(); function...
View 5 Replies
Jun 28, 2009
As expected I have a question, which is the following: Is it possible to load a complete directory into Flash. So that the only thing you will have to do is copy/paste the file to the directory and Flash loads it automaticaly?
View 2 Replies
Mar 25, 2010
Well I have been having a major problem for the past four days. I imported 1 photoshop file into flash, everything was okay. I tried to import the others and an error message appeared stating that flash has crashed and has to close unexpectedly. I've re-installed flash and it does the same thing- so I know that isn't the issue. I have used other computers and it is still the same. I have been racking my brain everyday trying to figure it out. I checked the file sizes and they aren't that big and I compared them to other photoshop files I've imported and they are roughly the same size.
Also other photoshop files import, but the ones I actually want to use do not work at all. There is no way I'm re-designing 10 photoshop files!!
By the way when I saved some of the PSD files there was no extensions on the files, so I had to add them afterwards.
View 2 Replies
Mar 16, 2010
I'm creating an interactive flash application that uses hundreds of individual renders from a 3d modelling app. The image file size is 800 x 600. Each sequence that i import to the stage is around 120 images and each gets put into a separate key frame. The problem is, often when I import batches of files into flash the program crashes and stops responding.The problem gets worse after each succesful import ie. after importing the first lot of files, its unlikely that the second lot of files will importInterestingly, I dont have this problem on my pc.
View 2 Replies
Jul 22, 2011
At work we've been having a particularly irritating issue with svaing flash files in CS5.After making some changes to a flash file, and trying to save it, the flash file simply doesn't commit the changesand keeps the earlier version.We believe we've isolated the issue to importing from illustrator (CS5).It seems if you copy any rasterized images, or vectors with effects on them (such as drop shadows, glows etc)saving starts to have some issues, the saving itself seems to work fine, but reopening the files with often result withflash being reverted to a pervious saved version.I'm not sure what is the exact cause of the issue, but I do think it's certainly linked to illustrator importing.Has anyone else had issues with saving, and it rolling back to previous saves, and is there any way to avoid/fix this issue?
View 5 Replies
Oct 26, 2010
I am trying to import an swf file into Flash builder. My swf file is correct, and displays the correct data. However, when I import into Flash builder and launch my project, I get a blank HTML. Not sure why? I am carrying out the following steps in the sequence listed below
1. Create an FLA component in Flash Professional.
2. Go to Publish settings, click on export to SWC.
3. Exported SWC displays correct data.
4. Create new action script project in Flash Builder.
5. Add the SWC folder as path of the referenced library section.
6. Added the following code in action script code
var mystickyman:MovieClip = new stickman as MovieClip;
addChild(mystickyman);
Here stickman is the linkage if of swc given in Flash Professional.
I am using SWC for the first time , and am sure am missing out on some steps.
View 1 Replies
Feb 2, 2012
I initiated a project. I put the external .as files into the appropriate folders, labeled the packages, bind them to their related library objects and so on. Everything is working fine..
Now, what I have here is another .as file that is performing an algorithm, and thus, not directly related to a library object. I put it in a folder, named its package accordingly, and imported it in my main .fla, like all the others. BUT I don't bind it (it's called binding right?) to a library object. So, when I call the class, it simply gives "Type was not found" error.. can't I call an external .as file WITHOUT binding it to an object. Or should I just made up an empty MovieClip and bind the file to it? It just not seems right to me..
View 9 Replies
Nov 2, 2007
for a school project I'm doing I've been given a .SWF file to put into a flash file. How would I go about this?
View 2 Replies
Apr 1, 2009
I'm trying to get the as3corelib to work as when I run my file at the moment it tells me: 5001: The name of package 'com.adobe.images' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. /Users/markbunyan/Websites/craftmagic.co.uk/JPG_encoder/JPGEncoder.as I thought I had imported the as3corelib fine but can't get this to work. Can I simply import the code from JPGEncoder.as???
View 3 Replies
Dec 31, 2011
It looks perfect when the stage is set to 100%. But when I shrink the stage (even in the SWF), the quality of the image becomes choppy and the edges of objects become pixelated. Same thing with enlarging it. The publish setting JPG quality is set to 100%. How do I fix this? It's mostly the quality of shrinking it that I'm worried about; this image/flash will go on a webpage & I plan to have it automatically adjust its size based on the browser's size.I'm using Flash CS5 with Actionscript 3.0.
View 3 Replies
Jul 26, 2007
I've been using Flash for a couple of years now... I use it mostly for designing fashion graphics (!!!). I know that Illustrator is excellent for creating artwork, I export Flash files as AI ones, but encounter numerous errors while opening such files in Illustrator. I think the problem is with the Color settings. Flash uses RGB, and CMYK is Illustrator's default settings. When I try to export a graphic symbol (with layers, groups of objects and simple shapes) from Flash Professional as an AI file, it always exports as Illustrator 6.0 version (wonder why)...
Then I try to open this file in Illustrator CS2 and always get a "BG" error message which is similar to this one:
Can't open illustration. The illustration doesn't have the correct number of operands for an operator.
Offending operator: "Bg"
Contex:
Bb
0000 Bh
1.0.0.000819.20.....etc. (lots of figures)...Bg
So after getting such a message and pressing "OK" there are 2 possible results:
1. The program (Illustrator CS2) opens a blank artboard (stage) with absolutely NO objects or symbols on it.
2. The program opens an incomplete graphic on the artboard (stage) with many missing objects and shapes (say, if I exported a graphic with 2 layers, the top layer will be missing).
Unfortunately, these are the most common results....Though a few days ago I hkept several AI files open and tried to export an AI file made in Flash. To my greatest surprise Illustrator could open the file with absolutely everything I exported from Flash! Except for Bitmap fills, of course....But everything else was just perfect! I was amazed no end! What settings should I have in order to be able to open AI files exported from Flash? If I got it once, it means it is possible to open such files... I have to use Illustrator more often now, and I need my artwork to be covered to AI files without significant modifications or corrections... Is it doable?
View 1 Replies
Oct 5, 2010
I am finding discrepancies between color values when importing Ai files into Flash CS3 (between 2 users)
1. The Ai files are in RGB.
2. There are 2 users, 1 using Leopard and 1 using Tiger.
3. The Tiger users colors change when importing into Flash, the Leopard users preserve the native Ai file's colors.
4. Both Using CS3
5. Both Creative Suite Color settings in Bridge are the same (North American General Purpose 2)
Side note, we are both seeing multiple North American General Purpose 2 options in Creative Suite Color settings in Bridge
View 1 Replies
Mar 8, 2011
So I been trying to import a psd file in flash to animate using diifferent layers from Photoshop. The problem is there's always artifacts around the image once it imports. I can't seem to get rid of themwhen I need clean shapes to animate. When I go back to reclean the image in photoshop, it looks crisp and I don't see obvious artifacts spots as I do in flash.
So how does one get clean image shapes from photoshop or detect artifacts before going through the trouble of importing?
View 3 Replies
Apr 25, 2011
Im using PS CS5 to build the parts of animation i am making in Flash CS5. Im not using PS for the animation as the GIF quality is horrendous, and also rotating layers for animation is a no go!Anyway, im saving the individual layers in (Save for Web) as PNG-24 files with transparency. Then importing them 'To Stage' in Flash. That side is all good.
When ive made the animation in Flash and go to 'Publish Preview' there is a 'background' there. Also there is a border around the files on the stage. This appears to be the size of the 'background' in the animation. Transparency is set in the GIF settings.
View 3 Replies
Jun 26, 2011
I have Flash CS5 at work, and CS3 at home. I am creating a FLA file at home that I'd like to append to an existing file at work. I'm guessing that I'll just need to import all of the symbols from the CS3 file into the CS5 file and then copy and paste the frames - or is there a better way to do it? What I'd really like to do is to somehow convert the CS3 file into a movie clip symbol that I could just run in the CS5 file. Is this possible?
View 3 Replies
Feb 4, 2008
Been planning on making a reader that can read in acrobat files but wasn't sure if it's possible.
If it is possible, could anyone give me a bit of advice on how to import the file
View 1 Replies
May 10, 2009
I am importing a PSD file with a background layer, which I want to remain static throughout the movie and also several other layers which I am going to animate. Here's my problem...I cannot figure out how to get the background layer to remain visible throughout the movie once I create tweens for the other layers, without manually copying and pasting frame 1 to every other frame...yikes! There must be something very obvious I am not doing, yes? It probably goes without saying that I am a first time 'designer'.
View 2 Replies
Dec 31, 2011
It looks perfect when the stage is set to 100%.But when I shrink the stage (even in the SWF), the quality of the image becomes choppy and the edges of objects become pixelated.Same thing with enlarging it.The publish setting JPG quality is set to 100%.How do I fix this?It's mostly the quality of shrinking it that I'm worried about; this image/flash will go on a webpage & I plan to have it automatically adjust its size based on the browser's size.
View 1 Replies