Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1683 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Flash and Actionscript :

flash play on click

Thread title: flash play on click
Closed Thread    
    Thread tools Search this thread Display Modes  
08-29-2007, 02:35 AM
#1
derek lapp is offline derek lapp
Status: design rockstar
Join date: Jan 2005
Location: guelph, ontario
Expertise:
Software:
 
Posts: 2,246
iTrader: 0 / 0%
 

derek lapp is on a distinguished road

  Old

i'm not sure how you have the file set up, but based on what you said my understanding of it is this:

you want your movie to play automatically and stop when it reaches the end. then, you want the option to replay?

if so, go your last frame add stop(); to the actions panel then follow my previous instructions:
* insert new layer
* on last frame insert keyframe
* add button to key frame
* give button instance name & add button code to actions panel

the other scenario i see is you want it to wait for a click to activate.

if so:

* insert new layer
* add button & code to first frame
* select all frames and drag them over 1 frame
* put stop(); into the actions panel on frame 1 - so now your first animation frame and button are on frame 2
* make the button code point to frame 2 instead of 1. - i avoid using play() because with some of my past experiences triggering actions really fast confused flash and it screwed up the timing.

08-29-2007, 10:41 AM
#2
lcphotostudio is offline lcphotostudio
Status: Member
Join date: Dec 2006
Location: Torrington, Ct, USA
Expertise:
Software:
 
Posts: 127
iTrader: 1 / 100%
 

lcphotostudio is on a distinguished road

Send a message via AIM to lcphotostudio Send a message via MSN to lcphotostudio Send a message via Yahoo to lcphotostudio

  Old

Originally Posted by derek lapp View Post
i'm not sure how you have the file set up, but based on what you said my understanding of it is this:

you want your movie to play automatically and stop when it reaches the end. then, you want the option to replay?

if so, go your last frame add stop(); to the actions panel then follow my previous instructions:
* insert new layer
* on last frame insert keyframe
* add button to key frame
* give button instance name & add button code to actions panel
this is what i would like it to do,

i put a stop in the last frame,

now it plays, stops, and the cursor changes to a hand and stays that way, but when i click nothing happens. i have the code from the previouse post, its in the last key frame of the button layer, i have the instance name and the name in the code the same.


thanks
Lisa

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed