Using Accordion Style text inside Flash

Looking for some ideas on how I could have text object with a link inside to display the information below the link still inside the text object. My thoughts were to use an html file inside the text object and have links that would display an accordion like text below the link. Before I start venturing in this direction, thought there may be a better approach?
Basic concept: Paragraph of text, inside the paragraph a link. When clicked the additional text appears below the link and the rest of the text pushes down, musch like an accordion style panel.
Look inside SPRY and there is nothing there.
Any ideas?
THANKS

That's because it's probably stripping the characters it doesn't like, such as HTML and formatting. Your best strategy at that point is to convert it before you send it through your script so your script tolerates it. You can try the encode() function run on your string which will URL encode it and the decode() function can restore it. Otherwise you need to replace anything your script doesn't like with something else intentionally. e.g. turn <i>italics</i> into [i]italics[/i] and then later fix it.
I myself would look at what PHP is doing. Chances are it's running the striptags function. It's just a safety measure to stop SQL injections (make code safer). But that may not be what you want. If you're at all uncomfortable with that, you'd best not do it though. You take the risk someone will sneak something in that you do not want.

Similar Messages

  • How to use an dynamic text from Flash in FlashBuilder with swf ?

    Hello,
    i'm trying to develop a game in flex builder and i got a problem with the dymanic text i've imported from flash. I want to insert a scoreboard in my application and for doing that i should use dynamic text in flash. I create a dynamic text in flash and then a import it to Flash Builder in a movie clip, and i called the dynamic text "Score". Now i've tried to use the "Score" variable to change the value of the dynamic text box un my flash builder application, but it doesn't change anything.
    I read somewhere that i've got to use the score.text value to change the number of my score but that doesn't works because Flash Builder tells me that this sort of variable don't contain the .text value.
    Thank you for trying to help me.
    bye.

    Thanks Ned,
    I always welcome learning something new.
    I did not know creating a new keyframe,
    creates a new instance.
    Yes, I had used the same dynamic text field instance name in
    numerous, new layers (great observation).
    With the objective to display the User's name throughout
    the timeline (on and off)...
    I'll attempt to paraphrase your solution;
    Use a single layer to display the dynamic text field.
    Extend this layer's timeline throughout the movie, or end use of the dynamic text field.
    Help with this one ??
    Set the visible properties to true or false as need through out the timeline.
    ( Does require an AS3 ? )
    I'll give that a try.....
    ~~
    Side of effect of using the above solution;
    The SWF in it's attempted state, uses the dynamic text field instance, in
    different places, different text sizes, on the stage, throughout the Movie.
    (i.e. the User's first name appears in different sentences...)
    Per the solution above,
    I believe I will be limited to One location, one format setting.
    Is this assumption correct?
    I can make this work from a display / Movie point of view.
    However, your first VAR concept, noted above, might be
    worth exploring should more flexibility be required.
    Thanks for making the time to coach...
    D-

  • Formatted text inside flash inputField

    how can I save formatted text in flash and maintain style(ie color, size, bold, italics)
    example:
    in the input field I write something, then i make it bold, and blue.  I would like to save this text in the edited form of bold and blue.  how do I save that text FORMATED to a variable.

    That's because it's probably stripping the characters it doesn't like, such as HTML and formatting. Your best strategy at that point is to convert it before you send it through your script so your script tolerates it. You can try the encode() function run on your string which will URL encode it and the decode() function can restore it. Otherwise you need to replace anything your script doesn't like with something else intentionally. e.g. turn <i>italics</i> into [i]italics[/i] and then later fix it.
    I myself would look at what PHP is doing. Chances are it's running the striptags function. It's just a safety measure to stop SQL injections (make code safer). But that may not be what you want. If you're at all uncomfortable with that, you'd best not do it though. You take the risk someone will sneak something in that you do not want.

  • XML: Using static & placeholder text inside element with children?

    Hi there
    I’m working with simple XML data with the following structure:
    Root
         Row
              Company_name
              Physical_address
              Phone
              Website
              Email_address
         Row
              Company_name
              Physical_address
              Phone
              Website
              Email_address
    etc.
    The row element will be repeated many times. In setting up my InDesign document I’d like to use static text within each Row element. What’s confusing me is where I should use the Row tag. I’d like my imported XML data to run as continuous text, thus:
    Company: placeholder text
    Address: placeholder text
    placeholder text
    placeholder text
    placeholder text
    Company: placeholder text
    Address: placeholder text
    placeholder text
    placeholder text
    placeholder text
    I tried setting it up like this, with the parent text frame given the Root tag:
    <Row>Company: <Company_name>placeholder text</Company_name>
    Address: <Physical_address>placeholder text</Physical_address>
    <Phone>placeholder text</Phone>
    <Website>placeholder text</Website>
    <Email_address>placeholder text</Email_address></Row>
    …but when I import my XML file I lose all my static text and each child element is indented more than its parent element. I would guess that by placing my static text within the Row tag it gets replaced when each Row element is imported, but where else would I place it? Do I have to create anchored text frames (tagged with Row) within the Root frame to hold each Row element?
    I’d appreciate any insights.
    Message was edited by: Graham vdR

    OK, I’ve figured out the first problem. I just needed to play around with the options in the dialogue that comes up when importing XML. Specifically, the “Do not import contents of whitespace-only elements” needs to be checked. I still don’t see why that should affect whether or not my static text stays in place.
    Now, my new question is this: It looks like all the child elements of a container element have to appear in the document in the same order in which they appear in the XML file. Is this right? If I swap my Email_address and Website tags around in my placeholder text, either the email address disappears or it appears at the end (depending on the options I select in the dialogue upon import). So if I want to change the order in which they appear I have to do so in the XML file as well?

  • Using a rich text editor to style a Flash text field

    I've been trying to build a user interface that would allow someone to change the content of a dynamic field (loaded from a text file) using a rich text editor. However the editor inserts inline css style tags like <span style="text-decoration: underline;"> which Flash aparently can't understand. If the editor were instead to insert the following: <span class="ul"> where the stylesheet defined it as:
    .ul {
    text-decoration: underline;
    display: inline;
    then everything would be fine. But it doesn't and I can't change it.
    I am currently using a rich text editor that I access as follows:
    var myEditor1 = new YAHOO.widget.SimpleEditor('editText', {
        height: '600px',
        width: '700px',
        dompath: true, //Turns on the bar at the bottom
        handleSubmit: true
    The editor above is "applied" to a textarea within an html form. Then the text is saved to a text field with the embeded styles.
    Any ideas on how I handle this so the user doesn't have to insert css rules by hand?
    thanks much

    Does anyone know of a richtext editor that uses just html tags (not css like <span style="text-decoration: underline;">) or that uses css styling that Flash as3 can understand?

  • Pages '09: Can't use AppleScript for selected text inside tables?

    When I run get selection on selected text in a Pages document, I get something like this:
    <pre>text from character 1 to character 4 of body text of document id 9943974 of application "Pages"</pre>
    When I run get selection on selected text inside a table cell in a table in a Pages document, I get something like this:
    <pre>text from character 1 to character 4 of some table of document id 3539679 of application "Pages"</pre>
    When I run get selection on selected text inside a table cell in ANOTHER table in the same Pages document, I get the exact same thing. It still says "some" table. So there is no way to distinguish between tables if there are more than one table in the same Pages document.
    Am I correct in understanding that this means that most AppleScript commands for manipulating text are unusable inside table cells?
    For example, it seems impossible to get the properties of the selection when the selection is selected text inside "some" table. So it's impossible do anything about text styles, etc.
    Is AppleScript support in Pages ’09 really that limited, or am I missing something?

    The first script below should return the character style of any selection made in Pages ’09, whereas the second script should apply the "XXX" character style to any selection:
    --BEGINNING OF SCRIPT 1
    tell application "Pages"
    activate
    tell application "System Events" to tell process "Pages"
    -- Show the format bar:
    if not (pop up button 1 of window 1 exists) then
    click menu item "Show Format Bar" of menu 1 of menu bar item "View" of menu bar 1
    end if
    -- Show the styles drawer and character styles:
    if menu item "Show Styles Drawer" of menu 1 of menu bar item "View" of menu bar 1 exists then
    keystroke "t" using {shift down, command down}
    end if
    tell front window
    tell checkbox 1 of group 1 of drawer 1 -- “Show or hide character styles.” checkbox
    repeat until it exists
    delay 0.1 -- wait until the styles drawer is open
    end repeat
    if description is "show character style" then click
    end tell
    -- Get the row index (although it is not a property) of the character style:
    tell menu button 2 -- “Choose a character style.” menu button
    click
    set k to 0
    repeat
    set k to k + 1
    if value of attribute "AXMenuItemMarkChar" of menu item k of menu 1 exists then exit repeat
    end repeat
    keystroke return -- hide the menu
    end tell
    -- Get the character style name:
    if k > 1 then set k to k + 1
    value of static text 1 of row k of outline 1 of scroll area 2 of splitter group 1 of group 1 of drawer 1
    end tell
    end tell
    end tell
    --END OF SCRIPT 1
    --BEGINNING OF SCRIPT 2
    set myStyle to "XXX" -- the name of the character style you want to apply
    tell application "Pages"
    activate
    tell application "System Events" to tell process "Pages"
    -- Show the format bar:
    if not (pop up button 1 of window 1 exists) then
    click menu item "Show Format Bar" of menu 1 of menu bar item "View" of menu bar 1
    end if
    -- Show the styles drawer and character styles:
    if menu item "Show Styles Drawer" of menu 1 of menu bar item "View" of menu bar 1 exists then
    keystroke "t" using {shift down, command down}
    end if
    tell front window
    tell checkbox 1 of group 1 of drawer 1 -- “Show or hide character styles.” checkbox
    repeat until it exists
    delay 0.1 -- wait until the styles drawer is open
    end repeat
    if description is "show character style" then click
    end tell
    set characterStyles to value of static text 1 of rows of outline 1 of scroll area 2 of splitter group 1 of group 1 of drawer 1
    set k to 0
    repeat with thisStyle in the characterStyles
    set k to k + 1
    if thisStyle as text is myStyle then exit repeat
    end repeat
    -- Apply the character style:
    if k > 1 then set k to k - 1
    click menu button 2 -- “Choose a character style.” menu button
    click menu item k of menu 1 of menu button 2
    end tell
    end tell
    end tell
    --END OF SCRIPT 2
    I suppose that +paragraph styles+ should work the same.
    I'm beginning to know Pages ’09 a little better now.
    Message was edited by: Pierre L. (show format bar)

  • Using nested styles to break blocks of text into different pages

    Hello everyone,
    I'm treating data collected through a Google Docs form and I've already set it up so that the questions appear on the left and are followed by the respective answers sequentially so that I have a simple way to copy paste the whole information to Indesign. Then I'm going to use nested styles to define individual styles for the questions and answers.
    What I can't do, however... and I'm not even sure if it's possible, is how to tell Indesign to break text that is laid out sequentially into different lines or to break blocks of text so that they start in the beggining of the next page without having to resize the text frames by hand.
    As a visual example this is what the data I've exported out of excel looks like:
    Question 1 (tab) Answer A1 (line break)
    Question 2 (tab) Answer A2 (line break)
    Question 3 (tab) Answer A3 (line break)
    Question 1 (tab) Answer B1 (line break)
    Question 2 (tab) Answer B2 (line break)
    Question 3 (tab) Answer B3 (line break)
    (and so on in groups of 3 questions)
    And I want to turn it into:
    Question 1 (turn the tabs into line breaks)
    Answer A1
    Question 2
    Answer A2
    Question 3
    Answer A3
    (and then start at the beggining of a new page)
    Question 1
    Answer B1
    Question 2
    Answer B2
    Question 3
    Answer B3
    I can't define the size of the text frames so that the next group of questions+answers starts at the beggining of a new page because some of the answers are multi-line fields and thus the number of lines of the answers are variable and they can come short of the text frame edge or pass it.
    Can anyone share some insight of how to do this (or if it is at all possible)?
    Thank you very much!
    MACC

    Thank you very much for your input.
    I'm trying to automate this process as much as possible because I don't want to have to crunch the data manually myself later on, instead just teach someone else how to do it.
    The first search and replace action seems basic enough but regarding the second one I would have to manually assign that paragraph style to the line where the data would break because one can only assign character styles in nested styles, right?
    Also I've heard that ID CS5 automatically creates new pages based on a template when you paste information inside the first page, is that so? That would be great because that way the person wouldn't have to manually create pages and link the contents throughout the document but instead simply open my template and paste the information within the first master page. That's not possible with CS4, is it?
    Thank you very much!

  • How to change font size & color of text inside note and callout annotation using code ?

    Hi,
    I want to set different font size & color for the text inside note and callout annotations. And for this, I am setting properties using the DS attribute while creating annotations (see below code).
    //"font: Helvetica,sans-serif 12.0pt;font-stretch:Normal; text-align:left; color:#rrggbb";
    sprintf(buf,
    "%s %2.1f%s%s%s%s;" , "font: Helvetica,sans-serif", float(g_fontSize),"pt; font-stretch:Normal; text-align:left; color:#", str[0], str[1], str[2]);CosDictPutKeyString (cosAnnot,
    "DS",CosNewString (cosDoc, false, buf, strlen(buf)));PDAnnotNotifyDidChange(pdAnnot, ASAtomFromString(
    "DS"), 0);
    But this doesn't work when I just wrire text after creating annotation.
    And suprisingly it works fine when I click first outside of the annotaion and then double click to write text inside annoatation.
    Is this bug of Adobe ? if not then please let me know the fix.
    Regards,
    Arvind

    Hi
    Is there any way(eg. preference) by which we can change default color & font size for annotation?
    Regards,
    Arvind

  • Invisible Text in Flash Player Using Windows XP

    I seem to have a problem with the Flash Player and invisible text. The Flash Player will load but there will be some buttons that are not labeled with text, so you don’t know what the buttons are, fill-in text boxes that have no text or text description, so you don’t know what to type in them, and drop-down lists that are blank, but there is supposed to be text to select from.
    I tried uninstalling and reinstalling FireFox, that did nothing; unistalled the Shockwave Flash Plug-in and reinstalled it, that did nothing; unistalled Flash and Shockwave standalone Players entirely, leaving only the Plug-in, nothing; uninstalled and reinstalled Flash Player standalone, nothing there either. I cannot seem to find a solution and every browser I have, the same problem occurs – invisible text.
    I was reading on the Adobe Forum that there is this same issue sometimes with Mac and that the problem seems to be font incompatibility.
    This happens with any browser I use – Firefox, Flock, PaleMoon, IE, Opera, Netscape.
    My OS is Windows XP Home Edition
    Main browser is FireFox version 3.6.17
    Shockwave Flash Plug-in version is 10.3.183.7
    I also have the Shockwave Player standalone version 11.6.1.629
    Has anyone, using Windows, had this same problem? Is there any solution?
    Thanks for any advice.

    Invisible text in Flash enabled web pages is a frustrating problem that is affecting Mac Users who play Farm Town (8.5+ million people on FaceBook) and probably many other games too.  See this forum as an example of the problem:  http://slashkey.com/forum/showthread.php?p=2531318
    Before even reading this forum I did everything that appears here with no success and then everything listed in the referenced forum (above) with no success... but the following did fix the invisible text problem and I hope that it will help others too.
    1.  Drag the Font folder from the User directory to the trash  ie. ~/Library/Fonts.  (where ~ is = your User Account Name.)
         Be careful; this is NOT the Font folder in the main library.
    2. Download Font Finagler v1.5 beta for Mac OS 6, and clean the font cashe files following the instructions for this free shareware app.
            http://homepage.mac.com/mdouma46/fontfinagler/
    3. Open the Font Book app which is a new app that is included with the Mac OS Snow Leopard (10.6). (Font Book is in the Applications folder.) Read the Help info for this app and then: Choose "All Fonts" in the left column and then choose "Select Duplicate Fonts" from the Edit menu. Disable or delete all duplicate fonts that this process identifies. After dealing with the duplicate fonts, select "All Fonts" again in the left column and choose "Validate Fonts" from the File Menu.  Deal with the results that it will display using the help file for guidance.  Interestingly, in my case there were no corrupt fonts in my Mac system, but the validation process identified more duplicate fonts that the previous step did not find. Again deal with the findings and disable or delete the duplicate fonts.
    4. Reboot your Mac and get on with using your Flash enabled web pages.  Duplicate fonts seems to be the problem that cause invisible text in Flash enabled web pages.
    Hope this helps you... it worked for me.
    Clark

  • [svn] 3148: You can now use CSS styles to set the default text format for TextView.

    Revision: 3148
    Author: [email protected]
    Date: 2008-09-08 15:01:15 -0700 (Mon, 08 Sep 2008)
    Log Message:
    You can now use CSS styles to set the default text format for TextView. It no longer has any formatting properties. It supports the entire set of Gumbo text format styles.
    SkinnableComponent and Group now also support all these styles. However, skins such as ButtonSkin, TextInputSkin, and TextAreaSkin continue for now to specify instance styles on their TextBox, TextGraphic, and TextView, in order to give them a Gumbo look rather than a Halo look. So if you try setting, for example, the fontSize on the Application, it doesn't yet affect the text format of a Button, TextInput, TextArea, etc. unless you remove the instance style in the skin.
    Reviewer: Glenn
    Bugs: -
    QA: Lots of new stuff to test!
    Doc: No
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextArea.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextInput.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextView.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/SkinnableComponent.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextBox.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextGraphic.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/TextGraphicEle ment.as

    Nevermind guys - I did it using the 'rb_on.selected' command on the "on" radio button if the .txt file variable was "on", else the "off" radio button is selected.
    Thanks for taking a look though!
    Shaun

  • Auto-Inserting Text inside tables (maybe using automator?)

    Hi,
    I've got a large document, and I want to make a formatting change. There are about 500 places where I want to do the following:
    1. Take text between point A and point B.
    2. Remove it, insert a single cell table, and insert the text inside the table.
    Point A and point B are easy to identify, the same words repeat.
    Is there any way to automate that sort of thing? I've gotten a lot done with advanced find + replace, but I don't believe that will work for this. I've heard about apple scripts and automator, but don't know much about them.
    Anyone have any ideas? Thanks so much.

    (1) It seems that it's time to answer a question available in your first message.
    Yes, we may use Find & Replace to apply to formulas.
    (2) The operator = is telling the app that it must sum the value of rows whose cells on the left of the range are equal to what is on the right side of it
    In your case, it sum every values from rows whose cell D contain the value stored in Table 2::A4
    We may use conditions with
    <
    >
    <=
    >=
    <>
    The operator & is more mysterious in this case because, as far as I remember, this exact use isn't described in the available resources.
    I discovered it years ago in the forum dedicated to Numbers '08
    Details about these conditions are available in :
    Yvan KOENIG (VALLAURIS, France) mercredi 13 juillet 2011 21:26:24
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Transfer Style Text Using Socket

    Anyone have any idea how to get a style text from JTextPane to be send through Socket connection.
    Anyone? Please Help. Thank You.

    Here's a small example for StyledDocument -> html:import javax.swing.text.html.*;
    import javax.swing.text.*;
    import java.io.*;
    public class Styled2Html {
        public static void main(String[] args) {
         try {
         // create an empty doc
         StyledDocument sd = new DefaultStyledDocument();
         // this would dump the doc to a file:
         // FileWriter fw = new FileWriter("sample.html");
         // Need I say that System.out can be replaced with socket.getOutputStream()?
         // You could use also a BufferedWriter to increase performance.
         OutputStreamWriter fw = new OutputStreamWriter(System.out);
         MinimalHTMLWriter out = new MinimalHTMLWriter(fw, sd);
         // Write it out...
         out.write();
         // ... and close the stream. You have now outputted valid 3.2 HTML
         // code to a stream with only 4 lines!
         fw.close();
         } catch (Exception e) {
         e.printStackTrace();
    }

  • Is there a way to automatically resize the text box to fit the text inside, without using the selection tool to resize the corners in Illustrator and Photoshop?

    I'm wondering if there is a way where I can quickly resize a text box to fit exactly around the text inside, so pretty much the smallest the text box can go without being too small to fit the text? I know you can do this manually with the selection tool, but is there a button/command that automatically does this in one go?
    Thanks

    Try this script. Save the page as .jsx the the "Presets>Scripts" AI folder. When you restart AI it will appear in the "Scripts" menu. Select the text block and run the script.
    Thanks to Nathaniel Vaughn KELSO for the script.
    http://kelsocartography.com/scripts/scripts/nvkelso/FitToTextContent_v2.jsx

  • Is there a way to automatically resize the text box to fit the text inside, without using the selection tool to resize the corners in Illustrator?

    I'm wondering if there is a way where I can quickly resize a text box to fit exactly around the text inside, so pretty much the smallest the text box can go without being too small to fit the text? I know you can do this manually with the selection tool, but is there a button/command that automatically does this in one go?
    Thanks

    The short answer is No. But I see that Ray has given you an option.

  • How can I make rectangular speech bubbles that adapt to the text inside them without the "arrow" that points towards where the bubble is coming from getting changed?

    I have to make lots of speech bubbles (150+) that all have texts inside them which differ in length. I want the speech bubbles to look the same in terms of style, but I need different sizes of course for each text. This means that the rectangular part of the speech bubble should adapt in length and width to the text inside it, while the "arrow" pointing towards where the bubble is coming from (e.g. the person who speaks) should stay the same on every bubble. So is there a way or a workaround to make such "adapting" speech bubbles?
    I appreciate any kinds of help
    Thanks in advance!

    Here's another way I found:
    1. Draw a speech bubble. Mine is a rectangle with rounded corners and a triangular pointer added with Pathfinder > Add
    2. Drag out a frame the same size as the speech bubble. Select the speech bubble and Copy; then select the empty frame and choose Edit > Paste Into...
    3. Alt-Drag the frame with the pasted speech bubble to make a copy, then crop one copy to leave only the top of the bubble showing, and crop the other copy to leave only the bottom.
    4. Drag out a text frame and insert a table consisting of 1 column, 3 rows. Set the text frame to Autosize > Height Only.
    5. Set the stroke/fill of the top and bottom rows to none, and style the middle row to match the speech bubble, (in my case a white fill and 2pt stroke; left and right).
    6. Anchor (paste) a copy of the speech bubble top in the top table row, and a copy of the speech bubble bottom in the bottom row.
    Getting the 3 parts to match up with is where you just have to work on it until you get it right. Use the positioning tools in Anchored Object options and the column width setting in Cell options to line everything up.
    Enter your text in the middle row. (Hey, look at that...a valid application of Comic Sans!) With the Cell Height set to an "At Least" setting, the cell will expand to fit whatever text you enter, pushing the the bottom row down, with the text frame auto-sizing to keep everything in play...

Maybe you are looking for

  • Cannot uninstall itunes in order to reinstall

    Please Help!! I have a windows xp dell computer. I got an ipod for christmas and so did my sister so in order to have our own seperate librarys we created two accounts on the computer. We went to install the itunes update as it prompted us to do abou

  • To Enter Data on Order Module

    Hello: After I installed E-business Suite Demo, I tried to enter data on the Order Entry Module but did not know where to start. After I read through "Oracle® Configure to Order Process Guide Release 11i Part No. A90459-05" I did not do what I wanted

  • AddPartialTarget doesn't refresh the region

    Hi, i have a region where a taskflow is consumed. After doing some update through the ui page , the values in main page remains but the values in the region disappears. when i press F5 the data in region comes in page. However through code when i do

  • Selection in a drop-down list

              Hi,           is there a way in HTML or DHTML or Javascript or ActionScript to implement           this:           in a HTML page, I have a drop-down sorted list:           <SELECT NAME="Code" size="1" >           <OPTION VALUE="All">All   

  • HT1689 Can't get iTunes .ipad says "too many http redirects " what's that anyone help please? been charged twice for double down chips.

    What does "Too Many HTTP redirects" please? I am trying too report a purchasing problem, but keep getting that message. I'm trying to connect too ITunes.