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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ok, big "getURL problem!", VERY URGENT!!! 2

Status
Not open for further replies.

MrMischeif

Programmer
Oct 24, 2001
11
NZ
Ok, here goes,
I'm trying to create a flash menu in flash 5, making the tweens etc. was the easy part, im trying to put a get url at the end of my tweens. It works SOMETIMES, on some buttons, when i go to actions>basic actions>getURL it will insert
Code:
"on(release) {getURL Blah Blah Blah"
but on most it will go
Code:
"{getURL}"
, this is all, Which is pissing me off because as soon as my motion gets to that frame it will automatically open that link which is NOT GOOD. I want it so thatr when the button is clicked on it will go to said url. I really have to get this done ASAP, I'm certain it's a basic problem but im doin it wrong or something, PLEASE HELP!!!!!
 
well are you putting the get url actions in the symbol of the button itself or the actual frame that the tween stops?
e.gif


carlsatterwhite@endangeredgraphics.com
 
the frame that the tween stops, coz since my tweens all start and stop at different times i put keyframes up untill that point to line up all my tweens then put all the actions in the last frame, it seems to me that if i put a stop in the last tween frame the movie will stop there and not start the other tweens
 
are your buttons in that tween?..if so put the actions in the buttons not the frame...that is why it's going to the url...if it is a frame action it will complete the action when it reaches that frame...regardless of stop action or not...that simply stops the movie in thet frame...it doesn't stop the actions in that frame from taking place!..also for a frame action there will be no "onrelease" needed...only in a button would that be called for...if you have different frames that start and stop at the different times doesn't matter...if you want the buttons to call the url, you have to put the actions in the buttons....not on the frames...
e.gif


carlsatterwhite@endangeredgraphics.com
 
ok, sweet, but i dint understand some of that, where do i put the stop on my tween so it doesn't disapperar when the timeline thing goes past it,
ok, ill try and explain the other part of the problem more

tween 1 srats at frame 4 and ends at frame 12, tween 2 starts at frame 15 and ends at frame 23, when i test the movie it will play tween 1 and tween 2, that part is fine, the problem is is where do i put the stop so tween 1 dosent disappear once it has played past frame 12?, i hope u understand this, and thanks for helping i really appreciate it.
 
oh, by the way do u have icq or msn, that would be way easier
 
what you have to do is put all you tweens in there own movieclip...that way you can stop each tween individually without stopping the maintime line...ultimately when you get this flash thing down pat you will want your main movies timeline to be only one frame...all your tweens and other things in there on mc's all in the first frame of your main movie...just having everything on different layers...that way you can control the way each individual tween starts and stops without effecting the movie itself...make sense?..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
I already have everything on different layers, with sound and everything pertaining to each individual movement, all on seperate layers so i can adjust them, i tried putting the gotourl in the tween but it still doesnt come up with the on release and if i test the movie it wont play the tween it will open an explorer window with a cannot find server message. this is really annoying me
 
Hold your horses here!

The disappearing problem:
If you don't want your first tween to disappear, select the last keyframe of this tween and simply press F5 to add frames, so that it extends over tween 2. It will appear as a broken line, but that's ok as long as it covers tween 2.

As for the getURL problem, it must be called from a button. In other words, you must have a button included in your tween. You should right-click the button on stage and select Actions. This will bring up the Object Actions box (and not the Frame Actions box!), where you'll first add an on action followed by the getURL action.
Since this is a button, trying to insert a getURL action on it's own worn't work and you'll get an on handler error.

Regards,
mywink2.gif
ldnewbie
 
Put your stop on the last keyframe of your second tween.
Better, put it on an actions only layer (allways a good practice), by inserting a new layer, selecting the frame lined up with the last frame of your second tween, press F6 to insert a new keyframe, and then double-clicking that keyframe, add a stop(); action, this time in the Frame ACtions window.

If you had several more tweens, you would add this stop action on the last frame of your last tween, and all tweens will remain visible as long as they extend to the last frame of your last tween where you will have the stop action.

Regards,
mywink2.gif
ldnewbie
 
ok, my next question is more of an interest thing, since i have 4 tweens (i only mentioned 2 tweens since i am very tired, its 5am here), on one of the twees when i pressed f5 the layer thing was purple with a black dotted line and on the others it was grey with no line, just a small white rectangle at the end frame, whats up with that?
 
Thank-you SOOOOOOOOO much, i finally got this stupid thing to go, the links aren't pointing at the right place but they're there none the less. Everything is working perfectly
 
Hey, you do seem tired and impatient!
I'm not sitting next to you, and don't know what else you've kept from mentioning...
You sure you selected the last keyframe of each tween before pressing F5?

You could allways upload your .fla somewhere or e-mail it to me (zipped up) at oldnewbie@hotmail.com, so we (who are trying to help you out here!), can have a look at it.
A .fla is worth a thousand words!

Regards,
mywink2.gif
ldnewbie
 
yeh one thing i've found is when you get that tired....just stop....nothing productive gets accomplished....takes forever to do nothing....
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top