Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2003-10-22
6
Medium Priority
?
349 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 2000 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
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 how to record live broadcast.
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.

705 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