Change Text Color Dynamically Depending on Which MP3 File is Playing

Change Text Color Dynamically Depending on Which MP3 File is
Playing
Hi,
Can anyone help with this problem.
I am trying to change a text cast member's color dynamically
based on which audio file is currently playing.
I have 4 Text Cast member buttons named
Play Song 1
Play Song 2
Play Song 3
Play Song 4
I am successfully playing the 4 songs in a queue like this
(ie. If "Play Song 1" sprite text member is pressed then...
sound(1).queue(member "Song1")
sound(1).queue(member "Song2")
sound(1).queue(member "Song3")
sound(1).queue(member "Song4")
sound(1).play
What I would like to do is to have the currently playing song
text color changed to a different value, say Green.
So if "Song2" in the queue starts to play then the text "Play
Song 2" would become Green. When done it would then turn back to
black then "Song3" starts to play and "Play Song 3" text script
button would then turn from black to Green an so on.
These are the codes I've tried in the frame script and none
seem to work...
on enterFrame me
if sound(1).status = 3 then member("Play Song 1").foreColor=5
(This works but only for the first song because "Play Song 1"
is directly named and clicked on.)
else member("Play Song 1").foreColor=255
end if
I have tried to make a reference to the playing song and so
far each of these doesn't work...
--if sound(1).status = 3 then
sprite(me.sound.member).foreColor=5
--if sound(1).status = 3 then
sprite(me.spriteNum).member.color=rgb(0,255,0)
--if sound(1).status = 3 then member
(sound(1).member).foreColor=5
--text = member(whichMember).scriptText
end
Is there any way to reference the song name text cast
member??
I thought I had it when I discovered sound(1).member but
sound(1).showProps returns the playing sound.member as
member: (member 28 of castLib 1) nothing there I can use?
It doesn't show the member name and
It doesn't show the song name "Song1" which I could then
match up to the "Play Song 1" text
I'm pretty new to lingo so specific code examples would be
appreciated.
Can anyone help??? Thanks!!!

did you get anywhere with this?
When applying a styleClass to a af:showDetailItem, it doesnt seem to have any effect whatsoever.

Similar Messages

  • Acrobat XI Pro Mac: Changing Text Color moves Text within Paragraph

    Dear Acrobat Experts!
    I've been using Acrobat Pro for over a decade now (Win and Mac) - but Acrobat XI Pro Mac shows some behavior I cannot deal with:
    When I'm changing text color of say a couple of words within a paragraph, usually the formatting changes and text is being moved/shifted. It looks like the text with altered color requires more space and consequently the following words are shifted which very often ruins the whole formatting. This makes Acrobat XI for me nearly unusable, I had never a behavior like this in former Acrobat versions (Win or Mac).
    I cannot believe that this is "normal" - so what's the mistake I'm making? For illustration please see the two screenshots I included.
    I'm looking forward to your helpful comments!
    Oliver

    Hi Sukrit!
    Thanks for your assistance.
    This is the first and only Acrobat version ever I had this problem with. I am running Acrobat Version 11.0.10 under Mac OS X 10.10.3 Yosemite on a MacBook Pro 15" Retina display. I am working on Mac only since Acrobat Pro 7 - the versions before were Windows.
    So I cannot comment on Acrobat XI Pro Win.
    This is happening with all of my PDF docs - regardless of origin (textbook, scientific journal, or PDFs I generated by myself as export from office applications etc.).
    The only difference is the amount of changes to the formatting (shifting of text).
    To illustrate my workflow I generated a screencast and uploaded it here:
    <Dropbox - Acrobat_XI_Pro_Mac_3.mp4>
    Looking forward to hear from you again!
    Oliver

  • Why am I unable to change text color from black in LR5 book module?

    Why am I unable to change text color from black in LR5 Book Module?

    I'm assuming you clicked on the color patch besides the word <Character> to open the color picker window.
    At the right side of this window there is a vertical bar that has 2 horizontal black lines at the bottom.
    This is actually a slider. Pull it upwards with the color picker and color will appear in the window.

  • Easy one I hope: How do I change text color?

    For the life of me I can't seem to find anything with a color pallette (except for background fill). I need to change text color but don't know where to find it.  Everything's always black. When I highlight the text, and goto "Font", I see something that looks like the "Select Text Color" (like the one above but as soon as you mouse over it, it turns to a crossed-out "ABC", and can't get the pallette.
    Thanks for your help.

    Hi,
    Question: Are these fields that you had changed the type of in the Object Pallet/Field Tab/Type ? If so, try deleting the object and put a new one in its place from the Object Library.
    If no, what sort of parent do these items have? Table Row? or SubForm?
    Good luck!
    Stephen

  • How to change the image dynamically depend upon the input parameter

    Hi All
    I have one report running depend upon the Organization specific, I have 15 operating unit and 15 different logo for each operating unit.
    How to change the Logo dynamically depend upon the input passed by the user.
    If I have three or four logo i can add in my layout using if else statement and its works fine but i have more that 10 logos so its no possible to keep these in My RTF Template.
    Is it possible to change the logo according to the input without keeping this in Template.
    I have seen this link but its not working fine
    http://erpschools.com/articles/display-and-change-images-dynamically-in-xml-publisher
    Regards
    Srikkanth.M

    Hi,
    I have not completed fully,so sorry i cant able to share the files, could you please give me some tips and steps to do.
    Without having the logo in RTF if it possible to bring the logo depends on the user input (Ie Operating unit).
    Regards
    Srikkanth

  • Save link as option vanished in firefox 17.0.So now not able to download mp3 files.Instead click on mp3 files starts playing in some black player in firefox

    Save link as option vanished in firefox 17.0.So now not able to download mp3 files.Instead click on mp3 files starts playing in some black player in firefox.
    Earlier i was able to download mp3 files by pressing on link for some time and menu popus up "Save link as" but after recent update that option is gone.
    That option is desperately needed.
    One more thing is MP3 file start playing in black player on firefox when i actually want to download them and then play it.
    fix this issue ASAP.

    I still have the "Save link as" option in my context menu with FF 17. Maybe something went wrong with the update?

  • Unable to change text color (from Black)

    For the next person who blunders into this and searches for an answer...
    If you have a Condition Code whose decoration is a custom color, and you delete the color, the text goes to Black, and you cannot change the color of text bearing that CC - with local color override, or a Character Format that applies a color (I didn't try Paragraph format).
    I am copying formatted content in from an older document that doesn't conform to current templates. I had deleted unused colors in the source, but not unused Condition Codes, one of which rode in with some text. What was controlled by the CC in the old doc is now controlled by a color Character format, except that when applied, the text stayed stubornly black (until I nuked the CC).

    Dear FrameMaker 7.1/Unix user,
    This does not surprise me. As long as the condition is applied and "Show Condition Formats" is active FrameMaker will show the Condition Color (now: Black) and not any underlying text colors.
    - Michael

  • How to change text color in CS4

    Hey everyone. I know I'm not fluent in Dreamweaver, but had DW8 before upgrading to CS4 and I'm pretty handy with it. In version 8, if I wanted to change a text color, I simply highlighted the text and picked a color. No worries.
    However in CS4, I seem to be only have that ability in my CSS properties, (not HTML properties). Then when I try to change the color, it gives me a dialogue box asking questions such as "new CSS", "for this page only", etc. and I don't understand what I'm supposed to do.
    Can someone tell me in a user-friendly way (step-by-step), how to simply change a text color on a page? I went to the help topics and it said to use the 'color-picker', but that takes me back to my original problem.
    I'm either doing something terribly wrong, or ADOBE has made a simple task into brain surgery!
    Thanks in advance for assistance!
    Mark

    Beginning with CS3, DW became more compliant with W3C web standards which call for content (HTML) being separate from style (CSS).  Thus you now have two properties boxes: one for HTML content and another for CSS styles.
    Create a few CSS classes using the CSS style panel.
    CSS:
    .red {color: red}
    .blue {color: blue}
    .green {color: green}
    Highlight a word or sentence on your page and apply the appropriate class to your HTML.
    HTML:
    <p class="red"> this is red text</p>
    <p class="blue"> this is blue text with <span class="green">GREEN WORDS</span> in the middle</p>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Changing Text Color Through Scripting?

    Is it possible to change the color of a text field within a
    display icon through scripting ?
    Basically using a calc icon I want to display text within a
    display icon and change the text color as well. Ideally I would
    like to use authorware's RGB function to change the text colour.
    Any help greatly appreciated. Thanks in advance.

    "Mike P" <[email protected]> wrote in
    message
    news:fq5vdj$8jt$[email protected]..
    > Is it possible to change the color of a text field
    within a display icon
    > through scripting ?
    >
    > Basically using a calc icon I want to display text
    within a display icon
    > and
    > change the text color as well. Ideally I would like to
    use authorware's
    > RGB
    > function to change the text colour.
    No. You have two choices. The first is something like this:
    {varRed}{varBlue}{varGreen}
    the {varRed} text would be red
    {varBlue} would be blue
    {varGreen} would be green.
    Then:
    varRed := "This is some text"
    varBlue := varGreen := ""
    Your text would be red if Update Displayed Variables was
    checked on the
    icon.
    You can also use RTF Objects, which will allow you to set
    font color using
    named colors or hexadecimals.
    HTH;
    Amy

  • IPhoto quits when I try and change text color in book

    When editing a new iPhoto book (version 5), I was changing the font color. As I clicked on the text color icon in the fonts window (show fonts from the iPhoto menu), Iphoto just quit. It also lost all my formating thst I had for my pics. I tried the font color change in other applications using 'Font Book' and the same icon works without crashing the application.
    This is a new thing, because I have had no trouble with the first book I made.
    Thanks
    Powerbook G4 Hi Res 1.67GHz   Mac OS X (10.4.5)   1G Ram, 120 G Hard drive

    Just wondering, when you pull up the inspector, is the writing that is coming up blue a hyperlink (when you click on it, will it take you to a web page or an e-mail)?

  • How can i Change Text Color in table

    How can i change the text color i table, the true becoming GREEN, and the text in Fals becoming RED.
    Someone can help me to resolve this problem with a sample, because when i run the program all text becoming green in (TRUE) and than when i chang it to the (fals) all becoming Red.
    Attachments:
    Color.vi ‏38 KB

    Modifying the properties of a control in a subVI do not modify the properties of a different control in the main VI. The data is the only thing passed back from the subVI. To modify the properties of the table in the main, you need to pass a reference to it to the subVI and modify it's properties. I've attached a modified llb that does what you want.
    Attachments:
    Main_color_Table_mod.llb ‏41 KB

  • Changing text color of a string

    im looking to change the color of some text within a datagrid. After searching I have found tons on item renderers and cannot figure out exactly how to make it work with what I need.
    I have a datagrid with a label function that looks something like this.
    label function(item:object, column:datagrid):string
         return ( "name:" +item.name+ "age:" + item.age);
    i want to be able to make it look like this when it returns the string
    Name: hello AGE: 45
    with name and age also being a different color than the text brought in from the item
    any ideas?

    You'll need to make an itemRenderer to do this. There many ways of approaching this, but I through together a quick example that applies the formatting using html tags in the htmlText property of an in-line itemRenderer. There are better ways of doing this, though. This example is difficult to read. Using a separate, external component you could override the set data function and go nuts with it. Search the help docs for examples.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="absolute">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                [Bindable]
                private var acData:ArrayCollection = new ArrayCollection([
                    {name: 'Charley', age: 45},
                    {name: 'Ben', age: 32}
            ]]>
        </mx:Script>
        <mx:DataGrid
            dataProvider="{acData}"
            width="212"
            y="67"
            x="108">
            <mx:columns>
                <mx:DataGridColumn headerText="Name/Age">
                    <mx:itemRenderer>
                        <mx:Component>
                            <mx:Text>
                                <mx:htmlText>
                                        &lt;b&gt;&lt;font color="#0000FF" size="14"&gt;Name: &lt;/font&gt;&lt;/b&gt;{data.name} &lt;b&gt;&lt;font color="#FF0000" size="12"&gt;Age: &lt;/font&gt;&lt;/b&gt;{data.age}                               
                                </mx:htmlText>
                            </mx:Text>
                        </mx:Component>
                    </mx:itemRenderer>
                </mx:DataGridColumn>
            </mx:columns>
        </mx:DataGrid>
    </mx:Application>

  • Changing text color of item renderer in datagrid

    Hi,
    I have the following datagrid:
    <mx:DataGridColumn field="name" ......... />
    <mx:DataGridColumn itemRenderer="myRenderer" ...... />
    In myRenderer, I extend from the TextInput class; with the
    text color:WHITE
    My question is:
    When I do a mouse rollover/selection on any row of the
    datagrid, how can I change the text color of my renderer?
    If I add the rollover/selection event listener for my
    renderer, it will only change the color when my mouse is over its
    column.
    I want it to change colour whenever the row is selected/
    rollover.
    Thank you very much.
    Regards,
    hy

    Hi,
    The rollOverColor and selectionColor style on the Datagrid
    will only work for the normal columns.
    Since my column extends from the TextInput, the rollOverColor
    and selectionColor style does not seem to have any effect on the
    itemrenderer.
    hy

  • HELP!Can't change text color photoshop 3d

    Hi everyone!
    I am having a problem with Photoshop CC and the 3d text extrusion. I've never been able to change the color of my text using the Color Picker or changing the text color by going into the "Edit Source" feature and manually changing it. Neither of these have any effect on my text color. The only way I've found to change my text color is by selecting the Diffuse color under my Front Inflation Materials.
    The screenshots below will show my settings and problems.
    The first step is creating the 3d Extrusion text layer. I have selected below the word Beach in a dark grey.
    The next step is after the 3d Extrusion layer is made, I am trying to change the color of my 3d text to a red. So I'm highlighting my text layer, going to the 3d Text Color picker and selecting red. The box above shows the red that I've selected, and below the little thumbnail also shows red. My problem is that after I press "Ok", the small red box below next to text reverts back to the original dark grey and doesn't change.
    The 3rd step and the other way I'm trying to get my text color to change is by clicking on the "Edit Source" button, going into the .psb, manually changing my text color to red, saving and closing the window. The text color still does not show my changes. It remains the original dark grey color that I originally had. Now, if I go back into "Edit Source" my text is red, but it won't show the changes on the 3d layer.
    Am I doing something wrong, or is there something I'm missing? Thank you guys in advance.
    -Terry

    I'm with you XM Just got Steve Caplin's book on 3d Photoshop and he says you can easily change the color as shown in  that video —although I am getting different color picker. note the properties panel (on right) the color swatch shows pink once I click OK it reverts back to original color

  • Change graph color dynamically in Discoverer

    Hi,
    Is it possible to change the background color for a graph based on certain condition? If so, how should I do it?
    Thanks,

    No - you cannot dynamically change the color of a graph or graph element in Discoverer.
    Thanks
    Abhinav
    Oracle Business Intelligence Product Management
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
    Discoverer: http://www.oracle.com/technology/products/discoverer/
    BI Software: http://www.oracle.com/technology/software/products/ias/devuse.html
    BI Samples: http://www.oracle.com/technology/products/bi/samples/
    Blog: http://oraclebi.blogspot.com/

Maybe you are looking for

  • How can I actually play iCloud/iTunes on my MacBook Pro?

    I use a MacBook Pro with a 2.53 GHz Intel Core 2 Duo, running Snow Leopard (10.6.8).  I haven't updated to Lion because I'd have to re-purchase ProTools in order to do that, and ProTools was the whole reason I upgraded to a MacBook Pro to begin with.

  • PAGES 09 - how do I make a 2 page pdf??

    Please help - I am wasting so much time! I have a one page document that I want to email as a pdf. I simply want to add another page below Page One. I know its something to do with Sections - but every time I add a 'section', it adds two pages, and t

  • Getting "Must declare the scalar variable" Error

    Hello All, I have write following query to block invoice which has Prices not equal to PriceList as below. -- To Block Invoices which has Prices not equal to PriceList IF (@transaction_type='A' OR @transaction_type = 'U') AND CAST(@OBJECT_TYPE = '18'

  • How do I obtain product recovery media for my Satelite Pro A100?

    When I purchased my A100, I was not given any product recovery media. I assumed that it would be pre - installed on a partition on my hard drive. Seems not to be the case. I wish to resize my primary partition to enable me to install linux on the spa

  • Aperture...so far not sure...

    Have 23 days left on my trial... So far I am not impressed... It is very slow...I have very good Memory and storage.. Why is it that iPhoto, seems sooo much easier and faster... Sure aperture has some nice features, but for those of us that take hund