I have a movieclip with 15 frame of animation nested on the main timeline. I want to code a delay on the nested clip so that when the playhead reaches the final frame, the nest clip will stop or freeze for several seconds. The problem, I think, is the main timeline is only 1 frame, thus my code does not persist long enough to recognize that playhead on the nested clip ended. here's my code:
main timeline
if (nestedClip._cu rrentframes == nestedClip._tot alframes) {
nestedClip.stop ();
}
thanks in advance
2 2032 Motoma 3,237
Recognized Expert Specialist
This may be as simple as setting a stop() on the main timeline's frame.
I have a movieclip with 15 frame of animation nested on the main timeline. I want to code a delay on the nested clip so that when the playhead reaches the final frame, the nest clip will stop or freeze for several seconds. The problem, I think, is the main timeline is only 1 frame, thus my code does not persist long enough to recognize that playhead on the nested clip ended. here's my code:
main timeline
if (nestedClip._cu rrentframes == nestedClip._tot alframes) {
nestedClip.stop ();
}
thanks in advance
I thought it was "_currentfr ame" ... no "s."
that might be breaking your function right there.
Also, to pause for a set amount of time will require a variable to be declared and set, and a counter/timer function that retrieves that variable. I can't access Flash from the computer I'm on, but I'm working on something similar (timer-controlled playback of a tutorial, an earlier post in this forum which people have completely ignored) and I actually figured it out myself. If you want, I can upload my script here when I get to work.
Let me know...
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Robert M. Gary |
last post by:
I'm curious what the ANSI C++ standard says about nested classes. I'm not
able to find where in the ANSI C++ standard this is addressed. The issue is
the accessibility of sibling nested classes. Example...
class A{
private:
class B{
};
class C{
|
by: Frederick Grim |
last post by:
okay so the code in question looks like:
namespace util {
template<typename C> inline void mmapw(C *& ptr, size_t length, int prot,
int flags, int fd, off_t offset) {
if((ptr = (C*)mmap(NULL,length,prot,flags,fd,offset)) == NULL) {
err_mesg("mmap failed");
exit(EXIT_FAILURE);
}
|
by: Michael |
last post by:
I am having a problem with scoping of parameters in my XSLT
Stylesheet...here is the stylesheet (the xml document is irrelevant
for the example)
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="myParam">Stylesheet Default</xsl:param>
<xsl:template match="/">
<result_explicit_call>
|
by: jshanman |
last post by:
I am working on a timeline API that devevelopers can use to add a
dynamic timeline to their sites.
Here is a *working* demo of the basic interface. (it works for me
anyway on ie6 & firefox 1.5)
http://www.endeavorpub.com/wiki/timeline.html
Please tear apart my code and tell me what I'm doing wrong so far...
|
by: morris.slutsky |
last post by:
So every now and then I like to mess around with hobby projects - I
often end up trying to write an OpenGL video game. My last attempt
aborted due to the difficulty of automating game elements and creating
a good level editor - I basically needed a scripting language to
control the C modules of the game and, after a half-assed attempt or
two to make my own, I just gave up. So naturally this seems like a job
for Python. Embedding Python...
| |
by: Chad |
last post by:
The following question stems from Static vs Dynamic scoping article in
wikipedia.
http://en.wikipedia.org/wiki/Scope_(programming)#Static_versus_dynamic_scoping
Using this sites example, if I go like this:
#include <stdio.h>
int x = 0;
|
by: nbt725 |
last post by:
Dear Sir,
Hello ! I have use simile timeline. (http://simile.mit.edu/mail.html). I am new to timeline and would like to do following, please guide
me. In my timeline I have created 2 bands one for year and other for month
and added the synchronization script between bands so that moving any of
them scrolls other also.
1) What to do to scroll timeline vertically meaning if I have so many
entries in one month to display in...
|
by: Khookie |
last post by:
Woah... is it just me or do C programmers don't bother talking about
how cool C can be (compared to Lisp, Haskell, etc.) - functionally
speaking?
// Lexical scoping - via nested functions
#include <stdio.h>
int main() {
int x = 10;
|
by: doublestack |
last post by:
Hi everyone,
I have a xml file that Simile Timeline uses to call events...Some of the events have links in them and I need to have those links open a new window. As it stands now the links replace the timeline. Simile Timeline uses DHTML and AJAX. Any suggestions?
Sample of code:
<data>
<event start="Jun 02 2008 09:00:00 GMT" end="Aug 02 2008 16:00:00 GMT" isDuration="true" title="Internship at LMC"...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |