I want to break free (from the timeline) - A coding "parody"?

This thread is a continuation to this one:
http://forums.adobe.com/message/2761406#2761406
which is a continuation of the original thread:
http://forums.adobe.com/message/2701706#2701706
Andrei, I'll keep following your lead...
ps: this is a serious thread!

Hello Andrei!
After taking a look at that other thread with the guy who talked about Document Classes and checking over the internet how to use "export for actionscript" inside Flash and use the exported object as an external class, I thought: I can do that!
So I tried to put everything we had on the portfolio.fla inside a movieClip to export it as an external class. Well, nothing seemed to work and while trying to export the movie clip for actionscript, Flash crashed all the time.
Not happy, I decided to start it all over and the first thing I created was an "arrow" on stage (future buttons) and exported to start working with the document class.
Then I started with two vars and added them to the stage...
var left_btn : Arrow = new Arrow();
var right_btn : Arrow = new Arrow();
addChild(left_btn);
addChild(right_btn);
And it worked! They showed up on stage!
So I went back to Flash to do the same with my two dynamic text fields (title and subs). Then I thought: what if I try to create those text fields all in AS3? So I ended up reading this page (following your tip): http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/text/TextField.html
And I read this:
All dynamic and input text fields in a SWF file are instances of the
TextField class.
Andrei, you're going to kill me... you tried to explain me this but, for the very first time I understood that when we write "var title : TextField = new TextField();" is the SAME THING as when we go inside Flash, create a dynamic text field and instantiate it as "title". Also, when we only type "var title : TextField;", I think I can understand that as if we were keeping a TextField named title inside our Library. We're not using it, but it's there to be used anytime.
With that in mind, everything about document classes started to make more sense.
I decided to jump ahead "again" and try to build our new DocClass that will work with our Slide class.
Since it's just a "test", I'm not working with the "subtitles" yet, only with the "titles". I'm not using tweens neither (I don't have idea about how to implement that).
After hours and hours of work, I thought it should be working now but it's not... The title and buttons are working fine, but the images won't show up! I must be missing something! Anyway, I think I'm almost there! I traced all our DocClass as it is and it pass through it without erros, but our Slide class should be working... I don't get any errors, just the trace of the IOError function inside Slide class...
This is what I have:
The Slide class:
package {
     import flash.display.Loader;
     import flash.display.Sprite;
     import flash.events.Event;
     import flash.events.IOErrorEvent;
     import flash.events.ProgressEvent;
     import flash.net.URLRequest;
     public class Slide extends Sprite {
          public var url : String;
          public var loader : Loader = new Loader();
          public function Slide(url : String = null, startLoad : Boolean = true) {
               this.url = url;
               if(url && startLoad) load();
          public function load() : void {
               loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);
               loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
               loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onLoadProgress);
               loader.load(new URLRequest(url));
          private function onLoadComplete(e : Event) : void {
               removeListeners();
               addChild(loader);
          private function onIOError(e : IOErrorEvent) : void {
               trace("onIOError"); //IT'S RETURNING THIS TO THE OUTPUT...
               removeListeners();
          private function onLoadProgress(e : ProgressEvent) : void {
               trace("loaded ", e.bytesLoaded, " of ", e.bytesTotal);
          private function removeListeners() : void {
               loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, onLoadComplete);
               loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, onIOError);
               loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, onLoadProgress);
And the DocClass
package {
     import flash.events.MouseEvent;
     import flash.display.MovieClip;
     import flash.events.Event;
     import flash.events.IOErrorEvent;
     import flash.events.ProgressEvent;
     import flash.net.URLLoader;
     import flash.net.URLRequest;
     import flash.text.TextField;
     import flash.text.TextFieldAutoSize;
     import flash.text.TextFormat;
     import flash.text.TextFormatAlign;
     public class DocClass extends MovieClip {
          private var left_btn : Arrow = new Arrow();
          private var right_btn : Arrow = new Arrow();
          private var title : TextField;
          public var titleText : String = "HERE GOES THE TITLE";
          private var stageWidth : uint = 730;
          private var xmlURL : String = "pfolio/portfolio.xml";
          private var XMLLoader : URLLoader;
          public var slides : Array = [];
          private var numSlides : int = 0;
          private var currentSlide : int = 0;
          public function DocClass() {
               addArrows();
               loadXML(xmlURL);
               configTitle();
               setTextConfig();
               setText(titleText);
          private function addArrows() : void {
               left_btn.buttonMode = true;
               left_btn.x = 30;
               left_btn.y = 140;
               left_btn.rotation = 180;
               right_btn.buttonMode = true;
               right_btn.x = 700;
               right_btn.y = 140;
               addChild(left_btn);
               addChild(right_btn);
               left_btn.addEventListener(MouseEvent.CLICK, nextImg);
               right_btn.addEventListener(MouseEvent.CLICK, nextImg);
          private function nextImg(e : MouseEvent) : void {
               if (e.currentTarget == right_btn) {
                    currentSlide = currentSlide < slides.length - 1 ? currentSlide + 1 : currentSlide;
               } else {
                    currentSlide = currentSlide > 0 ? currentSlide - 1 : 0;
               showSlide(currentSlide);
          private function loadXML(dataURL : String) : void {
               trace("Requesting data...");
               XMLLoader = new URLLoader();
               XMLLoader.addEventListener(Event.COMPLETE, processXML);
               XMLLoader.addEventListener(IOErrorEvent.IO_ERROR, errorXML);
               XMLLoader.addEventListener(ProgressEvent.PROGRESS, loadingXML);
               XMLLoader.load(new URLRequest(dataURL));
          private function processXML(e : Event) : void {
               trace("Data is now being processed...");
               var XMLData : XML = new XML(XMLLoader.data);
               removeDataListeners();
               XMLLoader = null;
               var slidesData : XMLList = XMLData.slide;
               numSlides = slidesData.length();
               for (var i : int = 0;i < numSlides;i++) {
                    var slide = new Slide(slidesData[i].images, true);
                    trace("A new slide will be pushed...");
                    slides.push({
                         slide: slide, title: slidesData[i].title });
               showSlide(0);
          public function showSlide(slideIndex : int) : void {
               trace("showSlide method triggered...");
               var slide : Slide = slides[slideIndex].slide;
               slide.x = 50;
               addChildAt(slide, 0);
               title.text = slides[slideIndex].title;
               for (var i : int = 0;i < numSlides;i++) {
                    slide = slides[i].slide;
                    if (i != slideIndex && contains(slide)) {
                         removeChild(slide);
          private function configTitle() : void {
               title = new TextField();
               title.autoSize = TextFieldAutoSize.CENTER;
               title.background = true;
               title.border = true;
               var format : TextFormat = new TextFormat();
               format.font = "Arial";
               format.color = 0x000000;
               format.size = 11;
               format.bold = true;
               format.align = TextFormatAlign.CENTER;
               title.defaultTextFormat = format;
               addChild(title);
          private function setTextConfig() : void {
               title.x = stageWidth / 2;
               title.y = 265;
          public function setText(str : String) : void {
               title.text = str;
          private function errorXML(e : IOErrorEvent) : void {
               trace("Error while loading XML");
          private function loadingXML(e : ProgressEvent) : void {
               trace("Loading Data...");
          private function removeDataListeners() : void {
               trace("Removing Data Listeners...");
               XMLLoader.removeEventListener(Event.COMPLETE, processXML);
               XMLLoader.removeEventListener(IOErrorEvent.IO_ERROR, errorXML);
               XMLLoader.removeEventListener(ProgressEvent.PROGRESS, loadingXML);
The way how things are organized and the "package" thing still confuses me but again, I'm improving don't you think?

Similar Messages

  • Is there a way to copy & paste a clip from the timeline in one project in to another project?

    Hello Popular Premiere Pontificaters,
    I am using Premiere 6 on a Windows 7 machine.
    Is there a way to copy and paste a clip from the timeline in one project in to another project?... I can copy my clip, but when I open the other project, it will not allow me to paste it in there... but I am able to copy and paste a clip within a single project.  I tried everything... pasting in to a new video track and pasting in to an existing video track in the second project, but the paste option simply isn't there when I open the second project.
    And if Premiere itself will not allow me to do this in any way, will a copy-paste clipboard type of accessory app allow me to do this?... if so, which is the best, trustworthy copy-paste app that is malware free?
    Thanks,
    digi

    Hi Bill Hunt,
    I just read the page that you provided about "Handles"... thanks allot for that ARTICLE.  In your article and the subsequent article HANDLES, "Transitions Overview: applying transitions" linked from your article, it indicates (in PrE and PrPro anyway - I'm in Premiere 6) that transitions can be applied to non-Video 1 tracks... the paragraph below is a quote from that "Transitions Overview: applying transitions" article...
    "Whatever is below the transition in a Timeline panel appears in the transparent portion of the transition (the portion of the effect that would display frames from the adjacent clip in a two-sided transition). If the clip is on Video 1 or has no clips beneath it, the transparent portions display black. If the clip is on a track above another clip, the lower clip is shown through the transition, making it look like a double-sided transition."
    So this indicates that transitions can be applied to non-Video 1 tracks since it is referring to content in tracks beneath a transparent fade that would show through... and only non-Video 1 tracks can be transparent and have other clips "beneath" them in the timeline, right?
    In the screenshot sample in your article at this LINK, I see the handles (referred to as B and E) and I can see in my monitor window how those handles would be represented by the two little bracket symbols {  }  ... you can see how they appear in my monitor window in Premiere 6 in this screenshot, and below, from a different thread that isn't related to this topic.
    But I'm still trying to figure out how the handles can be applied in the non-Video 1 tracks in the timeline to insert a transition (cross-dissolve) between two clips.
    Can you advise me on this?... I posted a separate thread HERE on this topic, but I haven't got any further with finding an answer.
    Thanks so much for your article,
    digi

  • Feature Request:  Modify Audio Channels from the Timeline in Premiere CC.1

    Why have we never been able to modify audio channels once a clip is added to a sequence?  I'm guessing there's a good reason Adobe has never had this feature.  The lack of this feature is explicitly mentioned a few times in the audio section of the Premiere Pro CC manual, as if it's a benefit NOT to have it.  But the benefit is entirely lost on me. 
    In my workflow, I synchronize my double-system video and audio before anything else.  I do this in PluralEyes (and unfortunately I'll have to keep doing it this way, until PPr's sync on sound feature gets fixed—for me it's never worked).
    Once PluralEyes has synched hours of footage and audio and placed it on a PLURALEYES GENERATED sequence, I import that sequence into Premiere.  Note:  Since I haven't gone through the step of creating a blank New Sequence, I don't get the opportunity to setup my audio channels the way I'd like in my sequence (i.e. Stereo recordings should occupy ONE track, not two.  Typically these tracks come from a camcorder and are used for reference sound, or ambient noise at best, so I don't need them taking up precious real estate in my sequence). 
    Since PluralEyes doesn't merge my clips for me (or rather I don't want it to since I'm usually doing multi-cam sequences where I want to keep all 14, or so, tracks of audio), I have to go through the clips one by one and do a Merge Clip action once I've adjusted any minor sync issues, or determined which tracks I actually want to keep.  But, and here's the key, at this stage I'm not yet 100% certain whether I'll use the nat sound or the wireless mic sound (separate audio recorder, etc).  Furthermore, I don't really want to think about that at this point.  After I've spent a few mind-numbing hours just ingesting files, sync and merges, I want to jump into the edit as soon as possible, before I lose all will to finish this edit.  If I modify my audio channels right now, I'll lose the ability to make some creative decisions later on.
    I'd like to start whacking out an assembly edit.  And then after I have a rough program, I can start looking at which audio tracks (nat or double-system) I like better in each circumstance.  This is where I become stumped that at this stage, I'm locked into whatever audio channels I've setup (or not) in the earliest stage of the edit, back before any media was actually on the timeline!  It's at this stage, and usually only at this stage that I want to start Modifying Channels—FROM THE TIMELINE!
    Does anyone else feel the same?  If not, what is your workflow?
    Feature Summary:  Right-click on any clip, (master clip, sub-clip, merged, nested or otherwise) in the timeline and choose Modify > Audio Channels.
    I've submitted a feature request, with a link back to this discussion, so please pipe in—especially if you want this feature. 

    Maybe its your specific workflow, asset mangement  and use of a 3rd party application that  runs you into an issue.
    Take Pluraleyes out of the equation, I would imagine my workflow is the same as most everyone else.  Find footage in the Media Browser.  Import it.  Create a Sequence and start editing.  Use the Source Monitor to set Ins and Outs and then Insert the clip on the timeline. 
    At this point, if the audio needs to be modified, it cannot be done on the Timeline.  The workaround, of course, is to Find Clip in Project; Modify Audio in the Project panel; then do a Matchframe to replace the audio clip.  This works, but requires many steps per clip.  Also, Matchframe in Premiere Pro CC is not reliable. 
    Introducing a new Modify Audio (from Timeline) feature as seen in the fantasy screenshot above would solve it.
    I dont use Pluraleyse ...which I understand to be a synching aid...so I dont know the workflow it imposes on one .
    Returning to Pluraleyes workflow, this issue is compounded by the need to Modify almost ALL audio.  Every stereo track is separated and placed on two MONO tracks taking up precious real estate.  This is not something Pluraleyes imposes.  It is due to the way Premiere imports XML timelines.  This would apply to sequences imported from Final Cut as well.
    In this case it would be ideal to select both the LEFT and RIGHT mono tracks and choose "Modify > Audio Channels > Merge L/R Mono to a Single Stereo track."  Ideal?  No.  I guess Ideal would be if Premiere would interpret XML files properly in the first place.
    What actually is the issue with Premieres synch and merge workflow in your case?
    Audio Sync in Premiere Pro doesn't work.  Period.

  • How to recapture from the timeline?

    I had a hard drive crash with 6 hours of footage on it. I need to re-capture the footage from the timeline. The project is only 2 min long but when I try and re-capture FCP wants to digitize all 6 hours of footage. How can I make it only capture what is in the timeline and not entire tapes?

    I media managed the project using copy which kept all of the render files. Then I media managed the project as offline. I'm recapturing the segments that were lost with the offline and copy/pasting them into the copied sequence. Seems to be working. I just need to get 2 Betas out and then I can ditch the entire project!

  • Anyone having problems with art/animation/audio disappearing from the timeline after a save?

    Hello,
    I'm having problems with many files losing their assets from the timeline after a save and reopening the file in Mac OS X Snow Leopard. This is happens quite often now and there seems to be no pattern to it. For example, I will open an existing Flash animation complete with sound and artwork, make changes to the animation timing, test the SWF and everything looks good, then save. After reopening the exact same file, there will be audio that was on the timeline will be an empty frame. In addition, there is art work that was swapped out or updated to a character and the symbols becomes empty after reopening. I'm losing days and hours of work and I can't seem to find any answers or help to figure out what's going on.
    Any insight would be appreciated!
    thanks!

    I now use CS5.5 but I've noticed it on every version since CS4.
    I JUST ran the latest update to 11.5.1.349
    I'll let you know if it continues but for now I'm planning to learn a new software. Finally have some time to focus on this and if it works out I may say so long to Flash. I'll give CS6 a try but if it's not SIGNIFICANTLY improved (Brush tool comparable to ToonBoom, No losing data, Better Playback, Ability to export HTML5), it's just not worth it anymore. I've been using Flash since version 1 and since Adobe took it over, I hate to say that anything other than actionscript has gone WAY downhill. Many new features but they don't actually work well, or crash at runtime if used beyond a tutorial's level intensity. What's the point of all that functionality if it looks like garbage and can't perform on a professional level? Even if you do take the extra time to work slowly or limited to make it look nice - it loses the data! or now without HTML5 your venues of use are sliced in half? Pointless. I don't want to trash all my Flash experience, but I'm done defending an inferior product and waiting for it to catch up to a modern professional standard. I think my Flash days may be over very soon unfortunately. I feel like the're more interested in defending what they've created, than in making it work or even asking us what we want. I feel like a Girlfriend who's Man keeps promising to get steady work but hasn't after 10 years. Flash...we need to talk.

  • For the first time i want to sync music from the itunes on my desktop to my iPod touch 5th gen. it kept taking forever to back up! is backing up needed? all i wanna do is sync the music

    for the first time i want to sync music from the itunes on my desktop to my iPod touch 5th gen. it kept taking forever to back up! is backing up needed? all i wanna do is sync the music and the back up is taking way too long....
    i have not yet until now tried to sync music to this ipod touch it always syncs music on to my ipod classic..please please help me! im dying to have music on this ipod touch...

    It depends how much you have to backup..
    You could also have a problem.
    Is any progress showing?
    How long as it been backing up?
    Any other text in the status bar in addition to saying backing up?

  • Hi, I am using USB 8476s to communicat​e to a slave unit in LIN network using LabVIEW7.1​. Can anyone tell me how i can send a header file plus 1 byte of data to the slave in a LIN network. or how do i use ldf file. i want to read responses from the slave

    Hi,   I am using USB 8476s to communicate to a slave unit in LIN network. Can anyone tell me how i can send a header frame plus 1 byte of data to the slave in a LIN network. or how do I communictae with slave using LabVIEW7.1.
    I want to read responses from the slave. When i tried with labview exapmle programs or even using MAX also, while doing some switching action in my slave, i am getting response as Device inactive with timestamp but there is no data format. 
    And I have Lin Description File. Can you suggest me how to use ldf file.
    I am at customer place and It would be great help from you if you can suggest me at the earliest. Thank you

    you may use the LDF Starter Kit to use LDF informations in your application
    http://joule.ni.com/nidu/cds/view/p/id/665/lang/en

  • How do you mark a section from the timeline to send to Compressor 4 using Final Cut Pro X?

    I am trying to send just a certain piece from the Timeline to Compressor 4 using Final Cut Pro X and I can't figure it out. Please help!

    jakelovesanna wrote:
    The video itself is intirely 5 minutes, but the timeline goes to 24 hrs.
    24 hours?
    If you select the timeline and press Shift+Z do you see a lot of black space in the timeline? If so, you may have a huge gap clip (although I fail to understand how you achieved it). Click on it and if it can be selected, delete it with the Backspace Key (next to the = key).
    Then press Shift+Z again.
    If I've got this wrong, can you post a screen grab of your timeline?
    Andy

  • Recording to tape from the timeline

    I'm trying to get my sequence onto tape by recording from the timeline.  I'm able to capture footage from camera (Canon XLH1), but when I try to export to tape, my cam is not recognized.  I've checked the manual settings and have checked the control panel and the cam is recognized by my computer.  Any thoughts?

    Thanks for the link to that thread!
    My computer is ok but not great.
    Dell Inspiron 530:
    1 TB 7200 rpm dedicated video drive recently bought.
    3 gigs of ram ( machine only holds 4).
    CPU is an Intel Core 2 Quad Q6600 @2.4 Ghz
    OS is Vista Home Premium 32-bit with service pack 2 installed.
    My OS drive is on the small side (250 gigs).
    All my drives were just defragged today.
    Graphics card is ATI Radeon 2400 HD Pro.
    Have front and back firewire ports
    I'm wondering if I may be sucessfull with a Canon HV 30 or 40 in lieu of using an A1.
    Maybe my firewire cord is not up to the task.
    Something is interupting the flow of data while it exports as it transcodes fine!

  • I am getting an error message while managing my cloud it says "cannot turn off backup" when i want to remove apps from the clous. how do i fix?

    i am getting an error message while managing my cloud it says "cannot turn off backup" when i want to remove apps from the clous. how do i fix?

    Hey ktillis88,
    Thanks for the question. Based on the information you have provided, the following resource may be helpful:
    iCloud: Understanding Backup alert messages
    http://support.apple.com/kb/TS4576
    "Backups for appname cannot be turned off at this time."
    This message occurs if disabling Backup for an app on your iOS device does not complete successfully. Wait a few minutes and then attempt to disable Backup for the app again. If you continue to receive this alert, contact iCloud Support for assistance.
    Thanks,
    Matt M.

  • I want to purchase something from the App Store and it is asking me questions that I don't remember answers to and I don't remember my email password

    I want to but something from the App Store and it's not letting it's asking me security questions and I don't remember answers to and I don't remember my confirmation email please help!

    See Kappy’s great User Tips.
    See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities
    https://discussions.apple.com/docs/DOC-4551
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    Send Apple an email request for help at: Apple - Support - iTunes Store - Contact Us http://www.apple.com/emea/support/itunes/contact.html
    Call Apple Support in your country: Customer Service: Contacting Apple for support and service http://support.apple.com/kb/HE57
    About Apple ID security questions
    http://support.apple.com/kb/HT5665
     Cheers, Tom

  • Audio won't play in the Viewer but will in the Canvas from the timeline.

    If I select a clip from the timeline to open in the viewer, I cannot hear the audio even though both video and audio are selected. This only happens in certain projects. Anyone know why?

    In the View menu, make sure the Audio Playback is set correctly.

  • When I export from the timeline in Final Cut Pro HD, I get a general error message

    When I export from the timeline in Final Cut Pro HD, I get a general error message and the export quits. Any ideas on a fix?

    Also, if I remember correctly, Final Cut Pro HD was version 4.5. Is this what you are running?
    If so, what version of OSX and Quicktime are you running?
    x

  • Next button in symbol, start animation from the timeline and after 3 sec playReverse

    Hello,
    I have a next button in a symbol. When I click on the button I would like to start the animation from the timeline.
    It wil starts at one second. But if the timeline is after 3 seconds I would like to play the animation backwards (if you click on the same button).
    I tried it with the code below but it starts always at 1 second.
    var pos = sym.getPosition() //
    if (pos <= '1000'){
             sym.getComposition().getStage().play(1001);
    else if (pos <= '3000'){
              sym.getComposition().getStage().playReverse(2999);
    Can anybody help me with the code?
    Thanks!

    Hello,
    Thanks for the demo file, I checked it, tried it in my project and it works.
    But I think I have to explain better.
    I have a button in the symbol. When I am between 0 and 1 second on the stage timeline
    and I click on the button. The stage timeline (slider) will start from 1 second till 2.
    But when I'm in the timeline after 3 seconds (doesn't matter if its at 10 sec) and I click on the button,
    I would like to play the stage timeline from 3 seconds till 2.
    Is this possible and how do I do that?
    Thanks

  • How do I completely remove a clip from the timeline?

    I just bought a mac pro and final cut pro x to go with it (after a couple of years of being used to using adobe on a pc) so apologies if this sounds like a stupid question, but how do I completely delete/remove a clip from the timeline instead of merely 'disabling' it?

    If you have a keyboard without the numerical keypad, then FN delete will delete the clip and replace it with a gap if it's on the primary storyline. If it's a normal Mac keyboard, then the back delete will do the trick.
    You can also lift a clip from the primary storyline by right-clicking and choosing lift from primary storyline, then just delete.

Maybe you are looking for

  • Problems in SEND STEP with transport confirmation

    Hi everyone. I have a send step in a BPM. This send step has the 'transport confirmation' switch activated. If destiny system (SAP R3) is down, XI will retry to send the message. Problem is that XI has been waiting for a long time (because of R3 back

  • Ror and OCI8 encoding Problem

    Hello all! I have a problem with OCI8 and RoR, when I use select query to Orcle Data Base I take result where cyrilic characters are "?", and I can't decode this result, but when I create OCI8 conection in .rbx file on the server ( Linux) I take a ri

  • No Sound and YTube videos are not playing - Says Error in loading

    I have recently been experiencing a lot of problems on my pc. The main one is that the fan appears to be failing, as it is making a long continual noise. I now appear to have lost the sound. I am not sure what is causing this, but have run through al

  • ALE Financials 4.6C

    Hi, My company wants to load using ALE financial items to the general ledger from another R3 system.  The goal is to be able to do financial reporting from our main instance including amounts from our other instances.  It seems that if we use ALE the

  • I have to relaunch itunes for apple tv home sharing to access library

    why is that i have to relaunch itunes every now and then for apple tv home sharing to access movie library itunes version 12.1 ATV 3 Mac mini 2014