Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-29-2009, 04:58 PM   #1
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
Flash + Javascript. I need some easy help...

I need a quick and easy lesson.

Anyone fluent in this field, pls hit me up.

Dont be scurred
__________________

Deej's Designs n' What Not
Hit me up for Design, CSS & Photo Retouching


Icq#30096880
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2009, 04:59 PM   #2
Arnox
Confirmed User
 
Arnox's Avatar
 
Industry Role:
Join Date: Sep 2009
Location: Radelaide
Posts: 2,160
Youtube man, youtube will always be king.
__________________
Need Text? X Copywriters | Adult Writing Service - [email protected]
Arnox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2009, 05:02 PM   #3
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
Quote:
Originally Posted by Arnox View Post
Youtube man, youtube will always be king.
hrmm, I googled a bit and checked some other tutorial sites, but none of them have quite what I need.

Basically I just want to access some javascript that is already on a page. keeping it within that page. OnClick commands and such. Im just not sure how to do it. Im sure its capable.

Ill check youtube, never thought of that...
__________________

Deej's Designs n' What Not
Hit me up for Design, CSS & Photo Retouching


Icq#30096880
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2009, 05:21 PM   #4
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
It's been a long time, but isn't it just doing this in flash to call a JS method on the same page?

getURL("javascript:callToFunction();");

otherwise, here's a bump.
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2009, 05:26 PM   #5
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
Well heres is my dilema

Im taking a few of these links

Code:
<a href="javascript:void(0);" onclick="toggleHomeTabs(2);">Link2</a>
I am replacing these links with a flash navigation bar.

How would I translate that to actionscript? would it be...

Code:
on (release) {
    getURL("javascript:toggleHomeTabs(2)");
}
I figure this is wrong since it didnt work when I tried it, but it can maybe help you assist me.

Do I also need to alter the javascript file?
__________________

Deej's Designs n' What Not
Hit me up for Design, CSS & Photo Retouching


Icq#30096880

Last edited by Deej; 10-29-2009 at 05:27 PM..
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2009, 05:32 PM   #6
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
Im willing to pay someone to help me complete this. I have everythign done, I just need to know how to connect the existing javascript with the flash I have rdy.
__________________

Deej's Designs n' What Not
Hit me up for Design, CSS & Photo Retouching


Icq#30096880
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2009, 06:34 PM   #7
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
Again, haven't worked with flash in a long time, but am willing to bump the thread while trying to figure out what you're trying to do (hopefully helping someone else reading the thread).

- Are you replacing an HTML navigation bar with a Flash navigation bar?
- Are the "tabs" in HTML or Flash?

bump, regardless, for finding your fix.
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2009, 06:40 PM   #8
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
yes IM replacing the current links there that are just html connecting the javascript.

The links just open dynamic javascript blips of info.

So, now I need to have the flash unit of 6 links acces the same blips of info, the code i provided is how it looks on JUST the links in the html. I dont think I need to change the actual JS file, but then again maybe. I think my oinly issue is just simply knowing the actionscripting. Making flash recognize the action.
__________________

Deej's Designs n' What Not
Hit me up for Design, CSS & Photo Retouching


Icq#30096880
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2009, 06:44 PM   #9
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
I want to clarify that the "links" are only set to open the javascript action, as you can see in the code i posted.

Its not navigating away from the page.
__________________

Deej's Designs n' What Not
Hit me up for Design, CSS & Photo Retouching


Icq#30096880
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2009, 09:07 PM   #10
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
Yea, I don't see why it's not working; it doesn't seem like you're trying to get javascript <---> flash interaction going between each other, but just calling a JS method via Flash button.

This help?
http://scriptplayground.com/tutorial...ript-in-Flash/

Any debugging tools you're using? Maybe just put up a simple Javascript function:

function blah() { alert('Flash called me'); }

and try and call that from your flash navigation. Debug through the simple to what you want.

Or, here's another bump and someone will hopefully chime in with the answer.
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2009, 09:55 PM   #11
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
http://www.spoono.com/flash/tutorial...rial.php?id=20

There ya go Deej.
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2009, 10:33 PM   #12
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
Quote:
Originally Posted by Killswitch View Post
as I said, I googled a bit. Dont think youre quick to get the answer i looked over

I seen that very page, but see im using a single flash element containing multiple buttons so the code I need is within the actionscripting.
__________________

Deej's Designs n' What Not
Hit me up for Design, CSS & Photo Retouching


Icq#30096880
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-30-2009, 07:27 AM   #13
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
Bump for morning help
__________________

Deej's Designs n' What Not
Hit me up for Design, CSS & Photo Retouching


Icq#30096880
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-30-2009, 12:05 PM   #14
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
Well fuck, I guess I'll just redo it in css
__________________

Deej's Designs n' What Not
Hit me up for Design, CSS & Photo Retouching


Icq#30096880
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-30-2009, 04:36 PM   #15
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
Thanks for all the help from everyone here and a lil help from fartfly as well

In the end after listening to all your advice ai pecked around and took what you all said and managed to figure it out.

In fact my posting above is damn near dead on, I just did the syntax wrong...

how many hours have people in the internet world lost to simple missing commas n shit?!?!?
__________________

Deej's Designs n' What Not
Hit me up for Design, CSS & Photo Retouching


Icq#30096880
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-30-2009, 04:57 PM   #16
calmlikeabomb
Confirmed User
 
calmlikeabomb's Avatar
 
Join Date: May 2004
Location: SW Palm Bay, Florida
Posts: 1,323
Nice, now you're the proud owner of a website with a navigation bar that can't get indexed by the search engines nor gracefully degrades.

That is of course assuming your not the progressive enhancement type
__________________
subarus.
calmlikeabomb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-30-2009, 05:06 PM   #17
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
Quote:
Originally Posted by calmlikeabomb View Post
Nice, now you're the proud owner of a website with a navigation bar that can't get indexed by the search engines nor gracefully degrades.

That is of course assuming your not the progressive enhancement type
wow what a downer ;)

I doubt the seo will be degraded. There are other equal links to specific pages for each tab anyway. This is why im keeping it with the javascript bit instead of doing the whole thing in flash.

If you read it all they arent links navigating off of the same specific page. Its a placeholder like link to info alrdy on the page...

Thanks though for that jab after the fact
__________________

Deej's Designs n' What Not
Hit me up for Design, CSS & Photo Retouching


Icq#30096880

Last edited by Deej; 10-30-2009 at 05:08 PM..
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-30-2009, 07:15 PM   #18
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
Well FUCK dude! Where was the missing comma? lol

Don't make this one of "those" threads that happen on every support site, where someone posts a problem, and then magically, at the end, they solved it, but never posted how. It's like blue balls for the brain.
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-30-2009, 07:30 PM   #19
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
Code:
on (release) {
    getURL("javascript:toggleHomeTabs(2);")
}
this was the solution....

misplaced semi colon
__________________

Deej's Designs n' What Not
Hit me up for Design, CSS & Photo Retouching


Icq#30096880
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.