Flash question
- Started
- Last post
- 29 Responses
- dablammit
I am not sure if this is possible, but what I want to do is have a flash button that can alternate and On Release go to a certain URL, and then on say, the 12th frame go to a different URL.
If anyone understands what I am asking, could you tell me if this is possible or not?
- rasko40
doesn't make much sense sorry
- dablammit0
Yeah I know...let me try again.
I have a flash movie, and at the end of the scene I have two alternating movie clips. The clips are of two different products with different prices, so I want the "buy now" button to be able to tell when one movie clip is playing and go to its main product page, and vice versa.
I think with my knowledge in flash that it isn't possible, I don't know too much fancy stuff.
But if it is I would love to hear how.
- unfittoprint0
on (release){
if (MC._currentframe
- dablammit0
okay that makes sense, so if i want it to get a URL, i just put:
on(release){
if(MOVIE._currentframe){
get URL("http://www.site.com");
}?
- unfittoprint0
shit. QBN doesn't allow 'less than' operator....
on(release){
if (myMC._currentframe 'less than' 12){
getURL ("this.htm","_blank");
} else{
getURL ("that.htm","_blank");
}
}
- dablammit0
Thank you Unfit...
My hero for the day.
- dablammit0
wait sorry one more question,
what does the _"blank" represent?
- ********0
I think you got it now?
- ********0
dude "_blank" opens up your URL in another browser. Your jokin' now right? :)
- dablammit0
No. I never use flash.
I just dipped into some of this more "advanced" stuff last week.
- stewart0
_blank is html, a href you know
- dablammit0
Alright well I still don't have it working right.
This is what I wrote:
on(release){
if (mbsize._currentframe '
- ********0
nada man
- dablammit0
damnit!
what I wrote:
on(release)
{
if (mbsize._currentframe 'less than' 105)
{
getURL ("http://www.styelboost.com","_b... );}
else
{
getURL ("http://www.newstoday.com","_bl... );}}
And I got these errors:
Scene=Scene 1, Layer=cart button, Frame=378: Line 3: ')' expected
if (mbsize._currentframe '
- dablammit0
Sorry, here are the errors:
Scene=Scene 1, Layer=cart button, Frame=378: Line 3: ')' expected
if (mbsize._currentframe 'less than' 105)Scene=Scene 1, Layer=cart button, Frame=378: Line 4: Statement must appear within on handler
{Scene=Scene 1, Layer=cart button, Frame=378: Line 6: 'else' encountered without matching 'if'
elseScene=Scene 1, Layer=cart button, Frame=378: Line 10: Unexpected '}' encountered
}
- iDp0
dab you need to use the word currentframe not currentfram e.
Also the 'less than' should be the symbol for less than not the words. if you dont know what I'm talking about its the key to the left of your '??' key
- dablammit0
Im not an idiot asshole.
I dont have currentfram e in my script, and you can't enter the "less than" symbol into the PVN.
Does anyone else know where my problem lies?
- iDp0
dab, I was trying to help...at first I didnt think that was your problem till you posted your errors...which happen to contain both of the things i suggested...appologize fuckstick
Scene=Scene 1, Layer=cart button, Frame=378: Line 3: ')' expected
if (mbsize._currentfram e 'less than' 105)
- iDp0
joking btw
- dablammit0
OK im sorry, but I a still lost as to what I need to do to make it work.
I don't understand what the error log is telling me, I never use flash.