dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: chulimanga

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    454

    moagrius, that's nice one! Turning that to XML...

    moagrius,
    that's nice one! Turning that to XML is a perfect solution!

    Thanks a lot!
  2. Replies
    3
    Views
    454

    [RESOLVED] help with RegExp

    Hi,
    could you help me to find the right RegExp to solve my problem? In htmlText are images and I need to assign them unique ID

    original:


    <img src="/imgs/image001.jpg" width="150"...
  3. Replies
    6
    Views
    965

    Perfect, thanks!

    Perfect, thanks!
  4. Replies
    6
    Views
    965

    I want the pattern to find every space (one or...

    I want the pattern to find every space (one or multiple) which is behind a,i,k,o,s,u,v,z (standing alone) or a number or a period and replace that space with &nbsp;
  5. Replies
    6
    Views
    965

    Thanks for your attempt, but it doesn't work for...

    Thanks for your attempt, but it doesn't work for me.

    If I test my code with this string:



    var str:String = "ccccc b ccccc a ccccc a v ccccc d ccccc i v ccccc t ccccc k ccccc";


    The...
  6. Replies
    6
    Views
    965

    [RESOLVED] Better RegExp

    Hi,
    I just want to know if you could find a better way, how to write this RegExp:

    var str:String = txt.htmlText;
    var re1:RegExp = /\s+(a|i|k|o|s|u|v|z|\d+\.){1}\s/ig;
    var re2:RegExp =...
  7. Replies
    7
    Views
    682

    From what you wrote this probably works in AS2....

    From what you wrote this probably works in AS2. I've tried the same in AS3 (this forum) with no success. Thanks
  8. Replies
    7
    Views
    682

    Hi, could you send more informations about your...

    Hi,
    could you send more informations about your solution? As far as I know TextField isn't DisplayObjectContainer so it cannot store any movieclips.
    Thanks
  9. Replies
    3
    Views
    593

    Hi ratboy, working with html formated text...

    Hi ratboy,
    working with html formated text inside of flash is quite weird.

    - there is a bug when img tag follows any other tag <some tag><img ...> you have to put something in between
    - if you...
  10. you cannot use variable "i" in...

    you cannot use variable "i" in content_mc.gotoAndStop(i);

    If number of the frame depends on the name you have to find it again.

    e.g.



    function clic(e:MouseEvent):void {
    if...
  11. glad to help. for (var key:Object in btnsDict)...

    glad to help.

    for (var key:Object in btnsDict)
    goes thru all objects stored in btnsDict

    http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/utils/Dictionary.html
  12. Replies
    6
    Views
    657

    If you'll keep subNavName in first position ...

    If you'll keep subNavName in first position



    for each (var nodeI:XML in contentXML.*) {
    if (nodeI.children()[0].name() == "subNavName") {
    for each (var nodeJ:XML in nodeI.*) {
    if...
  13. Replies
    6
    Views
    657

    easy way is to skip the first node: for...

    easy way is to skip the first node:



    for (var i:uint = 1; i < contentXML.children().length(); i++) {
    var nodeI:XML = contentXML.children()[i];
    for each (var nodeJ:XML in nodeI.*) {
    if...
  14. Replies
    6
    Views
    657

    for each (var nodeI:XML in contentXML.*) { for...

    for each (var nodeI:XML in contentXML.*) {
    for each (var nodeJ:XML in nodeI.*) {
    if (nodeJ.name() == "subNavName") trace ("aaa "+nodeJ.name())
    else trace ("bbb "+nodeJ.name())
    }
    }
  15. Replies
    8
    Views
    464

    I don't know, if I understand your question...

    I don't know, if I understand your question right, but

    speed_txt.text = speed;

    should display the speed in TextField (this TextField is dynamic, not input).
  16. Hi Jack, try using Dictionary this is not...

    Hi Jack,
    try using Dictionary

    this is not tested, but should work:


    var btnsArr:Array = [btn1, btn2];
    var btnsDict:Dictionary = new Dictionary();

    for (var i:int = 1; i < btnArr.length;...
  17. try homebtn.addChild(txtFld);

    try homebtn.addChild(txtFld);
  18. Replies
    0
    Views
    278

    component edit

    Hi,
    does anybody know, how to change one style in UIScrollBar? I want to dynamically change the color of upState for all Buttons (up, down, scrollThumb).
    I've found one how to probably make it,...
  19. Replies
    5
    Views
    572

    Theoretically this could make, but will need some...

    Theoretically this could make, but will need some tune in your application


    TweenMax.to(mg.btnGroup.btn1, .2, {tint:0x273555, ease:Back.easeIn});

    var menuName:String;
    ...
  20. Replies
    5
    Views
    572

    I don't know hierarchy of your btns, but maybe...

    I don't know hierarchy of your btns, but maybe this will show you the way:


    function clickAction(event:MouseEvent):void {
    if (event.target.name != menuName) {
    menuName = event.target.name;...
  21. Replies
    7
    Views
    682

    Hi, thanks for your attempt! Did you realize...

    Hi,
    thanks for your attempt!
    Did you realize in which case it happens? Only when selectable is true and when between first and second click some part of text is (or was?) selected. Really strange.
  22. Replies
    2
    Views
    586

    try this sample...

    try this

    sample
  23. Replies
    7
    Views
    682

    TextField + a href + img

    Hi,
    I've stucked with a really weird behavior of TextField.

    Look at this sample:


    var myField:TextField = new TextField();
    var format:TextFormat = new TextFormat();
    format.font = "Arial";...
  24. Replies
    12
    Views
    837

    try this: var btns:Array = [btn1, btn2,...

    try this:


    var btns:Array = [btn1, btn2, btn3, btn4, btn5, btn6, btn7, btn8];

    for (var i:uint = 0; i < btns.length; i++) {
    btn[i].addEventListener(MouseEvent.ROLL_OVER, onRollOverHandler);...
  25. Replies
    0
    Views
    596

    express install

    I've realized, that express install (via swfObject) which I was using for a long time now doesn't work like it was.
    I have installed FP7 (which is more than minimal required version) and...
Results 1 to 25 of 129
Page 1 of 6 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center