FORUMS: list search recent posts

[F8] Distinguish which picture is in the picloader

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Gregory Richards
[F8] Distinguish which picture is in the picloader
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"){
if (picLoader.contentPath = "images/girls.swf"){

if (picLoader.contentPath = "images/boys.swf"){

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

P.S I'm using script 2

Return to posts index

Pieter Helsen
Re: [F8] Distinguish which picture is in the picloader
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,

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved