Solved

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

Posted on 2003-10-22
6
347 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 

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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

710 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