Actionscript 2.0 :: Creating Links That Save Files To Desktop?

Feb 2, 2010

I've been developing a Flash cd-rom for a client, and a particular page in the movie has an "press room" that will contain links to images and pdf's located on the cd-rom itself. I'm familiar with creating buttons, and set up a link like this on the button.

Code: Select allon(release){
getURL("images/feat_prct.png");
}

Obviously, it's a pretty simple link that brings the image up in the browser. That's great and all, but I'd really like it to bring up the option to save the image somewhere. I know that a reasonably smart person could just click on it in the browser and either pull it to the desktop or "save as", but I'd like to eliminate that step for them. I'd also like to be able to create buttons that link to pdf files in the same way.

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Creating Links Automatically Between SWF Files

Jan 13, 2009

I've been given a bunch of .swf (about 100) that I need to link together. Rather than doing it manually, old-school style, I decided to write a document class that will sort the content, animate transitions and create links automatically. The basic idea is that all content on the stage conforms to a naming convention whereby all buttons are prefixed with "btn_" + nameofswf.swf - the code recognises this and adds event listeners. The background image is simply called "background". I might add some further functionality later for rollovers, depending on what I need. As a frame script, the code works perfectly - it's when I converted into a class the fun begins.

The code:
package hair {
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.motion.easing.*;
import flash.events.*;
[Code] .....

View 1 Replies

ActionScript 3.0 :: Save To File To Desktop?

Nov 7, 2008

I am trying get one of my buttons to link to a PDF file whichwould not open, but would ask the user where to save the file (i.e.to the desktop), is this possible?

View 6 Replies

ActionScript 2.0 :: Save A File To Users Desktop

May 3, 2006

Basically I have a website and I want to give the user the option of downloading wallpapers that they can use as their desktop image.

View 3 Replies

Professional :: Shared Objects - Save The SOL File To Desktop

Dec 28, 2011

I am a psychology student and have the need to edit a flash game for use in a project. Having no programming experience, this is proving to be an issue! Basically I contacted the authors of a study for a copy of a driving game that records data to an external file (I think this is where shared objects come in?). Unfortunately, I cannot find the output file anywhere on my machine (I am running Windows 7 - have looked in the appropriate directories). After downloading a trial version of CS3, I have edited the screens I needed but have not been able to understand the code. I have located the code for the shared object and was wondering if anyone know how to make it save the SOL file to my desktop. Here is the code I think is appropriate:

[Code]...

View 30 Replies

Actionscript 3 - Save Data In Adobe Flash Desktop App?

Dec 19, 2010

I am making a desktop Flash application (AS3). It provides to users an opportunity to save and open their projects.I've used FileReference to open project file

var fileRef:FileReference = new FileReference();
var ourTypes:Array=new Array(new FileFilter("Map Editor type (*.xml)", "*.xml"));
fileRef.browse(ourTypes);

and use file content by using fileRef.data.

var mainXml:XML;
mainXml=new XML(fileRef.data);

User must have an opportunity to add some data in this file (not only read). How can I save new data in the same file?

View 1 Replies

Swf Files Won't Play From Desktop

Feb 1, 2012

When I publish the swf file with html, it works fine on my computer. If I send it to my old computer with Win XP and for most other people it works fine. But there are some who just get a black screen when it plays or a "get flashplayer" symbol. They update and it still doesn't work. They do not have a company setting that does not allow them to play the file and I have walked them through the browser settings so that anything should play. But still, no luck.

View 2 Replies

ActionScript 1/2 :: Automatically Copy Folder Of Files Onto User's Desktop?

Apr 30, 2009

I'm hoping to produce a CD of Captivate lessons to be accessed via a Flash menu. (Using Flash CS4, but with ActionScript 2). I can get the files to work from the disc, but as they are large files, they take less time to open if downloaded onto the user's machine first.
 
Is it possible to use some ActionScript to take the folder of files and copy them onto the desktop so that I can then point the menu items to the newly copied folder? I've seen that there is a download option in ActionScript but this seems to bring up a dialogue box and allows the user to place the files wherever they want. Ideally I'd like the process to be automatic.

View 2 Replies

ActionScript 2.0 :: Save Files With "Save As Window" From A CD To User Choice?

Jan 19, 2006

I need to open a popup(html) form a Flash projector.

And I need save Files with "Save as window" from a CD to user choice...

View 1 Replies

ActionScript 3.0 :: Creating Links From Xml?

May 26, 2009

I am trying to generate a list of links via xml using as3. I have created a movie linkHolder and a text field called linkText.

I then add link text to linkHolder and add linkHolder to the stage. I have an eventListener attached to linkHOlder which calls a function and when I roll over the links it activates the function correctly.

How do I give a unique id or reference to each button so that I can pull up the correct link associated with it?

Here's some of my code:

Code:

function createVideoLinks():void{
for (var i:int=0; i<externalXML.videoClip.length();i++){
//build the arrays of link text and link destination
vidText[i]=externalXML.videoClip.vTitle[i];

[Code].....

View 4 Replies

Creating Links To Different Pictures?

Jan 6, 2010

I am trying to get each of the following pictures in my flash file to link to different webpages. I have tried a bunch of different things, and can't quite get it to work right. I have put different urls on the images, but when I click on them they all go to that first url.

View 1 Replies

ActionScript 3.0 :: Creating Links Using Xml?

May 26, 2009

I am trying to create a list of links from some xml. I pout the link text into a textfield and then put this textfield inside a movie called linkHolder
 
How do I assign a unique identifier to the movie such that when the user clicks I can pull up the correct url from an array.

[Code]...

View 3 Replies

Creating A List All Links In A .fla File?

May 28, 2009

I have to make a list every document linked in a multiple .fla files. I can pull them up doing a find for .pdf but I can't figure out how to copy the links from the results field. Each file links to 1000+ pdfs, so i'd like to avoid doing this one at a time. Is there a way to export the results of the find function to a .xml or .txt file?

View 1 Replies

Professional :: Any Links To Creating A Clickable Map?

Jul 8, 2010

i want to draw a map of a campus. then when you click on different buildings, the building pops up big (possibly with text alongside it)any links to a tutorial how to do this?

View 8 Replies

ActionScript 2.0 :: Creating Links And Images?

Jun 10, 2003

I put together a "photo gallery" using the tutorial I found at kirupa:

[URL]

and i was just wondering what kind of function would I need to make each one of the images clickable AND go to separate url's. I figured out that I would NEED a function and a separate array that would link up the URL's to the Images but I don't know how to really make the images clickable in the first place.

View 4 Replies

IDE :: Creating Text Links In Flash?

May 20, 2009

I was wondering what the best practice was for creating text links in flash? I know how to create a button of course, give it an up, over and hit state. What I normally do is copy the text into each frame, and change the colour for each so that the user can tell when they're hovering and hitting the button. For the hit status, I draw a square for the hit.

But this can be time consuming if you have a lot of text links throughout your site. Especially if you want to change the text colour of your over and hit frames.

So I looked into making a better solution using Actionscript, which was having a function for each of the status, where you change the colour of the button.

I was wondering if anyone else had any other thoughts or wanted to share how they do their text links?

View 4 Replies

ActionScript 3.0 :: Creating Banner With Links?

Mar 4, 2011

how to create a banner in flash CS5 using actionscript that operates on a timer and when clicked navigates to the specified link.

View 1 Replies

ActionScript 1/2 :: Creating Links In Flash Heading

Apr 28, 2009

i am creating links in my flash Header. they are working in Flash preview, but when i am publishing them to HTML they are not working! here is the code i am using

[Code]...

View 1 Replies

Professional :: Creating Outbound Links To Various Websites?

May 17, 2010

Using AS3, how can I attach links to outbound websites? I have a button graphic dragged onto the timeline. It is meant to function much like a "hot spot". So, I would like to attach the script to the button so that it will link to another website when clicked upon. But where do I add the script in AS3, and what is that script to be? ~ For example, do I need to go into edit mode where I see the 4 states, or can I simply attach it to the main timeline? - I'm looking to do whatever's the simplest!
 
Also, the button is called myButton in my library...can I use that same button for everywhere I want to add an outbound link to different websites, or am I going to have to change the name for every different link? For example, myButton02, myButton03? I'm hoping to use the same graphic button, and hoping the timeline will understand and follow the script instead of being confused and all links wind up going to the same site.

[Code]...

View 2 Replies

ActionScript 3.0 :: Creating Links Between Pages On Stage

Sep 16, 2009

I was wondering how do I make a link to a new page from a page that has already been played onto the stage. The pages are made from movie clips, and the buttons are also movieclips. So for example, I click on about us from the menu bar, and the page animates on, and within that page is another link to go to another page. I just cannot get it to work. All the pages that I have are made from movie clips.

View 9 Replies

Actionscript 3.0 :: Creating Links From Plain Text?

Jul 30, 2009

I've been playing with an xml feed for a semi-useful class (which I'll post when it's done)....but I've run into a small problem.The XML feed doesn't send me HTML content, it only sends text. So a node that should read.Url...So I need to work out some way of recreating these links from a text only feed. Before I give myself a headache and attempt to create a class that searches each line of text for "http://" and then searches for the next space in the text, does anyone know if this has already been done? Is there a class out there that can look at normal text and convert bits that are web addresses into links? If not, can anyone think of a more efficient way to do it than searching the text for "http://" and then looking for the next space?

View 7 Replies

Professional :: Creating Color-based Links In Flash?

May 9, 2011

I have an image with seven distinct colors.  I would like for each color to be linked to a separate html page if clicked.  Can flash link to a page based on the color of the area clicked? 

View 3 Replies

ActionScript 2.0 :: Creating Links To Each Picture Dynamically In Gallery

Dec 22, 2004

I am new to flash and I created a gallery that loads the pictures from an xml file. I was wondering how I could create the links to each picture dynamically from the xml sheet in a seperate movieClip named "menu_mc".

View 5 Replies

ActionScript 2.0 :: [FMX04] Mac-like Dock Menu: Creating Links?

Sep 9, 2010

I was following this nice tutorial on how to create a dock-like menu in Flash.I managed to add my own icons and to adapt height and length etc., but I did not manage to remove the grey bar in the back.And more important, to add a link to one of the items in the dock. I tried to make the icon a button, but that didn't really work.

View 1 Replies

ActionScript 2.0 :: Creating Links On Dynamic Data From Database?

Jul 31, 2004

I am loading data into a dynamic textbox from my database using the loadVariables() function.

I am trying to create buttons that have a link like a mailto using the data from the database.

For example:
on (press){
getURL("mailto:"+variable from database);
}

The variable is already loaded into the dynamic textbox, I just have to figure out how to pass it to the as code above.

View 1 Replies

ActionScript 3.0 :: Create Links Between .swf Files?

Feb 16, 2009

create a link between .swf files with buttons??

View 1 Replies

ActionScript 2.0 :: 3D Rotating Cube - Creating Array Of Image Links

Jan 12, 2011

I have the 3D rotating cube. Each panel of the cube is an image pulled in through actionscript. When you click on one of the panels, the cube straightens itself to show only the face you've clicked on. This is all great. However, I want to be able to click on that face again and have it link to a URL. This is where I get lost.

I feel like I'm ALMOST there - I've gotten it to work so that I can click the panel and it links to a URL, but right now every panel links to the same link. I haven't figured out how to make each panel link to its own separate URL. Here is the portion of code in my .FLA where I've added the linking action:

Code:
setupFaceAction = function (cube) {
for (var i = 0; i<cube.faceArray.length; i++) {
var face = cube.faceArray[i];
face.onPress = function() {
if (!cube.fading) {
[Code] .....

This is the line I added to make it link when you click the panel after it's facing forward:
Code:
cube.getURL("[URL]", "_self");}

So I assume I need to set up some sort of array so I can have multiple links that correlate with the appropriate image. To make it clearer, I've attached all of my files, so you can see all the code. You'll find actionscript in the .FLA and two external actionscript files. I think "cube.as" may be where I need to do the work.

View 8 Replies

ActionScript 2.0 :: [fmx04] Creating Links On Dynamic Data From Database?

Jul 31, 2004

I am loading data into a dynamic textbox from my database using the loadVariables() function. I am trying to create buttons that have a link like a mailto using the data from the database.

[code]...

The variable is already loaded into the dynamic textbox, I just have to figure out how to pass it to the as code above.

View 1 Replies

Modify Flash Files To Create Correct Links

Mar 12, 2012

I have been given the task of updating my company's website, which is written in ASP and has a menu in Flash. I am not experienced in neither technology so maybe you can help me a little bit.We have a menu in flash and just received a new one from an artist. They are pretty similar but the new one brings some new buttons. So far what I did was simply change the .fla and .swf files from my web project to the new ones. The new menu is working, but the buttons and links are messed up. For example, our website main page is called Default.aspx. In the old menu, when you clicked in 'Home' it would take you to Default.aspx. In the new one though, it tries to take you to 'index.aspx', which doesn't exist. This makes me think that the mapping of the links in the menu is something that is part of the Flash code. Am I right about this?

Now, if I am right and I need to modify the flash files to create the correct links, how the heck do I do that? Notepad++ doesn't read the .fla well. What is the best free tool that will allow me to modify a file and compile it into a .swf? I know Adobe Flash would work, but we don't want to pay anything.

View 2 Replies

ActionScript 2.0 :: Creating Save File Using SharedObject?

Jul 31, 2010

I have attempted to create a save file using sharedObject but it doesn't work. I don't get any errors it just doesn't seem to save when I press the save button. In the main frame I have:

Code:
user_so = SharedObject.getLocal("user");
if(user_so.data.tclock != undefined) {
clock_txt.text = user_so.data.tclock;
gregism_txt.text = user_so.data.gregism;
} else {
gregism = 0
clock = -1
}

In the save button movie clip I have:
Code:
on(release) {
user_so.data.tclock = _root.clock_txt.text;
user_so.data.gregism = _root.gregism_txt.text;
user_so.flush()
}

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved