Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8329517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:49:02+00:00 2026-06-09T01:49:02+00:00

I have cuepoints that are loaded dynamically from an XML document. <cuepoints> <one name=bullet1

  • 0

I have cuepoints that are loaded dynamically from an XML document.

    <cuepoints>
        <one name="bullet1" time="4.000" type="actionscript" said="Konnektivität"></one>
        <two name="bullet2" time="6.500" type="actionscript" said="Internet"></two>
        <three name="bullet3" time="7.500" type="actionscript" said="Bilder und Video"></three>
        <four name="bullet4" time="9.000" type="actionscript" said="Gaming"></four>
        <five name="bullet5" time="10.000" type="actionscript" said="Akkulaufzeit"></five>
    </cuepoints>

Here is my AS2 code:

import mx.transitions.Tween;
import mx.transitions.easing.*;

//var playback1:mx.video.FLVPlayback;

/*////////////////////////////////////////////////////////////////
Load the video content paths
/////////////////////////////////////////////////////////////////*/
playback1.contentPath = getNodeValue(findNode(videos, "one"));

//turn off the visibilit of the bullet mc
bullet_bg._alpha = 0;
bullet_one._alpha = 0;
bullet_two._alpha = 0;
bullet_three._alpha = 0;
bullet_four._alpha = 0;
bullet_five._alpha = 0;

// Assign the mySeekBar instance to the flvPlayback instance
playback1.playPauseButton = playpause;
playback1.backButton = myrewind;
playback1.seekBar = seekbar_container.myseek;
playback1.bufferingBar = mybuffer; 

/*////////////////////////////////////////////////////////////
Create the Cuepoints for the video
///////////////////////////////////////////////////////////*/
var bullet1:Object = new Object();
bullet1.time = findNode(cuepoints, "one").attributes.time;
bullet1.name = findNode(cuepoints, "one").attributes.name; 
bullet1.type = "actionscript";

var bullet2:Object = new Object();
bullet2.time = findNode(cuepoints, "two").attributes.time;
bullet2.name = findNode(cuepoints, "two").attributes.name; 
bullet2.type = "actionscript";

var bullet3:Object = new Object();
bullet3.time = findNode(cuepoints, "three").attributes.time;
bullet3.name = findNode(cuepoints, "three").attributes.name; 
bullet3.type = "actionscript";

var bullet4:Object = new Object();
bullet4.time = findNode(cuepoints, "four").attributes.time;
bullet4.name = findNode(cuepoints, "four").attributes.name; 
bullet4.type = "actionscript";

var bullet5:Object = new Object();
bullet5.time = findNode(cuepoints, "five").attributes.time;
bullet5.name = findNode(cuepoints, "five").attributes.name; 
bullet5.type = "actionscript";


playback1.addASCuePoint(bullet1);
playback1.addASCuePoint(bullet2);
playback1.addASCuePoint(bullet3);
playback1.addASCuePoint(bullet4);
playback1.addASCuePoint(bullet5);


/*///////////////////////////////////////////////////////////
 CUE POINT LISTENER
///////////////////////////////////////////////////////////*/
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object) {
    var cuePtName = eventObject.info.name;
    if (cuePtName == "bullet1") {
        var b1:Tween = new Tween(bullet_one, "_alpha", Strong.easeInOut, 0, 100, 1, true);
        var b1x:Tween = new Tween(bullet_one, "_x", Strong.easeInOut, 100, 115, 1, true);
        trace(bullet1.time);
    }
    if (cuePtName == "bullet2") {
        var b2:Tween = new Tween(bullet_two, "_alpha", Strong.easeInOut, 0, 100, 1, true);
        var b2x:Tween = new Tween(bullet_two, "_x", Strong.easeInOut, 100, 115, 1, true);
        trace(bullet2.time);
    }
    if (cuePtName == "bullet3") {
        var b3:Tween = new Tween(bullet_three, "_alpha", Strong.easeInOut, 0, 100, 1, true);
        var b3x:Tween = new Tween(bullet_three, "_x", Strong.easeInOut, 100, 115, 1, true);
        trace(bullet3.time);
    }
    if (cuePtName == "bullet4") {
        var b4:Tween = new Tween(bullet_four, "_alpha", Strong.easeInOut, 0, 100, 1, true);
        var b4x:Tween = new Tween(bullet_four, "_x", Strong.easeInOut, 100, 115, 1, true);
        trace(bullet4.time);
    }
    if (cuePtName == "bullet5") {
        var b5:Tween = new Tween(bullet_five, "_alpha", Strong.easeInOut, 0, 100, 1, true);
        var b5x:Tween = new Tween(bullet_five, "_x", Strong.easeInOut, 100, 115, 1, true);
        trace(bullet5.time);
    }
}

/*/////////////////////////////////////////////
//// LISTENERS for FLVPlayback component
////////////////////////////////////////////*/ 
var alreadyShown:Boolean;

var startObject:Object = new Object();
startObject.playing = function(eventObject:Object): Void {   
    trace("FLV is playing");
    if(alreadyShown != true) {
        var laserFadeIn:Tween = new Tween(bullet_bg, "_alpha", Strong.easeInOut, 0, 100, 3.4, true);
        alreadyShown = true;
    } 
}

playback1.addEventListener("cuePoint", listenerObject);
playback1.addEventListener("playing", startObject);

The issue is that for some reason when I have a time of “10.000” seconds, the cuepoints order get out of wack, and they all come up at the same time. Is there something wrong with the time format?

Update: When I hard code the 10.000 seconds in, everything works fine. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T01:49:04+00:00Added an answer on June 9, 2026 at 1:49 am

    I think the problem you’re having is because you’re setting the time property of your cue-points to strings instead of numbers. Try converting the value you get from the XML to int before assigning it to your cue-point like so:

    var bullet1:Object = new Object();
    bullet1.time = parseInt(findNode(cuepoints, "one").attributes.time);
    bullet1.name = findNode(cuepoints, "one").attributes.name; 
    bullet1.type = "actionscript";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a class that I want to serialize to xml. The class looks
I have a 2D-array that defines points in one or more paths: Path#1 =
I have an flv vid and set the cue point dynamically vid.addASCuePoint(1, cuePoint1); How
I have an NSArray with over 4.000 CGPoints [NSArray arrayWithObjects: [NSValue valueWithCGPoint:CGPointMake(213, 30)], ...
have written this little class, which generates a UUID every time an object of
Have deployed numerous report parts which reference the same view however one of them
I have a NSMutableArray that holds a collection of UIViewControllers Amongst other properties and
I have some the folowing requirements: ...The document must be encoded in UTF-8 ...
I have an array of objects that are positioned using CGPoints . At certain
I have a university programming exam coming up, and one section is on unicode.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.