Solved

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

Posted on 2003-10-22
6
346 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Stock Videos 17 339
anti-download video publishing site? 6 617
Action Script commands 4 319
Script to Delete registry entry based on Product name 6 169
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

830 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