Text Image Loader Issues
Hi,
I have the following code which creates a text loader just
offset from the cursor.
It works in IE but not Safari or Firefox.
Any ideas?
Cheers
function startLoading(whichImage) {
loadMovie(whichImage, "_root.image_holder");
_root.onEnterFrame = function() {
infoLoaded = _root.image_holder.getBytesLoaded();
infoTotal = _root.image_holder.getBytesTotal();
percentage = Math.floor(infoLoaded/infoTotal*100);
_root.loaderText.text = percentage+"%";
if (percentage>=100) {
delete this.onEnterFrame;
_root.loaderText._visible = false;
Welcome to the Apple Discussions. Yes, it can be done. Select the text box and go to the Inspector/Metrics pane and use the Rotate wheel at the bottom to place the text at the angle you want. This demo page has an example at the bottom of the page.
OT
Similar Messages
-
Weird text/image box issue
I've run into an issue with text boxes or images, for some reason if i select certain text or image boxes, in article A, it will open a seperat article lets say article C. Its annoying and i've tried renaming the text box, the layer and nothing seems to solve this problem. Has anyone esle run into this issue, if so is there a way to stop this from happening?
I'm working with the latest tools v19In most probabilty, I presume you are copy-pasting these boxes or frames between articles (separate indd files). It usually happens when we copy paste buttons or hyperlink frames from one article to another. In such a case, if you click on that frame or button, it'll pop-up or open the source article or indd file it was copied from. Now, if you close that file, each time you click on that button again, the source file will open up.
So just let it stay open and don't close it till you finished working on your article, else stop copy pasting hyperlinked frames of buttons between articles. -
CS3 and png image loading issue
we have a flash appln created in flash cs3 , here we are
loading some png images dynamically,
we have tested in windows and mac environment , it is working
images are loading fine.
when we are testing in clinets machine png images alone not
loading ... they are testing in IE6 anf FireFox2
please help me in this...
thanks in advance....aruntychons, currently I am trying to find out what the
PROBLEM is. I cannot blindly give solutions to unknown problems. I
gave you a good starting point for debugging in my first response.
I NEED relevent code samples to understand how you are doing
things, to know if I can even solve your problem, to know what the
problem is. Posting code samples is a standard part of the forum
process.
That said, I took the liberty of downloading and decompiling
your SWF. I found the following URL - set as the variable "gateway"
in your FrameSelect class:
http://www.artomeframer.com/swx.php
When I paste this url into the browser, I get the following
error:
Fatal error: Uncaught exception 'VerboseException' with
message 'The 'serviceClass' argument is missing (no class name was
supplied)' in
/mnt/target03/361136/367620/www.artomeframer.com/web/content/vendors/cakeswx/php/core/swx /app/CakeGateway.php:70
Stack trace: #0
/mnt/target03/361136/367620/www.artomeframer.com/web/content/vendors/cakeswx/php/core/swx /app/CakeGateway.php(70):
amfErrorHandler(256, 'The 'serviceCla...', '/mnt/target03/3...',
70, Array) #1
/mnt/target03/361136/367620/www.artomeframer.com/web/content/vendors/swx/php/core/shared/ app/BasicGateway.php(54):
CakeGateway->createBody('The 'serviceCla...', 256) #2
/mnt/target03/361136/367620/www.artomeframer.com/web/content/app/webroot/swx.php(18):
BasicGateway->service() #3 {main} thrown in
/mnt/target03/361136/367620/www.artomeframer.com/web/content/vendors/cakeswx/php/core/swx /app/CakeGateway.php
on line 70
On a quick look, perhaps this error is related to the
problem. The problem could be permissions on the server side,
whereas your computer has permission, but other computers do not.
Regardless, maybe this will give you a starting point to figure out
where the problem is occuring. -
*** Can't get my text to load as text - still loads as an image
I have an iWeb site I've done and I'm still having trouble with some of my text being displayed as an image. This is an issue for me because it is slowing down the loading of my site.
I have 1 page where I converted the text to Georgian and it loads quick (text is loaded as text and not an image). I have another page on my site that also has all the text as Georgian, but it is still loading the text as an image.
Why could this be happening? What are some trouble-shooting tips that people may have to make sure that web-formated (web font) text appears as text.......any suggestions?
Thanks in advance!Using the 'TextEdit Passthru' technique will generally resolve text to image problems:
Copy the text you want.
Paste it into a new TextEdit Document.
Format > Make Plain Text.
Copy the text from TextEdit.
Paste it into iWeb at the desired location.
Reformat within iWeb.
Michael
iMac 20" Intel Core Duo 2GHz -
Image loading cache memory issue
Hi All,
I am facing an interesting problem about cache memory. Let me explain it using an example.
Let say, an xml file contains 5 images information. I want to load a image on stage one by one but randomly ( not on the sequence of XML items). This is working fine.
Now, i am coming to the issue. If user start the application. Then let say, "image 1" is loaded first and "image 3" is loaded second. Now user's internet connection is lost then i want to show image 1 only and then when user's internet is connected start the ramdom image loading as normal.
Hope anyone guide me about how to achive the goal !!
Thanks in Advance.
Bharat Patelyou can use the sharedobject class to determine how long ago the user logged in and the sequence of images that you want to display.
-
Issue with Image Loader in 14.0
Hi All,
In our application, we have a custom function module in ECC, which is passing the URL of an image uploaded on the content management server(KPRO). Custom FM calls 'SDOK_PHIO_GET_URL_FOR_GET' to get the URL of the image.
When we execute the FM in ECC, we get the URL as:
http://gbswidkprodb01.global.rexam.net:81/ContentServer/ContentServer.dll?get&pVersion=0046&contRep=YA&docId=001F296E9EB61ED3B6F490000438C20C&compId=TJ12A.jpg&accessMode=r&authId=CN%3DBC3,OU%3DI0520020335,OU%3DSAPWebAS,O%3DSAPTrustCommunity,C%3DDE&expirat
when I use this URL in the browser the image gets loaded in browser.
When I capture the output of JCO call in write file URL returned from FM is:
http://<server>:81/ContentServer/ContentServer.dll?get&pVersion=0046&contRep=YA&docId=001F296E9EB61ED3B6F490000438C20C&compId=TJ12A.jpg&accessMode=r&authId=CN%3DBC3,OU%3DI0520020335,OU%3DSAPWebAS,O%3DSAPTrustCommunity,C%3DDE&expiration=20140617181313&secKey=MIIBUgYJKoZIhvcNAQcCoIIBQzCCAT8CAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGCAR4wggEaAgEBMG8wZDELMAkGA1UEBhMCREUxHDAaBgNVBAoTE1NBUCBUcnVzdCBDb21tdW5pdHkxEzARBgNVBAsTClNBUCBXZWIgQVMxFDASBgNVBAsTC0kwNTIwMDIwMzM1MQwwCgYDVQQDEwNCQzMCByASCCcTUiEwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE0MDYxNzE2MTMxM1owIwYJKoZIhvcNAQkEMRYEFM%2FKd4MzWL0y1KfF58AHNg9PYqOlMAkGByqGSM44BAMELzAtAhUAtqASnXbD3E2ZM8EhG%2FLxgJhKCs0CFH0qFlBxzWlzS8kjeFw3kad63SHW
when I use this URL in the browser I get 'HTTP 400' error.
Using either of the two URL's in the image loader I get the error:
[WARN] [ImageLoader_0]ImageLoader_0 Status: 400 - (bad request)
We are currently on SAP MII 14.0 SP05(patch 3).
Thanks in advance for your help.
Regards,
DarshanSam,
I tried logging in to ECC with the same user as the one that is making the Jco connection and it is giving the same URL which i was getting earlier when i was executing the FM with my user id. I am testing the FM through SE37.
There is no logic in the custom BAPI to replace the <server> keyword. Based on the image name, it gives the URL of where the image is stored on the KPRO server.
Could not find URL Decode function in the MII link editor, i believe it is the decode function which you are referring to. Even that is not working. If it is something other than this, do let me know.
PS: This works fine in the 11.5 system from which we have upgraded to 14.0.
regards,
darshan -
No Action Until Image Loads, Please
Hi;
For some reason the squares of color that are supposed to load behind the image that acts as a mask load first, momentarily showing while the image loads, which looks bad. Hre is the code:
package
import flash.display.Sprite;
import flash.text.TextLineMetrics;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.text.TextFormatAlign;
import flash.text.TextFieldAutoSize;
import flash.net.navigateToURL;
import flash.display.Bitmap;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.display.MovieClip;
import com.greensock.*;
import com.greensock.easing.*;
import flash.display.Loader;
import flash.events.ProgressEvent;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.text.TextFieldAutoSize;
import flash.net.URLRequest;
import Images;
import flash.display.SpreadMethod;
[SWF(backgroundColor="0x505050")]
public class BillsBBQPreloader extends MovieClip
var loader:Loader = new Loader();
var loader2:Loader = new Loader();
var loader3:Loader = new Loader();
var loader4:Loader = new Loader();
var loader5:Loader = new Loader();
private var myTextField:TextField = new TextField();
var imgFlag1:Boolean = new Boolean(false);
var imgFlag2:Boolean = new Boolean(false);
var imgFlag3:Boolean = new Boolean(false);
var imgFlag4:Boolean = new Boolean(false);
var imgFlag5:Boolean = new Boolean(false);
var thermometer:Images = new Images();
var thermometerMask:Images = new Images();
var mask_container:Sprite = new Sprite();
var square:Sprite = new Sprite();
public function BillsBBQPreloader()
addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true);
private function init(e:Event)
// addChild(mask_container);
// mask_container.addChild(thermometerMask);
addChild(square);
AddThermometer();
private function AddText():void
var clientName:TextField = new TextField();
var format:TextFormat = new TextFormat();
format.font = 'Arial';
format.size = 35;
clientName.textColor = 0x023048;
clientName.text = "Bill's Texas Pit BBQ";
clientName.autoSize = TextFieldAutoSize.LEFT;
clientName.setTextFormat(format);
var nameSprite:Sprite = new Sprite();
nameSprite.x = stage.stageWidth/2 - 150;
nameSprite.y = 10;
nameSprite.alpha = 0;
TweenLite.to(nameSprite, 2, {alpha:1});
addChild(nameSprite);
nameSprite.addChild(clientName);
AddWhite();
private function AddThermometerMask():void
thermometerMask.ImagesArray = ["images/thermometer-mask.png", "index.py", 144, 1152, (stage.stageWidth-144)/2, 23];
AddRed();
private function AddWhite():void
square.graphics.beginFill(0xffffff);
square.graphics.moveTo(0,0);
square.graphics.lineTo(100,0);
square.graphics.lineTo(100,504);
square.graphics.lineTo(0,504);
square.graphics.endFill();
square.x = (stage.stageWidth-100)/2;
square.y = ((stage.stageHeight+458)/2)-83;
AddRed();
private function AddRed():void
// square.mask = mask_container;
square.graphics.beginFill(0xff0000);
square.graphics.moveTo(0,0);
square.graphics.lineTo(75,0);
square.graphics.lineTo(75,504);
square.graphics.lineTo(0,504);
square.graphics.endFill();
square.x = (stage.stageWidth-74)/2;
square.y = ((stage.stageHeight+458)/2)-83;
AddLoaders();
private function AddThermometer():void
thermometer.ImagesArray = ["images/thermometer-mask.png", "index.py", 144, 1152, (stage.stageWidth-144)/2, (stage.stageHeight-458)/2];
addChild(thermometer);
// AddThermometerMask();
AddText();
private function AddLoaders():void
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
loader.load(new URLRequest("images/logo_w_fire.png"));
loader2.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);
loader2.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded2);
loader2.load(new URLRequest("images/tpwebbaseline.jpg"));
loader3.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded3);
loader3.load(new URLRequest("images/tpdplatebgwflame.jpg"));
removeEventListener(Event.ADDED_TO_STAGE, init);
addChild(myTextField);
myTextField.width = 250;
myTextField.x = (stage.stageWidth-50)/2;
myTextField.y = 470;
myTextField.selectable = false;
myTextField.border = false;
myTextField.borderColor = 0xAA0000;
myTextField.autoSize = TextFieldAutoSize.LEFT;
var myFormat:TextFormat = new TextFormat();
myFormat.color = 0x023048;
myFormat.size = 24;
myFormat.italic = true;
myTextField.defaultTextFormat = myFormat;
private function imageLoaded(event:Event):void
imgFlag1 = true;
if (imgFlag2 == true && imgFlag3 == true)
completePreloader();
private function imageLoaded2(event:Event):void
imgFlag2 = true;
if (imgFlag1 == true && imgFlag3 == true)
completePreloader();
private function imageLoaded3(event:Event):void
imgFlag3 = true;
if (imgFlag1 == true && imgFlag2 == true)
completePreloader();
function completePreloader()
var req:URLRequest = new URLRequest('index.py');
navigateToURL(req, '_self');
function loop(e:ProgressEvent):void
var perc:Number = e.bytesLoaded/e.bytesTotal;
myTextField.text = Math.ceil(perc*100).toString() + "%";
var myY:Number = ((stage.stageHeight+458)/2)-83-(3.75*perc*100)
square.y = myY;
Here's the code for Images()
package {
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.filters.*;
import flash.filters.BitmapFilterQuality;
import flash.net.URLRequest;
import flash.net.URLLoader;
import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.display.DisplayObject;
import flash.events.Event;
import flash.events.IOErrorEvent;
public class Images extends MovieClip
private var parent_container:Sprite = new Sprite();
private var _path:String = new String("path");
private var _myWidth:Number = new Number(20);
private var _myHeight:Number = new Number(20);
private var _myX:Number = new Number(20);
private var _myY:Number = new Number(20);
private var _myURL:String = new String("url");
public function Images():void
public function set ImagesArray(_imagesArray:Array):void
_path = _imagesArray[0];
_myURL = _imagesArray[1];
_myWidth = _imagesArray[2];
_myHeight = _imagesArray[3];
_myX = _imagesArray[4];
_myY = _imagesArray[5];
LoadImage();
function LoadImage():void
parent_container = new Sprite();
addChild(parent_container)
var req:URLRequest = new URLRequest(_path);
var loader:Loader = new Loader();
loader.load(req);
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, LoadedImage);
function LoadedImage(e:Event):void
var loaderInfo:LoaderInfo = e.target as LoaderInfo;
var displayObject:DisplayObject = loaderInfo.content;
displayObject.width = _myWidth;
displayObject.height = _myHeight;
parent_container.addChild(displayObject);
parent_container.x = _myX;
parent_container.y = _myY;
function ioErrorHandler(event:IOErrorEvent):void {
trace("ioErrorHandler: " + event);
I have experimented with adding the square child elsewhere (such as in the code where it is created twice), but that proves even more disastrous. Please advise.
TIA,
BenoOops. I realize now you guys showed me how to do this; namely dispatchEvent(). (This was a problem I set aside while we solved the one that addressed this issue.) Here is the revised code which accomplishes what I wanted:
package
import flash.display.Sprite;
import flash.text.TextLineMetrics;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.text.TextFormatAlign;
import flash.text.TextFieldAutoSize;
import flash.net.navigateToURL;
import flash.display.Bitmap;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.display.MovieClip;
import com.greensock.*;
import com.greensock.easing.*;
import flash.display.Loader;
import flash.events.ProgressEvent;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.text.TextFieldAutoSize;
import flash.net.URLRequest;
import Images;
import flash.display.SpreadMethod;
[SWF(backgroundColor="0x505050")]
public class BillsBBQPreloader extends MovieClip
var loader:Loader = new Loader();
var loader2:Loader = new Loader();
var loader3:Loader = new Loader();
var loader4:Loader = new Loader();
var loader5:Loader = new Loader();
private var myTextField:TextField = new TextField();
var imgFlag1:Boolean = new Boolean(false);
var imgFlag2:Boolean = new Boolean(false);
var imgFlag3:Boolean = new Boolean(false);
var imgFlag4:Boolean = new Boolean(false);
var imgFlag5:Boolean = new Boolean(false);
var thermometer:Images = new Images();
var thermometerMask:Images = new Images();
var mask_container:Sprite = new Sprite();
var square:Sprite = new Sprite();
public function BillsBBQPreloader()
addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true);
private function init(e:Event)
// addChild(mask_container);
// mask_container.addChild(thermometerMask);
AddThermometer();
private function AddText():void
var clientName:TextField = new TextField();
var format:TextFormat = new TextFormat();
format.font = 'Arial';
format.size = 35;
clientName.textColor = 0x023048;
clientName.text = "Bill's Texas Pit BBQ";
clientName.autoSize = TextFieldAutoSize.LEFT;
clientName.setTextFormat(format);
var nameSprite:Sprite = new Sprite();
nameSprite.x = stage.stageWidth/2 - 150;
nameSprite.y = 10;
nameSprite.alpha = 0;
TweenLite.to(nameSprite, 2, {alpha:1});
addChild(nameSprite);
nameSprite.addChild(clientName);
AddWhite();
private function AddThermometerMask():void
thermometerMask.ImagesArray = ["images/thermometer-mask.png", "index.py", 144, 1152, (stage.stageWidth-144)/2, 23];
AddRed();
private function AddWhite():void
square.graphics.beginFill(0xffffff);
square.graphics.moveTo(0,0);
square.graphics.lineTo(100,0);
square.graphics.lineTo(100,504);
square.graphics.lineTo(0,504);
square.graphics.endFill();
square.x = (stage.stageWidth-100)/2;
square.y = ((stage.stageHeight+458)/2)-83;
AddRed();
private function AddRed():void
// square.mask = mask_container;
square.graphics.beginFill(0xff0000);
square.graphics.moveTo(0,0);
square.graphics.lineTo(75,0);
square.graphics.lineTo(75,504);
square.graphics.lineTo(0,504);
square.graphics.endFill();
square.x = (stage.stageWidth-74)/2;
square.y = ((stage.stageHeight+458)/2)-83;
AddLoaders();
private function AddThermometer():void
thermometer.ImagesArray = ["images/thermometer-mask.png", "index.py", 144, 1152, (stage.stageWidth-144)/2, (stage.stageHeight-458)/2];
thermometer.addEventListener("loadcomplete", AddToStage);
private function AddToStage(e:Event):void
addChild(square);
addChild(thermometer);
AddText();
private function AddLoaders():void
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
loader.load(new URLRequest("images/logo_w_fire.png"));
loader2.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);
loader2.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded2);
loader2.load(new URLRequest("images/tpwebbaseline.jpg"));
loader3.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded3);
loader3.load(new URLRequest("images/tpdplatebgwflame.jpg"));
removeEventListener(Event.ADDED_TO_STAGE, init);
addChild(myTextField);
myTextField.width = 250;
myTextField.x = (stage.stageWidth-50)/2;
myTextField.y = 470;
myTextField.selectable = false;
myTextField.border = false;
myTextField.borderColor = 0xAA0000;
myTextField.autoSize = TextFieldAutoSize.LEFT;
var myFormat:TextFormat = new TextFormat();
myFormat.color = 0x023048;
myFormat.size = 24;
myFormat.italic = true;
myTextField.defaultTextFormat = myFormat;
private function imageLoaded(event:Event):void
imgFlag1 = true;
if (imgFlag2 == true && imgFlag3 == true)
completePreloader();
private function imageLoaded2(event:Event):void
imgFlag2 = true;
if (imgFlag1 == true && imgFlag3 == true)
completePreloader();
private function imageLoaded3(event:Event):void
imgFlag3 = true;
if (imgFlag1 == true && imgFlag2 == true)
completePreloader();
function completePreloader()
var req:URLRequest = new URLRequest('index.py');
navigateToURL(req, '_self');
function loop(e:ProgressEvent):void
var perc:Number = e.bytesLoaded/e.bytesTotal;
myTextField.text = Math.ceil(perc*100).toString() + "%";
var myY:Number = ((stage.stageHeight+458)/2)-83-(3.75*perc*100)
square.y = myY;
package {
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.filters.*;
import flash.filters.BitmapFilterQuality;
import flash.net.URLRequest;
import flash.net.URLLoader;
import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.display.DisplayObject;
import flash.events.Event;
import flash.events.IOErrorEvent;
public class Images extends MovieClip
private var parent_container:Sprite = new Sprite();
private var _path:String = new String("path");
private var _myWidth:Number = new Number(20);
private var _myHeight:Number = new Number(20);
private var _myX:Number = new Number(20);
private var _myY:Number = new Number(20);
private var _myURL:String = new String("url");
public function Images():void
public function set ImagesArray(_imagesArray:Array):void
_path = _imagesArray[0];
_myURL = _imagesArray[1];
_myWidth = _imagesArray[2];
_myHeight = _imagesArray[3];
_myX = _imagesArray[4];
_myY = _imagesArray[5];
LoadImage();
function LoadImage():void
parent_container = new Sprite();
addChild(parent_container)
var req:URLRequest = new URLRequest(_path);
var loader:Loader = new Loader();
loader.load(req);
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, LoadedImage);
function LoadedImage(e:Event):void
var loaderInfo:LoaderInfo = e.target as LoaderInfo;
var displayObject:DisplayObject = loaderInfo.content;
displayObject.width = _myWidth;
displayObject.height = _myHeight;
parent_container.addChild(displayObject);
parent_container.x = _myX;
parent_container.y = _myY;
dispatchEvent(new Event("loadcomplete"));
function ioErrorHandler(event:IOErrorEvent):void {
trace("ioErrorHandler: " + event);
Thanks,
Beno -
Index.php loading issue
I finished and uploaded a new site in .php.
I have a graphics loading issue only with IE.
The js accordion with images will not reload after returning to the home page.
Anyone out thier that can shed some light on this?
http://carpetcleaningsantabarbarapro.com/index.php
Thank you in advance
CrissymarieKen might be on to something. The current release of jQuery is 1.7.2 which is compatible with jQuery Cycle.
For the latest core library, you can link to jQuery's CDN like so:
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
You have some improperly nested <h3> tags around your lists on lines 170 and 191. To keep your code error free, simply delete the heading tags.
Finally, as a courtesy to your site visitors, consider adding a cookie so people don't have to watch the Flash Spokesperson every time they go to your home page. The link below shows how:
http://alt-web.com/DEMOS/cookie-test-show-hide-flash-intro.shtml
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/ -
I have tried everything I could locate. I am using a 4S and had not a problem prior to updating the software!!! I need to text images alot due to my job. I am going crazy!!!! Any suggestions????
SMS is a carrier feature, what did your phone carrier say when you contacted them about your issue?
Double check you have MMS turn on in message settings. -
Image quality issues in PS - word to PDF
Hi,
I am having major image quality issues when trying to make my word document a clean, clear PDF. Images become distorted. Borders for tables and text that are equal px size look like they are different sizes throughout the document.
I have searched the internet, read help, and tried many different things:
Word 2007 - Changed image %, image size, export options, adjusted px for borders, used different styles
Acrobat 9 Pro - Changed import settings, import options, print options, tried press quality, high quality, etc.
Photoshop CS4 - Changed ppx, file format, compression options
What can I do to get a clean, clear PDF file with the images and borders preserved?
Thank you.In converting a MS Office file to PDF, Photoshop cannot help in any way and will likely cause more harm as it may rasterize vector data. Expect your ideal answer in the Acrobat forum.
-
XML scrolling thumbnail, image loader, & Buttons [halfway works]
Intro:
I started a flash-based website a few years ago. Back in 2006 I was able to get a xml scrolling thumbnail, image loader to work without a glitch.
For numerous reasons I had to put the project on hold until now. [one was that my 30 day trial of flash expired and only recently was I able to purchase the Adobe Web Suite CS4 as well as a new computer which could run the apps.]
Last Friday saw a bump in the road in the development of my site as two, rather straightforward task, turned into something short of a nightmare as I have been unable to get past these two, seemingly, relatively simple task.
I have posted in 4 other flash forums the issues, in detail, that I am facing - and have quite a bit of interest/views in the topic as the numbers suggest - yet no response/answer as of yet. [Which confirms other messages I have seen which seem to state that working with buttons has become increasingly difficult with the newer version of flash - something Im a bit surprised with actually from Adobe. - I would have thought there would be a palette where you could set parameters...]
Screenshot of Site/Timeline:
Before getting into the two questions I have, I would like to post an image of the site as it looks whenever an swf file is saved out, as well as a piece of the timeline in the back for reference.
Issue #1
As of now when the swf file is saved out you get exactly what you see above:
a: A scrolling thumbnail
b: ...which loads a large image when clicked on it - PEFECT...
BUT...
1a: I need for the buttons to load in this action, not for it to just load on its own.
[i.e., the silk_paintings gallery is what is open, so I need the "silk_paintings" button to call up this action]
note: Initially I had attacked this problem by taking out the actions layer you see above and applying it directly to the individual buttons with some crude MouseEvent Listener/Handerls... that did not work - at all.
Im sure it may be "easier" to make an array out of it, but with my coding level it may be "easier" to apply it to the buttons.
1b: How I currently see it, I would take the xml-list and duplicate it for the number of galleries I have.
[I would then re-name the xml-list to reflect the name of the galleries they are to represent, i.e. "silk_paintings"]
[also, I would have to rename the folders to "thumbnails1,2,3, etc., & "images 1,2,3, etc"
From there I would duplicate the actions and paste it into the buttons, changing the xml-list name to that of "silk_paintings", etc., as well as write in the MouseEvent listener Handler to make it work. [ah, ha, but what is that magic phrase, I have tried to implement various code from other tutorials, and all in vein.]
Issue #2
At this point I would be tickled pink just to get this to basic function to work.
However, once the buttons are working and calling up the xml, etc., then I need the buttons to stay on the semi-transparent blue color it is whenever in the 'hit' state. [note: NOT pictured above.]
With the way the buttons are currently set up, and with wanting to use scripting to get them to interact with the thumbnail gallery, it will have to be some miraculous code to tell that button what color to stay as whenever its clicked, and of course it going back to white when another button is clicked.
Conclusion:
Since this is an Adobe Forum I would like to make a few additional statements in hopes that the developers, etc. may take heed.
Adobes products are not cheap, and when I went to purchase the websuite I went in as a designer needing a program as not to need to program.
I understand the flexibility that coding gives, but something as simple as linking buttons should not be in the realms of rocket science. [yes, for many its not...but my brain just does not operate that route despite all the tutorials thrown at me.]
Again, it would seem that there would be a button panel where you could drag options like scrolling thumbnail slider, loader, and then parameters would come up. [much like Apples iWeb. - but before the argument of one being pro and the other for non-pros, I see it differently. Software should not be the limiting factor in how flexible you can design, or rather ones lack of programming shouldnt be. With all the talented, and I say this in all humility and honesty, programmers working for Adobe, Im sure something could be programmed like what Im asking for.]
note: Director is a good example, back in 1997 I knew nothing of multimedia and in one week I had assembled a portfolio, clicking buttons, speech, movies, and all. - and no, I dont have the money to buy more software!
At this moment I am at the mercy of someone who reads code like its a nighttime tale they are telling their kids, and who can see the exact issue I have and can share the appropriate, correct code. [as I have noticed, it has to be on target - naturally - but this target changes with just a slight change in the design.]
Thank you,
peace
Dalen
p.s.
The actionscript: [note: This is only the current working/good code that Im trying to get the buttons to call up.]
stop();
fscommand("allowscale", false);//keep SWF display at 100%
var x:XML = new XML ();//Define XML Object
x.ignoreWhite = true;
var fullURL:Array = new Array;//Array of full size image urls
var thumbURL:Array = new Array;//Array of thumbnail urls
var thumbX:Number = 25;//Initial offset of _x for first thumbnail
x.onLoad = function(){ //Function runs after XML is loaded
var photos:Array = this.firstChild.childNodes;//Defines variable for length of XML file
for (i=0;i<photos.length;i++) {//For loop to step through all entry lines of XML file
fullURL.push(photos[i].attributes.urls);//Each loop, adds URL for full sized image to Array fullURL
thumbURL.push(photos[i].attributes.thumbs);//Each loop, adds URL for thumbnails to Array thumbURL
trace(i+". Full Image = "+fullURL[i]+" Thumb Image = "+thumbURL[i]);
var t = panel.attachMovie("b","b"+i,i);//Each loop, Define local variable 't' as a new instance of 'b' movie clip, given unique instance name of 'b' plus the index number of the For loop
t.img.loadMovie(thumbURL[i]);// Each loop, load thumbnail image from XML data into variable movie clip
t._y = 0;//Set Y coordinate of variable movie clip
t._x = thumbX;//Set X coordinate of variable movie clip based on variable thumbX
t.numb = i;//Set sub-variable 'numb' inside variable t to hold index number
t._alpha = 75;//Set the Alpha value of the variable movie clip to 75% - for onRollOver highlight action
thumbX += 55;//Increment thumbX value so next thumbnail is placed 125 pixels to the right of the one before
t.onRollOver = function () {//define onRollOver event of the variable movie clip
this._alpha = 100;//Set thumbnail alpha to 100% for highlight
t.onRollOut = function () {//define onRollOut event of the variable movie clip
this._alpha = 75;//Reset thumbnail alpha to 75%
t.onPress = function () {//define onPress event of the variable movie clip
this._rotation += 3;//rotates thumbnail 3 degrees to indicate it's been pressed
this._x += 3;//Offset X coordinate by 3 pixels to keep clip centered during rotation
this._y -= 3;//Offset Y coordinate by 3 pixels to keep clip centered during rotation
t.onReleaseOutside = function () {//define onRelease event of the variable movie clip
this._rotation -= 3;//rotate thumbnail back 3 degrees
this._x -= 3;//Reset X coordinate by 3 pixels to keep clip centered during rotation
this._y += 3;//Reset Y coordinate by 3 pixels to keep clip centered during rotation
this._alpha = 75;//Reset thumbnail alpha to 75%
t.onRelease = function () {//define onRelease function to load full sized image
this._rotation -= 3;//rotate thumbnail back 3 degrees
this._x -= 3;//Reset X coordinate by 3 pixels to keep clip centered during
this._y += 3;//Reset Y coordinate by 3 pixels to keep clip centered during
this._alpha = 75;//Reset thumbnail alpha to 75%
holder.loadMovie(fullURL[this.numb]);//Load full sized image into holder clip based on sub-variable t.numb, referenced by 'this'
holder.loadMovie(fullURL[0]);//Initially load first full size image into holder clip
x.load ("silk_paintings.xml");// path to XML file
panel.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
var b = stroke.getBounds(_root);
function scrollPanel() {
if (_xmouse<b.xMin||_xmouse>b.xMax||_ymouse<b.yMin||_ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
if (panel._x >= 740) {
panel._x = 740;
if(panel._x <= (thumbX-10)) {
panel._x = (thumbX-10)
var xdist = _xmouse - 830;
panel._x += -xdist / 7;
The xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<slideshow>
<photo thumbs="thumbnails/i_brown_fairy.jpg" urls="images/brown_fairy.jpg" />
<photo thumbs="thumbnails/i_blonde_fairy.jpg" urls="images/blonde_fairy.jpg" />
<photo thumbs="thumbnails/i_flower_fairy.jpg" urls="images/flower_fairy.jpg" />
<photo thumbs="thumbnails/i_red_fairy.jpg" urls="images/red-fairy.jpg" />
</slideshow>
Attached is a link to the file I made named "index".
https://rcpt.yousendit.com/706233226/5e7b4fe0973dacf090b5cbae32c47398
I would have liked to have included the following files but was limited due to "you-send-it" not uploading folders. Files not included: [but functioning] : xml list - images [folder] - thumbnails [folder]
Again, Thank you
DalenThe issues with the buttons calling up the scrolling thumbnail panel have been resolved, as well as keeping the buttons in their hit state once clicked, thanks to Rob.
Those that have been following this thread, or stumble upon it in their searches later, may appreciate to see the final solution to this particular issue.
[Hopefully I will be able to update this thread with a url in the future to show the site in operation, which may help somebody with their project in the future if its set up similarly.]
Alas, it would be nice if future versions of flash had a more direct, flexible, user friendly method for creating navigation.
[We may see development beyond the flash ads which everyone seems to loathe... and more creativity with flash in terms of games, web interactivity, & animation.
Below are 2 sets of code:
a] the first is located within the first frame of the first button, and has some extra variables in it that the additional buttons call upon...
b] the second is the code applied to every other button.
stop();
fscommand("allowscale", false);//keep SWF display at 100%
var x:XML = new XML();//Define XML Object
x.ignoreWhite = true;
var fullURL:Array = new Array();//Array of full size image urls
var thumbURL:Array = new Array();//Array of thumbnail urls
// ....... CHANGE
var thumbX:Number;// = 25;//Initial offset of _x for first thumbnail
// make an array of all of the instance names of each button object...
// only do this once
var buttonsList:Array = new Array(shadesOfGrey, silkPaintings);
shadesOfGrey.isLatched = false;
// the rollover function... repeat for each button
shadesOfGrey.onRollOver = shadesOfGrey.onDragOver=function ():Void {
if (!this.isLatched) {
this.gotoAndStop(2);
// the rolloff function... repeat for each button
shadesOfGrey.onRollOut = shadesOfGrey.onDragOut=shadesOfGrey.onReleaseOutside=function ():Void {
if (!this.isLatched) {
this.gotoAndStop(1);
// the mouse press function... repeat for each button
shadesOfGrey.onPress = function():Void {
resetAllButtons();
this.isLatched = true;
this.gotoAndStop(3);
shadesOfGrey.onRelease = function():Void {
x.load("shadesOfGrey.xml");// path to XML file
thumbX = 25;
function resetAllButtons():Void {
for (b in buttonsList) {
buttonsList[b].isLatched = false;
buttonsList[b].gotoAndStop(1);
x.onLoad = function() {//Function runs after XML is loaded
// resets the position of the panel on each new load
panel._x = 740;
// ....... CHANGE removes the existing movieclips from the panel before any new load...
for (c in panel) {
if (typeof (panel[c]) == "movieclip") {
removeMovieClip(panel[c]);
var photos:Array = this.firstChild.childNodes;//Defines variable for length of XML file
for (i=0; i<photos.length; i++) {//For loop to step through all entry lines of XML file
fullURL.push(photos[i].attributes.urls);//Each loop, adds URL for full sized image to Array fullURL
thumbURL.push(photos[i].attributes.thumbs);//Each loop, adds URL for thumbnails to Array thumbURL
//trace(i+". Full Image = "+fullURL[i]+" Thumb Image = "+thumbURL[i]);
var t = panel.attachMovie("b", "b"+i, i);//Each loop, Define local variable 't' as a new instance of 'b' movie clip, given unique instance name of 'b' plus the index number of the For loop
t.img.loadMovie(thumbURL[i]);// Each loop, load thumbnail image from XML data into variable movie clip
t._y = 0;//Set Y coordinate of variable movie clip
t._x = thumbX;//Set X coordinate of variable movie clip based on variable thumbX
t.numb = i;//Set sub-variable 'numb' inside variable t to hold index number
t._alpha = 75;//Set the Alpha value of the variable movie clip to 75% - for onRollOver highlight action
thumbX += 55;//Increment thumbX value so next thumbnail is placed 125 pixels to the right of the one before
t.onRollOver = function() {//define onRollOver event of the variable movie clip
this._alpha = 100;//Set thumbnail alpha to 100% for highlight
t.onRollOut = function() {//define onRollOut event of the variable movie clip
this._alpha = 75;//Reset thumbnail alpha to 75%
t.onPress = function() {//define onPress event of the variable movie clip
this._rotation += 3;//rotates thumbnail 3 degrees to indicate it's been pressed
this._x += 3;//Offset X coordinate by 3 pixels to keep clip centered during rotation
this._y -= 3;//Offset Y coordinate by 3 pixels to keep clip centered during rotation
t.onReleaseOutside = function() {//define onRelease event of the variable movie clip
this._rotation -= 3;//rotate thumbnail back 3 degrees
this._x -= 3;//Reset X coordinate by 3 pixels to keep clip centered during rotation
this._y += 3;//Reset Y coordinate by 3 pixels to keep clip centered during rotation
this._alpha = 75;//Reset thumbnail alpha to 75%
t.onRelease = function() {//define onRelease function to load full sized image
this._rotation -= 3;//rotate thumbnail back 3 degrees
this._x -= 3;//Reset X coordinate by 3 pixels to keep clip centered during
this._y += 3;//Reset Y coordinate by 3 pixels to keep clip centered during
this._alpha = 75;//Reset thumbnail alpha to 75%
holder.loadMovie(fullURL[this.numb]);//Load full sized image into holder clip based on sub-variable t.numb, referenced by 'this'
holder.loadMovie(fullURL[0]);//Initially load first full size image into holder clip
// this one function scrolls the panel for all of the buttons, it gets the
// size of the panel when the images are loaded by any given button...
stroke.onEnterFrame = function() {
if (this.hitTest(_xmouse, _ymouse, false)) {
if (panel._x>=740) {
panel._x = 740;
if (panel._x<=740-panel._width+mask._width) {
panel._x = 740-panel._width+mask._width;
if ((panel._x<=740) && (panel._x>=740-panel._width+mask._width)) {
var xdist = _xmouse-830;
panel._x += -xdist/7;
Of note is the change to how the movie clips are measured... this change in and of itself has really helped to make the thumbnail panels operation more efficient.
Below is the script for each additional button: [Having issues with the forums not letting me post additional code, so I will put the remaining code in a reply below.]
cont. -
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£NDIif 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.
> -
Images load really slow after using Reduce File Size...
After using the "Reduce File Size..." feature in Acrobat 9 on Windows Vista, some of the images load really slow as I page through the document. Is there some kind of compression setting that I should look for to prevent the images from be affected by this?
For some of my documents it will take 30 to 60 seconds to load an image. Sometimes I can't do anything with the document until the graphic loads entirely.Can you post an example of a file that has this issue? Personally, I recommend using the PDF optimizer, it gives better control of the final pdf file.
-
Drawning text/images in a JPanel and then resizing/moving it with the mouse
Hello ebverybody!
I need to be able to draw some text objects in a JPanel and then resize/move it with the mouse... How could I do that!? Same for some images loaded from jpg files...
Should I just paint the text and then repaint when the mouse selects it? How to do this selection?! Or should use something like a jLabel and then change it`s font metrics?!
I need to keep track of the upper left corner of the text/image, as well as the width/height of it. This will be recorded in a file.
The text/images need to smoothly move around the panel as the mouse drags when selectin an entity.. not just "click the entity, then click another point and the entity appears there as if by magic...":)
Please, tell the best way to do that!
Thanks everybody!
Message was edited by:
cassio.marquesI know what you mean! This happened to me as well!
And one thing that I found useful is, if you want to directly select a layer without selecting from the layers pallete and without having autoselect enabled, just hold Ctrl and click on in directly in the image. This saved me a lot of time! -
More Image/stylesheet issues
Hello again,
Just wondering if anyone could give me some quick style sheet issues, have an img class that looks a little something like this:
img {
border: 5px solid #adadad ! important ;
padding: 5px ! important ;
margin: 4px, 4px, 4px, 4px ! important ;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
border-radius: 15px;
Which works like magic for getting me a nice curved border in most modern browsers.
Now there are one or two small icon type images that I need to not have a border as they are actually within the text - can anyone think of a way of setting up RH9 so that I can have an image that doesn't follow these styles?
I am sure it will be to do with over riding these styles but not sure how to do this because it is not like I am selecting a style for the image files - they are just getting their styles from the img selector...
Anyone got any suggestions?
much 'preciated.Hi Willam
I'm a bit confused by what you suggested. You seem to be implying that this won't work and the image paths will break. But I've not found this to be the case. I just tested by creating an image and later creating some nested subfolders and using the variable in topics in each of the subfolders. I then generated WebHelp and viewed and I had no broken images at all. RoboHelp was able to manage the relative pathing to the image without issue.
Have you noticed otherwise?
I'm a believe in erring on the side of caution, but it would seem that (for me anyway) the worry is unfounded.
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7, 8 or 9 within the day!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks
Maybe you are looking for
-
Apple Mail on Snow Leopard 1.6.8
I'm aware this subject isn't new but still I find no solutions .... Hence, very many thanks to anyone who will help me to solve this substantial problem Since the unfortunate invention of Icloud my Apple Mail on Snow Leopard 1.6.8 no longer work prop
-
How do I find the root cause of a NetConnection closed event?
Hi, I am maintaining a large project developed in Flex/Actionscript. The application is using tunneling (RTMPT), and we often get Netconnection "closed" events. There is no problem with the physical network. I think the event may be caused by either
-
I need suggestions for parental controls applications for the iTouch!
I bought my sons new 4th generation 8gb iPod iTouches for Christmas. I want to restrict Internet websites and usage since they are only 13 y/o. Someone suggested a free application that apparently is great.....but I cannot remember the name of it! Pl
-
How do I turn the Dock off and on as I want?
How do I turn the Dock off and on as I want? I don't mean Hide.... I mean off. It's using to much Free RAM and I need to occasionally turn it off to test RAM usage.
-
Hi, Can anyone tell me how can I get the previous period stock thru my program. Which table should i check to get the previous period stock? Thanks.. Uma