Jump to content
Sign in to follow this  
Kasdraven

Movie Clip Questions

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites
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 :)

Don't know much about actionscript? If you know that much you're doing pretty good. I'll try that, thanks.

Share this post


Link to post
Share on other sites
Don't know much about actionscript? If you know that much you're doing pretty good. I'll try that, thanks.

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 :)

Share this post


Link to post
Share on other sites
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');

Glad that you have it working..cheers

Share this post


Link to post
Share on other sites
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');

OK maybe not. It gets the URL but only when the flash movie is loaded. It deosn't do the onPress event. Hm.

Share this post


Link to post
Share on other sites
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 :)

App? An application? Like?

Share this post


Link to post
Share on other sites
App? An application? Like?

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.

Share this post


Link to post
Share on other sites
I've never gotten into SQL yet. Is that how they make sites like MySpace where you can create profiles?

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...