ActiveDen

XML SHOWCASE GALLERY

  • Has been a member for 3-4 years
  • Contributed a Tutorial to a Tuts+ Site
  • Contributed a Blog Post
  • Community Superstar
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Bought between 100 and 499 items
  • United States
  • Referred between 50 and 99 users
CodingJack says
Author

@ mitti

The paths to the xml, photos and thumbs would probably have to be absolute. For example:

thumbs/photo1.jpg

absolute: http://www.yourwebsite.com/yourGeoFolder/thumbs/photo1.jpg

the path to the xml file, however, is written in the fla’s Actionscript. It too can be changed but because I don’t know much about targeting stuff geographically I’m not sure how this all would be accomplished.

Sorry I couldn’t be of more help,

-Jack

3 years ago
  • Has been a member for 3-4 years
  • Contributed a Tutorial to a Tuts+ Site
  • Contributed a Blog Post
  • Community Superstar
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Bought between 100 and 499 items
  • United States
  • Referred between 50 and 99 users
CodingJack says
Author

@ rmitti

I just responded to the comment on the forum as I think I understand now. Check it out and let me know

-Jack

3 years ago
  • Has been a member for 3-4 years
  • Bought between 1 and 9 items
  • Canada
rnitti says
Purchased

hi Jack—

Any plans to beef this up to support .swf (or other flash) files?

Thanks

3 years ago
  • Has been a member for 3-4 years
  • Contributed a Tutorial to a Tuts+ Site
  • Contributed a Blog Post
  • Community Superstar
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Bought between 100 and 499 items
  • United States
  • Referred between 50 and 99 users
CodingJack says
Author

Hi rnitti,

Yes you can load swf’s instead of images in the current version. I guess I didn’t mention that above :)

3 years ago
  • Has been a member for 3-4 years
  • Bought between 1 and 9 items
  • Canada
rnitti says
Purchased

NICE ! :)

Thanks

PS: And yes, quite an important note that you should market!

3 years ago
  • Has been a member for 3-4 years
  • Bought between 1 and 9 items
warpdesign says
Purchased

Hi, I can’t get this file to work at all. I tried updating the XML file locally and changed the name of it. When I test it locally I get this error

TypeError: Error #2007: Parameter text must be non-null. at flash.text::TextField/set htmlText() at gallery/bigLoaded()
  1. [Tweener] Error: [object Sprite] raised an error while executing the ‘onComplete’handler. TypeError: Error #2007: Parameter text must be non-null. at flash.text::TextField/set htmlText() at gallery/resetSprite() at Function/http://adobe.com/AS3/2006/builtin::apply() at caurina.transitions::Tweener$/updateTweenByIndex() at caurina.transitions::Tweener$/updateTweens() at caurina.transitions::Tweener$/onEnterFrame()

The images load but after I click on one thumbnail I can’t click on any of the other ones. I tried uploading to my server and nothing loads at all. I’m using an absolute URL for the XML file on the server since I cannot use relative URLs but nothing seems to happen.

3 years ago
Author
CodingJack CodingJack replied

If “image text” is set to true, text must be inserted for each item. You have received the error because one or more of your photos do not have image text declared in the xml file with “image text” set to true.

3 years ago
Purchased
Default-user warpdesign replied

Hi, so setting the text to false fixes the error. Here is the other problem I’m having. It works locally when I hard code the xml file in but I want to pass the XML file to choose in as a flashvar. On line 104 of your action script I changed it to this loadXML.load(new URLRequest(_root.XMLfile));

and when I embed the flash I use swfobject like this

var flashvars = { xmlFile: “http://pathtoxmlgoeshere/” }; var params = { menu: “false”, quality: “high”, wmode: “transparent” }; var attributes = { };

swfobject.embedSWF(“master.swf”, “flash_content”, “400”, “300”, “9.0.0”,””, flashvars, params, attributes);

But nothing loads. Am I doing something wrong?

3 years ago
Author
CodingJack CodingJack replied

Change the Actionscript to this:

if(root.loaderInfo.parameters["XMLurl"] != null) {
    var myString:String = root.loaderInfo.parameters["XMLurl"];
    loadXML.load(new URLRequest(myString));
}
else {
    loadXML.load(new URLRequest("data.xml"));
}



3 years ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
msaadvertising says
Purchased

Hi there,

I’m having an issue with something that i hope you can help me out with.

When I go to the uploaded .swf file on my server everything loads and looks just great, but when I put it on a web page it just shows blank screen for some odd reason.

http://www.mswebsol.com/landingpages/wrp/collisioncenter/source/master.swf

Here is where it doesn’t load correctly. What am I doing wrong here? I suck at flash :*(

http://www.mswebsol.com/landingpages/wrp/collisioncenter/index.html

1 year ago
Author
CodingJack CodingJack replied

Hi msaadvertising,

This is a directory inheritance issue. Here’s a short tutorial that should help:

http://blip.tv/file/4943392

-Jack

1 year ago
Purchased
Default-user msaadvertising replied

I watched the video, but that’s not what I’m doing. I’m not loading a .SWF into another .SWF file. Did you look at my preview links to see what the issue is? The SWF loads fine on the server but when it’s on a html webpage nothing shows up.

1 year ago
Author
CodingJack CodingJack replied

Hi msaadvertising,

Yes you aren’t loading one swf into another, but the same concept applies. When you load “source/master.swf” into your web page, it inherits the same directory as your web page. So you need to delete the “source” folder from the “folder/directory” chain. It should look something like this:

root directory: html file
root directory: slideshow swf file
root directory / images / all your images

images are linked from the xml file like this:

images/some-image.jpg

-Jack

1 year ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
msaadvertising says
Purchased

This is the error I get when trying to open the file with flash player:

SecurityError: Error #2028: Local-with-filesystem SWF file file:///Volumes/creative and production/Clients/Wade Raulerson Pontiac GMC Buick/2011/043-0411-WRP-Collision Center Web Revamp/Collision Center LP/source/master.swf cannot access Internet URL http://www.mswebsol.com/landingpages/wrp/collisioncenter/source/thumbs/1.jpg. at flash.display::Loader/_load() at flash.display::Loader/load() at gallery/onLoaded() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete()

1 year ago
Author
CodingJack CodingJack replied

Hi msaadvertising,

If you want to test Flash locally but load content from an online server, your server must have a cross-domain policy file. Here’s an example:

http://www.blazethefire.com/crossdomain.xml

It should exist on the root directory of your server.

-Jack

1 year ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
msaadvertising says
Purchased

Is there a way to make it scroll through automatically?

1 year ago
Author
CodingJack CodingJack replied

Hi msaadvertising,

This option is not included.

-Jack

1 year ago
by
by
by
by
by