A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Linkage in Swish?

  1. #1
    Junior Member
    Join Date
    Nov 2003
    Posts
    24

    Linkage in Swish?

    At work we have Flash MX but at home I have SwishMAX. I like to build out all of my pages with actionscript/swishscript and love that I can use any actionscript in Swish.

    However, the library is quite different, and I can't figure out how to use it right in Swish. How do I have items in my library without being on the stage? How can I mark them for output like I do with linkage in Flash MX?

    Thanks,
    Jason

  2. #2
    Senior Member Dead Rabbit's Avatar
    Join Date
    Oct 2002
    Location
    Back in Tampa FLA again - and happy!
    Posts
    2,403
    Hello kastro662, and Welcome to the Boards!

    In Swish, there is no library as there is in Flash. The objects do not need to be onstage in order to be in the file - you can draw or drag them offstage and they will still be there.

    You don't need to mark them for output as anything and everything used in the movie will be included in the .swf.
    While changing my profile, I accidentally clicked the link that said
    "Add 'Dead Rabbit' to your Ignore List"
    so now I can't talk to myself anymore...

    The Repository -:- The Forum

  3. #3
    Junior Member
    Join Date
    Nov 2003
    Posts
    24

    duplicate sprite

    Thanks, what I want to do then is recreate the essense of the library.

    I created a library sprite with many sprites inside of it and then hid library. So what I'm trying to do now is use duplicateSprite (since attachMovie won't work) and place them into the movie. But I'm having a lot of difficulty.

    I'm trying to do it like this:

    _root.library.title.duplicateSprite("logo", 5);

    With the goal of putting the site's logo into the page. It's not showing up and I have a feeling it is because its parent, library, has its _visible property to false. I've tried _root.library.logo._visible = true and _root.logo._visible = true (since I don't know exactly where it duplicates the sprite to), but nothing seems to work.

    I suppose what I could do is just leave everything on the main timeline (not have the library parent sprite) and then hide each on individually at first... but that is sort of a pain to have to add a line of code to hide every single object in my mock library.

    Please help... I really want to make Swish work for me so I don't have to fork out the money I don't have to get Flash!!!!

    -jb

  4. #4
    Senior Member Dead Rabbit's Avatar
    Join Date
    Oct 2002
    Location
    Back in Tampa FLA again - and happy!
    Posts
    2,403
    Sounds like you are overcomplicating things.

    If the sprite is used in only 1 place in the movie, simply place it there. f you need to copy a sprite to use it in different scenes, right-click on it, then select Make Instance. Move the Instance of the sprite (which is like a copy of it) where you want it and Viola!
    While changing my profile, I accidentally clicked the link that said
    "Add 'Dead Rabbit' to your Ignore List"
    so now I can't talk to myself anymore...

    The Repository -:- The Forum

  5. #5
    Junior Member
    Join Date
    Nov 2003
    Posts
    24
    Well I know where you are coming from... you seem like the graphic artist type. But I am the coding type! :-) So I want to do it in script. In most of my movies that I make in Flash, I only have one frame in the main timeline.

  6. #6
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    If you wish to create a library.

    Then save your components as individual swi's

    Then simply import the swi as a sprite.

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