action scripting

http://www.adobe.com/support/flash/...pt_dictionary/actionscript_dictionary678.html
http://www.actionscripts.co.uk/tutorials/poab/poab04/stage.html

the <object> tag in the html can have it's size set in px or % and effects the swf size in the html.
the ActionSctipt Stage.scaleMode effects the actual swf contents.

for example if you had 100% as the size set in the <object> and had Stage.scaleMode = noScale; on frame one of your movie, then the swf will fill the html but it's content will not scale with it.
 
tried the stage.scaleMode... one but it doesnt seem to make the swf file anybigger when i click on that to view it......
but i've realied if you expand the window the whole thing expands too so if it needs to be bigger when they (uni tutors) come to view it they can allways maximise the screen.
infact is there a way to make it open maximised all the time? just that when i maximise, "x" out of it then open again it goes back to being normal size. (not looking for action script to do this)

and ive got opne more possible problem but i think i will ask the tutor for ideas first on how to tackle it.
 
An other button problem, you'd have thought i would have th hang of this.
Basically on roll over credits are suppose to roll up the screen (all done via movie)
but when i roll over anywhere on the screen the credits play (i think this is due to how I've layered them in the button timeline)
now my other roll-over button ive created before, you need to actually roll over the button for it to show, even though the roll over pop-up covers part of the screen even if you go on the part that the pop-up eventually covers, pop up does not pop up. Unlike this one roll over when ever your on screen it starts playing.
Now iam thinking is if i take the movie clip out of the button and give its on layer on the main stage, I could then programme the button to play on rollover? am I correct?
just thought of this so will go and try it after i hit "post quick reply"

but yeah any ideas how to do this? sorry for not making much sense.
 
edit: should say this is a different flash to the other one you helped with


i got it to play the credits movie when you roll over the button, thing is it wont stop playing when you roll off it, I also need to go back to "credit home".
Been able to programme it to stop at the end of the clip but notgo back to "credits home", also if possible once its play through the movie even if the mouse is still on "roll over" i dont want it to play again, i just want it to hold on "credits home" page untill moused it moved off then on again.
the only major succesful bit of code (aswell as others in the animation) is:

credits_btn.onRollOver = function (true) {
gotoAndStop ("credits movie");
}

ive also repeated that for false thinking that it would work if the button is rolled off, but doesnt seem to.
 
ive been able redo a roll over button where you just roll over the button for the txt to come up, while before it could be anywhere that the "pop up" covered would also show it.
But i still cant get it to work when a movie clip is used as the "pop up".....aaargh!
 
Dont need no more help on this problem =D

I copied over the rollover button that was working, and edited it.
Simple way, but it worked, and it was me that created the originial button anyway.
 
got on problem, which i think is just settings.....
basically when you maximise the swf file to view it shows everything on and off the stage. How do i change this so i only shows the stuff on the stage?
 
easiest way, move them to the side some more.

another method without using code would be to create a new layer above the items, fill that layer with a shape that is the same colour as the movie background and make it large enough to cover all the items.


button events btw:
onRollOver
onRollOut
onPress
onRelease
 
got the buttons working
and discussed with tutor that maybe the best idea for items that isnt on the stage but still shows up when you maximise the swf file when viewing is just to create a "frame" round the stage.

and tutor also said that with roll-over buttons you need to put in a hit layer, although the ones ive done dont have a hit layer =S
ah well, dont think i'll be using flash till like september or later anyway.
 
if a hit area does not exist then the overall shape and size of the button is used as the hit area.

a special thing you can do with the hit frame, create a shape in the hit but have nothing for up, over and down frames. exit out of that symbol and you'll see the button shows on the stage as a 50% alpha blue shape, test the move and you'll find it's invisible button :cool:

you got plenty of time to tinker around then, www.gotoandlearn.com has cheesy name but it's a pretty good site. If you using Flash 8, forget AS3.0 (ActionScript 3.0) projects, they are for Flash CS.
 
Back
Top Bottom