I've dumbed this down to a page that does nothing more than attempt to
get this aspect working, stripped everything else out:
http://74.121.128.139:8500/dataflow/bin/dataflow.html

VS is enabled.

I figure my real task to to ensure whenever you load into the page
with the Current Gallery and Main Image, you are doing that FROM
somewhere - in my case from a link to a specific image; from the main
page directly to the Galleries Page, or from the Newest Images
scroller as a sub-page of my Home page.

The problem I am having right now is that I figured this means I need
to pass variables to the service, but in switching from a mechanism
that was set up to read E4X to one that didn't (i.e., I am use Ted on
Flex's Flickr Scroller locally) I can't get even a creationComplete to
work, just as a way of getting it started so I can eventually get rid
of the hard code to value-based entry. Here's what I have, if anyone
can help me out on this part, or 2 parts, the first being what am I
doing: wrong with the failure to connect even the hard code to the
Current Gallery scroller, and second, am I approaching the need
correctly, i.e., creationComplete function that loads the service with
a value passed from the link, or newest iamges scroller, or a direct
button to the gallery. Here's the real problem right now - the
disconnect between the code I'm writing and the scroller itself
(Current Gallery):

<mx:Application 
...
        xmlns:fx="com.fusiox.ui.*" 
        xmlns:ns1="*"
        initialize="loadCurrentGallery();"
...>

Then:

<mx:Script>
<![CDATA[       
        private function loadCurrentGallery():void {
        this.mainthumbXMLsrv.url="model/gal_green.xml";
        this.mainthumbXMLsrv.send();
        }       
                
]]>
</mx:Script>

Then:

<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<photos page="1" pages="5" perpage="100" total="500">

        <photo id="441043591" 
        thumb="green1_th" 
        image="green1"
        smalltitle="Green 1" 
        title="Green 1 text. This is a green photo. Blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah " 
        />

<mx:HTTPService id="mainthumbXMLsrv" url="model/gal_blue.xml"
useProxy="false" resultFormat="xml"/>   

Then:

<fx:Scroller                                                            
id="scroller"                                                   
itemRenderer="mainthumb"                                        
dataProvider="{mainthumbXMLsrv.lastResult.rsp.photos.photo}"
width="75%" height="100" verticalCenter="0" right="20"/>

Where:

mainthumb.mxml states:

<mx:Image 
        id="thumb" 
        source="images/{data.thumb}.jpg" 
        //click="loadBigImage(event)"
        toolTip="{data.title}" 
        completeEffect="Fade" 
        horizontalCenter="0" verticalCenter="0"/>
</mx:Canvas>

I hope I'm getting there! But I don't know how to switch from original
code that was not E4X to code that is.

The (hardcoded for now) XML file is:

<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<photos page="1" pages="5" perpage="100" total="500">

        <photo id="441043591" 
        thumb="green1_th" 
        image="green1"
        smalltitle="Green 1" 
        title="Green 1 text. This is a green photo. Blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah " 
        />

...etc...

Sorry I keep coming back to this, but I can't do anything without it.
I'll pay someone to help me with this if they want. But I want it open
sourced for all when its done. I have NO commercial interest in this.
I am a photographer and want an amazing site that working just how I
want, and want to be able to offer it to anyone else who wants it.

Shawn



Reply via email to