Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE FLASH: HomeFlash ForumFlash TutorialsFlash Video TutorialsWeb Streaming ForumAdobe FlashPodcast

[F8] Distinguish which picture is in the picloader

Cow Forums : Adobe Flash

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>
[F8] Distinguish which picture is in the picloader
by Gregory Richards on Dec 25, 2007 at 8:27:46 pm

Hi there could someone please help me with this code.

This button has been loaded by a compent loader with the wrong code :-)

on (release) {
if (picLoader.contentPath = "images/me.swf"){
getURL("http://imagical.kol.co.nz/pages/Me_B.html","_blank");
}
if (picLoader.contentPath = "images/girls.swf"){
getURL("http://imagical.kol.co.nz/pages/girls_B.html","_blank");
}

if (picLoader.contentPath = "images/boys.swf"){
getURL("http://imagical.kol.co.nz/pages/boys_B.html","_blank");
}
}

This button is trying to find out what picture is in the other component loader (picloader) and then to go to a url to open the full picture on a web page.

At the moment the compiler just goes down the list to the bottom of the page and loads the url boys.
How do I get it to distinguish which picture is in the picloader and then active the corresponing geturl command.

Do have to use a listner command or something, I have no idea really.
Any ideas would be appreciated

Thanks
Tiaka
P.S I'm using script 2



Respond to this post   •   Return to posts index

Re: [F8] Distinguish which picture is in the picloader
by Pieter Helsen on Dec 27, 2007 at 4:27:50 pm

Try using double equations maybe? (==)
I'm not sure if contentPath returns anything. It might just set the contentPath to a certain value.

If this is the case, you're gonna want to store the contentPath in a variable every time you change it.

Kind regards,
Pieter

Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]