GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Flash + Javascript. I need some easy help... (https://gfy.com/showthread.php?t=936051)

Deej 10-29-2009 04:58 PM

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

Arnox 10-29-2009 04:59 PM

Youtube man, youtube will always be king.

Deej 10-29-2009 05:02 PM

Quote:

Originally Posted by Arnox (Post 16479030)
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...

psili 10-29-2009 05:21 PM

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.

Deej 10-29-2009 05:26 PM

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 10-29-2009 05:32 PM

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.

psili 10-29-2009 06:34 PM

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.

Deej 10-29-2009 06:40 PM

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 10-29-2009 06:44 PM

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.

psili 10-29-2009 09:07 PM

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.

Killswitch - BANNED FOR LIFE 10-29-2009 09:55 PM

http://www.spoono.com/flash/tutorial...rial.php?id=20

There ya go Deej.

Deej 10-29-2009 10:33 PM

Quote:

Originally Posted by Killswitch (Post 16480135)

as I said, I googled a bit. Dont think youre quick to get the answer i looked over :winkwink:

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 10-30-2009 07:27 AM

Bump for morning help :thumbsup

Deej 10-30-2009 12:05 PM

Well fuck, I guess I'll just redo it in css

Deej 10-30-2009 04:36 PM

Thanks for all the help from everyone here and a lil help from fartfly as well :thumbsup

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... :Oh crap

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

calmlikeabomb 10-30-2009 04:57 PM

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. :error

That is of course assuming your not the progressive enhancement type :upsidedow

Deej 10-30-2009 05:06 PM

Quote:

Originally Posted by calmlikeabomb (Post 16484072)
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. :error

That is of course assuming your not the progressive enhancement type :upsidedow

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

psili 10-30-2009 07:15 PM

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.

Deej 10-30-2009 07:30 PM

Code:

on (release) {
    getURL("javascript:toggleHomeTabs(2);")
}

this was the solution....

misplaced semi colon


All times are GMT -7. The time now is 09:02 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123