-
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
-
Senior Member
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
-
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
-
Senior Member
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
-
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.
-
Flashkit historian
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|