Responsive animation with script - not ok in Wordpress

Hi,
I ahve been following Adobe Product Manager Sarah Justine's tutorial (http://sarahjustine.com) on how to make an animation responsive. She has created a script that seems to work perfectly when you resize your browser or use a handheld device. Script is inserted into the "Stage" component:
(choose compositionReady in dropdown and add code below)
var stageHeight = sym.$('Stage').height(); // Set a variable for the height of the stage
sym.$("#Stage").css({ // Set the transform origin so we always scale to the top left corner of the stage
"transform-origin":"0 0",
"-ms-transform-origin":"0 0",
"-webkit-transform-origin":"0 0",
"-moz-transform-origin":"0 0",
"-o-transform-origin":"0 0"
function scaleStage() {
    var stage = sym.$('Stage'); // Set a reusable variable to reference the stage
    var parent = sym.$('Stage').parent(); // Set a reusable variable to reference the parent container of the stage
    var parentWidth = stage.parent().width(); // Get the parent of the stage width
    var stageWidth = stage.width(); // Get the stage width
    var desiredWidth = Math.round(parentWidth * 1); // Set the new width of the stage as it scales
    var rescale = (desiredWidth / stageWidth); // Set a variable to calculate the new width of the stage as it scales
// Rescale the stage!
           stage.css('transform', 'scale(' + rescale + ')');
    stage.css(  '-o-transform', 'scale(' + rescale + ')');
           stage.css('-ms-transform', 'scale(' + rescale + ')');
    stage.css('-webkit-transform', 'scale(' + rescale + ')');
           stage.css('-moz-transform', 'scale(' + rescale + ')');
    stage.css('-o-transform', 'scale(' + rescale + ')');
    parent.height(stageHeight * rescale); // Reset the height of the parent container so the objects below it will reflow as the height adjusts
// Make it happen when the browser resizes
$(window).on('resize', function(){
           scaleStage();
// Make it happen when the page first loads
$(document).ready(function(){
    scaleStage();
My problem is that I use Wordpress and the Edge Animate plug-in and when I insert the animation there the script seems to do nothing. I'm not a coder so I have no idea what might be happening. I'm going to post this on the Wordpress plug-in support page and see is the developer has any ideas. I'll report back about that.
Any help would be greatly appreciated since this script seems very useful!
Regards
Johan

Ok, so the creator of the script, Sarah Justine came up with this solution:
I was able to get this to work, but not using shortcodes.
Follow the same method of uploading an OAM as you normally would. We’re going to use HTML instead of shortcodes, and Edge Suite will still populate your page with the necessary files.
Instead of the shortcode, use this:
<div style="width:100%; height:auto"><div id="Stage" class="EDGE-78729757"></div></div>
You can change the width to be whatever % you want and add some more inline CSS. Grab the class name from whatever Edge Suite reports from the composition.
I can't get this to work sadly. Continuing discssion with Sarah.
The WP plug-in developer came up with this change to the actual script:
The fix is actually quiet simple, just remove the # in front of '#Stage' within
sym.$(&quot;#Stage&quot;).css so it says sym.$(&quot;Stage&quot;).css. That should fix the whole thing and it should also work with shortcodes. Let me know if that solves it for you.
I couldn't get this to work either! Discussion continues.
Johan

Similar Messages

  • Responsive animation with background color that spans 100%

    I've create a responsive animation with simple background colors. I'd loe for the background colors to bleed 100%, but can not seem to find a way to do it easily. I've actually had to layer two animations on top of each other and just js. (this site is in development: http://newsite.insightpd.com/what-we-do/ ) I'd love for the red and gray to go 100% while still being centered and staying responsive. What am I missing? Any advice would be greatly appreciated.
    PS, I'm using the edge plugin for wordpress and am just uploading the aom file.
    Thanks in advance for your help!

    Did  you incorporate % widths during the creation of the animation?
    Nice job btw
    Also your template is using fixed widths for that section that houses the Edge Animate - you also need to adjust for % in your WP template css (see capture).

  • Firefox is taking a long time to open. When it does open, I get a pop up box with "Script not running". Bookmarks on my tool bar don't load. Scrolling is unreliable--it will stop in the middle of a page

    What is causing the "script not running"? Why so long to open? Etc.

    Hi Donekes,
    First off I need a little more information to help with troubleshooting.  You say that an error occurs when you "try to re-open the same problem app before the old session completely exits".  Does the error have an error code or dialog display?  It may also be possible to receive an error log.  Here is a knowledge base that explains how to retrieve error logs.
    http://digital.ni.com/public.nsf/websearch/54E361E3FF477EC186256C320068184F?OpenDocument
    If you are able to get that information then please post.  Have a good day.
    Brian K.

  • EVENTS WITH SCRIPTS not visible

    Hi,
    I am not able to see the events with scripts in the SHOW drop down.
    How can I get the above to have the calculations done?
    the version of the designer is 8.0
    Regards

    Hi,
    When it displays in the “default Calendar view” ,it shows "Event Permissions" option under EVENTS ribbon, this option can set permissions for a single
    event. Click
    ” List Settings “
    option under CANLENDAR ribbon, the "Permissions for this list” option can set permissions for the entire calendar.
     When it displays in the "All Events" view, it shows "Shared With" option both 
    in the ITEMS and LIST ribbon. This option under the ITEMS can set permissions for a single event. This option under the LIST can set permissions for the entire calendar.
    Best regards,
    Wendy 
    Wendy Li
    TechNet Community Support

  • Action with script not working today!

    HELP! I have an action with a script in it that I use daily.  Today I get an error message that says
    Error 8800: General Photoshop error occurred. This functionality may not be available in this version of Photoshop.  -<no additional information available> Line:18 -> AD.saveAs(saveFile, saveOptions, true, Extension.LOWERCASE);
    What do I do next??  As far as I know nothing has changed on the computer since yesterday morning when it was fine.
    Photoshop CS4 on an Imac.
    Okay, I figured out how to attach a screen shot.

    This error is generated by the script because it can not save the document for some reason. Without seeing the script it is hard to give you an answer.
    It could be that the document you were working on had not been saved previously, so there was no path.

  • Unable to rotate pdf with script(not allowed error security settings prevent  error)

    I am using a script to rotate each pages in pdf file when clicking a button. I have added a script to rotate file in the rotate button's click event as a javascript.It is working in acrobat but not in adobe reader. Pleae see the script
    nStart = 0;
    nEnd = this.numPages - 1;
    nRotate = 90;
    try
    if (this.numPages > 0)
               this.setPageRotations(nStart , nEnd , nRotate)
    catch(e)
    app.alert("Processing error: "+e)
    But I'm getting this  error in adobe reader not in acrobat.'not allowed error security settings prevent access to this property or method'. What is the problem. Please anybody tell me.

    I have got it working usig by installing a script on the local machine. Thanks

  • Problems with script

    hello to all
    i have a little problem with my script
    I ask you if there is the possibility to activate randomize order in a text animator with script
    i have a check box and i try with this function that is
    function make_random(random){
            if(random){
                var animator1 = layer.Text.Animators.addProperty("ADBE Text Animator");
                var selector1 = animator1.Selectors.addProperty("ADBE Text Selector");
                animator1 = animator1.Properties;
                animator1.addProperty("ADBE Text Randomize Order").setValue([on]);
            }else{
    but do not work
    can someone halp me please?
    sorry for my english

    See my reply on your other post:
    http://forums.adobe.com/thread/1312888?tstart=0

  • Downloading via XHR and writing large files using WinJS fails with message "Not enough storage is available to complete this operation"

    Hello,
    I have an issue that some user are experiencing but I can't reproduce it myself on my laptop. What I am trying to do it grab a file (zip file) via XHR. The file can be quite big, like 500Mb. Then, I want to write it on the user's storage.
    Here is the code I use:
    DownloadOperation.prototype.onXHRResult = function (file, result) {
    var status = result.srcElement.status;
    if (status == 200) {
    var bytes = null;
    try{
    bytes = new Uint8Array(result.srcElement.response, 0, result.srcElement.response.byteLength);
    } catch (e) {
    try {
    Utils.logError(e);
    var message = "Error while extracting the file " + this.fileName + ". Try emptying your windows bin.";
    if (e && e.message){
    message += " Error message: " + e.message;
    var popup = new Windows.UI.Popups.MessageDialog(message);
    popup.showAsync();
    } catch (e) { }
    this.onWriteFileError(e);
    return;
    Windows.Storage.FileIO.writeBytesAsync(file, bytes).then(
    this.onWriteFileComplete.bind(this, file),
    this.onWriteFileError.bind(this)
    } else if (status > 400) {
    this.error(null);
    The error happens at this line:
    bytes = new Uint8Array(result.srcElement.response, 0, result.srcElement.response.byteLength);
    With description "Not enough storage is available to complete this operation". The user has only a C drive with plenty of space available, so I believe the error message given by IE might be a little wrong. Maybe in some situations, Uint8Array
    can't handle such large file? The program fails on a "ASUSTek T100TA" but not on my laptop (standard one)
    Can somebody help me with that? Is there a better way to write a downloaded binary file to the disk not passing via a Uint8Array?
    Thanks a lot,
    Fabien

    Hi Fabien,
    If Uint8Array works fine on the other computer, it should not be the problem of the API, but instead it could be the setting or configuration for IE.
    Actually using XHR for 500MB zip file is not suggested, base on the documentation:
    How to download a file, XHR wraps an
    XMLHttpRequest call in a promise, which is not a good approach for big item download, please use
    Background Transfer instead, which is designed to receive big items.
    Simply search on the Internet, and looks like the not enough storage error is a potential issue while using XMLHttpRequest:
    http://forums.asp.net/p/1985921/5692494.aspx?PRB+XMLHttpRequest+returns+error+Not+enough+storage+is+available+to+complete+this+operation, however I'm not familiar with how to solve the XMLHttpRequest issues.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Safari tries to open video files with script editor!

    Help! I can't find a way to change Safari from opening video files online, such as short animations, with script editor. SE can't open the files, so they just can't be viewed since preferences has no place for me to change this weird default. Any ideas?

    Here are two examples, one a video clip and one an audio file:
    http://shop5.gospelcom.net/epages/AIGUS.storefront/434d2def0141d417272045579e790 659/Product/View/30&2D9&2D019
    this one has the link to the clip as a preview about halfway down the page.
    http://www.mastersofpediatrics.com/cme/cme2004/lecture16_1.asp
    This one has an audio file at the top of the box, it says the audio is 31 mins.
    Both of these the computer tried to open with Script Editor.
    Thanks, Rachel

  • Animation not playing in wordpress theme

    Hey all.
    I created an animation with Adboe Edge and wanted to include it my wordpress theme, but I can't figure out how.
    When I upload the .html file it plays perfectly in the browsers. But not when I am trying to include it in my .php file.
    Is there something special I have to consider when including into wordpress themes?
    I use:
    <?php include 'introplay.html';?>
    in front-page.php and it also displays som tekst, but not the animation.
    Seems like the script is not loading. Do I have to put the script in a nother place?
    Thanks for your help

    Have you tried this WP plugin - http://wordpress.org/plugins/edge-suite/
    Darrell

  • Script that initiates animation with mouseover

    I need some help with the following: I want to initiate a Flash Professional CS4 animation with a mouse over script. I have tried to use a component called mouseover that is an Adobe extention. I think I have done everything right in Flash but it doesn't work after making the .swf movie. Seems like it would be a pretty simple script, but I am not an expert by any stretch. Any help with this would be much appriciated.

    Here's one way to do it:
    Create two layers.
    On the first layer, place a button.
    On the second layer, create a movie clip that contains your animation.  Place a stop action on frame one of the that movie clip.  Give the movie clip and instance name such as myMovieClip. .
    On the button action use:
    on (rollover) {
       myMovieClip.gotoAndPlay(2);

  • How to use Crystal Reports XI release 2 Preview with Lotus Notes  Scripts ?

    <br />Hi all,<br /><br /> How to use Crystal Reports XI release 2 Preview with Lotus Notes 7 Scripts ?<br /><br /> <br /><br />Thank&#39;s  <br />

    Hi,
    we are using Lotus Notes and Crystal Reports for preview and printing reports from our Lotus Notes Applications. We use the RDC object model. For previewing the reports we export them in an pdf-file and then start the PDF Reader to show the Preview. This works fine.
    But with Crystal Reports > 11 the RDC Object Model is no longer supportet, so we look for another way to preview and print our reports.
    I try to preview a report build with crystal report XI release 2 in my thick client (Lotus Notes) using java reporting component JRC, this report uses an native xml file as datasource. If the datasource is saved with the report everything works fine, but otherwise I have the following error:
    JRCAgent1 detected an exception: javax.xml.namespace.QName: method getPrefix()Ljava/lang/String; not found
    I also tried the .jars from Crystal4Eclipse. Doesn't work. When I use Eclipse to view the report everything works fine. The class QName exitsts in the jaxrpc.jar and in the xbean.jar, but only in the xbean.jar a Methode getPrefix exists.
    This is what we tried:
    Works fine with RDC. Doesn't work with JRC until now.
    Did this help you ?
    Perhaps you con help me with the JRC, because I'm a java newbee so any ideas could be helpful.
    Oliver
    <p><a href="http://www.cominform.de">www.cominform.de</a></p>

  • Flash animation with stream sound not playing in mac

    Dear all,
    I have made a 5 min animation with stream sound. Its playing perfectly in PC. But in mac, its not playing. Stream sound starts from frame 60. So mac plays the swf plays till 60 frame, after that it pauses. I tried importing different sound format (wav, aif, mp3) and tried with all sound export setting but the problem remain same; its playing only till 60. When i removed the sound, it played till end. Even with event sound, it plays till end. But with stream sound, the problem. The problem is only in mac; in pc its perfect.
    I am using VMware Mac OS x leopard in window xp for testing purpose. I tested it in laptop with mac; but the problem is same. What could be the solution?
    Thanks in advance. Waiting for solution.
    Bhushan Pradhan
    spherenepal.com

    Dear all, I solved the problem myself. The problem was with the sound driver of mac. After installing sound driver, the problem is gone. Bhushan

  • How to create a new Oracle OSB project automaticaly with script without IDE

    Hello,
    I want to create automatically an "Oracle service bus project" and an "Oracle service bus configuration project" with scripts (ANT or Maven or ...) without using IDE, without using workshop or Eclipse. I want to create automatically (ANT or Maven) just a skeleton of an OSB project witch i can use after in workshop.
    I want to create 1 "Oracle service bus configuration project" with many "Oracle service bus project" automatically (ANT or Maven or scripts) witch i can use after in workshop. How to create a new Oracle OSB project automaticaly with script without IDE ? How can i do this ?
    I'm using Oracle service bus 10.3.1
    Thank you for your help.

    Thank you for your response,
    I do not want to just create the services (proxy services and business services) but I want to create a template for 40 OSB project with the same scripts ANT/Maven.
    Template="Oracle service bus configuration project" + "Oracle service bus project" + services of 40 OSB projects
    The goal is that I have more than 40 projects to create and just the name of the projects that changes (when I say the name of the project ie the name of the OSB project, the name of proxy services and the name of business services ).
    So I want to give my script (ANT/Maven) the name of 40 OSB project and the script must generate the skeleton of the 40 projects at once time and after generation of skeleton of the 40 project, I will import them in the workshop to add manually mapping and routing and other things that differs from one project to another.
    So i want to generate automatically a skeletons of 40 OSB projects using a script (ANT / Maven) and I give to the script juste the names of the 40 projects.
    I want to create a "Oracle service bus configuration project" and "Oracle service bus project" automatically of 40 OSB projects (ANT or Maven or scripts) witch i can use after in workshop.
    I want to create one 'template' of all 40 projects in the same time, with the same directory structure (Transforlation, Business services, proxy services, WSDL .....) and all 40 project have the same transport, just the names of projects and services witch changes and i can give to the script all names of projects and services and i can give also all WSDL.
    Regards,
    Tarik

  • Troubles importing Flash 10 Animation with 3D Transform

    I am looking for any workaround/experiences for importing a Flash 10 animation with 3D transforms. Currently, doing this will wig out Captivate 4 and break the embedded animation in all sorts of ways. AS3 support in Captivate is turned on and the same animation will load and play correctly if the 3D transform is removed. All other Flash 10/AS3 possibilites work including motiosn graphs and filters.
    I find the 3D transform option of Flash CS4 to be one of the most powerful features ever introduced in Flash and would allow some incredible breakthrough design possibilities for my Captivate projects, if it would just support it! Any experiences with this issue welcomed. A bug report has been submitted also, but looking for a quicker remedy.

    Problem Resolved!
    I got this tip from Vikram (Adobe Support)
    1. Open your project having Flash Player 10 animations involving 3D transforms.
    2. Click the Edit menu and select Preferences.
    3. Select "Publish settings" under the "Project" section.
    4. Check "Animations" option under the "Externalize resources" section.
    5. Press OK.
    6. Now click the publish button.
    7. In the publish dialog, select Flash Player 10 from the "Flash Player version:" drop down.
    8. Click publish.
    (F4 preview may not work, so use preview in browser)
    Also, you may need to be wary of embedded scripted symbols as they may loose reference to the parent symbol after being embedded in yoru your CP4 project containing 3D transforms. My advice here is to try to script using as much object oriented js as possible in the main timeframe.
    I am using a combination of localConnect and ExternalInterface functions to control the 3D animation from captivate quiz buttons. This process adds a whole new level of interactivity and visual interest to your captivates!

Maybe you are looking for

  • "Open With" settings lost on reboot

    All file type associations are reset to their defaults when the machine is shut down. Where are the configuration files stored?

  • Problem with CVI blocking UART Callback

    Hi, I have been using LabWindows CVI 9.0 since a few years now and I have seen a problem that didn't blocked me until now. My LabWindows Software freezes, the code is no longer executed, when I hold a click on the interface, on a string for example.

  • How can my end user password-protect a document that has been digitally signed?

    Hello, I have seen some threads that indirectly address parts of this question, but am still left unsure about whether this process can be done - and if it can, I could use your help in understanding it - thank you. Two of our end users use digital s

  • How to convert Subvi into Labview function

    Hi, I made costum vis of UDP Read and Write using dot net functions.when i tried to Make them reentrant. It is halting the application. i want to run these vis in sepate thread. Can you please tell me how can i convert  sub vi in labview fuction(like

  • Reusing query results in PL/SQL

    I have a procedure in a package that I want to query several times using the analytical function row_number to get, say, the 5th row and the 95th row: select days_missed_negative_is_late into l_5pct from (select days_missed_negative_is_late, row_numb