Resizing/fading dynamic gallery issues...

Hey there. I'm kind of in a huge deadline crunch.
I have a gallery that I built from a tutorial I found
online--it has an empty mc with a border around it, and when you
click on a thumbnail an image is loaded into the mc and it fades in
when it loads in and out.
Ofcourse it works fine offline, but when I test it online the
image will load in off-center, if you click the thumbnail again
(after it has loaded the first time) it loads in the position it
should be in.
Here is the code I have on the first frame:
spacing = 1;
containerMC._alpha = 0;
MovieClip.prototype.loadPic = function(pic){
containerMC._alpha = 0;
this.loadMovie(pic);
onEnterFrame = function(){
var t = containerMC.getBytesTotal(), l =
containerMC.getBytesLoaded();
if (t != 0 && Math.round(l/t) == 1){
var w = containerMC._width + spacing, h = containerMC._height
+ spacing;
border.resizeMe(w, h);
delete this.onEnterFrame;
MovieClip.prototype.resizeMe = function(w, h) {
var speed = 3;
this.onEnterFrame = function() {
this._width += (w-this._width)/speed;
this._height += (h-this._height)/speed;
if (Math.abs(this._width-w)<1) {
this._width = w;
this._height = h;
containerMC._x = this._x-this._width/2+spacing/2;
containerMC._y = this._y-this._height/2+spacing/2;
containerMC._alpha += 5;
if (containerMC._alpha>90) {
containerMC._alpha = 100;
delete this.onEnterFrame;
and here is the code that I have on my btns:
on(release){
_parent.containerMC.loadPic("pic_001.jpg");
Any suggestions???
I really need some quick help on this one.
Thanks so much in advanced!!!
hutch.

I changed some of the code around and have been trying to
trouble shoot this for a while. Here is the code I have now:
spacing = 10;
containerMC._alpha = 0;
MovieClip.prototype.loadPic = function(pic){
containerMC._alpha = 0;
this.loadMovie(pic);
onEnterFrame = function(){
var total = Math.round(containerMC.getBytesTotal()/1024);
var loaded = Math.round(containerMC.getBytesLoaded()/1024);
if (total != 0 && loaded>=total){
var w = containerMC._width + spacing;
var h = containerMC._height + spacing;
border.resizeMe(w, h);
delete this.onEnterFrame;
MovieClip.prototype.resizeMe = function(w, h) {
var speed = 3;
this.onEnterFrame = function() {
this._width += (w-this._width)/speed;
this._height += (h-this._height)/speed;
if( Math.abs(this._width-w)<1 &&
Math.abs(this._height-h)<1){
this._width = w;
this._height = h;
containerMC._x = this._x-this._width/2+spacing/2;
containerMC._y = this._y-this._height/2+spacing/2;
containerMC._alpha += 5;
if (containerMC._alpha>90) {
containerMC._alpha = 100;
delete this.onEnterFrame;
And I'm pretty sure the issue of the image loading messed up
on the first time is because of the last bit of code for the fade
in--
if (containerMC._alpha>90) {
containerMC._alpha = 100;
delete this.onEnterFrame;
but, I'm not exactly sure how to fix it. I took it out and
just had the images load in with no fade and it seemed to work fine
with no weird loads on the first clicks----but I would really like
to incorporate the fade, it just adds that little something that I
need in this site.
Any thoughts????
thanks,
hutch

Similar Messages

  • Slow program response, crashes when creating titles and dynamic link issues

    Dear reader,
    I am now trialling Adobe CC OSX with Premiere Pro and After Effects before deciding to subscribe but I am experiencing a lot of issues while working.
    I am now working on an animation, but editing raw mxf files also gives crashes and slow responses/ program refreshes.
    1) Slow mouse response
    2) Slow program refresh while key framing visuals
    3) Rendering in PP is extremely slow when AE is open in the background, when closing AE and re-initiate the render in PP it renders super fast
    4) Crashes. When I overlay titles in my time line PP regularly crashes
    5) Dynamic Link issues when working combined in AE and PP where file connections in the time line get lost when the AE project has too many sequences
    I am curious to find out if other people are also experiencing these issues.
    I am indecisive in getting the paid yearly plan or move to FCPX instead? Or should I get a new MacPro and is this model too old?
    It worked fine 2 months ago, however I was still working on FCP7. After updating it is really bad working with it...
    My system consist of:
    MacPro mid-2010
    OSX 10.9.5 (13F34) (new installation)
    2x2,66Ghz 6-core Intel Xeon
    24GB DDR3 ECC
    Nvidia Quadro K5000, 4GB
    2x PCIe SSD 1TB
    2x HDD 3TB
    2x HDD 2TB
    Feedback is much appreciated! Best regards, Alexander

    this does work for basic colour correction but not when trying to grade an entire suqence to achieve a specific style, applying a vingette or certain effects have to be done in after effects.
    I want to try and get my whole sequence into after effects but preserve the edits and effects added in permier pro, is there any way to do this?
    rich

  • Dynamic gallery won`t display once uploaded on FTP

    Hi, I builded this dynamic gallery page that display the
    pictures using an UI Loader component.
    When I test the movie in Flash the gallery loads and displays
    the external picture with no problems. However, once the html and
    SWF file are upoladed on line you can see everything correctly but
    the clickable thumbnails won`t open any picture.
    In the FTP I`m keeping the same exact path as my directory.
    The code says
    btn1.addEventListener(MouseEvent.CLICK, ldr1)
    function ldr1 (e:Event) {
    my_ldr.source = "PICTURES/FASHION/fashion1.jpg";
    So, I have a PICTURES folder in the same directory as the SWF
    and HTML document and inside of it I have the FASHION folder
    containing the pictures called "fashion1", "fashion2", and so
    forth...
    I can send more code if necessary. It seems a pretty
    straightforward process and it should work, but I can gigure out
    why is not working.
    Anybody have any idea why?
    Here` s the website in progress
    http://www.erinbarry.co.uk/staging/home.html

    I see in the directory tree of your web host that all of your
    jpg's have all caps for their extensions (fashion1.JPG not
    fashion1.jpg). If you change the path in the Flash or change the
    filenames this will work. Often, your local computer OS doesn't
    care about caps vs no-caps, whereas web servers often do care, and
    in this instance your web server does.
    To test this, if you put "
    http://www.erinbarry.co.uk/staging/PICTURES/FASHION/fashion1.jpg"
    into the browser path you get a "404 Not Found" error. If you
    change it to "
    http://www.erinbarry.co.uk/staging/PICTURES/FASHION/fashion1.JPG"
    you get the image.

  • Dynamic Gallery in Flash

    Hello everyone,
    I'm trying to build a dynamic gallery in flash, but I need some help on how to implement some special tactics. The downside of it is, its a two step process.
    For starters, my ulimate goal is to build a horizontal scrolling gallery thats similar to the Microsoft Surface touchtable interface as shown here: http://news.cnet.com/2300-1041_3-6211837.html, but implements the transitions of the Pastel Stories header as shown here: http://www.pastelportal.com/stories/
    When the centerpeice icon is in the center focus, its larger than the rest of the icons and you can move your mouse from left to right to scroll through the gallery. Ive seen some variations of this, but none of them offer what I'm trying to accomplish. The main image is not focused in the center and/or the images arent spaced out evenly enough.
    The second part of this process, its kind of difficult. You see when the user clicks on the icon, it takes them to a sublayer where they can view the photos in the same similar fashion as the initial gallery. The only problem is the transition. You can see the transition and/or flash component I'm trying to accomplish in the pastel stories header swf.
    If anyone knows of any ideas on how to implement these tactics or knows of any tutorials or any "for-purachase" files, please let me know! Thanks!

    try:
    txfe.text = xmlFile.section[int(m.currentTarget.details) -1].details;
    instead of
    txfe.text = xmlFile.image.[int(m.currentTarget.details) -1];
    and add your thumbs to gal, not the stage.  when you're done with the gallery, remove gal.

  • Dynamic gallery with 3 columns and 5 rows with paging

    guyz, i am new to spry and i need your help. i want to create
    a dynamic gallery with data source as xml. i want to create a
    gallery with 3 columns and 5 rows.Basically a wallpaper page where
    there would be 15 wallpapers in a page with a link of downloading
    wallpapers with resolution 800x600,1024x768 and 1280x1024.
    for example if there are 63 wallpapers for a section , then
    there would be 5 pages with 5th page having only 3 wallpapers.
    everytime a wallpaper is added to xml, it automatically adds
    it up in html...
    plz help....i really want to create this asap and i cant find
    any help...

    thanks a ton for your response.... Meanwhile i figured out
    the solution myself using photogallery tutorial where div fixes the
    width and the next repeated element get shifted to another
    line.....
    now i am struck with another problem.
    i need to give substring to a particular data on xml.
    for example i have the following xml
    <movies>
    <data>
    Important Note: These online forums are for user-to-user
    discussions of Adobe products, and are not an official customer
    support channel for Adobe. If you require direct assistance, or
    prefer to contact Adobe support staff directly, please contact
    Adobe support.
    </data>
    </movies>
    i want to display only first 50 characters of data tag.....
    whats the code/syntax to do so.....

  • Configuring a Static WCF Port to Behave as a Dynamic Port Issue

    I have WCF-Basich send port and i have developed a custom pipeline where i am resetting the "BTS.OutboundTransportLocation" based
    on the input message received .So, for different message , i am setting the different value to the "OutboundTransportLocation"
    by writing in context and hence making my wcf basic send port dynamic.
    Issue : it seems value of "OutboundTransportlocation" is not resetting properly and using the old value set during first time.For
    e.g. if first time i reset the correct url in the outboundtransport location and if second time if i set the wrong url/different url, it takes the previous url while sending the message.However,All
    logging (BTS HAT and such) all seem to indicate all works fine.
    Only after restarting the host  it takes the latest one or correct one .It seems
    "WCF BasicSend port is using caching and does not react well to changing in url's 'in flight'.
    What is the solution for this ?
    Manish

    Hi Manish,
    Please set IsDynamic property to true in your custom code. :) :) :)
    Regards,
    Parashu.
    parashuram

  • Dynamic gallery

    Question: Why is it that when the thumbnails of my gallery
    are clicked on, that the larger images corresponding to them are
    moved to the northwest quadrant of the stage? When this occurs, the
    gallery loses functionality and I'm no longer able to click on the
    corresponding larger images in order to make them disappear after
    viewing them. (The gallery only displays the larger thumbs
    correctly—meaning centered above the smaller thumbnails of
    the gallery—when the gallery is placed above all layers; It
    won't work correctly in a layer placed below the main layer.)
    My site hierarchy: two layers: main, script (houses the
    preloader). Inside main are layers called script, sections, menu,
    background. 2 layers deep, inside sections, is where I need to
    place my dynamic gallery. As I said, it will only function
    correctly on the main layer.
    Thanks
    Code for library follows

    Hi there,
    So if you were to copy the same script down to a frame on the
    sections movieclip timeline, you would only need to change a few
    things to help with the targeting.
    Look at the changes I've made to the script below and read
    the comments.
    You can actually put it on any movieclip timeline and it
    should work.
    Hope it helps

  • Crystal Report Dynamic connection issue ORA-04043 Database Vendor Code 4043

    HI All,
    Ii am getting dynamic connection issue with Crystal Report 2008 and Business View Manager, i have Oracle database,
    i have done following steps
    1 Creating Dynamic Connection (including two connection XDC & YDC)
    2. Creating Data Foundation (Common object available in both connection ie. stored procedure)
    3. Creating Business View (with selected number of elements in business element, like firsta name, lastname)
    I have verified database connectivity from Business view manager, both the connection are working fine bringing different number of rows from two different schemas (different schema but same objects in two schemas)
    4. Database connectivity to different database schemas
    5. Connectivity from Crystal Report (done the connectivity from the repository to business view )
    6. Report Connectivity with first schema shows records
    7 Report Connectivity with second schemas shows error
    as follows Failed to retrive data from the database & on clicking of detail i get following error
    Crystal Reports
    Database Connector Error: 'ORA-04043: object HR.EXCEPTION_REPORT_SUB1_PROC [Database Vendor Code: 4043 ]'
    Q first of all i need to know if dynamic connection using business view manager and crystal report technically possible or not, if yes then please let me know the solution, since we did verified with SQL database and ite work with two different database.
    Q if not possible then are there any options to resolve dynamic deployment of crystal report over multiple schemas with crystal report 2008
    Any help or suggestion will be appriciated, hope some one might have got similar issue
    Thanks in advance
    Edited by: smunir on Jul 12, 2011 9:18 AM
    Edited by: smunir on Jul 12, 2011 9:41 AM
    Edited by: smunir on Jul 12, 2011 9:43 AM

    Hi,
    When i use same credentials in Tod or sqlplus it works perfect and gives appropriate results. But when i use same credentials using business view manager, the very first connection works but the second connection does not work
    Please suggest!
    Regards,
    <<smunir>>

  • Dynamic Image Gallery Issue

    Hello All!
    I am creating a dynamic image gallery, but when my external
    images load in the empty movie clip, all the images are loading in
    the same size/dimension. Does anyone know how I can command the MC
    to load the images in different sizes, another words - to load them
    according to its own size?
    here's the AS
    onClipEvent (load)
    function imageMove()
    var _loc1 = this;
    for (i = 1; i <= num_of_image; i++)
    mc = _loc1["image" + i];
    if (i < hit)
    tempx = small * (i - 1) + 30;
    temps = small - 5;
    mc.useHandCursor = true;
    else if (i > hit)
    tempx = big + small * (i - 2) + 30;
    temps = small - 5;
    mc.useHandCursor = true;
    else
    tempx = small * (i - 1) + 150; //distance of how far out the
    displayed image jumps.
    temps = big - 5; //distance between the displayed image and
    thumbnails.
    mc.swapDepths(1000);
    display = txt
    mc.useHandCursor = false;
    } // end else if
    mc._x = mc._x + (tempx - mc._x) / 3; //number of pixals on
    x-axis the displayed image moves over to right side before growing
    big.
    mc._width = mc._width + (temps - mc._width) / 3; //number of
    pixals on x-axis the displayed image moves over to left side before
    growing big.
    mc._height = mc._width * 4 / 3;
    if (Math.abs(mc._width - temps) <= 1)
    title._x = hit < 5 ? (_loc1["image" + hit]._x + big / 2) :
    (_loc1["image" + hit]._x - big / 2 - 100);
    title._y = 100;
    } // end if
    } // end of for
    } // End of the function
    function loopHye()
    if (hit != num_of_image)
    ++_global.hit;
    else
    _global.hit = 1;
    } // end else if
    } // End of the function
    getURL("FSCommand:allowscale", false);
    big = 300;
    //Large image width (400 works best for my portfolio site)
    small = 60;//Small image width (40 works well for my
    portfolio site)
    num_of_image = 8;//Total number of images
    timeGap = none;//Speed (speed of gaptime when each image is
    displayed automatically. "2000" is default of this original file.
    larger the number the slower the image changes. (type in "none"
    will stop automatic images from changing.
    _global.hit = 0;//First displyed image number (type "0" to
    stop images from growing out)
    txt = [" ", "image1", "image2", "image3", "image4", "image5",
    "image6", "image7", "image8"];//insert text of each images between
    for (i = 1; i <= num_of_image; i++)
    attachMovie("image", "image" + i, i);
    loadMovie("image/" + i + ".jpg", this["image" +
    i].tar);//image folder path
    mc = this["image" + i];
    mc._x = small * (i - 1) + 30;
    mc._y = 200; //where on the axis should the displays be.
    mc._width = small - 5;
    mc._height = mc._width * 4 / 3;
    this["image" + i].onRelease = function ()
    clearInterval(interval);
    _global.hit = this._name.substr(5);
    interval = setInterval(loopHye, timeGap);
    } // end of for
    interval = setInterval(loopHye, timeGap);
    onClipEvent (enterFrame)
    imageMove();
    check out the file
    http://www.wendiland.com/Gallery122b.fla
    this is what the current gallery looks like
    http://www.wendiland.com/print2.html
    I'd appreciated if someone replies with any sort of
    suggestions! thanks in advance!!!
    - W£NDI

    if you google with "dynamic image gallery", you'll find a lot
    of
    tutorials & examples including pre-programmed solutions
    if you prefer to do it yourself, you need to deal with
    dynamic sites. DW
    help chapters Preparing to Build Dynamic Sites, Making Pages
    Dynamic &
    Developing Applications Rapidly can also help to understand
    in fact you don't need a database, the images can be read
    from the
    folder they're stored. that way to update a gallery you only
    need to
    remove/replace/add images. one folder for each gallery
    and the application development forum is best suited for your
    question
    BTW, some nice photos in your page
    hth,
    jdoe
    uvi wrote:
    > I'm trying to create a dynamic image gallery that is
    updated from a database, i
    > managed to create a simple mysql database
    > using phpmy admin, so I could update my image gallery
    more often, I saw
    > something that I like but I have no idea how to create
    it here is the example:
    >
    http://flight001.com/store/trip.htm?itemid=307&sid=201&page=2
    > I didnt manage to create this with dynamic table from
    within dreamweaver 8,
    > maybe I just don't know how,
    > this is the link to a gallery on my website:
    >
    http://www.yuvallavy.com/work/scenic/scenic.htm.
    I need all the help I can get
    > I'm using dreamweaver 8 on a Mac and using PHP/MySql
    server model.
    >

  • Resizing gallery issue...urgent help!!!!

    Hey there. I'm kind of in a huge deadline crunch.
    I have a gallery that I built from a tutorial I found
    online--it has an empty mc with a border around it, and when you
    click on a thumbnail an image is loaded into the mc and it fades in
    when it loads in and out.
    Ofcourse it works fine offline, but when I test it online the
    image will load in off-center, if you click the thumbnail again
    (after it has loaded the first time) it loads in the position it
    should be in.
    Here is the code I have on the first frame:
    spacing = 1;
    containerMC._alpha = 0;
    MovieClip.prototype.loadPic = function(pic){
    containerMC._alpha = 0;
    this.loadMovie(pic);
    onEnterFrame = function(){
    var t = containerMC.getBytesTotal(), l =
    containerMC.getBytesLoaded();
    if (t != 0 && Math.round(l/t) == 1){
    var w = containerMC._width + spacing, h = containerMC._height
    + spacing;
    border.resizeMe(w, h);
    delete this.onEnterFrame;
    MovieClip.prototype.resizeMe = function(w, h) {
    var speed = 3;
    this.onEnterFrame = function() {
    this._width += (w-this._width)/speed;
    this._height += (h-this._height)/speed;
    if (Math.abs(this._width-w)<1) {
    this._width = w;
    this._height = h;
    containerMC._x = this._x-this._width/2+spacing/2;
    containerMC._y = this._y-this._height/2+spacing/2;
    containerMC._alpha += 5;
    if (containerMC._alpha>90) {
    containerMC._alpha = 100;
    delete this.onEnterFrame;
    and here is the code that I have on my btns:
    on(release){
    _parent.containerMC.loadPic("pic_001.jpg");
    Any suggestions???
    I really need some quick help on this one.
    Thanks so much in advanced!!!
    hutch.

    Ok I plugged it into the PC in USB mass storage mode n just moved some of the pix from Camera Roll into another folder. Unplugged n opened gallery>camera roll. Scrolled with two hiccups the first time, not again after and no forced back outs. Can it be the Camera Roll gets too full so I should keep folders smaller? All Pix might freeze still...yup. Think its time I cleaned house. Disappointing considering they're all on the 16GB card that can hold it but the gallery doesn't like em all. Dunno why anyone else's would do it with so few pix, sorry dude

  • Fetching Dynamic Object issue

    Hi all,
    Instead of define an variable as external (due to size limitation), I decided to use session.getInstanceData to obtain the value in an instance variable. While things works well on my environment, it does not work out in the QA environment. The following is how I do it:
    DynamicObject instanceData =
    session.getInstanceData(instanceInfo.getId());
    Map dataMap = instanceData.asMap();               
    //Get screening result
    String resultStr = "";
    boolean hasResult =
    dataMap.containsKey("screeningResults");
    if (hasResult){
    Object resultValue =
    dataMap.get("screeningResults");
         resultStr = resultValue.toString();
    I have also log the content of screen result inside the activity:
    logMessage("leaving ... "+this.activity.name +" with screening results="+ this.screeningResults);
    At my environment, I can see the content pass from the engine back to PAPI. However, on QA environment, I see the content show on the engine log (due to the logMessage) but PAPI gets empty string back.
    At first I thought it is due to the "Max Instnace Size limitation", so I upped the limit to 2000kb, but it still doesn't solve the issue. So anyone got any idea what did I do wrong or forgot to handle? Thanks!
    Matthew

    Can I create dynamic object?Depends what you mean by "dynamic object." That term is not part of standard Java parlance, AFAIK.

  • ADF Table dynamic rendering issue with Transient VO

    Hello All,
    JDeveloper : Studio Edition Version 11.1.1.2.0 Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
    ADF Business Components     11.1.1.55.36
    Java(TM) Platform     1.6.0_11
    Oracle IDE     11.1.1.2.36.55.36
    SOA Composite Editor     11.1.1.2.0.12.16
    Versioning Support     11.1.1.2.36.55.36
    My page header and lines section. Header section is designed using af:panelFormLayout and lines section is constructed using af:table. Header and Lines regions are on two different Transient VOs which has no queries and updatable option in all the attributes set to always. As per the requirement after some condition, i will have to disable few column items in the lines table. For this, i have created new Transient attribute (SpecEditMode) of type Boolean in lines transient VO and i set this attribute value to Boolean.TRUE or Boolean.FALSE based on the condition. I set read only property to all af:inputText fields as #{bindings.SpecEditMode.inputValue}.
    Here is the my lines table layout structure
    af:panelBox
         -> af:panelCollection
         ->-> af:table.
    I have one input text box to get number of rows to be added to line in the af:panelBox toolbar and a GO button to create the rows.     Here is the steps to get my issue
    1. Create new rows in the Lines Transient VO based on the user input.
    2. Perform business logic and lock the rows created above (set the read only propery to true using expression #{bindings.SpecEditMode.inputValue})
    3. Rows created in step one gets locked when the layout gets refreshed.
    4. Repeat the step 1 and now all the locked rows becomes unlocked.
    To debug further on this, i drag and drop the SpecEditMode attribute as a column in the same table to verify the values during runtime. SpecEditMode attribute value for Rows created in step 1 are true which is supposed to lock the row.[But not locked the rows] and for all the newly created rows in step 4 are false.
    Eventhough the SpecEditMode attribute values are correct, the fields are not locked after the first time.
    Could you let me know if i am missing anything? Very much appreicate any pointers/inputs. Kindly suggest if there is any other better way to achieve the expected functionality.
    Thanks
    Annadurai.

    When i set the read only property to #{row.bindings.SpecEditMode.inputValue}, the dynamic behaviour is works just fine.

  • Dynamic Region Issues

    Jdev 11.1.1.5 - JDK 1.6_31
    I have put a dynamic region on a page with 4 taskflows defined as the regions. Each taskflow is a train.
    I have a bean that controls the loading (the default bean) with a load for each screen.. ie public .. myRegion1, etc... in addition to the getDynamicTF that is created by default.
    public TaskFlowId getDynamicTaskFlowId() {
    return TaskFlowId.parse(taskFlowId);
    public String myjobFlow() {
    taskFlowId = "/WEB-INF/myJobstaskFlowCall.xml#myJobstaskFlowCall";
    return null;
    Everything works fine - the pages load and all is OK - until I select a tab in one of the regions.
    This will cause the generation of the event to get the taskflow from the bean. (getDynamicTaskFlowId)
    because the bean is backing scoped - it does not know the current taskflow (lost when the bean is destroyed)
    I tried to change the scope - but I get a controller error saying the backingBeanScope.DynamicRegionBean cannot be found!
    can anyone tell me the location of the controller file - or how to change the scope - or how to get around this issue.

    Hi,
    instead of using backingBeanScope use viewScope..
    and change expression wherever necessary like
    in page and more important in pageDef file..
    like
    from
    backingBeanScope.bean to viewScope.bean
    Hope this helps..

  • Dynamic tag issue

    Hi,
    Am rendering a jsp with a set of fields, whose tagIds have been given dynamically.
    That is,
    tagId="strRemarks_${container.item.strFollowupCode}"
    where,
    ${container.item.strFollowupCode} -> is a dynamic value that will get populated when the jsp is rendered.
    (NOTE: The values are getting populated properly and getting rendered well on the screen)
    But, when this is done, am getting couple of javascript issues in the browser as given below:
    *netui_tagIdNameMap is not defined     --          ...Instance_4{pageFlow.lstBarrierPgFour[0].lstBarrierList[6].lstRecos[0].lstFollowu...*
    *missing ; before statement       --        netui_tagIdNameMap.isSelectd_D.7.1.5="portletInstance_4{pageFlow.lstBarrierPgFou...*
    Need some help in resolving these js issues. Let me know if i had done anything wrong on my part.
    Thanks
    Giri
    Edited by: Giri on May 4, 2012 1:17 AM
    Edited by: Giri on May 4, 2012 1:19 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi Anony,
    Thank you for your question. 
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Image gallery issue

    If a mod could delete my other post as I am quite far on from that and now having different issues.  Thanks.
    I am really stuck.  I will try my best to explain things clearly.  I am making an image gallery and I got the code from this gallery here.
    http://www.flashmo.com/preview/flashmo_122_3d_curve_gallery
    I made some changes to make it how I wanted it, nothing drastic though.  So now I have a nice gallery.
    Explaining what I am trying to do will better help explain things.  I am creating a modelling agency website.  The gallery I created above will display an individual image of every model in the agency (which it does).  Now when one of the model images is clicked, I then need it to load another image gallery which contains the complete set of images for that model, plus some of their information etc. 
    The way I am approaching it at the moment is to create an individual image gallery for every model in its own fla file.  If say the first model is clicked (image 1) it will load the corresponding swf (1.swf).  I am not sure how good it is loading an swf into what I already have, but couldnt think of another way.  So now I have a seperate image gallery just to test things out, and I need to load it into my original image gallery.
    So, I will show the code for the first gallery (which displays the individual images of each model).  The important methods are p_click (which hides the first gallery and loads the external swf), and on_pic_loaded (which displays the external swf). 
    I hope you understand what I am attempting, as I dont know if I have explained it right as my brain is going dead! (although I am liking the challenge).
    import org.papervision3d.scenes.*;
    import org.papervision3d.cameras.*;
    import org.papervision3d.objects.*;
    import org.papervision3d.materials.*;
    import caurina.transitions.*;
    import flash.net.URLRequest;
    import flash.display.Loader;
    import flash.events.Event;
    import flash.events.ProgressEvent;
    var container_x:Number = stage.stageWidth * 0.5;
    var container_y:Number = stage.stageHeight * 0.5 + 160;
    var container:Sprite = new Sprite();
    container.x = container_x;
    container.y = container_y;
    addChild(container);
    var scene:Scene3D = new MovieScene3D(container);
    var cam:Camera3D = new Camera3D();
    cam.zoom = 6;
    tn_url_target.visible = false;
    tn_title.text = "";
    tn_desc.text = "";
    tn_url.text = "";
    loading_info.text = "";
    url_button.visible = false;
    var no_of_ring:Number = 1;
    var angle:Number = 0;
    var p_dict:Dictionary = new Dictionary();
    var pa:Array = new Array();
    var filename_list = new Array();
    var url_list = new Array();
    var url_target_list:Array = new Array();
    var title_list = new Array();
    var description_list = new Array();
    var folder:String = "photos/thumbs/";
    var i:Number;
    var total:Number;
    var flashmo_xml:XML = new XML();
    var pic_loader:Loader = new Loader();
    var mLoader:Loader = new Loader();
    var xml_loader:URLLoader = new URLLoader();
    xml_loader.load(new URLRequest("thumbnail_list_5.xml"));
    xml_loader.addEventListener(Event.COMPLETE, create_thumbnail);
    function create_thumbnail(e:Event):void
        flashmo_xml = XML(e.target.data);
        total = flashmo_xml.thumbnail.length();
        var angle_per:Number = Math.PI * 2 * no_of_ring / total;
        for( i = 0; i < total; i++ )
            filename_list.push( flashmo_xml.thumbnail[i][email protected]() );
            url_list.push( flashmo_xml.thumbnail[i][email protected]() );
            url_target_list.push( flashmo_xml.thumbnail[i][email protected]() );
            title_list.push( flashmo_xml.thumbnail[i][email protected]() );
            description_list.push( flashmo_xml.thumbnail[i][email protected]() );
            var bfm:BitmapFileMaterial = new BitmapFileMaterial(
                folder + flashmo_xml.thumbnail[i][email protected]());
            bfm.oneSide = false;
            bfm.smooth = true;
            var p:Plane = new Plane(bfm, 100, 100, 2, 2);
            scene.addChild(p);
            var p_container:Sprite = p.container;
            p_container.name = "flashmo_" + i;
            p_dict[p_container] = p;
            p_container.buttonMode = true;
            p_container.addEventListener( MouseEvent.ROLL_OVER, p_rollover );
            p_container.addEventListener( MouseEvent.ROLL_OUT, p_rollout );
            p_container.addEventListener( MouseEvent.CLICK, p_click );
            p.rotationY = - (i * angle_per) * (180/Math.PI) + 90;
            p.x = Math.cos(i * angle_per) * 300;
            p.z = Math.sin(i * angle_per) * 300;
            p.y = Math.floor( i / 22 ) * 5;
    function startLoad()
        var mLoader:Loader = new Loader();
        var mRequest:URLRequest = new URLRequest("/subgallery/1.swf");
        mLoader.load(mRequest);
    function p_rollover(me:MouseEvent)
        var sp:Sprite = me.target as Sprite;
        Tweener.addTween( sp, {alpha: 0.5, time: 0.5, transition:"easeOutExpo"} );
    function p_rollout(me:MouseEvent)
        var sp:Sprite = me.target as Sprite;
        Tweener.addTween( sp, {alpha: 1, time: 0.4, transition:"easeInExpo"} );
    function p_click(me:MouseEvent)
        var sp:Sprite = me.target as Sprite;
        var s_no:Number = parseInt(sp.name.slice(8,10));
        var mRequest:URLRequest = new URLRequest("subgallery/1.swf");
        mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, on_pic_loaded);
        mLoader.load(mRequest);
        Tweener.addTween( container, { y: 1200, time: 0.6, transition:"easeInExpo" } );
    function goto_URL(me:MouseEvent)
        navigateToURL(new URLRequest(tn_url.text), tn_url_target.text);
    function on_open(e:Event):void
        loading_info.text = "Loading... 0%";
    function on_progress(e:ProgressEvent):void
        var percent:Number = Math.round(e.bytesLoaded / e.bytesTotal * 100);
        loading_info.text = "Loading... " + percent + "%";
    function on_pic_loaded(e:Event):void
        addChild(e.currentTarget.content);
        //addChildAt(mLoader, 1);
        mLoader.x = Math.round(stage.stageWidth - mLoader.width) * 0.5;
        mLoader.y = Math.round(stage.stageHeight - mLoader.height) * 0.5;
        //mLoader.addEventListener(MouseEvent.CLICK, remove_pic);
        Tweener.addTween( mLoader, { alpha: 1, time: 0.8, transition:"easeInExpo" } );
        removeEventListener(Event.ENTER_FRAME, render);
    function remove_pic(e:Event):void
        Tweener.addTween( pic_loader, { alpha: 0, time: 1, onComplete:function() { removeChild(this); } } );
        Tweener.addTween( container, { y: container_y, time: 1, delay: 1, transition:"easeOutExpo"} );
        addEventListener(Event.ENTER_FRAME, render);
        tn_title.text = "";
        tn_desc.text = "";
        tn_url.text = "";
        url_button.visible = false;
    addEventListener(Event.ENTER_FRAME, render);
    function render(e:Event):void
        var distance_x:Number = (stage.mouseX - 400) * 0.0001;
        angle += distance_x;
        cam.x = - Math.cos(angle) * 150;
        cam.z = Math.sin(angle) * 150;
        scene.renderCamera(cam);
    Current issues as the moment is firstly, I dont know if this is the best way to achieve what I want.  Maybe there is a better option someone could tell me about, but you have to remember that each image displayed here will have multiple images to go with it.
    In terms of what I am attempting above, I currently get
    Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///C|/Users/Nick/Desktop/gallery/gallery.xml
        at _1_fla::MainTimeline/frame1()
    I assume its a url error so I changed all urls in both fla's to contain the whole url path.  Didnt seem to work though unless I missed something.
    Any advise on absolutely anything will be so appreciated.
    Many thanks
    Nick

    Sorry about that.  If you can check my history, I normally always thank people who have helped, and I was intending to go back on the last few to sort them out.  Just got my first job so it has been rather hectic and been stressing out to much.  Also, I do things slightly different to other people.  If I receive a correct answer (which I normally do thank), I tend not to actually reply but to thank instead, mainly because if I reply I am pushing unanswered questions further down the list and eventually out of view.  I will go back and sort out the thanks I owe.
    In terms of asking the mods, other forums I visit are normally moderated by the community, so I assumed that someone like yourself might be the moderator.
    I tottally understand what you are saying, and as I say, I am normally on top of this.  Will go back now and sort out the thanks.
    Sorry for the delay.
    Nick

Maybe you are looking for

  • Multiple Positions for One Employee (OrgChart Campaign)

    I am trying to determine if the OrgChart campaign offering will meet the needs of my client.  They have an interesting setup where they assign one employee to multiple positions (example:  50% to one position, 50% to another position, etc).  I want t

  • Pure AS3 self-preloader

    My project originally had everything on the timeline, but I have since moved all the code to the document class, but some of my assets are still in the library and some of them are embedded. I'm trying to make a self-preloader that doesn't use any ex

  • Is it possible to view remote panels without LAN?

    Useing inbuilt webserver of LabVIEW limits to view remote panel over LAN or WLAN.what are other possible ways to view it on other pc which is not in LAN? Vikas H. Kumthekar ASE Tata Consultancy Services Pune-1

  • Photoshop CS4 Stuck in paintbrush

    Photoshop is stuck in the paint brush, when I attempt to change it to the move or selection tool, it just stays in the paintbrush. I've uninstalled and reinstalled twice. I've deleted all the preferences I can find, to no avail. At this point Photosh

  • Storage bin does not exist error when during transfer posting in MB1B

    Hello All, I am getting the error message "  Storage bin [WH no, Storage type] does not exist Check your entry"  during transfer posting in MB1B from one storage location  to another for ex 0007 to 0001. But i can able to do transfer posting from 000