dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: svanholm

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,740

    Local SWF access remote file

    Can someone please tell me how to let my local running swf-file access a xml-file that is on a server?

    I have been to the "Global Security Settings panel" but dont really understand.
  2. Thread: Error 2046

    by svanholm
    Replies
    1
    Views
    1,879

    Error 2046

    Hello friends

    I have delivered a flash e-learning-course to a company. It worked fine at first, but now they say that they get a white screen with the text "error 2046" on it and the flash does...
  3. Replies
    1
    Views
    379

    Fullscreen exit error

    Hello

    I have an FLVPlayback. When I exit fullscreen mode the videoinstance is to far to the right on the stage. I check the videoinstances x-value and it isnt where it should be! I googled this...
  4. Replies
    1
    Views
    631

    FLVPlayback, scrub precision [Urgent]

    Hello
    I am making a videoplayer. When I press the bufferbar, the video seeks to that position. Everything works but the precision is a bit off when you do this. It feels a bit random. The video...
  5. Replies
    0
    Views
    1,202

    Load mp4 from specified pos

    Hello
    I have a player that can switch between hd and sd. If I watch 20 sec of sd and then switch to hd, the hd-file starts to load from the beginning, offcourse I want it to load from 20 secs and...
  6. Do as you said, link the keyboard event to a...

    Do as you said, link the keyboard event to a function. Then from within that function, call the other two that you want run.


    function enterPressed(e:KeyboardEvent)
    {
    function1();
    ...
  7. Replies
    1
    Views
    1,880

    Try using the tweenclass called Tweener or...

    Try using the tweenclass called Tweener or TweenLite. Search on google for download.
    It will help you.
  8. Replies
    2
    Views
    353

    Create two variables: var...

    Create two variables:

    var list1Selected:Boolean = false;
    var list2Selected:Boolean = false;

    Create a function that you call everytime a button is pressed, pass along the buttons list nr:
    ...
  9. Thread: Hebrew RegExp

    by svanholm
    Replies
    4
    Views
    1,276

    This is how Ive used it: var...

    This is how Ive used it:

    var dechangeChar:RegExp = /_/g;
    var name:String = "Mr_Anderson";
    var fixedName:String = name.replace(dechangeChar, " ");
    trace(fixedName) //Mr Anderson
  10. Hello Here is another solution: public...

    Hello
    Here is another solution:

    public function loadImages()
    {
    for (var i = 0; i < arrayImages.length; i++)
    {
    var holder:MovieClip = new MovieClip();
    holder.nr = i;
    var...
  11. Replies
    1
    Views
    360

    You should dispatch an event from inside...

    You should dispatch an event from inside mcBirdEnter1 at the last frame and listen for it in the above class.
  12. import flash.geom.ColorTransform; var...

    import flash.geom.ColorTransform;

    var cTransform:ColorTransform = new ColorTransform();
    colorTransform.color = 0x000000;

    yourObject.transform.colorTransform = cTransform;
  13. I understand your problem. You can solve that my...

    I understand your problem. You can solve that my passing the new child along to the other function.

    function mainFunction():void
    {
    var newChild:blabla = new blabla();
    ...
  14. I dont understand why you cant just put the...

    I dont understand why you cant just put the withinfunction outside of the mainfunction?
    What are you afraid will happen?
    If you want to call the withinfunc from inside mainfunc, just write...
  15. Replies
    4
    Views
    575

    You can test that this way: for (var...

    You can test that this way:


    for (var i:Number = 0; i < myContainer.numChildren; i++)
    {
    myContainer.getChildAt(i).x = Math.random() * myContainer.width;
    myContainer.getChildAt(i).y =...
  16. Replies
    2
    Views
    368

    Could be an idea to use the TextField-propery...

    Could be an idea to use the TextField-propery textHeight instead of height.
  17. Replies
    1
    Views
    946

    Yo Yoni I feel an urge to help you. Write to me...

    Yo Yoni
    I feel an urge to help you.
    Write to me on messenger: svanholm@hotmail.com
    I will teach you to become the AS3-master you are destined to be.
  18. Good luck Danny Boy!

    Good luck Danny Boy!
  19. I downloaded and looked at the code. It scared me...

    I downloaded and looked at the code. It scared me a little bit.
    Thought you have truly accomplished a lot with limited knowledge of AS3:)
    I cant tell you how to change your code but I can give you...
  20. If I understand you correctly, your problem is...

    If I understand you correctly, your problem is that you cannot reach the myXML-variable from other classes?
    Can you tell me more about the code-structure of your game?
    In what class is the above...
  21. Replies
    2
    Views
    697

    Use this as your removeLoader() function...

    Use this as your removeLoader()


    function removeLoader():void {
    while(this.numChildren > 0) removeChildAt(0);
    addChild(container);
    }

    This will first remove everything and then add...
  22. Instead of: _root.january.gotoAndStop(2); ...

    Instead of:
    _root.january.gotoAndStop(2);

    Use:
    (this.parent as MovieClip).gotoAndStop(2);


    In your case the maintimeline is nav_mc's parent.
  23. Replies
    3
    Views
    545

    You dont have to import display-classes when...

    You dont have to import display-classes when coding inside Flash itself. If you are using some other program, like FlashDevelop - you have to import everything.
    Most of the code examples you find...
  24. Thread: Freeze timer

    by svanholm
    Replies
    1
    Views
    388

    Unfortenately there is not a "time"-propery on...

    Unfortenately there is not a "time"-propery on the Timer that can tell you how much time has passed or remains.
    I would solve this by setting your timer up like this:


    private var timer:Timer =...
  25. Replies
    2
    Views
    1,638

    Hello In your Main-constructor, call the...

    Hello
    In your Main-constructor, call the function bellow.


    public function loadImages()
    {
    for (var i = 0; i < _nrOfImages; i++)
    {
    var loader:Loader = new Loader()
    loader.load(new...
Results 1 to 25 of 79
Page 1 of 4 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center