FAQ : HOW TO LOAD ADWALL3D INTO ANOTHER FILE ?
Step 1. Create a new blank file, in the first layer, press F9 to open Timeline actionscript editor. Paste these following code:
import flash.net.URLLoader;
import flash.net.URLRequest;
loadGallery();
function loadGallery():void
{
var l:Loader = new Loader();
var req:URLRequest = new URLRequest("adWall3D.swf");
l.load(req);
l.contentLoaderInfo.addEventListener(Event.COMPLETE, galleryLoaded);
}
function galleryLoaded(e:Event):void
{
addChild(e.target.loader);
e.target.loader.content.Initial3D();
e.target.loader.content.create3DGallery();
}
Step 2. Open adWall3D.as, paste these code in main class section (same place with parameter block),
private var SWIDTH:Number = 800; private var SHEIGHT:Number = 400;
Where 800 and 400 is your favourite dimension.
Step 3. Find and Replace:
stage.StageWidth to SWIDTH
stage.StageHeight to SHEIGHT
Step 4. in adWall3D() function , comment / delete Initial3D() and create3DGallery(), so it looks like:
// Initial 3d environment //Initial3D(); // Create 3D Gallery //create3DGallery();
Step 5. In Initial3D() function, change
viewport = new Viewport3D(SWIDTH, SHEIGHT, true, true);
to
viewport = new Viewport3D(SWIDTH, SHEIGHT, false, true);
Compile the movie, you won’t see anything yet.
Step 6. Open the fla you have created in step 1 and compile movie.
Now you got it, this is a simple tutorial using Loader class to load the 3D gallery. You can integrate the Loader Object to your own Flash object once you understand the concept.
FAQ : I CAN NOT USE . , OR SPECIAL CHARACTERS IN DESCRIPTION FIELD ?
That is because you don’t embed those characters in description text field, simply press F11 to open Flash Library then looking for the description / category board movie clip and edit the corresponding textfield. Choose Embed from property panel.
FAQ : HOW TO OPEN A LINK WHEN I CLICK LAUNCH BUTTON IN CATEGORY PAGE INSTEAD OF GOING TO GALLERY PAGE ?
Step 1. Insert a link tag for each category in adWall3D.xml:
<category title="Animals">
<xmlPath src="animals.xml"/>
<image src="asset/animals/categoryImage.jpg"/>
<description><![CDATA[....]]> </description>
<link src="http://activeden.net/user/RimV"/>
</category>
Step 2. Open adWall3D.as, add this code to MISC VARS block:
private var link:Array = new Array();
put it inside the for loop
Step 3. In launchCategory() function, comment or delete all code inside. Add this:
navigateToURL(new URLRequest(link[currentCategory]), "_blank");
FAQ : HOW TO ARRANGE IMAGE BASED ON XML ORDER ?
All the following steps are inside assetLoaded() function.
Step 1. Look for the code:
p.extra.index = index;
and paste these code under the code above:
j0 = index % category[currentCategory].columns; i0 = Math.floor(index / category[currentCategory].columns);
So it looks like:
p.extra.index = index; j0 = index % category[currentCategory].columns; i0 = Math.floor(index / category[currentCategory].columns);
Step 2.
Delete or comment this line, also inside assetLoaded() function:
if (++j0 == category[currentCategory].columns) { j0 = 0; ++i0 };
Compile and test the movie.


438 Purchases
348 Comments