Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

old or dave... 1

Status
Not open for further replies.

coldfused

Technical User
Jan 27, 2001
2,442
US
ok guys quick question..i have a mc that is draggable..right..i wanna use the same mc in three different scenes..the button that drags the movie clip has these actions..
on (press) {
startDrag ("_root.window1");
}
on (release) {
stopDrag ();
}

ok all is good..move the mc into scene 2 and it does not drag..is this because it is no longer _root?.if not what does it become on scene 2..also if i change the actions for the button it stays the same of course for each scene right..so i guess my question is how do i get this mc to drag on each scene with the same button..

also when we did that tv guys remember?.the buttons on the tv were fixed so that you couldn't click on the same button twice and open the same window without closing it first right..well i am having the same problem again..

the code for the buttons on the tv were as so:

on (press) {
if (/:currentchannel==movie1) {
stop ();
} else {
/:newchannel = movie1;
transition.gotoAndPlay(2);
}
}

how do i apply this to my new problem..only three buttons on the new one..home, aboutus, portfolio..each one of these buttons call the next scene..scenes are labled home, aboutus, portfolio..what would be the code for the new buttons..i'm not gona have a close scene button..just buttons that call the next or previous scene..just when you click on a button, and click it again it's calling other scenes from the movie(the wrong scenes)..

here is a link if ya wana see what i mean..it's only 18k so should be a quick download..

or

also where do i add the "scroll=no" in the html to make it exact fit without scroll..have a look at the code on the html and tell me where i'm going wrong..and yes this is my first attempt at embeding swf's in html so don't laugh..

thanks in advance..

e.gif


virtuality2001@aol.com
 
Hi Virt,

You should add the scroll=no in the <BODY> tag as:
<BODY BGCOLOR=&quot;#000000&quot; MARGINHEIGHT=&quot;0&quot; MARGINWIDTH=&quot;0&quot; TOPMARGIN=&quot;0&quot; LEFTMARGIN=&quot;0&quot; SCROLL=NO>

Now since your using tables, this removes the scroll bar but your movie is no more centered in the table. I've never used tables... But I guess there some way of positioning the movie so that it be centered, like with a <left> positioning tag or something like that. I'll look into it but maybe somebody that's familiar with tables can come up with a quicker answer.

As for your drag problem, I don't have it! If you mean that your different scenes correspond to the different colored backgrounds, I can drag the menu mc in any of the scenes!
It's tricky if you hit the top of the tab, but if you click on the left portion, there's no problem. Maybe try making your tab just a little bigger on top especially.

As for your last problem, I guess you mean that once you've hit HOME for example, you don't want that button to be clickable until another one as been hit, right?

Maybe e-mail me the .fla at my Montreal address, I'll have a look!

;-)
 
sheesh your right..it is dragging ..must have been half asleep..and yes just like the tv..if ya still have that fla look at those buttons..remember how we made it so that the buttons could not be clicked upon twice in a row..if the home window is still open then i want the home button to not be active..you know what i mean..and i published that html from dreamweaver..was my first attempt..couldn't quite get the framesets to work as i wanted but i got the tables to work..can you write out the html code to put those two clips in frame sets just like they are..and have them centered and everything..i would appreciate you showing me the right way..

sending you the e-mail now..
e.gif


virtuality2001@aol.com
 
So you rascal! Changed the swf on me, since this morning!
9:30pm... Just sat down in front of my PC! Looking into your fla. Give me a shout, when you sit down in front of your machine!

;-)
 
sorry it is back..frame.swf for the left frameset..and templet.swf for the right side..did you get that code written for the framesets for me..was just wondering because that is my next area of studying..i want to understand completely how to use frame sets and things like that..and i need to see the code that you write so it can answer my questions..plus i give up on dreamweaver..i would just rather write them out my self..
e.gif


virtuality2001@aol.com
 
also old lets talk about compressing sound and jpegs in flash..what is the best compression rate for mp3's in flash, 8kbs? also talk to me about compressing jpegs in flash..i hear people talking of it but have yet do completely understand it..is there a way in flash to compress the file further..and will that compression allow me a faster download and/or cut down the file size?
e.gif


virtuality2001@aol.com
 
Sorry Virt... A lot of problems tonight (connection, login on the forum, etc.)... And my mind is still in Florida.
Please stop changing the files on me... It's a big hassle!


Ok! the above works in IE (using tables - but I guess you now want to drop those!) but doesn't really in NS. Can't get rid of right & bottom margins... For some f... reasons.
Your html didn't worked at all in NS 'cause you weren't using the full address in your embed tag.

Now... Do you want the same thing using a frameset? Or are you going to go &quot;full naked window&quot; on this or will you stay with what you have now (with statusbar, address, etc...)?

Let's settle this issue, before we get in to all your other questions!
And please stop changing the files... Change your html's and swf's names if you want experiment, while I'm working at this.

;-)
 
i would like the same thing in framesets with the small defining border(the default browser color border)..if you can show me how to write the code for that i will do the rest..i think i figured out how to make the buttons inactive while that buttons window is open, but i haven't got it to work as of yet..trying to copy the code from the tv..but it's not working..but yes if we can just get the two in framesets for now that will be good..and i guess i should use the full address in the embeded tag huh..
e.gif


virtuality2001@aol.com
 
and also old..i want the swf's to fill up the whole frameset..not like it is with the tables..
e.gif


virtuality2001@aol.com
 
Ok! Will have a go at it! But no promises tonight!
I'm waisted and meetings early tomorrow, busy all day!
Shooting that doc next week... So!

;-)
 
Virt,

Will look into your thing again tonight.
Sorry my head hasn't really been into Flash these last few days...

Meanwhile here's what seems to be a good start as a frames tutorial:

Catch you later... If not much later!

;-)
 
Virt,
For your button problem, basicly change all of your buttons' actions in all the scenes from gotoAndPlay to gotoAndStop. Since you're working with scenes, it's different than with mcs! While your at it, you could change all of the on(release) to on(press), the action is then more immediate... Otherwise, things seem to stall according to the way the user clicks those buttons!

What was the next question?

;-)
 
did you get that e-mail..with the html in it..walk me through that..the embeded blah blah blah..and the rest that i need..it is very plain so don't laugh
e.gif


virtuality2001@aol.com
 
Yeah! Got the e-mail. Hang on! Did you upload that first.html?

Connection is breaking up again tonight! I'm being kicked off every 5 minutes... So bear with me!

;-)
 
no it's not uploaded..i did but it doesn't work..it doesn't call anything..just the blue background shows up..i know i am missing something..what about the embeded thing and the exact fit and scroll no and all that..
e.gif


virtuality2001@aol.com
 
no i want to do it myself so i can learn..so let me get this straight..publish the html's from flash..take those html(frame and templet) and place them in framesets in a different html? is that right..
e.gif


virtuality2001@aol.com
 
changed all the button actions as you stated above..works fine in scene 1(home)..but if you go to scene 2(about us) it doesn't work..if you click on the button again while that scene is open it opens the next scene..why?
e.gif


virtuality2001@aol.com
 
Publish from Flash... Two different htmls holding the frame.swf and the other the templet.swf. Then just put those html as source in the frameset of your first.html, which is sort of your main html that holds the frameset.

;-)

Of course all those htmls(3) should be uploaded, with the right swfs and then just call your first.html.

We'll worry about the body tag & scroll=no stuff when you get this working first! OK!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top