Ya I ditched the repeater approach, the AS
route was more practical…and mouseDown…omg I can’t believe I
missed an obvious solution like that hehe. There was no click event so I moved
on to Links, where all the trouble started!
Thanks Darin, I should be good to go now…
Cheers,
Stace
p.s. that url gave me a blank swf ?
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf
Of Darin Kohles
Sent: Thursday, December 15, 2005
11:00 PM
To: [email protected]
Subject: [flexcoders] Re: (new
issue) Using Embed with dynamic values possible?
I've got dynamically loaded images (as images - not icons) that I then
'simulate' as links by having event listeners take
action on mouse
down and up events - which then call getURL() to
send someone elsewhere.
This should be public soon enough, and I may get
in trouble for
sharing it ;) but check out:
http://d-p.com/ria/amazon/
There are still a few quirks that I'm working out,
so this isn't the
final version.
I don't use repeaters, but generate everything
with AS as I recieve
data from the provider - looping through and
addChild()'ing as I go
(just remember to clear your field before adding
more).
Hope this helps - give it a play.
--- In [email protected], "Stacy
Young" <[EMAIL PROTECTED]> wrote:
>
> Took the AS approach and I've got it working
for images ... moving
> beyond my initial tests I realized I actually
need to create a series of
> Links (dynamic image path set as the icon
attribute) rather than Images
> and this approach doesn't work. In
desperation I attempted to create all
> the Image objects (hidden) and tried to
reference them as the source of
> the icon when creating the Links but no
go...is there no such thing as
> "Linkage ID" in flex? Eek!
>
>
>
> -Stace
>
>
>
> ________________________________
>
> From: [email protected]
[mailto:[EMAIL PROTECTED] On
> Behalf Of Stacy Young
> Sent: Tuesday, December 13, 2005 10:39 AM
> To: [email protected]
> Subject: RE: [flexcoders] Re: Using Embed
with dynamic values possible?
>
>
>
> Was taking a similar approach with repeater
and Image tag...thanks for
> the tip!
>
> Stace
>
>
>
>
>
> ________________________________
>
> From: [email protected]
[mailto:[EMAIL PROTECTED] On
> Behalf Of Darin Kohles
> Sent: Tuesday, December 13, 2005 10:32 AM
> To: [email protected]
> Subject: [flexcoders] Re: Using Embed with
dynamic values possible?
>
>
>
> Stacy, yes and no. Just create a new image
dynamically when your XML
> data is returned (no need to use Embed in
this case):
>
> private function
resultHandler(event:ResultEvent):Void {
> myImage: new Image();
>
myImage.source=event.result._xml_path_to_image_url;
>
>
someContainerObjectLikeCanvas.addChild(myImage);
> }
>
> Hope this help
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS