Controlling external flv with ActionScript

I'm using the NetStream Class to control the playback of an
external flv. I've got a Pause/Play button using .pause, and Fast
Forward and Rewind buttons using .seek. What I want to do is once
the video is done playing to automatically reset back to the
beginning of the video, allowing the user to press play to view the
video again without having to reload the page. Right now when the
video finishes, the user has to rewind the video in order to watch
it again. I thought I could use .time to determine when the video
reaches the end to go back to "0" in the video playhead but so far
I have not been able to get this to work. Any ideas would be
appreciated. Currently everything is done in frame one of the swf.
Thanks.

>>I think obviously there is a difference between FMS
and Flash MX04. The documents I
>>refer to are built into the help menu in Flash 7 and
8 both include the onStatus event
>>and absolutely no onPlayStatus event.
Yeah you're right onPlayStatus isn't in the NetStream class
Flash documentation as this is more about using this class for
progressive download, whereas the documentation i linked to
referred to the NetStream class used in FMS Client-side scripting
for streaming video.
>>I made a mistake. I meant NetStream.Play.Stop –
which was very poorly named. That
>>is what onStatus will return when it reaches the end.
It isn't really "stop" it is "complete."
>>So I tend to read it as such!
NetStream.Play.Stop does seem to be very similar to
NetStream.Play.Complete in progressive downloads. however i know
you can't guarantee that NetStream.Play.Stop occurs at the same
time as NetStream.Play.Complete in a streaming video through FMS,
as a NetStream.Play.Stop can occur for reasons other than
completion.
>>...My guess is that when they took the bits from FMS
into Flash MX04 they didn't do a
>>very good job. They purposefully renamed onPlayStatus
to onStatus...
onStatus does still exist in FMS Client side scripting...
>> – with a limited variety of events returned
(What is Switch?)
switch refers to playlists - only relevant to FMS streams.
Anyway, it appears as though all of this talk of the FMS is
moot regarding the original poster, as I've just had a look at
skauty's posts in the Flash Media Server forums, ironically, and
discovered that skauty is using progressive download and not FMS...
Simple but important distinction...

Similar Messages

  • Pausing a linked .flv with actionscript

    Hi all.
    Let me preface by saying that I'm fist-and-foremost a
    designer... and an actionscript novice.
    I have an external .flv and I simply need to be able to pause
    it with a frame action and start it back up with another frame
    action.
    I found some references to "flvStream.play" through google
    but I haven't been able to properly implement it.
    Any help would be greatly appreciated. Thanks in
    advance.

    Geisen,
    > I have an external .flv and I simply need to be able to
    > pause it with a frame action and start it back up with
    > another frame action.
    The most important tip I can share with you is this: think
    in terms of
    objects. An FLV video, external or not, is a file format that
    needs a bit
    of help getting displayed. A very popular approach is to use
    the
    FLVPlayback Component (see the Components panel), which
    includes a number of
    configurable (and optional) "skins" that allow for pausing,
    playing, volume
    control, etc. The FLVPlayback Component, in that scenario, is
    your object.
    Many people use a Video asset from the Library in cahoots
    with something
    called NetConnection and NetStream, in which case you're
    dealing with three
    objects (Video, NetConnection, and NetStream) that
    collaborate. Going back
    further, there are Media Components that provide much of the
    functionality
    of FLVPlayback, in which case the focus of your object(s)
    changes again.
    In all cases, objects are defined by something called
    classes. Movie
    clips are defined by the MovieClip class, text fields by the
    TextField
    class, FLVPlayback by the FLVPlayback class, and so on.
    Classes define
    objects in the way a recipe defines a certain kind of cake or
    a blueprint
    defines a certain kind of structure. In the ActionScript 2.0
    Language
    Reference, you'll find that most classes list one or more of
    the following
    three headings: properties (characteristics of the object),
    methods (things
    the object can do), and events (things the object can react
    to). In the
    ActionScript 3.0 Langauge Reference (if you have Flash CS3),
    you'll find the
    same format, with the occasional additional heading. From a
    bird's eye
    view, however, the layout is the same: objects have certain
    properties, and
    can do certain things and react in certain ways (to button
    clicks, internal
    timers, etc.) -- and it's the combination of these qualities
    that makes a
    given object the type it is (e.g., text fields don't have
    timelines, so the
    TextField class doesn't mention anything about a text field's
    current frame,
    yet text fields and movie clips both have width and height,
    and both their
    classes mention as much).
    So ... the way you're going to pause your FLV video depends
    on entirely
    on the object(s) being used to display that video. If you're
    using
    FLVPlayback, you'll have to give that Component on the Stage
    an instance
    name (see the Property inspector while the Component is
    selected). Instance
    names allow ActionScript to speak directly to individual
    instances of an
    object -- this particular FLVPlayback in the lower left, for
    example, rather
    than the other one in the upper right.
    Once it has an instance name, you can reference that name
    and invoke
    FLVPlayback class members on that instance. If you've given
    it the instance
    name myPlayer, you would invoke FLVPlayback.pause() (the
    pause method) as
    follows:
    // In a keyframe of your scripts layer ...
    myPlayer.pause();
    And to start it up again, you would invoke
    FLVPlayback.play() (the play
    method) at a later keyframe like this:
    myPlayer.play();
    If you're using a combination of a Video element from the
    Library and
    the NetConnection and NetStream classes, you'll reference
    your NetStream
    object by its instance name (this will be the variable you
    use to
    instantiate the object) and invoke NetStream.pause(), and so
    on.
    Here are a few articles in ActionScript 2.0 on the topic:
    http://www.quip.net/blog/2006/flash/how-to-load-external-video
    http://www.quip.net/blog/2006/flash/how-to-control-flv-without-component
    http://www.quip.net/blog/2007/flash/actionscript-20/how-to-determine-completion-of-flv/
    Those should at least get you a bit more comfortable with
    the idea of
    classes, objects, and their members (properties, methods, and
    events). If
    you're building a movie in ActionScript 3.0, the syntax may
    change ... not
    so much for quick method calls, but certainly for event
    handling. For what
    you're described, even these AS2 examples should be helpful.
    David Stiller
    Co-author, Foundation Flash CS3 for Designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • Controlling an FLV with a DW behavior

    Is there piece of Javascript, or better yet, an extension out
    there that I can use to control an FLV in a DW page?
    I am developing e-learning pages using Dreamweaver, where
    video #1 plays and the learner has to answer a question about it.
    When they click a "Check My Answer" button, I want video #1 to stop
    so I can play video #2.
    The "Control Flash" behavior doesn't work on FLVs.
    Thanks,
    Mary

    On Fri, 14 Jul 2006 20:41:43 +0000 (UTC), "maryhowe"
    <[email protected]> wrote:
    > I am developing e-learning pages using Dreamweaver,
    where video #1 plays and
    >the learner has to answer a question about it. When they
    click a "Check My
    >Answer" button, I want video #1 to stop so I can play
    video #2.
    >
    > The "Control Flash" behavior doesn't work on FLVs.
    The Control Flash, or any other JavaScript solution, is
    unreliable at
    best. Your best bet would be to put the button in the Flash
    movie, and
    have it load the second movie.
    Gary

  • Remove video flv with actionScript

    Concerning
    flv handling : how can I remove the video object called on
    the Stage by the following script? :
    var connection_nc:NetConnection = new NetConnection();
    connection_nc.connect(null);
    var stream_ns:NetStream = new NetStream(connection_nc);
    my_video.attachVideo(stream_ns);
    stream_ns.play("video1.flv");
    I know, as showed in flash help, stream_ns.stop() or
    stream_ns.pause or my_video.clear();
    but it don't remove the video from the Stage and the flv
    stil remain in sight

    >>I think obviously there is a difference between FMS
    and Flash MX04. The documents I
    >>refer to are built into the help menu in Flash 7 and
    8 both include the onStatus event
    >>and absolutely no onPlayStatus event.
    Yeah you're right onPlayStatus isn't in the NetStream class
    Flash documentation as this is more about using this class for
    progressive download, whereas the documentation i linked to
    referred to the NetStream class used in FMS Client-side scripting
    for streaming video.
    >>I made a mistake. I meant NetStream.Play.Stop –
    which was very poorly named. That
    >>is what onStatus will return when it reaches the end.
    It isn't really "stop" it is "complete."
    >>So I tend to read it as such!
    NetStream.Play.Stop does seem to be very similar to
    NetStream.Play.Complete in progressive downloads. however i know
    you can't guarantee that NetStream.Play.Stop occurs at the same
    time as NetStream.Play.Complete in a streaming video through FMS,
    as a NetStream.Play.Stop can occur for reasons other than
    completion.
    >>...My guess is that when they took the bits from FMS
    into Flash MX04 they didn't do a
    >>very good job. They purposefully renamed onPlayStatus
    to onStatus...
    onStatus does still exist in FMS Client side scripting...
    >> – with a limited variety of events returned
    (What is Switch?)
    switch refers to playlists - only relevant to FMS streams.
    Anyway, it appears as though all of this talk of the FMS is
    moot regarding the original poster, as I've just had a look at
    skauty's posts in the Flash Media Server forums, ironically, and
    discovered that skauty is using progressive download and not FMS...
    Simple but important distinction...

  • Control Stacking Order with Actionscript?

    How can you control the stacking order of objects using
    acitionscript? That is, objects
    already added to the stage. I know how to add something at a
    certain level with addChildAt, but I'm wondering if someone adds an
    item to the stage in the wrong order, I want to force it to be on
    top (or at a specified z-index).

    Use setChildIndex().

  • Using external libraries with Actionscript Project

    Hi,
    I've hit a bit of a brick wall trying to do something that I figured would be a relatively simple task. I'm working on multiple projects and I'm trying to build a number of SWC libraries shared between a number of Actionscript projects using Flash Builder 4. The projects using the SWC's build just fine, but yield this error when run:
    VerifyError: Error #1014: Class <whatever> could not be found.
    Here's a simple example:
    1) Create a new library project.
    2) Add a new Actionscript file in the "testpackage" package.
    3) Slap this code into that file:
    package testpackage
        public class stuff
            public function Testing():void
                trace("Oh yeah!");
    4) Create a new Actionscript Project named Launcher
    5) In "Properties->Actionscript Build Path", hit "Add SWC Folder" and browse to wherever the library project gets built to.
    6) In the AS file that's generated, add code something like:
    package
        import flash.display.Sprite;
        import testpackage.*;
        public class Launcher extends Sprite
            public function Launcher()
                var s:stuff = new stuff();
                s.Testing();
    7) Run this bad boy.
    I get the above error and I have no idea why. Everything builds fine so I'm not sure what I'm doing wrong. I read somewhere that you can manually extract the .swf file from the generated .swc and load that explicitely in code. This is a pretty horrible workflow and I hope it's not the answer
    Thanks a ton in advance!
    -D

    Check  linkage type in Build Path for project Launcher when you add Swc folder. It has to be merged into code.
    If it is external, you'll see this error.
    That aside, why not do "add project" instead of "add swc folder"?
    -Anirudh

  • Controlling Movie Clip with actionscript Question

    Dear All,
    I have a movie clip named A which inside this movie clip
    there is another Movie clip named B and inside B there is a listbox
    component.
    Inside Movie clip A there are 20 frames which at frame 10
    there is a stop() script.
    My question is how to control Movieclip A to run
    gotoAndPlay(11) from MovieClip B when there is a click action to
    the listbox?
    Please Advise,
    Ozhee

    if A is on the _root timeline from anywhere in your _level0
    swf you can use:

  • Control loaded movie with actionscript

    Is it possible to get a button in my main movie to effect a
    loaded movie. I need to make one element inside a loaded swf become
    transparent. What would the code for that look like?

    lets say you loaded your SWF into holder_mc and the the
    element is inside another movie clip in the SWF named your_mc and
    the actual element is name element_mc
    yourbtn.onRelease = function(){
    holder_mc.your_mc.element_mc._alpha = 0;
    }

  • [AS2 CS3/4] Embed external FLV into an MC using AS2 with timeline control

    Hi, Is there anyway to skip the process of manually embedding
    FLVs into SWF files? I want to load FLVs just as I would an
    external SWF.
    I've searched all over and all i can find is how to load FLVs
    into a FLVPlayer component with stop, play and controls to skip in
    time intervals.
    What I need is the ability to load an external FLV and be
    able to control it as if it were in a MC on the timeline, not as a
    streaming video.
    There are SO many questions out there about the FLVPlayer its
    really polluted any and all search results i've tried.
    Shedding some light on this for me would be greately
    appreciated!!!

    For anyone looking for an actual solution to this issue. If
    you're exporting movies out of After Effects, you can export as a
    SWF.
    The only reason I didn't know about this solution is that its
    not included in the render que options, so just select your comp,
    go to File > Export and select the setting for exporting as a
    SWF.
    Thank you kglad for the info

  • How to load and display the external flv video files in dynamicly and the how to control the flv fil

    How to load and display the external flv video files in dynamicly using AS 3.0
    and  How to control the flv file  add the play paus button and add seekbar.
    I have using to load the flv file following code
    var flvPlaceHolder1:MovieClip = new MovieClip();
    var vid1:Video = new Video(734, 408);
    flvPlaceHolder1.addChild(vid1);
    addChild(flvPlaceHolder1);
    flvPlaceHolder1.x = 1059;
    flvPlaceHolder1.y = 152;
    var nc1:NetConnection = new NetConnection();
    nc1.connect(null);
    var ns1:NetStream = new NetStream(nc1);
    vid1.attachNetStream(ns1);
    var listener1:Object = new Object();
    listener1.onMetaData = function(evt:Object):void {};
    ns1.client = listener1;
    ns1.play("GV-1600 TURNING.flv");
    ns1.addEventListener(NetStatusEvent.NET_STATUS, statusChanged1);
    function statusChanged1(ns1:NetStatusEvent):void
             trace(ns1.info.code);
            if (ns1.info.code == 'NetStream.Buffer.Empty')
                 trace('the video has ended');
                 removeChild(flvPlaceHolder1);
                 //trace('removeChild');
                gotoAndPlay(1786);
    then how to add the play,paus ,full screen button    and   seekbar,volumebar.

    I have to Create the flash presentation for our company product
    In this presentation the left  side the text animation are displayed then right side the our product video is displayed.
    In this presentation i need the following option :
    1, The first product video and animation is finished then the next product is played
    2, then the video displayed  (size width and height 400x300) , I click this video to increase the size(ex:1000x700)
    3, then the playing video i control  it play, stop, paus button and volume bar, seek bar.
    4, then this presentation is displayed on 42 inches LCD TV so this full presentation is run full screen.
    I have finished first two steps 1 and 2
    the following are the screen short and code:-
    code :-
    var count=0;
    var flvPlaceHolder2:MovieClip = new MovieClip();   
    var vid2:Video = new Video(734, 408);
    flvPlaceHolder2.addChild(vid2);
    addChild(flvPlaceHolder2);
    flvPlaceHolder2.x = 1059;
    flvPlaceHolder2.y = 152;
    var nc2:NetConnection = new NetConnection();
    nc2.connect(null);
    var ns2:NetStream = new NetStream(nc2);
    vid2.attachNetStream(ns2);
    var listener2:Object = new Object();
    listener2.onMetaData = function(evt:Object):void {};
    ns2.client = listener2;
    ns2.play("GS-4000.flv");
    this.addEventListener(Event.ENTER_FRAME, BtnFadeIn2);
    function BtnFadeIn2(event:Event):void
        if (this.currentFrame == 387)
            /*flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            trace('Screen size is changed');*/
            if(count==0)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            count++;
    ns2.addEventListener(NetStatusEvent.NET_STATUS, statusChanged2);
    function statusChanged2(ns2:NetStatusEvent):void
        trace(ns2.info.code);
        if (ns2.info.code == 'NetStream.Buffer.Empty')
                trace('the video has ended');
                 removeChild(flvPlaceHolder2);
                 //trace('removeChild');
                gotoAndPlay(433);
    flvPlaceHolder2.buttonMode=true;
    flvPlaceHolder2.addEventListener(MouseEvent.CLICK,home2);
    function home2(e:MouseEvent):void
        if(vid2.width==734 && vid2.height==408)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
        else
            flvPlaceHolder2.x = 1059;
            flvPlaceHolder2.y = 152;
            vid2.width=734;
            vid2.height=408;

  • Importing flv with external playback.. loop?!

    Hi!
    I'm trying to create google ads under the 50kb limit which is causing some headaches...anyway! I've noticed something. If I import my flv (which I've created in after effects) into adobe flash CS5.5 with "load external video with playback component" and then export the whole thing out as a SWF the file size is really small. 50 kb's compared to 795.6 kb's if the "embed flv in SWF" option is used.
    So my problem is this, I want to use the option of "load external video with playback component" but I want the video to loop when it's exported out as an SWF. Is this actually possible?
    I've tried some scripts which I've found, but I cant get it to work.
    Any help or advice would be very much appreciated.
    Many thanks!
    M

    Well yes, you can loop the video using the FLVPlayback, but I think you are missing the point of the 50kb google ad limit.
    When you use FLVPlayback, you must also use an external .flv file. So besides the <50kb .swf file, you will also have the >700kb .flv file. You cannot just use the .swf. So together, those two files put you way over the 50kb limit.
    Best wishes,
    Adninjastrator

  • Control 2 flv movies with one button

    Hello,
    I am not even sure this can be done, but I am trying to
    control 2 flv's with one set of controls. The reason; We have
    footage of a talking head as one flv and footage of a microscope.
    Basically, the guy talks and moves the microscope around. These 2
    flv's have to be synched b/c the guy is talking and showing how
    things look under a microscope (the original footage was shot at
    the same time using 2 different methods - I imported both in
    Flash). So, my quandry is that I need one set of controls for both
    these flv's b/c if you pause the talking head, you also have to
    pause the scope. I tried to make both flv's a movie clip and
    control them that way, but got no where with that. I also tried to
    build my own skin with a Play and Pause Button for now, but only
    got as far as the code below. Basically, I can control one flv
    component, but not both at the same time. Any ideas would help - I
    am not sure if this is an AS issue, or a complete design issue, or
    if it can even be done at all - thanks much in advance...
    Jason

    I have discovered that what I wanted to do above is not possible in Livecycle. The only thing that works in the Livecycle script editor is the xfa.host.print from what I found.
    I was able to add a print button to a form that I scanned in that enabled me to print at 2 different printers at the same time. What I did was to first set up a mouse up action to execute a menu item (file>print) and then I added a second mouse up action to run the JavaScript below
    var pp = this.getPrintParams();
    pp.interactive = pp.constants.interactionLevel.automatic;
    pp.printerName = "\\\\DPDSVR\\Xerox WorkCentre 7435 PCL6";
    this.print(pp);
    This resulted in me being able to print to my default printer (HP) and the Xerox with just one click of the button.

  • Can I rotate a playing FLV video with ActionScript?

    Hello,
    I have some ActionScript 3 already written. It'd be weird to
    explain why I'd want to do this, but basically, I'm playing an FLV
    file with the FLV Playback ActionScript. I want to rotate the video
    itself as it is playing. It needs to rotate 90-degrees over 15
    seconds, (6 frames/sec) and stop.
    I tried putting the FLV component in a movie clip, and
    tweening the rotation on the FLV component. Then my AS3 event
    listener calls a "container_mc.play()", but appears to do nothing
    to the FLV. I also tweened a basic shape in the same container and
    that visibly rotates, so I'm sure the AS3 is correct.
    Also, I'm triggering the rotation by events, not button
    presses or mouse actions.
    Is there a way to do this?

    Yep better ask in the Premeire Pro forums, but while loading their forum page check the cutter tool (C) it will allow you to cut your footage

  • NaN with loading external flv

    Hi all
    I'm having some strange diffulties which I can't solve.
    I'm starting off with a website.swf which loads different
    external swf's depending on the button that has been pressed.
    One of those swf's is a file with different buttons to load
    different external flv's.
    While loading a flv a progressbar shows the percentage of the
    loaded part of the flv
    Now: If I play the first video file everything works fine
    While switching to another button to load another flv during
    the loading of the first flv, My percentage says NaN. and stops
    loading.
    On each button I say:
    on (press) {
    stream_ns.close();
    connection_nc.close();
    _parent.videoloader_mc.unloadMovie();
    on (release) {
    _parent.videoloader_mc.loadMovie("movies/binnenkomers01.swf");
    This is the part I use for loading a flv in f.ex
    binnenkomers01.swf.
    stop();
    delete _global.loaded_interval;
    delete _global.connection_nc;
    delete _global.stream_ns;
    delete _global.pctLoaded;
    // video URL
    video1_url = "movies/binnenkomer06_Floriane.flv";
    _global.connection_nc = new NetConnection();
    connection_nc.connect(null);
    _global.stream_ns = new NetStream(connection_nc);
    videoholder_mc.video.attachVideo(stream_ns);
    stream_ns.play(video1_url);
    stream_ns.seek(0);
    // Zet de video op stop om te wachten tot hij volledig is
    ingeladen
    stream_ns.pause();
    _global.playstatus = "pauze";
    play_pauze_mc.gotoAndStop("pauze_lb");
    this.createEmptyMovieClip("progressBar_mc",
    this.getNextHighestDepth());
    progressBar_mc.createEmptyMovieClip("bar_mc",
    progressBar_mc.getNextHighestDepth());
    with (progressBar_mc.bar_mc) {
    beginFill(0xCCE6FF);
    moveTo(0, 0);
    lineTo(300, 0);
    lineTo(300, 23);
    lineTo(0, 23);
    lineTo(0, 0);
    endFill();
    _xscale = 0;
    progressBar_mc.createEmptyMovieClip("stroke_mc",
    progressBar_mc.getNextHighestDepth());
    with (progressBar_mc.stroke_mc) {
    lineStyle(0, 0xCCE6FF);
    moveTo(0, 0);
    lineTo(300, 0);
    lineTo(300, 23);
    lineTo(0, 23);
    lineTo(0, 0);
    progressBar_mc._x = 640;
    progressBar_mc._y = 400;
    this.createTextField("loaded_txt",
    this.getNextHighestDepth(), 0, 0, 200, 22);
    loaded_txt._x = 645;
    loaded_txt._y = 405;
    var my_fmt:TextFormat = new TextFormat();
    my_fmt.color = 0x333333;
    my_fmt.font = "Verdana";
    my_fmt.size = 9;
    my_fmt.align = "left";
    _global.loaded_interval = setInterval(checkBytesLoaded, 500,
    stream_ns);
    function checkBytesLoaded(stream_ns) {
    trace("my_ns.bytesLoaded: "+stream_ns.bytesLoaded);
    trace("my_ns.bytesTotal: "+stream_ns.bytesTotal);
    _global.pctLoaded =
    Math.round(stream_ns.bytesLoaded/stream_ns.bytesTotal*100);
    trace("_global.pctLoaded: "+_global.pctLoaded);
    loaded_txt.text = "loading... "+pctLoaded+"%";
    loaded_txt.setTextFormat(my_fmt);
    progressBar_mc.bar_mc._xscale = pctLoaded;
    if (isNaN(pctLoaded)) {
    clearInterval(loaded_interval);
    } else {
    trace("OK");
    if (pctLoaded>=100) {
    clearInterval(loaded_interval);
    Hope you guys can help me....

    Maybe they have hotlink protection enabled
    "indierockmedia" <[email protected]> wrote
    in message
    news:f3c4mo$ddn$[email protected]..
    > Hi, I am having trouble with some loading issues. I
    design ecards for
    > bands and
    > their tour dates, bio, and video files all load external
    files (text files
    > for
    > bio/tour, flv files for the video, and an swf skin file
    for the video).
    > Its
    > only a problem when I have to embed those ecards into
    sites that don't
    > host the
    > ecard. I have used crossdomain.xml and every fix ive
    read about, and still
    > have
    > issues. Let me detail below:
    >
    > For example, I have an ecard for a band at
    >
    http://bandwebsite.com/ecard/ecard.swf
    > The tour and bio and video files load simply "tour.txt,
    bio.txt,
    > video.flv,
    > skin.swf"). Works great because no external servers are
    being called.
    >
    >
    But when I want to embed the file elsewhere, or use different
    domains,
    > I
    > have issues:
    > I want to embed the ecard on to
    http://www.otherwebsite.com,
    so I can't
    > have
    > it simply call "tour.txt" for example, the ecard will
    think the tour file
    > comes
    > from www.otherwebsite.com/tour.txt. So I call the full
    path
    >
    http://bandwebsite.com/ecard/tour.txt
    > I go to the ecard and click the button to load the tour
    dates. The text
    > box
    > that worked before says "undefined". So I put a cross
    domain file at the
    > root
    > of
    http://bandwebsite.com that
    allows access to files from
    > www.otherwebsite.com. Still getting undefined. I go to
    the embed code for
    > flashobject and have allowscript access to "always".
    Still undefined. I go
    > and
    > add System.security.allowDomain to my timeline and
    specify
    > www.otherwebsite.com. Still undefined. Still won't load
    my video or video
    > skin
    > and text files.
    >
    > Am I missing something?
    >
    > mikey
    >

  • Hi there, I new with AE script (I much familiar with ActionScript in Flash, not an expert though). I try to control my solid object using GUI Slider I made but it's doesn't work. I need help here. Here is my code:

    myComp = app.project.item(1);
    mySolid = myComp.layers.addSolid([1.0,1.0,0], "my square", 50, 50, 1);
    var myWin = new Window("palette", "Transform", undefined);
        myWin.orientation = "row";
    var myOpacity = myWin.add("panel", undefined, "Opacity");
        myOpacity.orientation = "column";
        myOpacityText = myOpacity.add("statictext", [290, 20, 380, 40], "Current value:");
        myOpacityDisplay = myOpacity.add("statictext", [385, 20, 425, 40], "100");
        myOpacity.add("statictext", undefined, "Kontrol Opacity");
        theOpacity = myOpacity.add("slider", [20, 20, 230, 45], 50, 0, 100);
        var layerOpacity = mySolid.property("opacity");
        theOpacity.onChanging = function()
             var val = Math.round(theOpacity.value);
      myOpacityDisplay.text = val;
             layerOpacity.value = val;
    myWin.center();
    myWin.show();

    I don't write scripts that do this because the features are already available with Expression Controls and expressions. That's the route I would suggest. You are reinventing the wheel. If you want specific help on scripting then try asking some questions in the scripting sub forum for AE. You'll find the forum under sub communities.
    If you just want to create a slider for opacity that you can add to any layer you select first add an expression control slider to the layer, then press t to reveal the opacity property, then hold down the Alt/Option key and click on the stopwatch to start and expression, then drag the pickwhip to the slider control. Now, with transparency selected select Animation>Save Animation Preset and give it a name. Now when you need a slider to control a layer, or to control a bunch of layers simply select them and apply your preset.
    You could also put your expression control slider on a null, give the name a null, apply the expression to a layer and then save the transparency property as an animation preset. Now if you have 50 layers you want to control with a single slider just add the null, change the name, then select all 50 layers and apply your animation preset.
    I have a library of about 200 custom animation presets that use expressions to do most of my repetitive  tasks. It saves a ton of time. Heres one that fades a layer in and then out based on the in and out point of the layer. I use this one daily. You'll see what I mean if you apply it to a layer. fadeIO.ffx

Maybe you are looking for

  • Problem with an iPad locked by backup message

    how to boot an iPad locked for backup asking

  • Was there an outage last Friday?

    My phone stopped working for several hours last Friday, couldn't txt or call, switched to wifi with no success etc.  Was there an outage?  I missed several important calls and need to confirm

  • Problem in application that using struts

    Hello to all , I am using struts in order to develop my application and i try to run my application in tomcat and i get the next error : HTTP Status 500 - type Exception report message description The server encountered an internal error () that prev

  • 3rd Gen iPod refusing to update

    Ok, here's whats happened, any help would be most appreciated. I have a 3Rd Gen Ipod, and after updating to iTunes 7, it got completely wiped of nearly 4000 songs. I tried to update it several times with iTunes and it basically refused to do anything

  • Un petit problème d'interface !

    Bonjour, Je souhaite développer une interface de type pop - up qui permette de suivre au fur et à mesure de l'application ce que le programme a réalisé comme étape (discussion, initialisation ...) mais ces infos doivant apparaitre dans un fenêtre pop