ActionScript 3.0 :: Import Objects From External Swf File?
Feb 21, 2010How i can import linkaged items of library of an external swf file im my project?
View 1 RepliesHow i can import linkaged items of library of an external swf file im my project?
View 1 RepliesI`m using flash cs3 for my works , but i have one problem!when i use File=> Import=> Import to Library... or Import to Stage...the flash environment becomes terminated.I changed my flash version to CS4 and I have this problem again.
View 2 RepliesIn my website I would like to import a external file into the stage .The appearance of this file is an image divided into a grid of 6 rectangles (each one a mcl). What I would like to do is, on mouse over, each mcl could rotate to show its back. The idea is when you click , let's say, Adobe the Adobe logo will appear divided in 6 rectangles and when you go over with the mouse they rotates to show Adobe products.
View 7 Repliesi'm trying to import an external swf file in my application. I used the following code:
PHP Code:
var Xpos:Number=10;
var Ypos:Number=10;
var swf:MovieClip;
[Code]....
But it didn't work!!
TypeError: Error #1009: Cannot access a property or method of a null object reference
i'm using pdf2swf but i can't import external swf frame per frame in scrollpane like to scribd[URL]
View 1 Repliescan anyon e direct me to a place that will allow an import of HTML coding.The full shabang.Basically Im making a website but the content needs to be fully customisable outside of flash... i already know how to import text from an external file, but I need to alter layout and add images at the same time...
View 1 RepliesI'm working on an ActionScript heavy file and the amount of code is starting to make it difficult to find my place.Im wondering if its at all possible to import an external .as file to the top of my ActionScript so that when the movie runs the script is there but I dont have to actually look at it. I'm wanting to import is not a class file.It's interactivity code that is very re-usable and therefore placing it in an external file and importing it would make sense .
View 3 RepliesIS it possible for me to import a 3d object/file into Flash? I created a 3d item in Photoshop
View 3 RepliesI have this one movieclip.. which is the NPC characters for my RPG.. but i want to have my main movie in another swf.. Is there a way for me to "import" the NPC character movieclip.. into my main movie for me to use it? And.. as i have more and more scenes in different swfs.. i'll just "import" the same NPC movieclip.. so.. that one NPC movieclip will be the same throughout all the different swfs.. is there a way to do that?
I've noticed that sometimes .. people put things into files which has ".as" at the end.. which probably means that they put all their actionscript into that file.. is there like a ".movieclips" or something which allows me to do the same to movieclips that i'm reusing over and over again? lol Hope you can understand what i'm trying to describe!.. lol If you need me to elaborate more.
Created an mp3 player that works fine, but i need the track name, artist name, track timer, to be shown aswell?and i dont have a clue how do go about doing this.
View 2 RepliesAnyone can show me how to insert or import a swf file into fla template file.I have a temple FLA file open and after import a SWF file , run test and the swf is not working.
View 2 Repliescan i import vector graphics file *.ai file(illustrator generated) into flex3 ??
View 2 Repliesgot a really confusing problem with importing one swf in to another. Both swf's are AS3 but each one is coded differently.I have a main swf which has very basic code in. Essentially its just a moving flv with a couple of buttons what just move the user to a different frame to show a different flv file. As it was so simple I didn't set it up using base classes and didn't do any OOP style code (i.e. using methods etc) as it didn't need it. This works fine.
I have now created a new small SWF which does some functional stuff (won't go in to details as it'll take a while). This was a more complex peice of kit so I used classes, external .as files etc (i.e. the approved OOP style way). This on its own also works great.
[Code]...
I created a quiz using this tutorial : [URL]
and now i want to use this quiz ( the swf file ) in a frame of an application i am working on. I want as soon the user clicks on a button to launch the quiz.
I tried any way found on net for importing external swf but it never works.
the buttons of quiz appear in the wrong place of the stage ( at the fla where the swf is loaded in )and nothing else is seen, textfields etc.
What do i specify in the "Source" field? Must it be the FLA file of the SWF file i'm importing? Or can it be left blank?
View 6 Repliesi want to import a swf-file into my flashfile. i wrote the actionscript loadMovieNum("mymovie.swf", 10), but the movie is at the wrong place! how can i place the movie at a specific postition? can someone guide me? i am a newbie to flash and actionscript.
View 14 RepliesI'm in the middle of coding a Flash CS5 file with AS 3.0, and a part of that code has me importing an external .as file I wrote. When published, the SWF works fine - but only when it's in the same directory as the external .as file I imported to begin with. Ideally, I'd like the published SWF to work independently without needing to be packaged with the .as file
View 1 RepliesI have a bunch of classes in an SWF file. I'd like to use them in my Flash project.[code]...
View 1 Replieshow I can import an external 3d model and which format it must be have?
View 4 RepliesAm new to classes and as3, just starting to ge the hang of it, but i not fully, so here is some Q's.Fist of i have a Document class, from it i want to call a function in a separate as file. the only way i know of is to, do an import and then instantiate or go static on it's tookus?
But now i got my hands of some pice of code, that uses separate class files without any trace of import, how do they do this?Also if i want to be able to use all the functions from a separate as file in my document class, just like i do if i extends it, but without extending int, how do we do this? do i always need to go ClassName.function() ? or can we do it like in C++
"using ClassName"
//ClassName.function();
function();?
When I point my code to import an external classes such as:
import flash.display.*;
my understanding is that its referencing something within the flash directory to load up the display classes.
In other instances I create a "com.whatever" directory to store other classes that my code can point to.
Well I was running through the Kirupa tutorial (displaying google maps in flash) and I noticed in the code it says "import [url]..." the swf works just fine but where is it grabbing the google classes from if I didnt create the directory?
How do you load external library objects from an external swf? I want to have an external swf that only contains library objects that are exported for Actionscript, and load these from the master .swf file dynamically during the master swf execution. (I may have multiple external swf resource files)I want to be able to load the external swf, and then access it's library objects via actionscript in my main swf file.
View 6 RepliesJust wondering what classes I need to import into my external as fiule to make the following code work:
public static var loader:Loader = newLoader(); loader.contentLoaderInfo.addEventListener(Event.INIT, fontLoaded); loader.load(new URLRequest("font.swf"));
importing GreenSock external classes into my flash project.
Line 27: import gs.*;
DesktopmyFlashAPPS wittersrczainu witterMainClass.as, Line 271172: Definition gs could not be found.
[Code].....
I have a main actionscript file import other actionscript files into it to use their function. From the tutorials and training videos I have, other external classes apart from the document class always link to an object in the library or an object in the main.as is an instance of the other class, for example:[code]
The problem is I'm not creating any variables from the external class but only want to use the functions from it. When I test the movie, I get error 1180: Call to a possibly undefined method isPossibleNo, which is inside class ProjectileNo that is imported already.So my question is how I can use external functions without creating a new instance of the external class because they only hold calculation functions.
I'm using Textmate to complile AS3.0 code. I need to import an external class library that isn't relative to the project or document root. It's a directory called "agd" which is in this this location of the Flex SDK installation directory: frameworks/libs/agd I've udated the flex-config xml file so that it looks in that location for the classes
[Code]...
I just installed the trial version of 4.5 of flash builder, migrating from 4.0 and I am encountering quite a frustrating problem. For some reason in which I can not peg, FB refuses to compile anything with an import from an external class, like greensock, bulk loader etc. I keep getting a 1172: Definition could not be found for any import from my external class AS3 folder on my harddrive.
Now I did edit my build path in the project and include the AS3 folder there as I usually do in past FB projects. Even code hinting works when typing in the import lines and even making new objects from those imports. But every time I save or try to compile, such errors appear on each one consistently. This is coming from a fresh install of 4.5 btw on any Flash Professional project and I would like to use it but I can't seem to get around such a fundamental problem.
From what I found out by a quick google lookup, the Stage3D support for model import is not the best.
Has anyone tried to do something like this and could provide me with some information on how to do it?
I'm interested in an importer capable of COLLADA/FBX or something along those lines.
Im trying to import an external SWF onto the stage of a new Flash project. I found the following AS2 code and created an ActionScript layer and placed it into the first frame. However, when I press the Play button, nothing happens and no movieclip is placed into the library.
this.createEmptyMovieClip("mc",1);
mc.loadMovie("mymovie1.swf");
mc._x = 0;
mc._y = 0;
I am doing a spoof project in school where I have to build a website for a 'photographer.' So I need to showcase his pictures. I have to create 1 portfolio with 30 photos that been provided to me. The photos are all about 50K each. So naturally I cannot import all of these photos into my movie, the file size would be way to big. (Using Flash gets me extra credit) Im not allowed to use thumbnails. Just a back and forth button.
This is what I am trying to build. I want the movie to be 30 frames long. On each frame is a stop command. (easy) And on each frame is an actionscript calling one specific image. (loadMovie ("myimage.jpg", myClip); I'll then have two buttons to navigate from frame to frame. Simple right? The script I am using loads the picture from the server (or hard drive). However when it loads, it takes over. The picture is maximized to fit the stage. And the buttons dissappear. So the viewer is left with one image and nothing else. I want the picture to load into the clip and be able to access the buttons.
[Code]....