A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 20 of 27

Thread: swf Communication

  1. #1
    Member
    Join Date
    Apr 2006
    Posts
    61

    swf Communication

    Bit of a challenge.....

    Any way of getting the small swf imported into the main one to fill in the
    text box ?

    Html,Swf,Fun and imported swf included in zip...
    Attached Files Attached Files

  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    I don't think you can unless maybe you know the name of the variable set in the loaded swf. I'm pretty sure that the loaded swf could send info to the loading swf using the _parent method.

  3. #3
    Member
    Join Date
    Apr 2006
    Posts
    61

    Challenge

    The variable is "stepper".. This has been causing me hassle for 2 days now and i'm sure its possible... Anyone who figures it out and can explain/supply example then i will supply a FREE domain name (.com or .de ) .... ( Only for the first to succeed and reply)... Reply to forum so it can be timed.....

  4. #4
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    I think this thread is sitting idle because it's odd and missing an important piece....the code to the loaded swf. Take a closer look at that fun file Bret. He's Importing the swf into the main and then exporting the main. He's not loading an swf at runtime. That and the fact he left out what comprises the loaded swf (test.swf) and did not provide the source makes it a waste of time since we cannot control what test.swf sends to _root without access to it's scripting.

    Not only is it an odd way of handling children movies, it's not the preferred method (importing as opposed to loading).

    That test.swf looks to be a flash made movie using a component.

    I could recreate it making both a Koolmoves movie but still would avoid importing it and would instead loadMovie and integrate the two. This is only a challenge because we are not provided all the code for those above examples.
    Last edited by Chris_Seahorn; 05-02-2006 at 09:51 AM.

  5. #5
    Member
    Join Date
    Apr 2006
    Posts
    61
    Just say which files are needed chris and stop the High and Mighty bit.. I am asking for help because i dont know, if i did it would be solved...

  6. #6
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    The source to test.swf. Plain enough language dude?

    For the record I find your using a free domain as incentive to solve a problem like it's a prize as silly as you find my reply. This is a forum where cute incentives aren't needed.
    Last edited by Chris_Seahorn; 05-02-2006 at 10:03 AM.

  7. #7
    Member
    Join Date
    Apr 2006
    Posts
    61
    The FREE domain is to say thank you to whoever solves the problem, and what is wrong with an incentive? Do you go to work for free?
    Attached Files Attached Files

  8. #8
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Yes, most people here fix problems for free. You do have a clue how a forum works right?

    Now that you've attached all files, I'm sure Bret will square you away. It's not worth my time. I have a high and mighty attitude to uphold after all .

  9. #9
    Member
    Join Date
    Apr 2006
    Posts
    61
    Yes chris most people fix problems for free, so why should i not give something away for free.......

  10. #10
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Semantics.

    Challenge
    The variable is "stepper".. This has been causing me hassle for 2 days now and i'm sure its possible... Anyone who figures it out and can explain/supply example then i will supply a FREE domain name (.com or .de ) .... ( Only for the first to succeed and reply)... Reply to forum so it can be timed.....
    You are not giving anything away "free". You are awarding it to the successful troubleshooter....first to achieve success....as you stated yourself. Please refrain from jabbing at me for your mispoken post.

  11. #11
    Member
    Join Date
    Apr 2006
    Posts
    61
    Chris this is the best fun i have had all day..... Go back to your drumkit or read your first post!!!!!

  12. #12
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Me too. Laughing is the best medicine. Good luck with the contest

  13. #13
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Ok Boys quite the barking......

    It might be possible to pull the variable from an imported swf I just don't know. As Chris pointed out you can code in the loaded swf to set a variable in _root or _parent, not sure if it will work when loaded at design but I'm sure it works when loaded at runtime.

  14. #14
    undead creature necromanthus's Avatar
    Join Date
    Feb 2002
    Location
    ROM
    Posts
    1,890
    Quote Originally Posted by xpattech
    Anyone who figures it out and can explain/supply example then i will supply a FREE domain name (.com or .de ) .... ( Only for the first to succeed and reply)...
    Bob Hartzell gave me the attached ZIP file.
    He is looking for a new domain: http://www.koolmoves.de
    Last edited by necromanthus; 08-07-2008 at 06:54 AM.

  15. #15
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    What are you trying to accomplish here. Do you need to "talk" with swf's made in FLASH8?

  16. #16
    Member
    Join Date
    Apr 2006
    Posts
    61
    If Bob wants www.koolmoves.de i'm afraid its already gone. Not sure i have been doing things the right way regarding importing swf as chris explained earlier.... I like the look of the components in Macromedia Flash 8 but i cannot recreate them in Koolmoves... This is actually the only thing i need to do..

  17. #17
    Member
    Join Date
    Apr 2006
    Posts
    61
    Actually getting somewhere..
    Attached Files Attached Files

  18. #18
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Here is what I meant. Offered in good faith.

    http://sandbox.blogdns.com/examples/xpatmain.swf

    EDIT: I probobly should explain better.

    The components were originally concieved for ease of use. You'll notice most of them do not allow access to their scripting but only allow parameters in the properties pane (usually decided by the creator) to be altered. Koolmoves components fall in this category too (created for ease of use). This usually gives you the needed functions to cover most bases. What you are doing requires us to bypass that properties pane and access the numericStepper class by hand. All we do is give your stepper component on the stage an instance name and we can then manipulate it....in this case with an event handler that grabs the steppers value to be done with as we please. In reality you could control every aspect of the stepper this way.
    Last edited by Chris_Seahorn; 05-02-2006 at 09:49 PM.

  19. #19
    Member
    Join Date
    Apr 2006
    Posts
    61
    I cannot open your .fun file. It says unknown tag $tg$... Any ideas ?

  20. #20
    Member
    Join Date
    Apr 2006
    Posts
    61
    Sorry it was $ltg$

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center