Why does the content spill over and how do I position this under the menu and title?
I was following this tutorial on how to add a scrolling image gallery to a Flash website.
(http://www.republicofcode.com/tutorials/flash/xmlimagegallery/index.php)
From what I understand from this tutorial, it is just a matter of copying the Actionscript code and pasting it onto the timelines then making modifications on the XML.
(kindly see a screenshot of timeline layers I made and as to where I put the Actionscript code:
http://i429.photobucket.com/albums/qq19/tsujzpie/imagegalleryproblem_01.jpg )
I pasted the code onto the blank keyframe labeled "Gallery"...
But all I get is this weird effect when I click on the button for the gallery...
(kindly see a screenshot of it here: http://i429.photobucket.com/albums/qq19/tsujzpie/imagegalleryproblem_02.jpg )
When you put a blank keyframe on a timeline, any content put in there is supposed to only be contained in that very frame, right? How come then that - whenever the gallery button is clicked on - the content from that section spills out onto the other sections even when I click on other button for the other areas?
I just really couldn't think why this is happening - any reason why this is so?
And how do I position the gallery right under the section header and menu bar?
Here is its AS2 code, by the way:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var myGalleryXML = new XML();
myGalleryXML.ignoreWhite = true;
myGalleryXML.load("gallery.xml");
myGalleryXML.onLoad = function() {
_root.gallery_x = myGalleryXML.firstChild.attributes.gallery_x;
_root.gallery_y = myGalleryXML.firstChild.attributes.gallery_y;
_root.gallery_width = myGalleryXML.firstChild.attributes.gallery_width;
_root.gallery_height = myGalleryXML.firstChild.attributes.gallery_height;
_root.myImages = myGalleryXML.firstChild.childNodes;
_root.myImagesTotal = myImages.length;
_root.thumb_height = myGalleryXML.firstChild.attributes.thumb_height;
_root.thumb_width = myGalleryXML.firstChild.attributes.thumb_width;
_root.full_x = myGalleryXML.firstChild.attributes.full_x;
_root.full_y = myGalleryXML.firstChild.attributes.full_y;
callThumbs();
createMask();
scrolling();
function callThumbs() {
_root.createEmptyMovieClip("container_mc",_root.getNextHighestDepth());
container_mc._x = _root.gallery_x;
container_mc._y = _root.gallery_y;
var clipLoader = new MovieClipLoader();
var preloader = new Object();
clipLoader.addListener(preloader);
for (i=0; i<myImagesTotal; i++) {
thumbURL = myImages[i].attributes.thumb_url;
myThumb_mc = container_mc.createEmptyMovieClip(i, container_mc.getNextHighestDepth());
myThumb_mc._y = _root.thumb_height*i;
clipLoader.loadClip("thumbs/"+thumbURL,myThumb_mc);
preloader.onLoadStart = function(target) {
target.createTextField("my_txt",target.getNextHighestDepth (),0,0,100,20);
target.my_txt.selectable = false;
preloader.onLoadProgress = function(target, loadedBytes, totalBytes) {
target.my_txt.text = Math.floor((loadedBytes/totalBytes)*100);
preloader.onLoadComplete = function(target) {
new Tween(target, "_alpha", Strong.easeOut, 0, 100, .5, true);
target.my_txt.removeTextField();
target.onRelease = function() {
callFullImage(this._name);
target.onRollOver = function() {
this._alpha = 50;
target.onRollOut = function() {
this._alpha = 100;
function callFullImage(myNumber) {
myURL = myImages[myNumber].attributes.full_url;
myTitle = myImages[myNumber].attributes.title;
_root.createEmptyMovieClip("fullImage_mc",_root.getNextHighestDepth());
fullImage_mc._x = _root.full_x;
fullImage_mc._y = _root.full_y;
var fullClipLoader = new MovieClipLoader();
var fullPreloader = new Object();
fullClipLoader.addListener(fullPreloader);
fullPreloader.onLoadStart = function(target) {
target.createTextField("my_txt",fullImage_mc.getNextHighestDepth (),0,0,200,20);
target.my_txt.selectable = false;
fullPreloader.onLoadProgress = function(target, loadedBytes, totalBytes) {
target.my_txt.text = Math.floor((loadedBytes/totalBytes)*100);
fullPreloader.onLoadComplete = function(target) {
new Tween(target, "_alpha", Strong.easeOut, 0, 100, .5, true);
target.my_txt.text = myTitle;
fullClipLoader.loadClip("full_images/"+myURL,fullImage_mc);
function createMask() {
_root.createEmptyMovieClip("mask_mc",_root.getNextHighestDepth());
mask_mc._x = _root.gallery_x;
mask_mc._y = _root.gallery_y;
mask_mc.beginFill(0x000000,100);
mask_mc.lineTo(_root.gallery_width,0);
mask_mc.lineTo(_root.gallery_width,_root.gallery_height);
mask_mc.lineTo(0,_root.gallery_height);
mask_mc.lineTo(0,0);
container_mc.setMask(mask_mc);
function scrolling() {
_root.onEnterFrame = function() {
container_mc._y += Math.cos(((mask_mc._ymouse)/mask_mc._height) *Math.PI)*15;
if (container_mc._y>mask_mc._y) {
container_mc._y = mask_mc._y;
if (container_mc._y<(mask_mc._y-(container_mc._height-mask_mc. _height))) {
container_mc._y = mask_mc._y-(container_mc._height- mask_mc._height);
You should create a manually movieclip symbol with nothing in it and take a copy of it from the library and place it in the frame where you intend for the gallery to display. Give it an instance name of "container_mc" and remove the following line from your callThumbs function
_root.createEmptyMovieClip("container_mc",_root.getNextHigh estDepth());
You probably need to do the same for the mask and the full images since they appear to also be created using dynamic mc's.
Similar Messages
-
What, exactly, are 'encoded assets'? Why does removing them resolve problems? How can they be avoided in the first place?
As I understand it, encoding fomats your digital video clips and photos (assets) into Standard DVD mp2 format so that it can be burned to a DVD. If there has been an error in the encoding process, then you remove the old encoded assets and start over. There are numberous reasons why there can be errors in the encoding process.
-
Each time I reopen a folder in OS X 10.8.4 the files get rearranged alphabetically, how do I stop this so the file arrangement in the folder stays the same?
I might add that all the files are aliases. There are 40 altogether and I am aware I could create 10 sub-folders so I only have 4 aliases in each subfolder which would mean I only have to rearrange 4 aliases each time but this is still not ideal. I have been using Macs since the 1980's and up to now files have always stayed where you put them unless you selected Arrange By in the Finder View Menu.
-
I would like to either enter my passwords on my phone over the computer or avoid doing it at all. Is there anyway I can do that? Like I said my keyboard is messed up and I have to turn my phone to the side to use the keyboard, but entering in the passwords the phone wont turn to the side. Help!!!!
Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new). Try each of these in order until the issue is resolved.
There is no option to enter the password on the computer.
If the screen will not rotate, ensure that Portrait Lock is not enabled. -
When I tried adding watermarks for other pdfs it worked fine. Just for this particular pdf, it doesn't work properly.
I tried adding watermarks to other pdfs and they worked fine but for this particular pdf, the watermarks erase all the content affer I add them.
-
The url of the website that I'm visiting used to show in the url box when I opened from a shortcut or email. But not it's not there unless I refresh the page. I've looked and haven't found a way to set this so that it works like it used to. I liked being able to click in the address bar and copy the link, or even to look there and see where I am.
I'm unable to check it in safe mode because the only time it happens is when I click a link and have not firefox open. For example if I would click a link in my email right now, it would open in another tab and show the address of the link I clicked. But if I didn't not have this window open and clicked alink, it would open a new window and I wouldn't be able to see the url.
Here's a screen shot.
[http://chibitude.com/gallery/albums/userpics/10001/firefoxSSForAddressProblem.jpg firefoxSSForAddressProblem.jpg] -
I'm designing the website in Adobe Muse, using the .OAM file from Edge Animate. Please help.
Sounds like you may need to set the target url to _parent
See reference: HTML a target Attribute
Darrell -
I've been working on our church website and all of a sudden this week, my computer will not connect to the site. I keep getting a message saying that the the connection to the server was reset while the page was loading. Does anyone have any ideas of how I can fix this?
The "The connection was reset" error message can be caused by a bug fix for the BEAST (Browser Exploit Against SSL/TLS) attack that the server doesn't handle.
*[[/questions/918127]]
*[[/questions/918028]] -
Firefox 4 is extremely slow to perform any function on my lap top compared to previous versions. Why? And how do I change this!
Firefox 21 and Firefox 22 running on Windows 7 have been reported to take a long time to "wake up" from sleep. I realize hibernation is different than sleep, but... this is the closest match for your description.
Some users have reported that this problem is resolved in Firefox 23 (currently in beta). Others have had inconsistent luck with minimizing Firefox before letting Windows sleep and other measures.
Please check out this (very long) thread for more information: [https://support.mozilla.org/questions/961898 browser freezes after resuming from sleep]
Or jump to the part about Firefox 23: https://support.mozilla.org/questions/961898?page=3#answer-457321
The fact that this just started recently suggests perhaps it is related to another program or update, but I don't think anyone has confirmed the exact interaction that causes the problem. -
When creating a multi page document, some of my thumbnails become linked and therefore impossible to rearrange. What am I doing wrong and how do I correct this?
The pages in sections stick together because the text flows between the pages.
Insert a section break to isolate pages between sections.
Now this all works in Pages '09, unfortunately Pages 5 doesn't let you.
Peter -
My calendar events are dropped after the month is over. How can I prevent this from happening?
Settings > Mail, Contacts, Calendars > [scroll way down to the Calendars section] Sync = "All events"
-
Having purchased the download version of CS6, how do I get this onto the new computer?
Thanks,
PeterDownload your installer from here
http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
and enter your serial number when asked.
Gene -
imovie is trying to open, opens and then the spinning wheel takes over, why and how do I fix this issue?
Finder Go menu --> Go To Folder... "~/Library/Preferences", then
delete iMovie related plist such as "com.apple.iMovieApp.plist" and "com.apple.iMovie.plist". -
does anyone know why my iphone keeps switching all of my alert tones and ringtones assigned to contacts? i restored it and it still keeps doing it and now when ever i get a txt or a phone call the tones just sound terrible. how do i fix this?
Your only chance is setting it up as new device without using the latest backup afterwards, which you already did.
If this does not work, you should get it serviced:
Apple - Support - Service Answer Center
How to back up your data and set up as a new device -
This is a new notification coming up with iTunes, why and how do I fix it?
The song “Penny Lane” could not be used because the original file could not be found. Would you like to locate it?
MaxHey xxCreepyFiaxx,
First, I would try the following suggested steps for when you don't see content in iTunes after updating:
Quit iTunes.
Download and install the latest version of iTunes.
Use the Finder (Mac) or Windows Explorer (Windows) to go to the iTunes folder that contains the iTunes library files:
Mac OS X
/Users/username/Music/iTunes/
Microsoft Windows Windows XP and Windows 2000
\Documents and Settings\username\My Documents\My Music\iTunes\
Microsoft Windows Windows Vista and Windows 7
\Users\username\Music\iTunes\
Drag the iTunes Library file from the above location to the Desktop.
Open the Previous iTunes Libraries folder in the iTunes folder.
Locate the file named iTunes Library YYYY-MM-DD where YYYY-MM-DD is the date you upgraded iTunes (Year-Month-Day).
Drag this file to the iTunes folder (the enclosing folder).
Rename this file to iTunes Library.
Open iTunes.
You should now see your missing content in iTunes.
via: No content shows up in iTunes after updating
http://support.apple.com/kb/TS1967
If that doesn't resolve the issue, then I'd go through the steps in here:
iTunes: Finding lost media and downloads
http://support.apple.com/kb/TS1408
Have a good one,
Delgadoh
Maybe you are looking for
-
Questions about track listing and album
I have burnt my collection of an audio drama I have on CD and transferred them to the Creative Vision M. The problem is the tracks play in alphabetical order, not in the numerical order (as in #1, 2, 3, etc.) I've gone and used MP3 Tag Editor to chec
-
Logic 10.0.07 keeps stopping recording at the same time every time
Logic 10.0.07 keeps stopping recording at the same time every time 3.14! How can i get it to extend on recording time? Model Name: Mac Pro Model Identifier: MacPro6,1 Processor Name: 6-Core Intel Xeon E5 Processor Speed: 3.5 GHz Number of Pro
-
How to restrict the results in the search help
Hi Friends, My current assignment calls for a program using search help. The scenario is.. there are different radio buttons for organizational units and if a unit is selected, corresponding users need to be displayed in the screen. Multiple selectio
-
Before when I clicked on a hyperlink in a Pages document Pages immediately opened the link. Now Pages ask if I want to "Edit or Open" the link. Is this an option that I can turn or off or is this just a change with the latest update? This only sta
-
I've never had problems with iTunes, but I recently moved to a SSD and now music skips.
Howdy all. I've recently replaced my Analog HDD with a Solid State drive, (Samsung 840 250GB) which is so much faster, but only problem now is when listening to iTunes, I notice serious skipping. I have reinstalled drivers for chipset, audio, optim