dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: Johnny2528

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    561

    getChildIndex will return the index of the parsed...

    getChildIndex will return the index of the parsed child.

    ex:
    var depth=boardMC.getChildIndex(block2);
  2. Replies
    3
    Views
    556

    Y dont you count loaded images at...

    Y dont you count loaded images at "onLoadComplete" function like this.

    var count=0
    preload.onLoadComplete = function(){
    _root.count++
    if( _root.count==31){
    _root.gotoAndStop(2)...
  3. Replies
    13
    Views
    1,316

    On "onMotionChange" function which is in the...

    On "onMotionChange" function which is in the village code you have changed the index. I assume the index what u set is out of bounds. Means u have added only two childs inside that movieclip so you...
  4. Assume you having 20 target MovieClips(target1,...

    Assume you having 20 target MovieClips(target1, target2 ,...,target20) and you have to set position of all in a fetch. Using the "this" operator you can do this

    for(var i=0;i<=20;i++){
    ...
  5. Actually by default flash maintain the...

    Actually by default flash maintain the aspectratio. To solve this you have to chagne the scalemode to "exactFit"
  6. CS3 The problem is you have missed the prase follow...

    The problem is you have missed the prase follow by if statement.

    function moveLasers() {
    if(laserReady && Key.isDown(Key.SPACE)) {
    laserReady = false;
    currentTime =...
  7. Replies
    13
    Views
    1,316

    It will comes under the main fla. It looks like...

    It will comes under the main fla. It looks like this

    stop();

    var imageRequest:URLRequest = new URLRequest("dylanTalking1.swf");
    var imageLoader:Loader = new Loader();...
  8. Replies
    13
    Views
    1,316

    Hi Spires, Hope this one help u, function...

    Hi Spires,

    Hope this one help u,

    function onComplete(ev:Event):void
    {
    var tar=ev.currentTarget
    tar.content.addEventListener(Event.ENTER_FRAME,frameRunning)

    }
  9. CS3 Hi Shiney09, you have to embed the font.

    Hi Shiney09,

    you have to embed the font.
  10. Replies
    3
    Views
    4,201

    CS3 Hi, Try this Hi, var...

    Hi,

    Try this


    Hi,

    var drawingFlag:Boolean=false;
    drawingPad.onMouseDown=function(){
    this.lineStyle(1,0xFF0000,100)
  11. Hi, You can easily fix this by doing the small...

    Hi,
    You can easily fix this by doing the small changes. This one really help

    var angle=Math.atan2((y1-y2),(x1-x2))
    if (angle<0) {
    angle +=3
    }
    ...
Results 1 to 11 of 11




Click Here to Expand Forum to Full Width

HTML5 Development Center