Solved

Problems with creating file links and how to play flash animation?

Posted on 2003-10-22
6
342 Views
Last Modified: 2011-09-20
Hi

Really need some help here.

Qn1) I have created a flash animation file already and will like to link some file to the animation,after doing all this, i will like to compile it into a cd.
but i do not know how to go about going.for example:

=>i will like to have a pdf file called "hello.pdf" open when i click on the word "HELLO"
PROBLEM= i have created the word "HELLO" using the TEXT tool in flash 5 but how to create a link?

=>Will the link to the pdf file be the same if i compile the animation into CD?
PROBLEM= i understand that the link to the PDF file "hello.pdf" should be a complete one in order to open the PDF file, for example "D:\Documents and Settings\My Documents\hello.pdf" however if i compile it into a cd, the file isn't in the D drive anymore,it is in the cd, then how should i write the link?

QN2)how come i couldnt open my flash 5 animation on a computer that doesnt have the flash 5 software?
PROBLEM=i thought it is sufficient to just have the flash player in order to open a flash 5 animation(example:hello.swf)

please provide some help and please include codes and step by step instructions coz i do not know how to write scripts for flash..

please help asap.

THANKS A MILLION

   
0
Comment
Question by:eida
  • 3
  • 3
6 Comments
 
LVL 27

Accepted Solution

by:
negatyve earned 500 total points
ID: 9598712
>PROBLEM= i have created the word "HELLO" using the TEXT tool in flash 5 but how to create a link?

don't use the text tool, use a common button. to launch the file, you can either:

• use getURL (will open the file in the browser, if there's a plugin for it):

on(release){
      getURL("file.pdf");
}

• use fscommand exec, to open the file with the associated software (not the browser, but acrobat reader, for example). this are 3 different methods:

      1. bat system: http://www.macromedia.com/support/flash/ts/documents/fscommand_projectors.htm

            on(relase){
                  fscommand("exec", "file.bat");
            }

      2. standalone application: http://www.flashgeek.com/tutorials/07_launchapp_01.htm

      3. third part tool: http://www.flashjester.com/ | http://www.multidmedia.com/software/flashstudio/ | http://www.swifftools.com/


pay some attention on the folder problem with Flash MX +


>Will the link to the pdf file be the same if i compile the animation into CD?

yes, as long as you use relative path. don't use:

on(release){
      getURL("D:\Documents and Settings\My Documents\hello.pdf");
}

use, instead:

on(release){
      getURL("hello.pdf");
}

if both movie and pdf are in the same folder, or:

on(release){
      getURL("folder_name/hello.pdf");
}

if the pdf is nested inside another folder


>QN2)how come i couldnt open my flash 5 animation on a computer that doesnt have the flash 5 software?
>i thought it is sufficient to just have the flash player in order to open a flash 5 animation(example:hello.swf)

you need to create a "projector", a standalone application which embeds the plugin and can be viewed on a computer that doesnt have the flash 5 software
you can create it two ways:

• launch your swf, then go to the menu "File\Create Projector"

• go to the publish settings menu inside flash software (File\Publish Settings or Ctrl + Shift + F12), go to the Formats tab, then select Windows and/or Macintosh projector
0
 
LVL 27

Expert Comment

by:negatyve
ID: 9598719
(and then click "publish" button)
0
 

Author Comment

by:eida
ID: 9663063
Hi

thx for all ur help.

got a BIG problem here. Need your Help urgently coz the due date for my assignmentt is tuesday! But have not solved the problem on how to open the a certain file.i tried using the URL method you mentioned and it works well with the pdf files but not the MATLAB files.

i think i need to open it using the fscommand, but i went to the link that you provided to view on the method to use it but realised that that application needs to be in the same folder as my flash file. Dont think it is possible coz MATLAB is large.

and i tried other method but could works! HELP!!!

can help me write the codes and teach me how to link a file called try1.m(a matlab file) get it open using MATLAB?

PLease i really need help here asap!!!

thanks

eida
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

Author Comment

by:eida
ID: 9663065
sorry i mean couldnt works!! HELP
0
 
LVL 27

Expert Comment

by:negatyve
ID: 9663308
1. are you using flash 5 or mx?
0
 

Author Comment

by:eida
ID: 9700969
it is ok! i managed to get it done in time! YEH!!

Thanks for ur help!

0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question