Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE FLASH:HomeFlash ForumFlash TutorialsFlash Video TutorialsWeb Streaming ForumAdobe FlashPodcast

Re: Importing an interactive .swf file into a full flash site ( AS3 answer)

COW Forums : Adobe Flash

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Share on Facebook
Respond to this post   •   Return to posts index   •   Read entire thread


Laura FloerschRe: Importing an interactive .swf file into a full flash site ( AS3 answer)
by on Oct 20, 2011 at 7:21:16 pm

Ok... apparently I'm a lot more lost in Flash than I thought. I am not classically trained and have only had the time to teach my self through templates because the small businesses I worked for promised the clients magic and I had to figure out how to do this stuff on my own.
So the template I purchased uses Action script 2 instead of AS3? I have the as3 highlighted when I look at actions.
I understand your code to load my .swf (thanks for explaining what it does) but I'm afraid I may need it broken down a tad more. I import my .swf file into the library and then place it on the stage where I want it and apply this code to..........? I guess I'm just confused about where all the code goes to make not only this loader .swf file play, but also have the other (Artist Bio) window pop up...all when the artist's name is clicked on page one. Do I put it in that button's code which right now looks like this?:
on (rollOver) {
gotoAndPlay("s1");
}
on (rollOut, releaseOutside) {
gotoAndPlay("s2");

}
on (release) {
_root.popup_pressed=1;
_root.scrHEIGHT=240
_root.scroller.scroller.gotoAndStop(2);

_root.TM_title = "Artist Biography";
_root.READ = 7;
_root.scroller.gotoAndPlay("s1");
}

Or do I somehow make the .swf a movie clip and attach it to that..... I'm just lost in that regard.
Thanks for helping a flash amateur by the way. I really need to finish this project to move on to less time consuming ones and this has frustrated me like mad.

As for my second question.....
I'm not sure what you mean by giving the button an instance name and placing the code in the main timeline. Where in the "main timeline" do I put it? I only know how to place an action on the button once it's created. I played around with this one a bit because it already had the roll over and release function for the other two "terms of use" and "privacy policy" buttons down there, so I figured it'd be easy to get that button to have the same functionality but direct it to an outside url. This is the other's function code:

on (release) {
_root.popup_pressed=1;
_root.scrHEIGHT=240
_root.scroller.scroller.gotoAndStop(2);

_root.TM_title = "PRIVACY POLICY";
_root.READ = 19;
_root.scroller.gotoAndPlay("s1");
}

on (rollOver) {
gotoAndPlay("s1");
}
on (rollOut, releaseOutside) {
gotoAndPlay("s2");
}

So if you could break your explanation down just a bit, I'm sure I could understand what you mean. Or is there a way to easily do this from this button's action instead?
I apologize that I'm still new at this and being self taught (with little time to teach myself) is definitely working against me with understanding flash code. I am working on the .php form right now as well, as I can only get it to let me type in a few letters and not the rest for some reason. Hmmmm...... can't wait to be done with this thing to say the least! :) Thanks again, ahead of time for your response.


Posts IndexRead Thread
Reply   Like  
Share on Facebook


Current Message Thread:




LOGIN TO REPLY



FORUMSTUTORIALSMAGAZINESTOCKYARDVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2013 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]