reprise - get initial css definitions


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. var cssStyles : CSSDeclaration = m_rootElement.styleSheet.reprise::getStyleForEscapedSelectorPath(
  2. m_myElement.reprise::selectorPath);
  3.  
  4. /* usage */
  5. m_myElement.setStyle('left',cssStyles.getStyle('left').specifiedValue() + 'px');

URL: http://wiki.github.com/tschneidereit/reprise

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.