TextField Stylesheet is not working?

Hi,
I guess this one i easy but i can't figure out what's the problem:
I have a TextField which styleSheet i want to change at runtime.
For testing I created a new .FLA  put a Textfield on stage, set it to dynamic, named it mytxt and added some AS3:
import flash.text.StyleSheet;
import flash.text.TextField;
var _style = new StyleSheet();
_style.parseCSS('p{color:#ff0000;}');
mytxt.styleSheet = _style;
Well - nothing changed I still have a default black text when I publish the swf.
What am I missing?
My goals:
- Set a TextField in Flash IDE
- set the font, weight, color, size etc.
- apply a styleSheet containing colors for links
Thanks, Booya

Ok, everything works now. Thanks for clearing things up.
It confused me that I couldnt change the style of font - well i still cant.
<TEXTFORMAT LEADING="4"><P ALIGN="LEFT"><FONT
FACE="Arial" SIZE="16" COLOR="#242424" LETTERSPACING="0"
KERNING="1">TEXT</FONT></P></TEXTFORMAT>
import flash.text.StyleSheet;
import flash.text.TextField;
var _style = new StyleSheet();
_style.parseCSS('font{color:#00ff00}');
mytxt.styleSheet = _style;
The text will still be "black"
But it is not that bad because i will add some additional HTML within the existing font tags:
<TEXTFORMAT LEADING="4"><P ALIGN="LEFT"><FONT
FACE="Arial" SIZE="16" COLOR="#242424" LETTERSPACING="0"
KERNING="1"><SPAN CLASS="red">TEXT</SPAN></FONT></P></TEXTFORMAT>
so changing the stylesheet according to my HTML and everything works like expected:
import flash.text.StyleSheet;
import flash.text.TextField;
var _style = new StyleSheet();
_style.parseCSS('.red{color:#00ff00}');
mytxt.styleSheet = _style;

Similar Messages

  • Stylesheet does not work correctly

    I have web pages in the root and sub directories:
    /index.jsp [ <link href="resources/stylesheet.css" rel="stylesheet" type="text/css"/>  ]
    /folder/list.jsp [ <link href="../resources/stylesheet.css" rel="stylesheet" type="text/css"/> ]
    /resources/stylesheet.css
    index.jsp has hyperlink to list.jsp and list.jsp has hyperlink to index.jsp.
    When app start, stylesheet is correctly applied to index.jsp. After I go to list.jsp and return back to index.jsp using hyperlink, stylesheet does not work anymore.
    Did anyone had similar problem? Do you have any workaround solution?
    Please help.

    I have not found anything in JSC that helps creating context url for stylesheet reference. Here is ugly hack I use for root page:
    /index.jsp [ <link href="/webapppath/resources/stylesheet.css" rel="stylesheet" type="text/css"/>  ]I will appretiate if anyone has more elegant solution or give more insight into JSC.
    Thanks!

  • Android: Textfield-Cursor movement not working in Portrait

    Hi,
    I just deployed a new build of my Android apps with Air 16.0.0.272 and I noticed that while Portrait mode, I am unable to move the cursor in an Input Textfield with text by tapping at the location. Instead the cursor will pop up before the first letter, making it impossible to delete the text that is already there. If I rotate to Landscape, the Textfield will go fullscreen and I can move the cursor freely. Can anyone confirm this?

    I have seen this issue as well when first focusing the TextField, the cursor moves to the start of the text, even though the user tapped on a word later in the sentence.
    Even worse, I've noticed that tapping on the TextField sometimes does not bring up the Softkeyboard. I have to focus in and out of the TextField and eventually the softkeyboard appears.

  • WDA application configuration parameter Stylesheet URI not working

    Hi Experts,
      I created an application configuration for a webdynpro ABAP application and populated theme path for parameter Stylesheet URI on application configuration. However when I execute the application using this application configuration, the application does not pick up the theme.
      If I pass the same path using URL parameter SAP-EP-THEMEROOT, it works. Also it works if I maintain it as URL parameter in SPRO
      However for my requirement I need it to work specifically from application / application configuration parameter. Has anyone faced this problem and found a solution?
    Thanks in Advance
    Tanmay

    I believe you need a redirect if you want to change between SSL and non-SSL.
    How about something in the line of (example with code 404):
    <If $code=404 && $security>
      Error fn="redirect" url="http://oursite/error.html"
    </If>.. where +$security+ means SSL.
    About the Error and URI, it seems uri="/error.html" would work, but it will not switch you from SSL to non-SSL.
    I'm curious why you would want to redirect a user to the non-SSL instance in this scenario..

  • TextField setText(null) not working

    Very simply put, I want a text field that when you type in it, it stores the character in a global String variable but doesn't actually display it. I know there are several ways of doing this, including a PasswordField, but this is purely for understanding purposes only.
    String str = "";
    private void txtLineKeyPressed(java.awt.event.KeyEvent evt) {
        char key = evt.getKeyChar();
        str = str + key;
        txtLine.setText(null);
    }When typing "asdf" produces (caret is represented by |):
    a|
    s|
    d|
    f|I want to understand why txtLine.setText(null) clears the field BEFORE the letter is added to the field and possibly find out if there's a way (using TextField only) to accomplish this. I had a problem earlier with the enter key producing a line break at the end of all my lines and realized I was using a TextArea that caused the problem. Am I doing something similarly wrong?
    --dorky                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I want to understand why txtLine.setText(null) clears the field BEFORE the letter is added to the field Read up on how KeyListeners work. Three events are fired. The Document is updated on keyTyped(), which is generated after the keyPressed() event.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.
    Also, the better way to do this is to use a DocumentFilter, not a KeyListener then you wouldn't have this problem. Read the Swing tutorial which has a working example of how to use a filter.
    Edited by: camickr on Feb 20, 2009 9:16 PM

  • Stylesheet tag not working

    Actually I should say no longer working. I have a popup window for datagrid editing that has the pt:stylsheet tag at the top. For the first few days, the page looked great. Today, no styles. No changes have been made to the html. Is the source offline? Any other possibilities?
    EDIT: just viewed source and found this: "<!--unknown PT XML tag 'stylesheets-->" where the stylsheet tag should be. WOnder what would cause this since that filed has not been modified in a week?
    NEVERMIND: Somehow...can figure that part out...the case was changed from styleSheets to stylesheets.

    Ok, I found my mistake. I thought that the Line break
    formatting would take place as I inserted a tag but it only works
    when you click on Format Source Code.
    <cfif #XXX# eq 1>
    something
    <cfelse>
    something else
    </cfif>
    Erny

  • TLF TextField - formatting issue - not working when TLF TF on stage?

    Hi,
    I have encountered formatting problems when using the TLF TextField placed on stage; I cant seem to format the textfield properly by ActionScript.
    When TLF TextField is created at runtime it works for strange reasons...
             import fl.text.TLFTextField;
          import flashx.textLayout.formats.TextLayoutFormat;
          import flashx.textLayout.elements.TextFlow;
          var myTLFTextField:TLFTextField = new TLFTextField();
          addChild(myTLFTextField);
          myTLFTextField.x = 10;
          myTLFTextField.y = 10;
          myTLFTextField.width = 200
          myTLFTextField.height = 100;
          myTLFTextField.text = "This is my text";
          var myFormat:TextLayoutFormat = new TextLayoutFormat();
          myFormat.textIndent = 8;
          myFormat.color = 0x336633;
          myFormat.fontFamily = "Arial, Helvetica, _sans";
          myFormat.fontSize = 24;
          var myTextFlow:TextFlow = myTLFTextField.textFlow;
          myTextFlow.hostFormat = myFormat;
          myTextFlow.flowComposer.updateAllControllers();
    When I set "myTLFTextField" as instance of an already existing TextField on stage no formatting is performed.
    I dont want to create all TLF TextFields by ActionScript, please help!

    I have yet to meet this beast called the TLFTextField, but I think in the forums I've more often seen recommendations to avoid it than to use it.  Did they miss a target when they invented it?

  • TextField Rendering is not working.

    Hi friends,
    I was tring to write a textfield renderer. Even though the text field can be seen in the jtable, its containing some unwanted texts which i have pasted below. I could not understand why so. What i am doing wrong.
    Here is the renderer class :
            class TextFieldUIRenderer extends JTextField implements TableCellRenderer {
                    public TextFieldUIRenderer() {
                            super();
                            setOpaque(true);
                    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,
                                                                             boolean hasFocus, int row, int column) {
                            //TODO If the component is having the focus
                            if (hasFocus) {
                                    table.editCellAt(row, column);
                            //TODO If the component is selected
                            if (isSelected) {
                            } else {
                                    //Otherwise
                            this.setText(value.toString());
                            return this;
            }Here is TextFieldCellEditor class :
            public class TextFieldCellEditor extends DefaultCellEditor {
                    public TextFieldCellEditor() {
                            super(new JTextField());
            }then i am setting
                    textField.setCellRenderer(new TextFieldUIRenderer ());
                    textField.setCellEditor(new TextFieldCellEditor ());Now when i am running the program the text box is shown the following text inside :
    javax.swing.JTextField[,0,0,0x0,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=null,
    alignmentY=null,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@ae3364,flags=296,maximumSize=,
    minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource
    [r=0,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=153,g=153,b=153],editable=true,
    margin=javax.swing.plaf.InsetsUIResource
    [top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource
    [r=0,g=0,b=0],selectionColor=javax.swing.plaf.ColorUIResource[r=204,g=204,b=255],columns=10,
    columnWidth=0,command=,horizontalAlignment=LEADING]
    Please help, thanks.
    Message was edited by:
    max25

    You are misunderstanding roles of editor, renderer
    and their relationship. Don't call editor function in
    the renderer. Default editor is text field, so you
    don' t need reimplement it.Hi Hiwa,
    Thanks for you reply. Could you please elaborate it little more. I am not understanding where i am using the editor from inside the renderer.

  • UITabelViewCell TextField and TextFieldShouldReturn not working

    In my .h file I have:
    UITableViewController <UITextFieldDelegate>
    In my .c file I have:
    This is under Customize the appearance of table view cell, under configure cell
    UITextField *FirstField = [UITextField alloc]initWithFrame: etc.
    FirstField.delegate = self;
    FirstField.tag = indexPath.row;
    [cell.contentView addSubview:FirstField];
    FirstField release;
    return cell;
    Then as a separate method
    -(Bool)textfieldShouldReturn:(UITextField*)textfield
    textfield resignFirstResponder;
    After putting a breakpoint at the textfieldShouldReturn and pressing the return key, I find
    that this method never gets visited? Am I missing something?

    You need to use TextFormat class to assign the alignment.  "autosize" is not what you think it is, and based on your trying to set the size of the textfield, you probably don't want to use it.  Try adding the following before you assign the text and comment out the autosize line...
    var tfFormat:TextFormat = new TextFormat();
    tfFormat.align = TextFormatAlign.RIGHT;
    tf.defaultTextFormat = tfFormat;

  • Input Textfields not working in fullscreen mode

    Input Textfields not working in fullscreen mode any one help me.

    Quotes from Adobe:
    "Users cannot enter text in text input fields while in full-screen mode. All keyboard input and key-related ActionScript is disabled while in full-screen mode, with the exception of the keyboard shortcuts that take the viewer out of full-screen mode."
    Check with this article to know more: http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html

  • BackSpace not working in textfield

    Hi everybody!
    I have a textfield that only lets enter numeric chars. It extends from JTextField.
    The problem is that the Backspance key is not working. I see that is detected in the processKey Event but it does nothing.
    I have seen some topics about that there is a bug in jdk1.3 and that a solution is using keyTyped instead. But I don't know how to do this.
    May someone help me?
    Thanxxxx

    Hello,
    i think the best way is to to use a custom PlainDocuments for your TextField:
    import javax.swing.*;
    import javax.swing.text.*;
    public class NumberField extends JTextField {
         public NumberField(){
              setDocument(new PlainDocument(){
                   public void insertString(int offset, String str, AttributeSet a)throws BadLocationException{
                        try{
                             Double.parseDouble(str);
                        }catch(NumberFormatException nfe){return;}
                        super.insertString(offset,str,a);
         public static void main(String[] args) {
              JFrame f=new JFrame();
              f.setBounds(0, 0, 100, 50);
              NumberField nf=new NumberField();
              f.getContentPane().add(nf);
              f.setVisible(true);
    }Regards,
    Tim

  • Publishing a flash with AS3.0 on website does not work

    Okay, I'm finally at the end of my flash card. Here's the whole code.
    //import classes
    import com.greensock.TweenLite;
    import com.greensock.easing.*;
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    //end of importing
    //start of sound section is for sound
    var cssLoader:URLLoader;
    var css:StyleSheet;
    var soundReq:URLRequest=new URLRequest("audioFiles/PaukenBrumfiel_AngelsOnHigh.mp3");
    var sound:Sound = new Sound();
    sound.load(soundReq);
    sound.addEventListener(Event.COMPLETE, onComplete);
    //end of sound section
    //Loading external texts
    var weiss:Font = new Weiss();
    var weissBold:Font = new WeissBolder18();
    var weissBolder:Font = new WeissBolder();
    var slideXTween:Tween;
    var txtAlphaTween:Tween;
    var txtNextText:Tween;
    var txtContainer:Sprite;
    var txtField:TextField = new TextField();
    var myTxtField:TextField = new TextField();
    var txtFldwebImages:TextField = new TextField();
    var textRequest:URLRequest=new URLRequest("happyHoliday.txt");
    var textLoad:URLLoader = new URLLoader();
    var txtFormat:TextFormat = new TextFormat();
    var myLinkFormat:TextFormat = new TextFormat();
    var strLink:String;
    var numXPos:Number;
    var numYPos:Number;
    //end of loading external texts
    function onComplete(event:Event):void {
        sound.play();
    function textReady(event:Event):void {
        //txtFormat.font= weiss.fontName;
        txtFormat.color=0x000066;
        txtFormat.size=24;
        //txtField.x = stage.stageWidth;
        //txtField.width = 800;
        txtField.autoSize=TextFieldAutoSize.LEFT;
        //txtField.height = txtField.autoSize
        txtField.wordWrap=false;
        txtField.text=event.target.data;
        txtField.setTextFormat(txtFormat);
        //txtField.y = 350;
        txtField.embedFonts=true;
    textLoad.load(textRequest);
    txtFormat.font= weiss.fontName;
    textLoad.addEventListener(Event.COMPLETE, textReady);
    txtField.x=stage.stageWidth;
    addChild(txtField);
    txtField.y=350;
    TweenLite.to(txtField, 40, {x:-stage.stageWidth*2.25, ease:Linear.easeNone, delay:0.5, onComplete:Inspiration});
    function Inspiration():void {
        txtFormat.font= weissBolder.fontName;
        textLoad.load(new URLRequest("inspiration.txt"));
        txtField.x=130;
        txtField.y=330;
        txtField.alpha=0;
        TweenLite.to(txtField, 5, {alpha:1, onComplete:GoogleFunc});
    function GoogleFunc():void {
        //create and initialize css
        addChild(myTxtField);
        strLink = "<a href='http://www.google.com/' target='_blank'>Google</a>";
        numXPos = 180;
        numYPos = 370;
        var myCSS:StyleSheet = new StyleSheet();
        myCSS.setStyle("a:link", {color:'#000066',textDecoration:'none'});
        myCSS.setStyle("a:hover", {color:'#FF6600',textDecoration:'underline'});
        txtFormat.font = weissBold.fontName;
        //txtFormat.color=0x000066;
        txtFormat.size=20;
        //txtFormat.bold = true;
        myTxtField.setTextFormat(txtFormat);
        myTxtField.defaultTextFormat=txtFormat;
        myTxtField.styleSheet = myCSS; // Linking CSS to TextField
        myTxtField.htmlText="";
        myTxtField.htmlText=strLink;
        myTxtField.wordWrap=false;
        //myTxtField.embedFonts = true;
        myTxtField.width = strLink.length*2;
        myTxtField.x=numXPos;
        myTxtField.y=numYPos;
        //trace("Third txtField.y: " + txtField.y);
        myTxtField.alpha=0;
        TweenLite.to(myTxtField, 1, {alpha:1, onComplete:webImages});
        //trace("tween done");
    function webImages():void {
        addChild(txtFldwebImages);
        var myCSS:StyleSheet = new StyleSheet();
        myCSS.setStyle("a:link", {fontsize:'20',color:'#000066',textDecoration:'none'});
        myCSS.setStyle("a:hover", {fontsize:'20',color:'#FF6600',textDecoration:'underline'});
        txtFormat.font = weissBold.fontName;
        //txtFormat.color=0x000066;
        txtFormat.size=20;
        //txtFormat.bold = true;
        txtFldwebImages.setTextFormat(txtFormat);
        txtFldwebImages.defaultTextFormat=txtFormat;
        txtFldwebImages.styleSheet = myCSS; // Linking CSS to TextField
        txtFldwebImages.htmlText = "";
        txtFldwebImages.htmlText="<a href='http://www.google.com/webImages/' target='_blank'>Google Images</a>";
        txtFldwebImages.wordWrap=false;
        //myTxtField.embedFonts = true;
        txtFldwebImages.width = 300;
        txtFldwebImages.x=300;
        txtFldwebImages.y=370;
        txtFldwebImages.alpha=0;
        TweenLite.to(txtFldwebImages, 1, {alpha:1});
    //end of loading external texts
    Okay, the problem is when I publish the .swf files and put it in an html or .aspx page, it does not work. The audio is not there and a few others things ar enot working. However, it does work if I click on the.html file that Flash created during the publication.
    Here are the folder structions:
    www.mysite.com/myFlashPage.aspx
    www.mysite.com/flashFileFolder/
    www.mysite.com/flashFileFolder/audioFiles/
    So, the myFlashPage.aspx containsthe myFlash.swf file that is inside the flashFileFolder. For some reason, it does not work. Any suggestion is much appreciated.

    The .html file does work if I publish it into the same folder as I created the Flash project. However, when I publish the
    flash .swf to my web site folder (mapped), it's no longer working. The mapped web site drive structher are as follows:
    D:\Mysite\ contains the .html file
    D:\Mysite\flashFileFolder\ contains the .swf file
    D:\Mysite\flashFileFolder\audioFiles contains the PaukenBrumfiel_AngelsOnHigh.mp3 file
    D:\Mysite\flashFileFolder\greensock-tweening-platform-as3 contains all the tweenlite files
    The .html file does not work either. What else do I need to change?

  • Xml file with external css file trying to pull in is not working

    Can anyone tell me where I'm going wrong?
    I have thumbnails loading and then as you click on each one a
    larger pic &
    description shows.
    I'm pulling the large pic & description in from
    studio.xml, and the css is
    in xmlstyles.css.
    Now when I assign &myText= to <desc> in the xml, it
    loads up *all* the
    <desc> into that first picture/description instead of
    throughout.
    Any help is very appreciated!
    function loadXML(loaded) {
    if (loaded) {
    /////////////////////////add xml
    data////////////////////////////////////////////
    xmlNode = this.firstChild;
    image = [];
    title = [];
    thumbnails = [];
    description = [];
    total = xmlNode.childNodes.length;
    for (i=0; i<total; i++) {
    //start child stuff
    image
    = xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
    thumbnails
    = xmlNode.childNodes.childNodes[1].firstChild.nodeValue;
    thumbnails_fn(i);
    title
    = xmlNode.childNodes.childNodes[2].firstChild.nodeValue;
    description
    = xmlNode.childNodes.childNodes[3].firstChild.nodeValue;
    thumbnails_fn(i);
    firstImage();
    } else {
    content = "file not loaded!";
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("studio.xml");
    ////////////////////////// load style
    sheet///////////////////////////////////////////
    myStyle = new TextField.StyleSheet();
    myStyle.load("xmlstyles.css");
    desc_txt.styleSheet = myStyle;
    thisText = new LoadVars();
    thisText.load("studio.xml");
    thisText.onLoad = function(success) {
    if (success) {
    desc_txt.text = thisText.myText;
    listen = new Object();
    listen.onKeyDown = function() {
    if (Key.getCode() == Key.LEFT) {
    prevImage();
    } else if (Key.getCode() == Key.RIGHT) {
    nextImage();
    Key.addListener(listen);
    previous_btn.onRelease = function() {
    prevImage();
    next_btn.onRelease = function() {
    nextImage();
    p = 0;
    this.onEnterFrame = function() {
    filesize = picture.getBytesTotal();
    loaded = picture.getBytesLoaded();
    preloader._visible = true;
    if (loaded != filesize) {
    preloader.preload_bar._xscale = 100*loaded/filesize;
    } else {
    preloader._visible = false;
    if (picture._alpha<100) {
    picture._alpha += 10;
    function nextImage() {
    if (p<(total-1)) {
    p++;
    if (loaded == filesize) {
    //here's what you load up
    picture._alpha = 0;
    picture.loadMovie(image[p], 1);
    title_txt.text = title[p];
    picture_num();
    desc_txt.text = description[p];
    function prevImage() {
    if (p>0) {
    p--;
    picture._alpha = 0;
    picture.loadMovie(image[p], 1);
    title_txt.text = title[p];
    picture_num();
    desc_txt.text = description[p];
    function firstImage() {
    if (loaded == filesize) {
    //content
    picture._alpha = 0;
    picture.loadMovie(image[0], 1);
    title_txt.text = title[0];
    picture_num();
    desc_txt.text = description[0];
    function picture_num() {
    current_pos = p+1;
    pos_txt.text = current_pos+" / "+total;
    function thumbNailScroller() {
    ///////////////////////////////////////////// thumbnail
    code!///////////////////////////////////////////
    this.createEmptyMovieClip("tscroller", 1000);
    scroll_speed = 10;
    tscroller.onEnterFrame = function() {
    if ((_root._ymouse>=thumbnail_mc._y) &&
    (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
    if ((_root._xmouse>=(hit_right._x-40)) &&
    (thumbnail_mc.hitTest(hit_right)))
    thumbnail_mc._x -= scroll_speed;
    } else if ((_root._xmouse<=40) &&
    (thumbnail_mc.hitTest(hit_left))) {
    thumbnail_mc._x += scroll_speed;
    } else {
    delete tscroller.onEnterFrame;
    function thumbnails_fn(k) {
    thumbnail_mc.createEmptyMovieClip("t"+k,
    thumbnail_mc.getNextHighestDepth());
    tlistener = new Object();
    tlistener.onLoadInit = function(target_mc) {
    //next line is where you add total thumbnail width plus a
    little extra so
    they are spaced nicely
    target_mc._x =
    hit_left._x+(eval("thumbnail_mc.t"+k)._width+85)*k;
    target_mc.pictureValue = k;
    target_mc.onRelease = function() {
    p = this.pictureValue-1;
    nextImage();
    target_mc.onRollOver = function() {
    this._alpha = 50;
    thumbNailScroller();
    target_mc.onRollOut = function() {
    this._alpha = 100;
    image_mcl = new MovieClipLoader();
    image_mcl.addListener(tlistener);
    image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);

    I aOn to my problem:
    When I open the iTunesSteup this is the error I recieve:
    "The feature you are trying to use is on a network resource that is unavaible.
    I'm also having the exact same problem. Does any one know how tyo help us!!!
    A few things work like podcast. But when i download them they wont go onto my 5th GEn Ipod video. and i cant get the firmware updated when I go to "settings" "about" it says version 1.0. Could someone help me out? where do I download the newer version. Why wont my Podcasts work?

  • Auto-Submit On Change in DropDown List not working properly!

    Hi all,
    I�ve got a problem with a drop down list an a table with some rows on my page. The property "Auto-Submit on Change" is set for the drop down because the valueChange-method has to do some work when the user selects another value from the drop down.
    The problem is that after selecting another item from the drop down, the table fields don�t keep their values, which I had entered before I selected another item in the drop down. But: When I select an item again, suddenly exactly these values are set.
    Here my code:
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <ui:page binding="#{Page1.page1}" id="page1">
    <ui:html binding="#{Page1.html1}" id="html1">
    <ui:head binding="#{Page1.head1}" id="head1">
    <ui:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/>
    </ui:head>
    <ui:body binding="#{Page1.body1}" id="body1" style="-rave-layout: grid">
    <ui:form binding="#{Page1.form1}" id="form1">
    <ui:table binding="#{Page1.table1}" id="table1" style="height: 488px; left: 24px; top: 120px; position: absolute; width: 1376px"
    title="Table" width="1376">
    <ui:tableRowGroup binding="#{Page1.tableRowGroup1}" id="tableRowGroup1" rows="10" sourceData="#{SessionBean1.columnProvider}" sourceVar="currentRow">
    <ui:tableColumn binding="#{Page1.tableColumn1}" headerText="field1" id="tableColumn1" sort="field1">
    <ui:textField binding="#{Page1.textField1}" id="textField1" text="#{currentRow.value['field1']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn2}" headerText="field2" id="tableColumn2" sort="field2">
    <ui:textField binding="#{Page1.textField2}" id="textField2" text="#{currentRow.value['field2']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn3}" headerText="field3" id="tableColumn3" sort="field3">
    <ui:textField binding="#{Page1.textField3}" id="textField3" text="#{currentRow.value['field3']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn4}" headerText="field4" id="tableColumn4" sort="field4">
    <ui:textField binding="#{Page1.textField4}" id="textField4" text="#{currentRow.value['field4']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn5}" headerText="field5" id="tableColumn5" sort="field5">
    <ui:textField binding="#{Page1.textField5}" id="textField5" text="#{currentRow.value['field5']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn6}" headerText="field6" id="tableColumn6" sort="field6">
    <ui:textField binding="#{Page1.textField6}" id="textField6" text="#{currentRow.value['field6']}"/>
    </ui:tableColumn>
    </ui:tableRowGroup>
    </ui:table>
    <ui:dropDown binding="#{Page1.dropDown1}" id="dropDown1" items="#{Page1.dropDown1DefaultOptions.options}"
    onChange="common_timeoutSubmitForm(this.form, 'dropDown1');"
    style="position: absolute; left: 48px; top: 24px; width: 240px; height: 24px" valueChangeListener="#{Page1.dropDown1_processValueChange}"/>
    </ui:form>
    </ui:body>
    </ui:html>
    </ui:page>
    </f:view>
    </jsp:root>
    and the code of the valueChange-Method:
    public void dropDown1_processValueChange(ValueChangeEvent event) {
    getSessionBean1().getColumnProvider().commitChanges();
    List positions = getSessionBean1().getColumnProvider().getColumnList();
    Is there some explanation for this behavior or it�s really a bug in the way how the drop down is submitting the form? I would understand it when commitChanges is not working here because of auto submit on change (==immediate?). but once it works und once it doesn�t work!

    Hi There,
    Not sure what you mean. Have you tried Netbeans 6 yet. Do you see same behaviour in it as well?
    This might be of help to you
    http://www.netbeans.org/kb/55/dropdowncomp.html
    Thanks
    K

  • Click to URL on RSS text not working on node variable.

    Hi.
    I have a RSS feed parsed into one text box and am using imported CSS to format the text in one Textfield that was created with as3.
    Problem is my roll over and click handler functions for making each text variable a link to the XML URL link will not work unless I point the function at the entire text field. I just want the individual text variables made from the RSS Title nodes, to be set to react to my handleFHTClicked, rollOutHandler and rollOverHandler functions. The movie runs Ok parsing the nodes and picking up the CSS, but I get this error in the output window when it reaches the aformentioned functions...
    TypeError: Error #1006: value is not a function.
         at AS3_CSS_external_file2_fla::MainTimeline/onLoaded()
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at flash.net::URLLoader/onComplete()
    Here is the code....
    var cssLoader:URLLoader;
    //load the fake preloader
    var preLoader = new loading_mc();
    preLoader.x = 170;
    preLoader.y = 50;
    preLoader.scaleX = .7;
    preLoader.scaleY = .7;
    addChild(preLoader);
    //This code loads and Parses the RSS feed
    var loader:URLLoader = new URLLoader();
    loader.addEventListener(Event.COMPLETE, onLoaded);
    var dotExtension:String = "...";
    var maxLength:Number = 0;
    var xml:XML;
    function onLoaded(e:Event):void {
         removeChild(preLoader);
         xml = new XML(e.target.data);
         var firstheadtext = xml.channel.item[0].title;
         var firstbodytext = xml.channel.item[0].description;
         var secondheadtext = xml.channel.item[1].title;
         trace(firstheadtext);
         trace(firstbodytext);
         trace(secondheadtext);
         //dtfa.htmlText = "<p align='left'>"+firstheadtext+"</p>"+"</br>"+ "<p align='left'>"+firstbodytext+"</p>";
         var myText:String = "<p>"+firstheadtext+"</p>"
         +"<span class='myTextStyle1'>"+firstbodytext+"</span><br/>"
         +"<br/>"
         +"______________________________________________________________________________<br/>"
         +"<br/>"
         +"<span class='myTextStyle2'>"+secondheadtext+"</span><br/>";
         function cssLoadComplete(event:Event):void {
              var sheet:StyleSheet = new StyleSheet();
              sheet.parseCSS(cssLoader.data);
              myTextField.styleSheet=sheet;
              myTextField.htmlText=myText;
         var myTextField:TextField = new TextField();
         myTextField.width = 500;
         myTextField.height = 240;
         myTextField.multiline = true;
         myTextField.wordWrap = true;
         addChild(myTextField);
         var req:URLRequest = new URLRequest("myStyleSheet.css");
         cssLoader = new URLLoader();
         cssLoader.addEventListener(Event.COMPLETE, cssLoadComplete);
         cssLoader.load(req);
         //This code handels the click through
         firstheadtext.addEventListener(MouseEvent.CLICK, handleFHTClicked);
         function handleFHTClicked(e:MouseEvent):void {
              navigateToURL(new URLRequest(xml.channel.item[0].link));
           firstheadtext.addEventListener(MouseEvent.MOUSE_OVER , rollOverHandler);
           firstheadtext.addEventListener(MouseEvent.MOUSE_OUT, rollOutHandler);
           import flash.text.TextFormat;
              // create the text format objects
              var overTextFormat:TextFormat = new TextFormat();
              overTextFormat.underline = true;
              var defaultTextFormat:TextFormat = new TextFormat();
              defaultTextFormat.underline = false;
         // add the event handlers
              function rollOverHandler(e:MouseEvent):void
               TextField(e.target).setTextFormat(overTextFormat);
              function rollOutHandler(e:MouseEvent):void
              TextField(e.target).setTextFormat(defaultTextFormat);
    loader.load(new URLRequest("http://www.calgaryheraldonline.com/rss_echo.php"));
    Any assistance would be appreciated.
    Cheers
    Forrest

    If I un-nest the functions from the RSS loader, I get many more errors.
    Here is my un-nested code;
    import flash.text.TextFormat;
    var cssLoader:URLLoader;
    //load the fake preloader
    var preLoader = new loading_mc();
    preLoader.x = 170;
    preLoader.y = 50;
    preLoader.scaleX = .7;
    preLoader.scaleY = .7;
    addChild(preLoader);
    //This code loads and Parses the RSS feed
    var loader:URLLoader = new URLLoader();
    loader.addEventListener(Event.COMPLETE, onLoaded);
    var xml:XML;
    function onLoaded(e:Event):void {
         removeChild(preLoader);
         xml = new XML(e.target.data);
         var firstheadtext = xml.channel.item[0].title;
         var firstbodytext = xml.channel.item[0].description;
         var secondheadtext = xml.channel.item[1].title;
         trace(firstheadtext);
         trace(firstbodytext);
         trace(secondheadtext);
         //dtfa.htmlText = "<p align='left'>"+firstheadtext+"</p>"+"</br>"+ "<p align='left'>"+firstbodytext+"</p>";
         var myText:String = "<p>"+firstheadtext+"</p>"
         +"<span class='myTextStyle1'>"+firstbodytext+"</span><br/>"
         +"<br/>"
         +"______________________________________________________________________________<br/>"
         +"<br/>"
         +"<span class='myTextStyle2'>"+secondheadtext+"</span><br/>";
    function handleFHTClicked(e:MouseEvent):void {
         navigateToURL(new URLRequest(xml.channel.item[0].link));
    firstheadtext.addEventListener(MouseEvent.MOUSE_OVER , rollOverHandler);
    firstheadtext.addEventListener(MouseEvent.MOUSE_OUT, rollOutHandler);
    // create the text format objects
    var overTextFormat:TextFormat = new TextFormat();
    overTextFormat.underline = true;
    var defaultTextFormat:TextFormat = new TextFormat();
    defaultTextFormat.underline = false;
    //This code handels the click through
    firstheadtext.addEventListener(MouseEvent.CLICK, handleFHTClicked);
    // add the event handlers
    // you only need these two functions
    function rollOverHandler(e:MouseEvent):void {
         TextField(e.target).setTextFormat(overTextFormat);
    function rollOutHandler(e:MouseEvent):void {
         TextField(e.target).setTextFormat(defaultTextFormat);
    function cssLoadComplete(event:Event):void {
         var sheet:StyleSheet = new StyleSheet();
         sheet.parseCSS(cssLoader.data);
         myTextField.styleSheet=sheet;
         myTextField.htmlText=myText;
    var myTextField:TextField = new TextField();
    myTextField.width = 500;
    myTextField.height = 240;
    myTextField.multiline = true;
    myTextField.wordWrap = true;
    addChild(myTextField);
    var req:URLRequest = new URLRequest("myStyleSheet.css");
    cssLoader = new URLLoader();
    cssLoader.addEventListener(Event.COMPLETE, cssLoadComplete);
    cssLoader.load(req);
    loader.load(new URLRequest("http://www.calgaryheraldonline.com/rss_echo.php"));
    And now the errors are telling me it cannot access the undefined property of myText and firstheadtext.
    I just don't understand what needs to be inside the onLoaded function and what has to be outside.

Maybe you are looking for

  • VL10B showing PO's with deleted items

    I have an STO Purchase Order and all items are rejected/deleted, but it still shows in VL10B, but since all items are deleted I don't think it should show.  Anyone ever experience this or know how to get around it?

  • Check marked titles are not feasible to synch.Mac to Iphone6

    Dear apple community, hopefully one of you can help me: I would like to synchronize my selected titles at my iTunes on my Mac to my iPhone 6. With my last iPhones this wasn't an issue, but when I synchronize now, it keeps songs that aren't selected a

  • Has anyone else noticed this?

    Open up text edit, fill every other line with the $ character (leave a blank line between every line of characters). Then make the text bold and underline it (this makes the contrast between the text and background greater). Finally change the backgr

  • Boot system flash: does not appear on 2960 running config

    Dear friends, On the 2960, i have two .bin images and i am pointing to the latest one. However, the boot system flash: command along with the new image does not appear in the running config but it appears in the show boot command. t3a.sidradc.dmz.01#

  • Oracle OCP certification

    I have been certified OCP 8i and I would to certified with 10g. anyone know what is the process? do i have to take all module test exam agin or just updated one? also any one have any test braindump avilable. Thanks