Dynamic TextField (with content in the chain) compiles on PC, dies on Mac.

I have banners that have a large copy in an auto-scrolling movieclip.

The drive works just dandy on a PC. When I have a co-worker use the same file, it turns off - nothing load in the TextField.  Worse, is that on a PC, the .swf scrolls to the end very well. On a Mac (Safari) the end of the copy does not stop the scroll bar.

Here's the code used (on the main timeline):

import TextField.StyleSheet;

var styles = new TextField.StyleSheet ();

styles.parseCSS (css);

styles.setStyle ('body', {fontFamily: "Arial, Helvetica, without serif', fontSize: '9px', color: '#000000', leading:'-1px ;'});"})

styles.setStyle ('h1', {fontFamily: "Arial, Helvetica, without serif', fontSize: '9px', color:' #3870B 7 ', fontWeight: 'bold'"});

styles.setStyle ("li", {fontFamily: "Arial, Helvetica, without serif', fontSize: '9px', color: '#000000', marginLeft:'-20px'});"})

styles.setStyle ("subBul", {fontFamily: "Arial, Helvetica, without serif', fontSize: '9px', marginLeft: '38px'"});

styles.setStyle ("subBulPad", {fontFamily: "Arial, Helvetica, without serif', fontSize: '9px', marginLeft: '48px'"});

styles.setStyle ("a", {fontFamily: "Arial, Helvetica, without serif', fontSize: '9px', color:' #424FA5 ', textDecoration:" underline", fontWeight: 'bold'});

var copy: String = "copy of title < h1 > < / h1 >.

+ "< br > < p > < /p > chapter.

+ "< li > Lorem ipsum dolor sit amet, in nec, nunc lectus eget arcu duis, natoque proin quam non quis diam, not lorem curriculum to, EU phasellus ac in nulla pulvinar and.» Maecenas feugiat aliquam bibendum euismod, integer mi vivamus aliquam odio, lobortis sit aliquam, proin vitae purus placerat mauris nonummy potentialit vel sapien condimentum euismod. DUIs and sint laoreet condimentum dignissim orci ac, potentialit mi taciti no cum all over, ut etiam lorem sed erat aenean. Fitness wisi molestie lectus whole, felis sed elementum a molestie venenatis lorem, dictum suspendisse odio. Restore euismod erat, bibendum amongst gay tempor lobortis arcu. Lorem lacus risus non turpis sed felis, potentialit vivamus turpis. Libero wisi erat, tempus, total in sit vitae nonummy nec, nec nec restore restore amet taciti cras lectus. Nam AC massa vestibule, natoque etiam nec phasellus lobortis so. Interdum tristique fitness, vestibule vel, gravida vel, luctus laoreet varius sed phasellus quis a vehicula. CRAs torquent, magna tristique congue arcu vestibule was. ID netus platea lacus orci, surpassing in mauris purus practice. < /li > ".

+ "< li > amongst amet mauris ac. HAC nibh in sold, vel elit a fringilla quam aenean lectus. Aenean in dui. Anchor mi ut sit is enim. Quis curabitur vestibule to the vestibule libero, and not. Nulla tempus ligula id augue curae, ultrices adipiscing total dolor venenatis diam, neque vel aliquam ac sem cum id say aenean sem risus amongst vestibule aliquam blandit wisi. < /li > ".

+ "< br > < p > < /p > chapter.

+ "< p > < / p >"

closedCopy();

function closedCopy() {}

var contentHeight = copy.length/3.55;

var copyContent:TextField = copyMC.scroll_content.createTextField ("copyContent", this.getNextHighestDepth (), 0, 0, 265, contentHeight);

copyMC.scroll_content.copyContent.multiline = true;

copyMC.scroll_content.copyContent.selectable = false;

copyMC.scroll_content.copyContent.wordWrap = true;

copyMC.scroll_content.copyContent.styleSheet = styles;

cH = contentHeight;

copyMC.scroll_content.copyContent._height = cH;

copyMC.scroll_content.copyContent.html = true;

copyMC.scroll_content.copyContent.htmlText = isi;

};

* This is a condensed version of the script, but the key is here

I spent a ton of time searching to see if anyone else has had a similar problem and it doesn't look like it, so any suggestions as to why this goes out on a Mac (compilation and view) I would really appreciate it.

Thank you!!

After sleeping on it for a bit, I came to this approach different, removed the

var contentHeight = copy.length/3.55;

and contentHeight in the createTextArea (which is now only about 20)

and added in

copyMC.scroll_content.copyContent.autoSize = true;

that worked perfectly.

Thank you!

Tags: Adobe Animate

Similar Questions

  • Question of dynamic textfield with some specific device fonts

    Hello!

    I am facing a serious problem here, and any testing I try to do, led to no solution...

    I have a few dynamic textfield with assigned "Arial Unicode MS" font in Flash CC2014, and "use device fonts" for anti-aliasing settings.

    These textfield are powered by xml.

    Everything works fine in Flash CS6, BUT when I publish a SWF with CC2014, the textfields do not show the "Arial Unicode MS", but something more resembling a police 'Times '. Nothing like "Arial" anyway... When I load the fla in CS6, no problem. Even if I re-record the fla with CS6, as soon as it is loaded in the CS2014, the published SWF shows the same 'Times' of fonts.

    I know that some of you have already faced this problem, but I have yet to see any solution.

    Is this a bug in CC2014? Is there a solution? (except the CS6 FLAS to edition )

    Thanks in advance for your help...

    Hello

    There seems to be a difference in the name of the font family specified via the Panel properties and the police that gets applied on the field of text in Swf (for specific fonts only). This difference is causing police to the rescue of a default one instead of use the one specified. We will connect this as a bug and study in their own country.

    In the meantime, you can add this feature in your fla files to manually specify the correct font family name through Actionscript.

    import flash.text.TextFormat;

    import flash.text.TextField;

    fixFont (txtLabel, "ABCD 1234! @# $") //txtLabel is the instance name of text on stage"

    function fixFont (myTextInstance:TextField, myText:String) {}

    myTextInstance.text = myText;

    var tf:TextFormat = myTextInstance.getTextFormat ();

    TF.font = "Arial Unicode MS";

    myTextInstance.setTextFormat (tf);

    }

    I hope it works for you.

    -Mabrouk

  • Discoloration/output dynamic textfield with AS3

    Hi all

    As the title, how do I exit/fade dynamic textfield with the mere knowledge of AS3? I have 3 textfields on stage, instance names: txt_1, txt_2, txt_3

    Every 10 seconds, I'm going in the new channel to all 3 textfields. I would like to improve the Visual for them, thinking that it would be better by adding in fading in and out effect when new channels are passed in.

    passTimer = new Timer(10000);
    passTimer .addEventListener(TimerEvent.TIMER, passTimerFn);
    function passTimerFn(e:TimerEvent)
                   {
         getNewString();
         txt_1.text = myStringArray[0];
         txt_2.text = myStringArray[1];
         txt_3.text = myStringArray[2];
    }
    
    
    

    Thank you

    Zainuu

    You can use tweener or the tween class flash or any other class of part 3.  I (and many others) prefer tweenlite by greensocks.

    and Yes, you need to integrate your fonts no matter what you use.  You can view a textifled with a less than 1 alpha, unless the police is incorporated.  There is no exception.

  • Consolidation of records duplicated with content in the files Panel

    A duplicate folder was created in my site, eventually giving me two files of the same name and with a different content. I would like to consolidate both in a single folder, but I fear that I would break the link to the pages. In addition, I'm afraid to test as I have more than 30 pages in a single site. Any advice?

    Repeat fees.  Download a new copy of your files to remote server site.  Name the NEW SITE.

    Remove your old site to your hard drive files.

    Nancy O.

  • Dynamic LOV with data to the Web Service Control

    Hi all

    I am currently working on JDeveloper 11.1.1.9.

    I want to implement a form of creation, for two of my form fields do correspond to LOV.

    The first is a LOV returned by a method of the web service (see back picture1) call, it works perfectly (see picture0).


    picture0:

    Capture1.PNG

    The other is represented by the nested list of the object returned by this method ( see picture1to taskPurposeList).


    Picture1:

    Capture.PNG



    By choosing a value in first af:selectOneChoice , I want to access the nested list in the second af:selectOneChoice.

    I have tried to map the second field directly to this list, but it is not updated (see image2).



    Capture2.PNG


    You have an idea on how to apply it?


    Thank you very much


    Leslie

    Hi all, sorry for taking the trouble,.

    I finally found the solution after several days of reflection and try.

    It is, when you select a value in the select list is not to update the current row of the iterator.

    Only, I've defined the current line of my iterator (mapped to the first list) parent according to the selected code in the list and update the second list like this:

    DCIteratorBinding taskTypeLOVIterator = ADFManagedBeanUtil.findIterator ("TaskTypeLOVIterator");

    Rank [] allRows = taskTypeLOVIterator.getAllRowsInRange ();

    for (line: allRows) {}

    {if ((Row.GetAttribute("ID").) {(Equals (valueChangeEvent.getNewValue ()))}

    taskTypeLOVIterator.getRowSetIterator () .setCurrentRow (row);

    }

    }

    AdfFacesContext.getCurrentInstance () .addPartialTarget (soc2);

    Setting the current row of the iterator parent automatically updated the second list.

    Thank you

    Leslie

  • SQL statement on the point - problem with commas in the chain

    I have a simple report that all the titles of the work of the groups registered in our database.

    I pass the title to an element of the apex, then on a second list of page records that correspond to this title of work to help:

    and ed.ede_job_title =: P35_JOB_TITLE

    If there is that a comma in the title of the post report finds records that match the string until the comma does not appear the full string.

    Therefore 'Project Manager, Operations' match all records in 'Project Manager'.

    When there is a space left in the title of the post the report also displays the jobtitle without the space left.

    My apologies if this is answered elsewhere, I have a search.

    In the definition of report link, put the value of the column between backslashes.

    Scott

  • The assignment of text to dynamic textfield

    How would you assign text to a dynamic textfield with code (html5)?

    The same way you do in a document of the ActionScript.

    this.myTexfield.text = "I am the model of a modern major-general.";

  • How to fill a dynamic role with the members of the ad group

    Hoping someone can help with that I don't know where to start.

    I want to build a dynamic role that pulls in the members of certain groups from Active Directory.  Let's say I have two Active Directory groups: GROUPA and GroupB.  My goal would be to have the dynamic, filled with each group the user role.

    Someone at - it an example of SQL code snippet they could share?

    You can build this quite easily with the wizard:

    Which generates the SQL code:

    (UID_Person in (select UID_Person from the UNSAccount join UNSAccountInUNSGroup on UNSAccount.UID_UNSAccount = UNSAccountInUNSGroup.UID_UNSAccount where (UNSAccount.UID_UNSRoot = no * YOUR UID FIELD *') and (UNSAccountInUNSGroup.UID_UNSGroup in (select UID_UNSGroup in the UNSGroup where cn = is placed '))) and (UID_Person in (select UID_Person in the UNSAccount join UNSAccountInUNSGroup on UNSAccount.UID_UNSAccount = UNSAccountInUNSGroup.UID_UNSAccount where (UNSAccount.UID_UNSRoot = no * YOUR UID FIELD *') and (UNSAccountInUNSGroup.UID_UNSGroup in (select UID_UNSGroup in the UNSGroup where cn = GroupB')))))

  • stacking of several html5 as "div backgrounds" videos sent behind in Z-index with content before

    The best example I can give you is www.greygoose.com.

    The same way they have their articles on their stacked homepage, pictures sent on the z index with content in the face, I want to achieve the same with html5 video instead of a fixed image several 'objects '. I know how to include html5 videos and could easily stack on top of each other, but his envoys back and writes the content before and now have coordinated regardless of the width of the window (width = 100%) or zoom in the browser of the user (if its more or less than 100%). An example of 4 would be perfect and even better if it could include the "floating" footer navigation (which of course has a fixed = position; bottom = 0 and left = 0 of a positive Z-index), but I'm also interested him growing as it does when it reaches the bottom of the page.

    Thanks for the ideas, pointers, helps and of course answers

    Here you will see a number of tutorials that can help you http://devfloat.net/jquery-parallax-scrolling-tutorials/

    Another example brought pure CSS Parallax demo by Keith Clark with the tutorial here Pure CSS Parallax websites by Keith Clark

    Otherwise, Google the topic.

  • Using a control of the chain with the Enter key, return * and * allowing repeated identical entry

    Hi all

    There must be a simple solution for this, but it's Friday afternoon, and my brain is not cooperating.

    I create a simple terminal through which a user can interact with an instrument. My question is about the only query string control. The button send and the Terminal Table are here for reference.

    Here is my desired behavior:

    (a) the user types a command in the field of the query, tape input or return. An event is triggered, and the request is sent to the instrument. The focus remains on the field in the query.

    (b) with any other action the interface user, the user types Enter or return again and again, by triggering an event that sends the request to the instrument every time Enter or return is typed. The focus remains on the field in the query.

    Here's what I have:

    This allows for one), but fails to b). The reason is, because the value of the field in the query has not changed, change value event does not fire when the user starts to spam keys enter or return. There is a way around this, as suggested by this post. Here is the solution in a few words:

    Instead of looking for the change in the value of the query command, the event fires for each key event to the bottom of the control and resembles a pressure of enter key or return. What attracts the user action, even if the content of the field of the request have not changed. The problem with this approach is that, when this event fires, I need to read the value of the query string order and send it to the instrument, but the value I get via the local Variable query is the old value, probably because the key down event fires before the value of query is saved as changed. Is there a way to programatically "enter" the contents of the control channel so it is recorded as a change in value, until I have the question via a local Variable? Is there a different way I should go about it? I'd rather not do anything that bound the input keys or return to this particular area, since I have many other UI elements that need these keys in my program.

    If not, is there a way to make the control of the fire 'Change of value' query string event when the user presses enter or return even if the value has not changed?

    Thank you for your comments!

    I thought about it.

    (1) control of the string (query) a value of update while typing.

    (2) save the key event down to the control of the chain. If the entry or return was pressed, send the state machine to the State 'send request '.

    (3) in the application 'send' State read control channel via the local Variable value.

    This is the desired behavior to allow the user repeatedly hit entry or return to regularly send a command, and the user can also type in a new order and send it by pressing enter or return.

    Thanks to all who have helped me this something to think about!

  • Dynamic content on the 2nd landing page (confirmation page)

    I read a few posts, but the explanations were not very clear to me, so looking for direct help.

    I have an email which redirects the customer to a landing with a form page.  The dynamic content on this page works as expected.

    By submitting the form, the client is redirected to a 2nd Eloqua landing page (a 'Thank you' page).  On this page, dynamic content does not work.

    First of all... WHY HE JUST DOESN'T WORK?  They are two Eloqua landing pages, if the cookie is there and the first form could easily pass the visitor/contact/email info, so that the content of the 2nd landing page works as expected.  This should be a built-in feature that shouldn't need of extra effort.

    As it is, I tried to implement a population form Cloud Connector (so far unsuccessfully), add a form hidden on the 2nd page of launch.

    It seems that people have got it works, but the complete set of steps is not clear.  Help!

    Thank you

    Jim

    You need:

    1. A form to the email address field
    2. A processing step "Contact - Form Data Update" that maps Email address Source field-to-field target E-mail address
    3. The bottom of treatment in the left panel is a button '@'.  It must be mapped form field Email Address to the address Email of Contact field
  • My footer will not dynamically move when you add content to the body.

    I built a model with my envelope header and footer protected as unchangeable. I applied the template to all pages except the index.html page. When I add content in the content body inside a div box there will be blood in the area of the film instead of pushing down. So my menu wrap and footer must move down that I dynamically add content. How can I solve this problem?

    I understand that if I use a regular div tag and not an APdiv tag, I added the content it will then push the footer down. Sorry I am new to Dreamweaver.

  • You want to print the contents of the textfield.

    I want to print the content of the text field with a button. I know how to print a clip. If I turn the text field in a clip, I can't type anything in it, and then I need to print an empty textfield... Help, tip? Thank you.

    There should be no problem converting your textfield to a movieclip and then by typing in it.  you do not really change it to a movieclip, you just add it to the timeline of the movieclip.

    but your textfield must already be in a displayobjectcontainer and so can be added to your printjob.  for example, if your textfield (for example, tf) is on the timeline in the scope, you can use:

    var pj:PrintJob = new PrintJob();

    b.addEventListener (MouseEvent.CLICK, f);

    function f(e:MouseEvent):void {}

    If (pj.start ()) {}

    try {}

    pj.addPage (this, Rectangle (tf.x tf.y tf.width, tf.height)) of new;

    } catch (error) {}

    handle the error

    }

    PJ. Send();

    }

    }

  • Effects of lightsaber using the dynamic link with Premiere pro and After Effects CS4

    Hi all

    I'm working on a video project and that you want to add a lightsaber effect, but a layer which is suppose to be transparent isn't using dynamic links.

    I shot the video in my head, and everything else hidden.  I made a flash body to put my head on.  Now I know how to make a lightsaber in After Effects CS4. (starting with comp 1 with videos making a white solid layer, and then using the tool pen to make the sword.  Then copy the sequences video and place it in comp 2.  Then to return to comp 1 and remove the video sequences. then on comp 1 making a SOLID BLACK LAYER {that's the problem} and place it under the layer of white.  Then duplicate the white layer 3 times.  Changing each feather white layer mask to make the glow.  so going to comp 2 and take the 1 model and her nest to model 2...  Then change the blending mode of the model nested 1 to the screen.

    The main timeline in Premiere Pro CS4 and I have the video layer 1 to Photoshop file which is pink and the background of this project.  I made a dynamic link to After Effects and copied and pasted the video images and flash to the comp.  Here, I made the lightsaber.

    That is the problem.  The model of dynamic links with video, flash and the lightsaber will not show my pink background in Premiere Pro shows him my video, flash and lightsaber but the background is black.  In case of problems, I noticed if I turn off the LAYER BLACK for the lightsaber effect, I see my pink background with video and flash sequences and the glow of sabre, but my blue lightsaber color will not appear.

    Do more problems I set photoshop to lightsaber model file and I see the video, the flash, the lightsaber but I think because the background is pink I don't get a color glow to the sword (vilot color)

    If the layer of black is supposed to be transparent, so why can't see my background in Premiere Pro using dynamic links?

    appreciate any help I can get,

    Thanks in advance.

    Mr. PETER K

    P. S. - one-way I kinda had this work was I took one of the masks of white and copied and pasted layers in nested layer comp 1.  Adjusted to the width of the mask and the pen and I got a glow of blue ok.  You just can't mask width too because it shows a lot of black.  It is not as good as I want and I hope someone can help...

    Thank you again...

    Well, blend modes don't create transparency, so the behavior is correct - because technically, the background of the model is ignored for the mix of operations, in areas where there are no content below for the mix, only the layer of black color is used. You create transparency good, real luminance based on unmultiplying, that can be done with the Knoll Unmult plugin Red Giant Software (free) or the effect of changing the channel of the AE monitoring bey a color delete effect.

    Mylenium

  • Why do the mouseout/mouseouthandler() and mouseOver not work correctly when you use a dynamic textfield?

    Hello

    I made a movieclip with instance name: cs_btn

    Inside of that movieclip, I have two layers. Bottom and top button dynamic textfield.
    In this scenario, I have a 'more' 'out' 'down' and 'up' labels image.

    It works fine, but when I use a dynamic textfield, the passage of the mouse and the MouseDown event are triggered
    also when you hover over the textfield object. Even when I turned the selectable property.

    Any idea of what is the cause?

    In the main timeline, I made this script:

    function cs_buttonEvent(event:MouseEvent):void {}

    trace (Event.type);

    Switch (event.type) {}
    case "mouseDown":
    event.currentTarget.gotoAndPlay ("down");
    break;
    case "mouseUp":
    event.currentTarget.gotoAndPlay ("up");
    break;
    case 'mouseOver ':
    event.currentTarget.gotoAndPlay ("over");
    break;
    case 'mouseout/mouseouthandler() ':
    event.currentTarget.gotoAndPlay ("out");
    break;
    by default:
    trace ("mouse five event");
    break;
    }

    }

    cs_btn.addEventListener (MouseEvent.MOUSE_DOWN, cs_buttonEvent);
    cs_btn.addEventListener (MouseEvent.MOUSE_UP, cs_buttonEvent);
    cs_btn.addEventListener (MouseEvent.MOUSE_OVER, cs_buttonEvent);
    cs_btn.addEventListener (MouseEvent.MOUSE_OUT, cs_buttonEvent);

    You can assign the check fake gold button mouseChildren property the
    target in the event handler.

    function cs_buttonEvent(event:MouseEvent):void {}

    If (event.target! = cs_btn) return; bug out

    trace (Event.type);

    Switch (event.type) {}
    case "mouseDown":
    event.currentTarget.gotoAndPlay ("down");
    break;
    case "mouseUp":
    event.currentTarget.gotoAndPlay ("up");
    break;
    case 'mouseOver ':
    event.currentTarget.gotoAndPlay ("over");
    break;
    case 'mouseout/mouseouthandler() ':
    event.currentTarget.gotoAndPlay ("out");
    break;
    by default:
    trace ("mouse five event");
    break;
    }

    }

Maybe you are looking for

  • HP W2207h LCD MONITOR - HOW TO DISABLE the OSD LOCK?

    MY EXTERNAL, the HP W2207h LCD FLAT SCREEN MONITOR WORKS FINE with the exception of THE MENU FLASHING / screen EVERY 3 SECONDS AND a WHITE SIGNENT THAT READS, ' LOCK OSD.  I TRIED: HOLD THE MENU AND THE POWER BUTTON / STOP DOWN TO NOTHING IS THERE FA

  • iMac g5 problem with el capitan iCloud email

    El Capitan after installation I can't simply the iCloud email author; If I go to my e-mail iCloud, I have to manually switch outgoing messages to another e-mail server to transmit.  I tried to reinstall iCloud in the preferences.  No help.  Can someo

  • To find the first Summit for data channel

    Hey guys,. I need a little help. I wrote a script to process some data. Basically, what the script does is calculate the linear accelerations peak, peak of the angular speeds, HIC values and IF. But there is a problem with my script that I need help.

  • Do not change the BCD

    A friend brought me his Acer Aspire S3 because he wasn't starting.   I found that the hard drive was dead. We bought a new Kingston SSD 240 GB and got the ACER recovery media.   The computer sees the new hard drive and the recovery media seems to cop

  • We have been hacked?

    We arrived at the office this morning and all the PC (Ctrl Alt Del screen) says that the account has been disabled, and to contact the administrator, we cannot immediately to the prompt etc then we are stuck! Help, please