ActionScript 3.0 :: Include .as Files Into Flash Movies?
Mar 5, 2009I'm trying to find out a way to include .as files into flash movies.in AS2 it used to be
Code:
#include "archive.as"
how does it work in AS3?
I'm trying to find out a way to include .as files into flash movies.in AS2 it used to be
Code:
#include "archive.as"
how does it work in AS3?
I am trying to include my Adobe Flash CS3 movies on my HTML websites. The website is validated XHTML 1.0 strict. It works fine in IE and is valid. (IE uses the OBJECT tag) In Firefox, I cannot have my movie since the EMBED tag is depreciated-If I do have the Flash movie included to work in Firefox, it will not validate since the EMBED tag is depreciated. Is there any way to have it work in FireFox and be XHTML 1.0 Strict valid? My URL is:(Flash on top)
View 1 RepliesIs it possible to include PDF files within a Flash site that can then subsequently be downloaded by users of the site? Or does this have to be done through dreamweaver or a combination of both?
View 4 RepliesI wish to save my flash outpout (SWF) as an SWC file in which I also include all media files (mp3s) that are part of my Flash application. Currently these files reside in folders under my main library where all flash entities (AS3 code, buttons graphics etc reside)What software do I need to use to accomplish that?I now work in CS4 under winXP
View 0 Replieshow do i program the url that download the zip files from flash movies? what is the code for geturl?
View 1 Replieshow do i program the url that download the zip files from flash movies? what is the code for geturl?
View 1 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 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 )
I've seen people mention they can include .html, .js, etc files with their iOS for AIR publish when making an iOS application from flash.
What I haven't seen is how these people include extra files (html, css, images, videos, etc) to be packaged into the IPA during publish.
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 RepliesAm still learning AS3 and am using Flash Professional. I have a number classes that I use in my project:
import fl.controls.Button;
import fl.controls.TextInput;
import com.adobe.images.PNGEncoder;
import flash.media.Camera;
import flash.media.Video;
When I run the .fla file with Flash Professional, the file/movie executes beautifully. However, when I publish the file and run .swf in Flash Player rather than through Flash Professional, the file/movie loads but does not do anything once I click on the buttons. It appears as the imported classes as not being included in the published file. What am I missing here?
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 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 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 RepliesI have 15 movie clips that play one at a time. When the first one calls the second movie clip there is a short space (black screen) between the two which I have to eliminate. I tried loading the second one half way thru the first movie then tell it to play when the first movie is over, but when I do that you can see a disturbance in the first movies performance when the second one is pre-loaded. Is there a way around this so I can make 15 movies run seamlessly? They are separate .swf files!
View 1 RepliesI have a 1900 x 1240 .swf file that has a set of buttons on each side. Each button calls for and loads a single movie into a 900 x 600 area in the middle of the screen. I haven't had any trouble setting things up so that the .swf movies, including a converted QTVR file, all load into that 900 x 600 area. One of my buttons calls for a .swf movie that contains a zoom-in and rescale - the link for how this was created can be found at Flash Zoom In Movie Clip and Rescale. The stage for this file is set at 900 x 600. When this Zoom.swf is loaded up by pressing the button, it resizes itself to 1900 x 1240. As well as being annoying, this obliterates the view of all my buttons and interface. I just can't figure out how to make it sit in the middle of the screen at a size of 900 x 600.
View 1 Repliesi am looking for a flash/flex component that plays movies that are not .flv but .swf with controllers such as fast forward, stop, play and a timeline.I have a flv player which does the same but some movies I don't want to play bitmap movies but vector for quality reasons ( as movieclips )
View 2 RepliesI have gotten my movies to play at random from external files but the links that where coded into the random swf files no longer work. could there be an action script issue? The random swf files are as3 and the player file is as2????
View 1 Replieswherever I look for scripts is either AS 1.0 or 3.0... I used to work as a cartoon animator (didn't need AS at all) now I'm trying to build up my own site to show my portfolio. I'm having difficulties loading and unloading external swf files. Basically I'm a total newbie, I managed to figure out that you need an empty movie clip where it will be played, and the buttons themselves...
View 8 RepliesI want to include external code without importing a custom class in as3. My code is getting too long and I need to find a way to segment it into logical groups of functions located in separate action script files.
View 1 RepliesI have an intro.swf file that is basically a movie with sound that is exported for actionscript but not exported in the first frame. I just stuck it in a movie on my timeline and it works great and the preloader works because it doesn't load the sound before the preloader. I use :
musicSound = new Sound();
musicSound.attachSound("music");
musicSound.start();
to play the sound in intro.swf.
However, now this intro.swf gets loaded into an index.swf and everything works fine and the sound plays as long as I have the sound included in BOTH the intro.swf and the index.swf and the sound is exported on the first frame in the index.swf. I was hoping I could remove the sound entirely from my index.swf since it already loads into the intro but so far
I have been having trouble creating a movie clip with a reverse rollover effect within a movie which has a reverse rollover effect. that sounds confusing
In essence I wish to create a panel that rolls out on rollover and rolls back in reverse when the you rollout. I have done this using this script
[Code]...
However I wish to make movies within this movie that have the same effect on them. But when I create another movie or button within this movie it is not registering on rollover. I guess because the script on the main movie overrides it?
I 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 have to include a PHP page in a flash movie.
View 1 RepliesI was wondering if I could include some flash animation within the html on hover,
View 1 RepliesIn AS3, I know how to accomplish this. One needs only to click "ActionScript Settings", and navigate to the SWC file under "SWC Files or Folders Containing SWC Files".
However, when the project is set to AS2, the "Actionscript 2.0 Settings" is a rather sparse menu, and adding the folder as a classpath doesn't seem to work.
I have a flash movie that requires some JavaScript from an include file but I'd like to be able to embed it anywhere without requiring a script tag.
Is there a way to include an external JavaScript file using the ExternalInterface library so I can call the methods in the JavaScript include file later?
I am using jw player for playing audio. can i remove the screen and can i place the only tool bar of the jw player (with out screen).
View 1 RepliesI have downloaded some external actionscript library in a form of a bunch of folders with .as files that have the following folder structure:
com/helper_lib1/*.as
com/helper_lib2/*.as
com/primary_lib/LibClass.as <- primary lib I want to use
Lib.as has the following code:
package com.primary_lib{
import com.helper_lib1.*;
import com.helper_lib2.*;
public class LibClass extends MovieClip{.....
Now I have some fla project where I want to use this com/primary_lib/lib.as, something like:
import com.primary_lib.LibClass;
var test:LibClass = new LibClass();...
How to include this library into my project and where should I put all those files? I already tried putting them into every possible folder but I always get definition com.primary_lib:LibClass could not be found error.
I'm naturally a PHP coder, but I have to use flash for a part of a project.I was wondering if I have files such as mainsite.swf and page1content.swf, is there a way to simply include the page1content.swf file into a predefined area on the mainsite.swf file (as in PHP's include)?Also, would it be possible to use this flash "include" to embed external swf's?Finally, ideally I'd be able to merge these files together, but from what I've read, it's a tricky business, with filenames, referencing etc, so this is optional.
View 1 Replies