Target Stage and append iframe from inside symbol????

Having trouble again. I am SLOWLY getting use to the CC 2014 thing =).
Now I need to be able to target a Symbol on the stage from within an element inside a symbol and append it with an <iframe> and pass attributes to the iframe.
I have a file -- please refer to the  videoui symbol and whitewater1.click and whiteawater2.click actions in that symbol (link below (Drop Box)
Here's what I have so far...
// insert code for mouse click here
// Go to a label or specific time and stop. For example:
// sym.stop(500); or sym.stop("myLabel");
sym.stop("videotwo");
// Change the text in an element
sym.$("video-text").html("Video by: TheNigglesbear");
var youtubevidtwo = $("<iframe/>");
sym.getComposition().getStage().getSymbol("vcontainer").append(youtubevidtwo);
youtubevidtwo.attr('type','text/html');
youtubevidtwo.attr('width','616');
youtubevidtwo.attr('height','347');
youtubevidtwo.attr('src','http://www.youtube.com/embed/eqzwoIQseyA?rel=0');  // url/Video_Id
youtubevidtwo.attr('frameborder','0');       // 1 | 0
youtubevidtwo.attr('allowfullscreen','0');   // 1 | 0
This same code -with different path to symbol of course- works fine on the stage document.compositionReady, but not sure how to target the videoui and append the iframe and its attributes to it from inside another symbol.
Help please -- there really needs to be more ADVANCED examples of possible methods of targeting. I find a lot about targeting symbols inside of symbols,or Stage to symbols, but not much on symbols to stage to another symbol also on the stage.
Thanks in advance.
Dropbox - videoPhotoUI.zip

dharmk
Thanks for the input. Just what I needed, I had to adjust my thinking, but got it to work because you took the time to look at my file and offer the help. Really appreciate it!! Here's how I made it work (for all three) video buttons:
var container = sym.getComposition().getStage().$("vcontainer");
container.find("iframe").remove();
var youtubevidtwo = sym.getComposition().getStage().$("<iframe/>");
sym.getComposition().getStage().$("vcontainer").append(youtubevidtwo);
youtubevidtwo.attr('type','text/html');
youtubevidtwo.attr('width','616');
youtubevidtwo.attr('height','347');
youtubevidtwo.attr('src','http://www.youtube.com/embed/eqzwoIQseyA?rel=0');  // url/Video_Id
youtubevidtwo.attr('frameborder','0');       // 1 | 0
youtubevidtwo.attr('allowfullscreen','0');   // 1 | 0

Similar Messages

  • Play timeline from inside symbol

    I saw a post on this issue but was not sure where to put the code I read there. I would appreciate if you can tell me how exactly to edit this code line to work
    I am inside a symbol "oneAnimation". At the end of the animation "backBtn1" appears. Inside this button, I have added an event on click. I want the stage timeline to play from the label "startNumber" when this button inside the symbol is clicked.
    So far it's not jumping back to the main time line.
    sym.getComposition().getStage().play("startNumber");

    The label seems to be in that symbol, so all you need is sym.play('startNumber');
    You code is to play a label on the same timeline.
    See my blog on edgehero.com
    http://www.edgehero.com/articles/scope

  • How to extract a folder (and its contents) from inside a zip file?

    There is a zip file which contains a folder inside it. The folder itself contains a few files. I would need to know how to extract the folder (with its contents) from inside a zip file.
    I have found a few unzipping code samples which show how to handle a folder inside a zip file. An example is shown below:
    public static void extract(String workingDirectory, byte[] zipFile)
    throws Exception {
    ByteArrayInputStream byteStream = new ByteArrayInputStream(zipFile);
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    ZipInputStream zipStream = new ZipInputStream(byteStream);
    ZipEntry zipEntry = null;
    String nameZipEntry = null;
    byte[] contentZiphttp://forum.java.sun.com/post!default.jspa?forumID=31#
    Click for code tagsEntry = null;
    boolean isDirectory = false;
    int indexFileSeparator = -1;
    String directory = null;
    String fileName =  null;
    while ( (zipEntry = zipStream.getNextEntry()) != null )
                nameZipEntry = workingDirectory + File.separator + zipEntry.getName();
                isDirectory = zipEntry.isDirectory();
                if (isDirectory) {
    File file = new File(nameZipEntry);
    file.mkdirs();
                else
                    // read zipEntry
                    byte[] buf = new byte[1024];
                    int c = 0;
                    while ( (c = zipStream.read(buf)) != -1)
                        out.write(buf, 0, c);
                    indexFileSeparator = nameZipEntry.lastIndexOf(File.separator);
                    directory = nameZipEntry.substring(0, indexFileSeparator);
                    fileName =  nameZipEntry.substring(indexFileSeparator+1,nameZipEntry.length());
                    FileSystemTools.createFile(directory, fileName, out);
                    out.reset();
                    zipStream.closeEntry();
            zipStream.close();
            byteStream.close();
    }The code sample which deals with the part where the zipEntry is a directory creates a directory with the same path and name. (highlighted in bold)
    Another similar variation is:
    File file = new File(dirDestiny.getAbsolutePath() + File.separator + zipEntry.getName() );
    if(zipEntry.isDirectory())
          file.mkdirs();When the code creates a directory for the folder, does it unzip the contents inside the folder as well?
    If not, how do I extract the files inside the folder?

    Have you already tried to see if the sample code you downloaded works or not? Maybe if you try out the code yourself you can see if it extracts files from a directory within a zip file?
    I like to use pkzip. It is a command line compression/uncompression tool that can be used from a batch file. If you assignment involves unzipping large amount of zip files on a regular basis, I recommend taking a look at pkzip.

  • Trying to show() and play() a symbol from inside another symbol

    Hi Everyone !
    I'm running into a problem which is getting me crazy.
    I have the following case :
    - 1 symbol (_Page_Background) containing an animation with the following trigger @0s :
    // Hiding the symbol
    sym.getParentSymbol().$("_Page_Background").hide();
    // Stop it
    sym.stop();
    - 1 element (B_TOYS), inside of a symbol (BUTTONS) with the following "click" trigger :
    // Showing the _Page_Background symbol
    sym.getComposition().getStage().getSymbol("_Page_Background").show();
    // Start playing it
    sym.getComposition().getStage().getSymbol("_Page_Background").play("INTRO");
    The Symbol _Page_Background starts hidden, like it should. But when I click on the button (B_TOYS), nothing happens. Although, everything was working correctly before I turned my buttons into symbols ..
    I guess the problems lies with the "show()" function, because I have other buttons that work properly but they don't show/hide anything, they just play()
    Am I missing something ?!
    Thanks in advance for your kind help !

    Hi Dimitri,
    Think of symbols as independent timelines that can contain other elements, or instances of other symbols. The Stage/main timeline is a symbol as well. Scripting calls are scoped to the symbol that the script is in. The keyword sym stands for the symbol that you're in with the script.
    So if your script is at the same level as what you are targeting with it:
    Use sym.$("elementName") to access an element's properties
    Use sym.getSymbol("symbolName") to access a symbol's timeline. If there's another symbol inside that symbol that you want to access, you'd use sym.getSymbol("symbolName").getSymbol("childSymbolName")...that's only two levels deep, but you can go as deep as needs be.
    If you're trying to access an element in a symbol, you'd combine these two, such as sym.getSymbol("symbolName").$("elementName")
    When your script is within a symbol and you want to access an element or symbol outside of the symbol timeline:
    Use sym.getParent() to get to any elements that are in the parent symbol (the symbol which contains the symbol you're calling from), which could be the Stage or could be another parent symbol
    Use sym.getComposition().getStage() from any symbol level to access things at the main Stage level.  You can also dive into a symbol on the Stage from any symbol using sym.getComposition().getStage().getSymbol("symbolName").
    All is explained in detail here:
    http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html
    hth,
    Joe

  • How can I play a symbol nested twice and called from anther symbol in that nest?

    My Question involved playing a symbol inside another. I currently have 2 symbols, dirtytruck2 and splash5, inside another symbol, truck3,  all inside another sybol hole13. I am trying to get it so that when i click on dirty truck the annimation for splash plays. I cannot get this to work.
    Currently I have this onClick for Dirtytruck2 in an attempt to get splash5 to play:
    sym.$("splash5").show();
         sym.$("splash5").play();
         sym.getSymbol("splash5").play();
         sym.getComposition().getStage().getSymbol('hole1_1').getSymbol('truck').getsymbol('splash ').play('start');
         sym.getComposition().getStage().getSymbol('hole1_1').getSymbol('truck').getsymbol('splash ').play();
         sym.getComposition().getStage().getSymbol("hole1_1").getSymbol("truck").$("splash").play( );
    currently, the splash5 symbol reveals itself when I click because of the .show(); but i still cannot get it to play. Autoplay is turned off so the clip does not loop continuously as splash5 is created before it is revealed and shows itself on the click event. Please note I have read  http://forums.adobe.com/message/5142090 about calling symbol basics and have referanced and tried what i learned from the example there target-symbols. I feel my code is written the same - but i cannot get the desired outcome.
    https://drive.google.com/file/d/0BzeleqTUd2NAdTRkcVVVSm5tckU/edit?usp=sharing  is the edge file and assets.
    If anyone can provide assistance, that would be awesome.

    That's what I don't get, I have just tried switching between "generic" symbol names and the specific names when on the stage and I still am not getting any results.
    example:
    sym.getComposition().getStage().getSymbol('hole1_1').getSymbol('truck ').getsymbol('splash').play('start');
    changed to sym.getComposition().getStage().getSymbol('hole13').getSymbol('truck2').getsymbol('splash5 ').play('start');

  • Targeting the EdgeID object from inside the animation

    I've been working on an animation that displays content pulled in from json files.  The height of the content pulled in is determined and then the Stage height is adjusted to fit the total content. This works well by itself. See http://www.jomariworks.com/edge-json (Only west coast links are live. Project files http://www.jomariworks.com/edge-json/edge-json.zip)
    Now I'm embedding the animation in a page using the oam insert feature, which creates an object with a fixed size.  When the animation adjusts the stage height, the object window size does not change. When the content is longer than the object window, the content scrolls.
    Is there a way I can target the height of the object (id is EdgeID) during the execution of the animation?
    The live version of this can be viewed at  http://reconnectingamerica.org/spacerace/index.php.  The project files at http://www.jomariworks.com/edge-json/edge-json.zip are the same as far as functionality goes.
    Thanks in advance for any help.

    After being unable to discover how to target the height of the object containing the embedded edge animation, I have gone back to having the entire page part of the animation file.
    The final web page is online at http://reconnectingamerica.org/spacerace
    There are big disadvantages of this:
    The full web page has more than 7000 lines of HTML.  Making changes in Edge Animate is a VERY slow process.
    Edge Animate corrupts the HTML in the file. This file contains complex TABLEs.  After making changes in Edge Animate and saving those changes, the TABLE headers are all corrupted (e.g. closing THEAD tags are moved above the head content and several closing TR tags are relocated. For the record, I checked.and the original HTML is syntactically valid.).  To deal with this I removed the tables when editing in Edge Animate and after making changes and publishing the Edge Animate version of the HTML I restored the tables.
    Working separately on the animation and then embedding is clearly the better workflow in this situation. Unfortunately, I needed to be able to resize the embedded animation's object container in the same way I was able to adjust the Stage from inside the animation.  Not being a jQuery wizard I couldn't figure out how to target the height of the animation's parent container.  Still interested in finding out how to do that if anyone can help.
    Message was edited by: jomariworks

  • Accessing buttons on main stage from inside of a movie clip

    Greetings...
          here is the scenario:
                 - I have buttons on main stage, and a swf file which is loaded to scene using a LOADER in AS3
                 - this is a website, so the problem rises when user moves its cursor around the page and now  buttons in main stage,
                    are still active since they are behind the loaded swf file.
                 - i would like to learn, how can i CODE inside the loaded SWF file, to either remove the buttons in main page, or remove
                    the event listeners. not sure if my case has anything to do with .Parent or .roo, (I want to access those main stage
                    buttons from the SWF file which is loaded)
                 - The general case is, i have SWF files loading inside another SWF files, is it possible to access items on each stage from
                    inside of loaded SWF files on that specific stage. Similarly i would be interested to learn about accessing main stage from inside
                    of movieclips running on stage. how can i access something not in present FLA file yet, in FLA file that is loading the page as SWF.
                    Thanks.

    If you load an swf into another using the Loader class, then the Loader itself is the parent of the loaded swf., so MovieClip(parent.parent) might help you to target the timeline that the Loader was born from.  The more proper way to have a loaded file talk to a parent file is thru dispatching events that the parent assigns listeners for after the file has loaded.  Here's a link to a posting that might help explain how to implement this.
    http://forums.adobe.com/thread/470135?tstart=120
    As for the buttons that you want to disable, you could either use the removeEventListener() method to remove the listeners you have assigned, or you could set their mouseEnabled property to false, or you could set their visible property to false.

  • Access main stage from a symbol timeline?

    Can I access main stage  from a symbol timeline?
    Eg:
    I have a symbol called "ball" and its own time line. There is a close button at the end of ball's timeline,
    When close button pressed, I want to go back to main timeline.
    Thanks
    Phyle

    Thanks Hemanth.  I will try to explain.
    Open Edge animate. On the main stage I added a label called "home".
    I created circle, converted to symbol, renamed to "ball".
    Inside "ball" , I have a animation, at the end there is a button called "closeBt"
    When "closeBt" pressed, I want to go back to main stage "home"

  • Two symbols, have same code, yet one behaves erratic.  Both stage and symbol timelines used.

    Here is a link to the problem site using edge: http://pbpromos.com/test-edge/
    Basically, there is a random or erratic behaviour with the symbol/box on the right when you go into and out of it by pressing the button on the bottom which makes it scale out and in.  The symbol/box on the left always behaves like it should no matter how many times you press the bottom button scaling it out/in.  However, for the symbol/box on the right, it skips animation steps at random times by pressing the bottom buttons.  When you first load the page, the right symbol/box scales out/in properly and may take a few times to reproduce the problem.  Sometimes you have to try also going in and out of the symbol on the left and then try the symbol on the right to make it show this erratic behavior.
    MORE DETAIL:
    The symbol all the way to the right ( Merchant Dashboard ) is not behaving like the one on the left.  When you go into them with the bottom button, the symbol scales out towards you making it bigger and pushes the symbol on the left out.  When you press on the RETURN button on the bottom it should scale back by playing the animation in REVERSE.  It does this by playing the stage and symbol timelines in reverse all the way to the start of their respective timelines.  This works fine for the right symbol if you try going in and out several times, however, the right symbol behaves eratically when trying to go in and out multiple times.  Yet they both have identical code.
    If you try going in and out you will see what I mean.
    There are three timelines.  The stage timeline and the two symbol timelines.  To scale out when you press the bottom red button, I play the stage timeline and the symbol's timeline.  Here is the code at the stage level triggered by the buttons which are found inside the two symbols:
    Right button (CLICK): "DASHBOARD LOGIN"
    sym.play("Dashboard");   // Label at the symbol timeline
    sym.getComposition().getStage().play("Dashboard");   // Label on the stage timeline
    Left button (CLICK): "REDEEM VOUCHER"
    sym.play("RedeemVoucher");   // Label at the symbol timeline
    sym.getComposition().getStage().play("RedeemVoucher");   // Label on the stage timeline
    When the stop(); is reached and the symbols scale out, I display the "RETURN TO MERCHANT AREA" button.  When this is clicked this code is executed within the symbols:
    sym.playReverse();
    sym.getComposition().getStage().playReverse();
    Any thoughts would be appreciated.
    Here is the link to oam file: https://www.dropbox.com/s/r33fu86779012yn/Adobe-Edge-Test-1.oam

    ok, I stand before you, head bowed in humiliation, begging for your forgiveness :-)
    I'm not sure what is going on but I found the font problem (or at least it seems so).
    Somehow (and I don't know how but I think I've been "duplicating the same folder content each time I start a new page to test and make changes (since the problem, I have been scared to touch anything that WAS working).
    Well, it seems that the "duplicated" folder was missing my "CSS" folder in every one!
    That explains why, even though the fonts and all the settings in Edge showed everything as being correct - they were; all except the CSS page that loaded the fonts!!!
    Again, I humbly apologize - I really do try and find the problem BEFORE posting here; this one just eluded me :-)
    James

  • How to access a variable from inside another symbol

    So i did this tutorial, Leveraging Independent Symbol Timelines created by Eliane...it's rockin, btw.  ;-)
    All's well but now i have a symbol on the stage called mc-home.  inside of mc-home is a button called btn-go.
    On the stage in composition ready there's a variable sym.setVariable("current", "mc-home");
    This code works for a symbol that's on the stage but, how do i get this code to work on a button that's inside another symbol that's on the stage?
    var current = sym.getVariable("current");
    if (current != "") {
        sym.getSymbol(current).play("OUT");
    sym.getSymbol("mc-something").play("IN");
    sym.setVariable("current", "mc-something");

    sorry, i was kind of confused myself too, don't worry about it but thanks for your patience for reading it anyway

  • Silent print a PDF from a web page using Flex. We are targeting Windows and Mac with Arcobat reader installed

    We are planning to Silent print a PDF from a web page using Flex. We are targeting Windows and Mac with Arcobat reader installed. I have tried using the AIR appliaction and it worked, But our requirement is NO INSTALL to the user machine for the silent printing. It is just from web page and silent printing to the default printer to the desktop/Laptop. Can anyone share your thoughts and experience with us. It will be very helpful..
    For AIR : I tried the thread Re: AIR and PDF showing/silent printing

    Hey CodeMonkey & Ross,
    Did you either of you ever find a solution? I'm stuck too, it seems I can get remote printing on all these PDFs to work but it just prints a blank page since I've been using Javascript in the browser, not Adobe's (they are Engineering drawings that I do not have permission to edit so I can't just insert code into them but I need to make work instructions). I've been scouring the internet for hours now, it seems that this thread is the only relevant/useful one at this point. No one else was trying to achieve this for similar reasons to mine.
    Thanks guys,
    Lox

  • How to read data from multiple files and append in columns in one file

    Hi Guys,
    I have a problem in appending data from files in different columns. I have attachement has file A and B which I am reading and not able to get data as in file Result.txt. Please comment on how can I do this
    Solved!
    Go to Solution.
    Attachments:
    Write to file.vi ‏13 KB
    A.txt.txt ‏1 KB
    B.txt.txt ‏1 KB

    You cannot append columns to an existing file. Since the data is arrange line-by-line as one long linear string in the file, you can only append rows. A new row needs to be interlaced into the original file, shifting everything else. If you want to append rows, you need to build the entire output structure in memory and then write all at once.
    (I also don't think you need to set the file positions, it will be remembered from the last write operation.)
    Unless the files are gigantic, here's what I would do:
    (Also note that some of your rows have an extra tab at the end. If this is normal, you need a little bit more code to strop out empty columns. I include cleaned up files in the attachment. I also would not call them A.txt.txt etc. A plain A.txt is probably sufficient.)
    EDIT: It seems Dennis's solution is similar )
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Write to fileMOD.zip ‏6 KB
    MergeColumns.png ‏6 KB

  • How do I delete photos and photo albums from my iPhone? The instructions given do not work. No "delete" symbol appears next to the album name, and no trash can icon appears below most of the pictures the computer just put on my new iPhone 4.

    How do I delete photos and photo albums from my iPhone 4? The instructions given do not work. No "delete" symbol appears next to the album name when I press "Edit," and no trash can icon for me to click appears below most of the individual photos in the albums the computer just loaded on my new iPhone 4. When I synced the new phone the computer added these photo albums without permission from me. They are now taking up about 3 GB of memory on my phone. I would like very much to get rid of these photos from the phone. How do I do this?

    To delete photos from your device
    In iTunes, select the device icon in the Devices list on the left. Click the Photos tab in the resulting window.
    Choose "Sync photos from."
    On a Mac, choose iPhoto or Aperture from the pop-up menu.
    On a Windows PC, choose Photoshop Album or Photoshop Elements from the pop-up menu.
    Choose "Selected albums" and deselect the albums or collections you want to delete.
    Click Apply.

  • Can I import HTMLs from inside the project and use as portlet page ?

    As you know, I am using Java Studio Creator 2 Update 1 for my current portal project. I have created JSR-168 JSF Portlet Project for my portlet development.
    As I have some html pages ready for my development,
    Can I import HTMLs from inside the project and use as portlet page for my project?
    I did the followings steps:
    1: In side the project - File -> Add Existing Item -> Web Page ( imported test.html page from my local folder)
    2: Let it convert some of the tags for me ( so now it becomes - �test.jsp� )
    3: Set it to initial view.
    4. A default portlet page � newPortletPage.jsp is still there with no initial view.
    Now after doing this, No Visual Designer and Properties window available to for that �test.jsp� page. Though it allowed me to �build� the project successfully.
    When I build and run the portlet application, got the error message �Error occurred in portlet!� on Pluto Portal. Please advice.

    You do not open fcpproject files. You don't double click or anything else. The files have to be in the correct folder structure in the Final Cut Projects folder and the application opens them automatically. Can you post screen shots of the Final Cut Projects folder and its location.

  • I would like to see and access the correct sound patches from my E-mu mps orchestral plus from inside of logic express.

    I would like to see and access the correct sound patches from my E-mu mps orchestral plus from inside of logic express.
    Right now , I have access to some of the sound files but most are missing and all are incorrectly labeled.
    Is it possible to ("Library") these sound files or access them from logic?
    Thanks
    J

    HI,
    I'm not quite sure who you think you are addressing here with your idea but this is a user to user forum. Apple don't come here.
    If you want to offer ideas or feedback to Apple, it would be best for you to do it here:
    http://www.apple.com/feedback/logic-pro.html

Maybe you are looking for

  • My iphone 3 is no longer syncing with itunes.  i amgetting an eror message--42110 every time I open itunes

    When I plug my phone into my computer, and I Tunes opens, I get an error message -42110.  It also appears to be syncing but is not.  I removed all I tunes programs and reinstalled I tunes but it happened again.  Help please.

  • Verint recording failing on new sip phones

    We are using old-school Verint recording system (uses CiscoTSP.exe client on server and Application user with control of phones). We were running Callmanager version 9.1.2 with Cisco 7961 phones. We upgraded to callmanager 10.5.2 and got the recordin

  • Ati and Apple

    Could find appropriate forum so I hope this one is ok. Do you guys think, that Apple will put new GPU Ati X1800 to the upcoming macbook pro 17"??

  • Create subVI from single wire

    This must have been dealt with somewhere, but I can't find it and before I submit it as a suggestion or report it as a bug, here it is: If I select a piece of wire and go to Edit>> Create subVI... nothing happens. I would expect a Vi created with an

  • BridgeTalk isn't working...

    Last night I created a bridge script that sends a message to photoshop to open a certain file. And it worked. This morning I rebooted and it doesn't work. I get an error message saying that BridgeTalk has no constructor?!? Then I tried photoshop.exec