Kasdraven Posted March 6, 2006 Share Posted March 6, 2006 I don't know why I can't remember how to do this, but I took a break from flash and I went back into it because I wanted to make a navigation menu. Here's the idea. I have an actionscript based layout. One movie clip copied and pasted with different instance names for the actionscript. Here is the code for each of the navigation bars.b1.onRollOver = over;b1.onRollOut = out;b1.buttText.buttonText.text ="Home";This works fine, but I forget how to make it so that when you click on it it takes you to the specified URL. The following code deosn't work because these aren't buttons, they're movie clips.b1.onRollOver = over;b1.onRollOut = out;b1.on(release){getURL('www.whatever.com')};b1.buttText.buttonText.text ="Home";How do I make a movie clip when the user click on a particular movie clip, it takes them to a certain URL. Link to comment Share on other sites More sharing options...
aspnetguy Posted March 6, 2006 Share Posted March 6, 2006 wouldn't you use this eventMovieClip.onPressand have is execute a function that redirects the url??I do not know much ActionScript...I am trying Link to comment Share on other sites More sharing options...
Kasdraven Posted March 6, 2006 Author Share Posted March 6, 2006 wouldn't you use this eventMovieClip.onPressand have is execute a function that redirects the url??I do not know much ActionScript...I am trying <{POST_SNAPBACK}> Don't know much about actionscript? If you know that much you're doing pretty good. I'll try that, thanks. Link to comment Share on other sites More sharing options...
Kasdraven Posted March 6, 2006 Author Share Posted March 6, 2006 Thanks alot man that worked perfect. Link to comment Share on other sites More sharing options...
aspnetguy Posted March 6, 2006 Share Posted March 6, 2006 Don't know much about actionscript? If you know that much you're doing pretty good. I'll try that, thanks.<{POST_SNAPBACK}> I would have trouble starting a flash app from scratch but I worked on a very conplex app while on my college work term...I learned alot btu doubt I could reproduce it.From that answer I just looked on the Macromedia site...hehe Link to comment Share on other sites More sharing options...
aspnetguy Posted March 6, 2006 Share Posted March 6, 2006 Thanks alot man that worked perfect<{POST_SNAPBACK}> great to hear Link to comment Share on other sites More sharing options...
Kasdraven Posted March 6, 2006 Author Share Posted March 6, 2006 Thanks alot man that worked perfect.<{POST_SNAPBACK}> Hm, well, maybe not. Hold on. I have an idea. Link to comment Share on other sites More sharing options...
Kasdraven Posted March 6, 2006 Author Share Posted March 6, 2006 OK so here is the code.b1.MovieClip.onPress{getURL('www.whatever.com')}There's a syntax error somwhere in there I just don't know how to fix it. Link to comment Share on other sites More sharing options...
aspnetguy Posted March 6, 2006 Share Posted March 6, 2006 Hm, well, maybe not. Hold on. I have an idea.<{POST_SNAPBACK}> lol, those have been the last words of many a poor souls, lol Link to comment Share on other sites More sharing options...
Kasdraven Posted March 6, 2006 Author Share Posted March 6, 2006 I figured it out!You were right. It's the MovieClip.onPress event. But used like this.b1.MovieClip.onPress = getURL('http://www.w3schools.com'); Link to comment Share on other sites More sharing options...
aspnetguy Posted March 6, 2006 Share Posted March 6, 2006 I figured it out!You were right. It's the MovieClip.onPress event. But used like this.b1.MovieClip.onPress = getURL('http://www.w3schools.com');<{POST_SNAPBACK}> Glad that you have it working..cheers Link to comment Share on other sites More sharing options...
Kasdraven Posted March 6, 2006 Author Share Posted March 6, 2006 I figured it out!You were right. It's the MovieClip.onPress event. But used like this.b1.MovieClip.onPress = getURL('http://www.w3schools.com');<{POST_SNAPBACK}> OK maybe not. It gets the URL but only when the flash movie is loaded. It deosn't do the onPress event. Hm. Link to comment Share on other sites More sharing options...
Kasdraven Posted March 6, 2006 Author Share Posted March 6, 2006 I would have trouble starting a flash app from scratch but I worked on a very conplex app while on my college work term...I learned alot btu doubt I could reproduce it.From that answer I just looked on the Macromedia site...hehe <{POST_SNAPBACK}> App? An application? Like? Link to comment Share on other sites More sharing options...
aspnetguy Posted March 6, 2006 Share Posted March 6, 2006 App? An application? Like?<{POST_SNAPBACK}> Yes application. It was for a curling site. It had a user interface which showed the current positions of the rocks and the score, etc. It also had an admin backend that let a admin who was at the game to drag and drop the rocks to the screen and change values, add notes, etc and submit it then the users interface would be updated every minute or two to reflect the changes in the game...it was really fun to work on.It used flash as the interface and used ASP to talk to a SQL Server DB.You can view the website here....you will have ot wait for a future game to view the app but there should some games on the 24-29 of this month. Link to comment Share on other sites More sharing options...
Kasdraven Posted March 7, 2006 Author Share Posted March 7, 2006 I've never gotten into SQL yet. Is that how they make sites like MySpace where you can create profiles? Link to comment Share on other sites More sharing options...
aspnetguy Posted March 7, 2006 Share Posted March 7, 2006 I've never gotten into SQL yet. Is that how they make sites like MySpace where you can create profiles?<{POST_SNAPBACK}> Yes all the data is stored in a database and it is retreived with a server side language and either sent to flash or another server side page. Link to comment Share on other sites More sharing options...
Kasdraven Posted March 7, 2006 Author Share Posted March 7, 2006 Yes all the data is stored in a database and it is retreived with a server side language and either sent to flash or another server side page.<{POST_SNAPBACK}> I still haven't figured this out. Link to comment Share on other sites More sharing options...
Kasdraven Posted March 7, 2006 Author Share Posted March 7, 2006 Well you know JavaScript right? Could I use an array with the function you mentioned on your first reply? If so, any idea how? Link to comment Share on other sites More sharing options...
Guest veereshr Posted March 9, 2006 Share Posted March 9, 2006 Thanks alot man that worked perfect.<{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now