Actionscript 3 :: Link Two Files To A .fla File?
Apr 5, 2012The .fla file only gives you the option to link one .src file in the 'Class' bit, is there any way to link two .as files to the .fla file?
View 1 RepliesThe .fla file only gives you the option to link one .src file in the 'Class' bit, is there any way to link two .as files to the .fla file?
View 1 Repliesi have created a flash animation for my homepage, i want to make part of that flash animation a "enter" button so when clicked would go to my page 2 on my website.
i have never done any script before and only used dreamweaver on a mac. is there an easy way to create this button to link to my next page and to stop my file to stop looping?
Very new to Flash using CS4, leopard. I made an animation in Flash not using script for an introduction page. I made the sections as another file, following a CS4 tutorial, using actionscript 3 for the buttons etc. How do I stitch these together so that the enter button on the non-script portion accesses the first page of the actionscript file? Also, what is the advantage to remaking the non-script file into action script. The swf file on the non-script file is 376 kb and the ationscript file swf is 404kb.
View 7 RepliesHow can I link .swf files together? I'm doing a flash mini game and I have 5 levels with different functions, difficulty etc (so 5 flash files). How can I link these levels together to be like a proper video game with exit - next - restart button, getting the bonus points at each level.
View 1 RepliesI am trying to external .pdf files to my flash file. What I want to do is have the user click a button on a given topic and it opens the .pdf in Acrobat. I know that it can be do because I did it in Actionscript 2.0, I just need to know what the code is in Actionscript 3.0.
View 2 RepliesI have got two flash files now, one called intro.swf and the other called egx.swf. I have a button on the intro file with an instance name of b1, which I want to open up the other file (the egx.swf file). I have tried several codes, but when I get it working, it loads up the homepage, but keeps the text and the button on the intro file up, which I need to get off. Basically I need to link the intro file and the egx file together through the button, and then need to get rid of the intro file from the stage.
View 1 RepliesI am trying to external .pdf files to my flash file. What I want to do is have the user click a button on a given topic and it opens the .pdf in Acrobat. I know that it can be do because I did it in Actionscript 2.0, I just need to know what the code is in Actionscript 3.0.
View 5 RepliesIf it is possible to link two separate flash files. I am trying to get one flash file to play another file.
View 4 RepliesI am making a Flash portfolio. So far so good except for 1 issue that I've run up against. I have linked my separate .swf files together using the following script:[code]The files are linking, but the problem is that the files are opening on top of each other. In other words, the previous .swf file does not disappear as the new .swf file opens. It opens on top of the last one so the result is a messy layered mess. I thought that keeping the level at 2 would remedy this but no success.
View 14 Repliesnew in using the adobe flash.. i have a problem to link my PDF files to my adobe flash slide presentation.
View 3 RepliesI am new to flash as well as actionscript. I m using actionscript 3.0 and flash cs4. I have button "Music_btn" which i want to link to a HTML file which lies in C:Documents and SettingsAdministratorDesktopgindex.html. So, this I what I have tried
Music_btn.addEventListener(MouseEvent.CLICK, music);
function music(event:MouseEvent):void {
var url:String="C:Documents and SettingsAdministratorDesktopgindex.html";
var req:URLRequest=new URLRequest(url);
navigateToURL(req, '_blank');
}
Error Description: - 1120: Access of undefined property Music_btn.
But of no use.
Why creating a text link to a .as hosted on my site creates a 404 error? If I change it to .txt it works fine but I'd really like the user to be able to open the file directly into Flash.
View 3 RepliesCan Flash Player files contain link to internet URL? Please explain.
View 5 RepliesI have a movie that is going to be playing in our onLine Learning Site. I want to include a link to download a few documents, and I just don't know how to do that.I do Not KNOW what the complete HTTP url will be, just the directory path by that I mean, I know the files will be in "VideoFilesHighRes1.MOV" but I don't have access to the complete URL. This isnt a problem when it comes to loading other Flash objects (IE sounds, different clips etc) For some reason I didn't think the "getURL" request was valid in AS 3.0.....
View 1 RepliesI m using actionscript 3.0 and flash cs4. I have button "Music_btn" which i want to link to a HTML file which lies in C:Documents and SettingsAdministratorDesktopgindex.html. So, this i what i have tried
Music_btn.addEventListener(MouseEvent.CLICK, music);
function music(event:MouseEvent):void {
var url:String="C:Documents and SettingsAdministratorDesktopgindex.html";
var req:URLRequest=new URLRequest(url);
navigateToURL(req, '_blank');
}
Error DeScription: - 1120: Access of undefined property Music_btn.
a code for creating a simple link between files on my computer using flash cs4? Im trying to link sperate swf files within the folder. Im trying to make a cd and i have 5 sperate swf files that need to link to each other and back to the home page which is also a seperate swf file.
View 4 RepliesDo you still have to use Flash wrappers like Zinc to be able to save files from a CD using a Flash projector. In the same way you would use Filereference.save?
I've got a DVD style project where I need to be able link to files such as PDFs, JPGs and WMVs giving the user the ability to save these to their local drive.
How to edit flash file (.swf) without .fla file ? I got banner in swf file and a need to make something like that:
when user click on that banner he will be redirected to an url (for example [URL]
I'm in the process of making a web page that'll successfully checked as XHTML 1.0 Transitional ([URL]), but as soon as I place in the fixit.js script under the flash object and view the page in IE, all the flash elements turn white. Quote:
[Code]...
Anyone knows how to place in flash files in xhtml files on IE without manually controls by clicking on the flash file.
what I'm trying to do is make a preloader that will preload about 20 external SWF files before it lets you get to my main file. I want to do this because my main file needs the SWFs to be ready to go once its done loading. I have looked around and i found a few ways to do this with the "if (loadedBytes>=totalBytes)" and the code loops back till the files are done loading... this would be just what i need but i cant seem to get it to work. the file just seems to start loading my files but does not loop and just runs the time-line even once i state what frames i want it to loop.
View 6 Replieshow do I change the settings so that the flash file looks for as. files in a certain file.
View 1 Repliesi have created 2 swf files.. (eg; a.swf and b.swf)if i 1 2 link from a.swf to b.swf, i use this AS : ( this As works)
on (release) {
tellTarget ("_root") {
gotoAndStop(1);
loadMovieNum("b.swf", 1);
}
}
lets say if a.swf have 3 scenes in it, (scene1, scene2, scene3), and i 1 2 link b.swf back to the 'scene3, frame1' of a.swf, what will the AS be?i tried using this:
on (release) {
tellTarget ("_root") {
gotoAndStop(1);
loadMovieNum("a.swf", "scene3",1);
}
}
but it has and error....
can anyone help me link one swf file to another, so the second loads in as s seperate movie when a button on the first is clicked
View 1 RepliesI purchased a Flash template. I know I need to edit the .FLA file, but yikes. Layers and layers. How do I link the existing buttos in the FLA file to other URL's in the site--like "home", "contact us", etc. pages? I have a Lynda subscription, but trying to find a specific topic in those tutorials is a pain.
View 1 RepliesDoes anyone know how to link text to a file instead of a URL in flash?
View 1 RepliesI have 6 different .fla files with their own SFW file's and how to link them I also have a main.fla that holds all my stuff like my buttons, logo, banner ect. This is the only code I have and I get no errors but when I click on a certain button it wont go to that certain SWF file?
[Code]....
Is there a way to add a link/URL to a .swf file, without embedding into the original .fla file?Is there any way to do that with just the .swf file alone, and without actually editing the .fla or re-creating it?
View 5 RepliesOk, this should be easy, I've done it before, but the code was in a different setup/format.
All I'm trying to do is have a text box display a link and then click on the link to go to the site.
Now, everything is working as far as display, but when I try to pass the targeted (clicked) link to navigateToURL, it is null.
Here is the partial loader code:
Code:
//format video description txt
var vidDescFont:Font = new VidDescFont();
var vdf:TextFormat = new TextFormat();
vdf.font = vidDescFont.fontName;
[Code].....
I'm extending senocular's excellent xml/gallery tutorial to include a URL link with each image. I've created a button object but can't figure out how to add the link from the XML file?
View 7 Replies[Code]...
that's what i have currently. It worked fine in osx on safari. It opened the pdf in the browser. but on a pc with firefox I dont think it has the same in browser pdf capabilities, How do I just initiate a download prompt or something?