Solved

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

Posted on 2003-10-22
6
337 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
Comment Utility
>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
Comment Utility
(and then click "publish" button)
0
 

Author Comment

by:eida
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:eida
Comment Utility
sorry i mean couldnt works!! HELP
0
 
LVL 27

Expert Comment

by:negatyve
Comment Utility
1. are you using flash 5 or mx?
0
 

Author Comment

by:eida
Comment Utility
it is ok! i managed to get it done in time! YEH!!

Thanks for ur help!

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
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 how to record live broadcast.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now