![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
I make pixels work
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 ![]()
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Sep 2009
Location: Radelaide
Posts: 2,160
|
Youtube man, youtube will always be king.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
I make pixels work
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
|
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...
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
I make pixels work
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> How would I translate that to actionscript? would it be... Code:
on (release) { getURL("javascript:toggleHomeTabs(2)"); } Do I also need to alter the javascript file?
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
I make pixels work
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.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
I make pixels work
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.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
I make pixels work
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.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Guest
Posts: n/a
|
|
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
I make pixels work
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
|
Quote:
![]() 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.
__________________
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
I make pixels work
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
|
Bump for morning help
![]()
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
I make pixels work
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
|
Well fuck, I guess I'll just redo it in css
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
I make pixels work
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?!?!?
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Confirmed User
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 | |
I make pixels work
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
|
Quote:
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 ![]()
__________________
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
I make pixels work
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
|
Code:
on (release) { getURL("javascript:toggleHomeTabs(2);") } misplaced semi colon
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |