Loading JPEGs into set position on stage
Hi All,
I have made a flash movie as seen at
http://www.coffeemamma.com.au
and would
like to change the following:
I'd like to generate three random numbers from 1 to 5
inclusive but I want
to ensure that each number is different - e.g. 2, 4, 1 (not
2, 4, 2). I know
how to generate ONE random number, but I'm stuck on comparing
them to see
whether they are the same (and if they are, then generate new
numbers until
they are unique).
With the three numbers I would like to load images based on
those numbers -
e.g. '_image_2.jpg' then '_image_4.jpg' then '_image_1.jpg'.
This part is
fine IF I can generate the numbers.
I'd also like to have the images come to the front when they
are hovered
over with the mouse and then to go 'back' to their original
position when
the mouse moves away. This I'm completely stuck on.
I'd also like to be able to put the newly loaded images into
certain
positions (as per the example) rather than only loaded to
(0,0) coordinates.
I also want to be able to have the images masked as they come
in (as per the
example) in order to avoid white corners on the top images.
I also have a page as per
http://www.wasabi.org.au/wodonga.shtml
which has
some of the functions I want to use, but I can't seem to get
some of the
functions working in my new movie...
Many thanks,
Bruce
var arr:Array = new Array();
var nextX:Number=whatever; // assign these 4 numbers
var nextY:Number =whateverelse;
var gapX:uint = xx;
var gapY:uint =yy;
for(var i:int = 0; i<4; i++){
var life_mc:Life = new Life();
arr.push(life_mc);
stage.addChild(life_mc);
life_mc.x = nextX;
life_mc.y=nextY;
nextX += gapX*(i%2);
nextY += gapY*Math.floor(i/2);
Similar Messages
-
Loading jpegs into video playlist from XML
I would be gratefull if anyone out there might be able to
help me.
I want to display jpegs alongside the text when selecting
which videos to play,
the problem is I am not sure how to change the xml file and
the actionscript.
Can you please help.
Here is the code
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
stream_ns.setBufferTime (30);
stream_ns.onStatus = function (info) {
if(info.code == "NetStream.Buffer.Full") {
bufferClip._visible = false;
if(info.code == "NetStream.Buffer.Empty") {
bufferClip._visible = true;
video.attachVideo(stream_ns);
rewindButton.onRelease = function() {
stream_ns.seek(0);
playButton.onRelease = function() {
stream_ns.pause();
var vlist:XML = new XML ();
vlist.ignoreWhite = true;
vlist.onLoad = function (){
var videos:Array = this.firstChild.childNodes;
for (i=0;i<videos.length;i++) {
videoList.addItem(videos
.attributes.thumb,videos.attributes.url);
stream_ns.play(videoList.getItemAt (0) .data) ;
videoList.selectedIndex = 0;
var vidList:Object = new Object();
vidList.change = function() {
stream_ns.play
(videoList.getItemAt(videoList.selectedIndex).data );
videoList.addEventListener("change",vidList);
vlist.load("video.xml");
var videoInterval = setInterval(videoStatus,100);
var amountLoaded:Number;
var duration:Number;
stream_ns["onMetaData"] = function(obj) {
duration = obj.duration;
function videoStatus() {
amountLoaded = stream_ns.bytesLoaded / stream_ns.bytesTotal;
loader.loadbar._width = amountLoaded * 297.9;
loader.scrub._x = stream_ns.time / duration * 297.9;
var scrubInterval;
loader.scrub.onPress = function() {
clearInterval(videoInterval);
scrubInterval = setInterval(scrubit,10);
this.startDrag(false,0,this._y,289,this._y);
loader.scrub.onRelease = loader.scrub.onReleaseOutside =
function() {
clearInterval(scrubInterval);
videoInterval = setInterval(videoStatus,100);
this.stopDrag();
function scrubit() {
stream_ns.seek(Math.floor((loader.scrub._x/289) * duration));
_root.createEmptyMovieClip("vSound",_root.getNextH
ighestDepth());
vSound.attachAudio(stream_ns);
var so:Sound = new Sound(vSound);
so.setVolume(100);
mute.onRollOver = function() {
if (so.getVolume() == 100) {
this.gotoAndStop("onOver");
else {
this.gotoAndStop("muteOver");
mute.onRollOut = function() {
if (so.getVolume() == 100) {
this.gotoAndStop("on");
else {
this.gotoAndStop("mute");
mute.onRelease = function() {
if (so.getVolume() == 100) {
so.setVolume(0);
this.gotoAndStop("muteOver");
else {
so.setVolume(100);
this.gotoAndStop("onOver");
Here is the XML
<?xml version="1.0" encoding="ISO-8859-1"?>
<videos>
<video url="
http://fimm.tv/09072007.flv"
desc="Come & Drink - Linda Faith" thumb="test.jpg" />
</videos>
</xml>Thanks for this response.
Yes, i checked my source files which are not UTF-8. When i do keep these files on Japanese system, it displays Japanese characters but on any other system it displays garbage.
My Oracle Database is on normal windows system hence it reads it as a garbage.
Could you please suggest any method to change these files as UTF-8. I have 30,000 XML files for this loading.
Is there any way to handle this issue in Oracle itself.
Please suggest. -
I'm using Mainstage 2.1.3 and it starts to freeze with the spinning beach ball around 20 min. into set. NOT GOOD ON STAGE! What up?
I keep chronological versions of my Concerts if I do any modifications, and multiple versions had the same problem: the loading bar (which starts with Feedback Control, then plug-ins) would freeze immediately; no beach ball, no nothing. I would have to force quit. I could load a blank template and that would work. Nothing had changed on my system, no new software, no new plug-ins. And, yes, I send reports of any major bugs to Apple.
The reason I was so frustrated this time was that I had been let down by my long-time relationship too many times in the past. I went so far as to buy a fast dedicated system for live performance only. Great cables, great I/O, great peripherals. But it has been like a weird relationship: one where your partner is the best in the world for the longest time and all is carefree bliss. Then, out of the blue, they do something gut wrenchingly bad. So, you think it must be your fault and you work on stuff. Maybe get some counseling, go to the gym, get some new clothes. A hairstyle. A faster car. Things are wonderful again! The relationship is working! Then, !wham! Out of the blue, you're let down again. Well, I am now at the point I am going to try some other relationships. Maybe they won't be smart or as pretty, but I need stability. If MS straightens up and I hear from others that she has changed and seems stable and predictable, I just may give her another try. Because deep down, I really do love her. -
I have scanned photos using an Epson V500 scanner set to scan using jpeg format at the highest quality (least compression) setting. When I try to import the scanned jpegs into iPhoto, I get an error message from iPhoto saying "The file is an unrecognized format." But if I reduce the quality setting on the Epson scanner to just slightly below highest quality, the images import into iPhoto just fine. Why won't iPhoto accept jpegs scanned at the highest quality setting? Wondering?
What scanner format settings dis you use? Are these color photos? If they are B/W did you scan as grayscale images? That could be the problem.
Are you able to open them with Preview? If so do a Save As, select full quality and save as a jpeg with a new file name. See if that file will import and work as intended.
OT -
Load external jpeg into flash movie
Hi, how do i load external jpeg into flash movie?
Can someone show me the actionscript? Thankshi, i pasted the code on a mc but it didn't work.
However, when i put in on frame action, it works.
However, i realised the image flickered (more like refreshed)
after afew sec...
Is this normal? Is it the loop problem? how do i get rid of
that? -
Hey folks,
we've been getting this problem a lot. We had it in Flash CS5.5 and still have it CS6.
We're animating a series in Flash and this problem keeps cropping up way to often, but seems totally random.
Basically I'll be working on a .fla saving regular versions through out the day, no problems. I'll close the file down. Then I (or someone else on a different computer) will open it up and I'll get the error msg "Could not load scene into memory. Your document may be damaged." Everything will be fine except for a few missing graphic symbols. Sometimes just the one, sometimes a whole bunch. So where the symbol should be on the stage, instead you get a small white square, but it still contains the animation information. So it will still move about the stage. If I bring in the same symbol from an old scene I can swap them out and the problem is fixed, (until it does it again on a totally different graphic symbol).
If i select the symbol in the library the preview is white/blank and i can't go into it to edit. When I select the symbol on the stage, the "instance of:" gives me a blank "_ _ _" in the properties tab. How ever if i right click show in library it does show me the correct (although broken as in blank) symbol in the library.
I havent been able to reproduce this problem on purpose but I'd say it happens in roughly one scene out of 10. Its seems to happen at random, I know there must be something in common but i havent figured out what. Its going on in heavy scenes (large library multipule characters), lite scenes (just the one character). Its not like it happens to the same symbol, different ones each time. Everything is local to the scene, all elements are created in flash. We are working across a network but as everything is local to the scene i don't see how that would be a problem. Also we don't have duplicate named symbols. It also won't necessarily affect something that has been changed since the last version. could be a background element thats been there, untouched since the first version of the scene.
One point on how we set up our scenes which may be relevant. Start with empty scene, copy and paste symbols from other scenes to populate. Save.
The problem could appear on say version 4 or version 36. Older versions are usually fine.
So to sum up. Flash file is fine when we save it, open it up again later and a symbol will have disappeared. It's happening far too often.
I know how to fix the problem, thats not what I'm asking. I need to know WHY its doing it so we can stop this from happening in the first place.
Phew! Thanks for reading this far. Any help would be highly appreciated.
Sander/Can you elaborate on how you use the network? Are you working from FLA/XFLs stored on a machine across a network (and saving them across the network)? I had plenty of those issues and Adobe has always warned not to work across a network. I just fell into the habit of copying over what I need to work on locally, then updating the file servers at the end of the day. Nothing was corrupt after that.
Also lately in CS5.5 (not CS6 yet) I had noticed that I could change some graphics assets, close the document in OS X and open in Windows only to find freshly updated graphics reverted back. What's even more odd is if the OS X machine that made the changes opens it the changes are still made. This happens vice versa as well. My only solution on that was not to work cross-platform with other machines on a network unless absolutely necessary. -
Hi,
I'm working on an application which places instances from my
library onto the stage. Every instance has a movieclip inside it
which is called holderMC. What I want to do is to load external
images into holderMC except I can't seem to get it working. How
does one load images into a pre-defined movieclip?Oh, sorry, wasn't looking properly. You cannot load images
into MovieClips like in AS2, you have to use a Loader or the
UILoader component.
If you want to be able to position the loader visually, then
you can give an instance of the UILoader component and instance
name within the THEPhoto MC, and use the following code:
MovieClip(photo).holder.load(photoRequest); //where holder is
the instance name of the loader.
OR
Within the ThePhoto class you could create a new Loader:
public var imgLoader:Loader = new Loader();
public function ThePhoto () {
imgLoader.x = 0;
imgLoader.y = 0;
addChild(imgLoader);
and then use:
MovieClip(photo).imgLoader.load(photoRequest); -
Open an Excel file to read and load it into Oracle - Oracle COM Automation
Hello All,
Please I need your help for this problem:
I need to load Excel sheet data (read the data) and load it into Oracle database (insert into a table), the excel file created and has data before, and saved with xls format. and I need to do that using the Oracle® COM Automation (ordcom package). The examples I found open and create a new workbook and deletes the old saved data, so I need to open (edit) the sheet just for reading.
I appreciate ans sample code to help me do that, Please help me out. This is very urgent.
Thanks alot and best regards,
NabilFor reading from Excel, there are some easy ways like Oracle Heterogenious Services. If you want to use COM then:
My orawpcom.dll file exists in the directory C:\oracle\product\10.2.0\db_2\bin
C:\oracle\product\10.2.0\db_2\bin>dir orawpco*.dll
Volume in drive C is C_Drive
Volume Serial Number is 8A93-1441
Directory of C:\oracle\product\10.2.0\db_2\bin
03/20/2006 05:06 PM 61,440 orawpcom.dll
10/11/2006 03:20 PM 81,920 orawpcom10.dll
2 File(s) 143,360 bytes
0 Dir(s) 65,407,717,376 bytes free
C:\oracle\product\10.2.0\db_2\bin>Information about my database version.
SQL> /* My databaser version */
SQL> SELECT * FROM v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
SQL> Preparing the user SCOTT for COM automation.
Now, I will run comwrap.sql from scott user. I have edited the comwrap.sql to adjust my library path here:
create library utils_lib as 'C:\oracle\product\10.2.0\db_3\bin\orawpcom.dll';Running comwrap.sql and ExcelSolution.sql .....
SQL> conn scott@orclsb
Enter password: *****
Connected.
SQL> @c:\comwrap.sql
drop library utils_lib
ERROR at line 1:
ORA-04043: object UTILS_LIB does not exist
Library created.
drop package ORDCOM
ERROR at line 1:
ORA-04043: object ORDCOM does not exist
drop TYPE OAArgTable
ERROR at line 1:
ORA-04043: object OAARGTABLE does not exist
Type created.
drop TYPE OAArgTypeTable
ERROR at line 1:
ORA-04043: object OAARGTYPETABLE does not exist
Type created.
drop function OAgetNumber
ERROR at line 1:
ORA-04043: object OAGETNUMBER does not exist
Function created.
drop function OAgetStr
ERROR at line 1:
ORA-04043: object OAGETSTR does not exist
Function created.
drop function OAgetBool
ERROR at line 1:
ORA-04043: object OAGETBOOL does not exist
Function created.
drop function OAsetNumber
ERROR at line 1:
ORA-04043: object OASETNUMBER does not exist
Function created.
drop function OAsetString
ERROR at line 1:
ORA-04043: object OASETSTRING does not exist
Function created.
drop function OAsetBoolean
ERROR at line 1:
ORA-04043: object OASETBOOLEAN does not exist
Function created.
drop function OAInvokeDouble
ERROR at line 1:
ORA-04043: object OAINVOKEDOUBLE does not exist
Function created.
drop function OAInvokeBoolean
ERROR at line 1:
ORA-04043: object OAINVOKEBOOLEAN does not exist
Function created.
drop function OAInvokeString
ERROR at line 1:
ORA-04043: object OAINVOKESTRING does not exist
Function created.
drop function OACreate
ERROR at line 1:
ORA-04043: object OACREATE does not exist
Function created.
drop function OADestroy
ERROR at line 1:
ORA-04043: object OADESTROY does not exist
Function created.
drop function OAGetLastError
ERROR at line 1:
ORA-04043: object OAGETLASTERROR does not exist
Function created.
drop function OAQueryMethods
ERROR at line 1:
ORA-04043: object OAQUERYMETHODS does not exist
Function created.
Package created.
Package body created.
SQL>
SQL> @c:\ExcelSolution.sql
drop package ORDExcel
ERROR at line 1:
ORA-04043: object ORDEXCEL does not exist
Package created.
Package body created.
SQL>
I have modified ORDExcel a little bit and renamed it as ORDExcelSB. You need this version for reading the excel.
SQL> @C:\ExcelSolutionSB.sql
Package dropped.
Package created.
Package body created.
SQL> The actual code of ORDExcelSB (ExcelSolutionSB.sql) Is:
set serveroutput on;
drop package ORDExcelSB;
CREATE PACKAGE ORDExcelSB AS
/* Declare externally callable subprograms. */
FUNCTION CreateExcelApplication(servername VARCHAR2) RETURN binary_integer;
FUNCTION OpenExcelFile(filename VARCHAR2, sheetname VARCHAR2) RETURN binary_integer;
FUNCTION CreateExcelWorkSheet(servername varchar2) return binary_integer;
FUNCTION InsertData(range varchar2, data binary_integer, type varchar2) return binary_integer;
FUNCTION InsertDataReal(range varchar2, data double precision, type varchar2) return binary_integer;
FUNCTION GetDataNum(range varchar2) return binary_integer;
FUNCTION GetDataStr(range varchar2) return varchar2;
FUNCTION GetDataReal(range varchar2) return double precision;
FUNCTION GetDataDate(range varchar2) return date;
FUNCTION InsertData(range varchar2, data varchar2, type varchar2) return binary_integer;
FUNCTION InsertData(range varchar2, data Date, type varchar2) return binary_integer;
FUNCTION InsertChart(xpos binary_integer, ypos binary_integer, width binary_integer,
height binary_integer, range varchar2, type varchar2) return binary_integer;
FUNCTION SaveExcelFile(filename varchar2) return binary_integer;
FUNCTION ExitExcel return binary_integer;
END ORDExcelSB;
CREATE PACKAGE BODY ORDExcelSB AS
DummyToken binary_integer;
applicationToken binary_integer:=-1;
WorkBooksToken binary_integer:=-1;
WorkBookToken binary_integer:=-1;
WorkSheetToken binary_integer:=-1;
WorkSheetToken1 binary_integer:=-1;
RangeToken binary_integer:=-1;
ChartObjectToken binary_integer:=-1;
ChartObject1 binary_integer:=-1;
Chart1Token binary_integer:=-1;
i binary_integer;
retNum binary_integer;
retReal double precision;
retStr varchar2(255);
retDate DATE;
error_src varchar2(255);
error_description varchar2(255);
error_helpfile varchar2(255);
error_helpID binary_integer;
FUNCTION CreateExcelApplication(servername VARCHAR2) RETURN binary_integer IS
BEGIN
dbms_output.put_line('Creating Excel application...');
i := OrdCOM.CreateObject('Excel.Application',
0,
servername,
applicationToken);
IF (i != 0) THEN
ORDCOM.GetLastError(error_src,
error_description,
error_helpfile,
error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
dbms_output.put_line('Invoking Workbooks...');
i := ORDCOM.GetProperty(applicationToken,
'WorkBooks',
0,
WorkBooksToken);
IF (i != 0) THEN
ORDCOM.GetLastError(error_src,
error_description,
error_helpfile,
error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
RETURN i;
END CreateExcelApplication;
FUNCTION OpenExcelFile(filename VARCHAR2, sheetname VARCHAR2)
RETURN binary_integer IS
BEGIN
dbms_output.put_line('Opening Excel file ' || filename || ' ...');
ORDCOM.InitArg();
ORDCOM.SetArg(filename, 'BSTR');
i := ORDCOM.Invoke(WorkBooksToken, 'Open', 1, DummyToken);
IF (i != 0) THEN
ORDCOM.GetLastError(error_src,
error_description,
error_helpfile,
error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
dbms_output.put_line('Opening WorkBook');
i := ORDCOM.GetProperty(applicationToken,
'ActiveWorkbook',
0,
WorkBookToken);
IF (i != 0) THEN
ORDCOM.GetLastError(error_src,
error_description,
error_helpfile,
error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
dbms_output.put_line('Invoking WorkSheets..');
i := ORDCOM.GetProperty(applicationToken,
'WorkSheets',
0,
WorkSheetToken1);
IF (i != 0) THEN
ORDCOM.GetLastError(error_src,
error_description,
error_helpfile,
error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
dbms_output.put_line('Invoking WorkSheet');
ORDCOM.InitArg();
ORDCOM.SetArg(sheetname, 'BSTR');
i := ORDCOM.GetProperty(WorkBookToken, 'Sheets', 1, WorkSheetToken);
IF (i != 0) THEN
ORDCOM.GetLastError(error_src,
error_description,
error_helpfile,
error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
dbms_output.put_line('Opened ');
RETURN i;
END OpenExcelFile;
* Invoke the Excel Automation Server and create a Workbook object as
* well as a worksheet object
FUNCTION CreateExcelWorkSheet(servername varchar2) return binary_integer IS
BEGIN
dbms_output.put_line('Creating Excel application...');
i:=ORDCOM.CreateObject('Excel.Application', 0, servername,applicationToken);
IF (i!=0) THEN
ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
dbms_output.put_line('Invoking Workbooks...');
/*i:=ORDCOM.Invoke(applicationToken, 'WorkBooks',0, WorkBooksToken);*/
i:=ORDCOM.GetProperty(applicationToken, 'WorkBooks', 0, WorkBooksToken);
IF (i!=0) THEN
ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
dbms_output.put_line('Invoking Add to WorkBooks...');
ORDCOM.InitArg();
ORDCOM.SetArg(-4167,'I4');
i:=ORDCOM.Invoke(WorkBooksToken, 'Add', 1, WorkBookToken);
IF (i!=0) THEN
ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
dbms_output.put_line('Invoking WorkSheets..');
ORDCOM.InitArg();
ORDCOM.SetArg('Sheet 1','BSTR');
/* i:=ORDCOM.Invoke(applicationToken, 'WorkSheets', 1, WorkSheetToken);*/
i:=ORDCOM.GetProperty(applicationToken, 'WorkSheets', 0, WorkSheetToken1);
IF (i!=0) THEN
ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
i:=ORDCOM.Invoke(WorkSheetToken1, 'Add', 0, WorkSheetToken);
IF (i!=0) THEN
ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
return i;
END CreateExcelWorkSheet;
* Invoke the Range method to obtain a range token. Then set the property value
* at the specified range to the data required
FUNCTION InsertData( range varchar2,
data binary_integer,
type varchar2)
RETURN binary_integer IS
BEGIN
ORDCOM.InitArg();
ORDCOM.SetArg(range, 'BSTR');
i:=ORDCOM.GetProperty(WorkSheetToken, 'Range', 1, RangeToken);
IF (i!=0) THEN
ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
i:=ORDCOM.SetProperty(RangeToken, 'Value', data, type);
IF (i=0) THEN
i:=ORDCOM.SetProperty(RangeToken, 'ColumnWidth', 15, 'I2');
END IF;
i:=ORDCOM.DestroyObject(RangeToken);
RETURN i;
END InsertData;
* Invoke the Range method to obtain a range token. Then set the property value
* at the specified range to the data required
FUNCTION GetDataNum( range varchar2)
RETURN binary_integer IS
BEGIN
ORDCOM.InitArg();
ORDCOM.SetArg(range, 'BSTR');
i:=ORDCOM.GetProperty(WorkSheetToken, 'Range', 1, RangeToken);
IF (i!=0) THEN
ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
i:=ORDCOM.GetProperty(RangeToken, 'Value', 0, retNum);
IF (i!=0) THEN
ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
i:=ORDCOM.DestroyObject(RangeToken);
RETURN retNum;
END GetDataNum;
FUNCTION GetDataReal( range varchar2)
RETURN double precision IS
BEGIN
ORDCOM.InitArg();
ORDCOM.SetArg(range, 'BSTR');
i:=ORDCOM.GetProperty(WorkSheetToken, 'Range', 1, RangeToken);
IF (i!=0) THEN
ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
i:=ORDCOM.GetProperty(RangeToken, 'Value', 0, retReal);
IF (i!=0) THEN
ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
i:=ORDCOM.DestroyObject(RangeToken);
RETURN retReal;
END GetDataReal;
FUNCTION GetDataStr( range varchar2)
RETURN varchar2 IS
BEGIN
ORDCOM.InitArg();
ORDCOM.SetArg(range, 'BSTR');
i:=ORDCOM.GetProperty(WorkSheetToken, 'Range', 1, RangeToken);
IF (i!=0) THEN
ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
i:=ORDCOM.GetProperty(RangeToken, 'Value', 0, retStr);
IF (i!=0) THEN
ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
i:=ORDCOM.DestroyObject(RangeToken);
RETURN retStr;
END GetDataStr;
FUNCTION GetDataDate( range varchar2)
RETURN Date IS
BEGIN
ORDCOM.InitArg();
ORDCOM.SetArg(range, 'BSTR');
i:=ORDCOM.GetProperty(WorkSheetToken, 'Range', 1, RangeToken);
IF (i!=0) THEN
ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
i:=ORDCOM.GetProperty(RangeToken, 'Value', 0, retDate);
IF (i!=0) THEN
ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
i:=ORDCOM.DestroyObject(RangeToken);
RETURN retDate;
END GetDataDate;
FUNCTION InsertData( range varchar2,
data DATE,
type varchar2)
RETURN binary_integer IS
BEGIN
ORDCOM.InitArg();
ORDCOM.SetArg(range, 'BSTR');
i:=ORDCOM.GetProperty(WorkSheetToken, 'Range', 1, RangeToken);
i:=ORDCOM.SetProperty(RangeToken, 'Value', data, type);
i:=ORDCOM.DestroyObject(RangeToken);
RETURN i;
END InsertData;
FUNCTION InsertDataReal( range varchar2,
data double precision,
type varchar2)
RETURN binary_integer IS
BEGIN
ORDCOM.InitArg();
ORDCOM.SetArg(range, 'BSTR');
i:=ORDCOM.GetProperty(WorkSheetToken, 'Range', 1, RangeToken);
i:=ORDCOM.SetProperty(RangeToken, 'Value', data, type);
i:=ORDCOM.DestroyObject(RangeToken);
RETURN i;
END InsertDataReal;
FUNCTION InsertData( range varchar2,
data varchar2,
type varchar2)
RETURN binary_integer IS
BEGIN
ORDCOM.InitArg();
ORDCOM.SetArg(range, 'BSTR');
i:=ORDCOM.GetProperty(WorkSheetToken, 'Range', 1, RangeToken);
i:=ORDCOM.SetProperty(RangeToken, 'Value', data, type);
i:=ORDCOM.DestroyObject(RangeToken);
RETURN i;
END InsertData;
* Insert a chart at the x and y position of the spreadsheet with the desired
* height and width. Then also uses the ChartWizard to draw the graph with data
* in a specified range area with a specified charting type.
FUNCTION InsertChart(xpos binary_integer, ypos binary_integer,
width binary_integer, height binary_integer,
range varchar2, type varchar2) RETURN binary_integer IS
charttype binary_integer:= -4099;
BEGIN
ORDCOM.InitArg();
i:=ORDCOM.GetProperty(WorkSheetToken, 'ChartObjects', 0, ChartObjectToken);
IF (i!=0) THEN
ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
ORDCOM.InitArg();
ORDCOM.SetArg(xpos,'I2');
ORDCOM.SetArg(ypos,'I2');
ORDCOM.SetArg(width,'I2');
ORDCOM.SetArg(height,'I2');
i:=ORDCOM.Invoke(ChartObjectToken, 'Add', 4, ChartObject1);
IF (i!=0) THEN
ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
i:=ORDCOM.GetProperty(ChartObject1, 'Chart', 0,Chart1Token);
ORDCOM.InitArg();
ORDCOM.SetArg(range, 'BSTR');
i:=ORDCOM.GetProperty(WorkSheetToken,'Range', 1, RangeToken);
ORDCOM.InitArg();
ORDCOM.SetArg(RangeToken, 'DISPATCH');
IF type='xlPie' THEN
charttype := -4102;
ELSIF type='xl3DBar' THEN
charttype := -4099;
ELSIF type='xlBar' THEN
charttype := 2;
ELSIF type='xl3dLine' THEN
charttype:= -4101;
END IF;
ORDCOM.SetArg(charttype,'I4');
i:=ORDCOM.Invoke(Chart1Token,'ChartWizard', 2, DummyToken);
i:=ORDCOM.DestroyObject(RangeToken);
i:=ORDCOM.DestroyObject(ChartObjectToken);
i:=ORDCOM.DestroyObject(ChartObject1);
i:=ORDCOM.DestroyObject(Chart1Token);
RETURN i;
END InsertChart;
* Save the Excel File. WARNING: Do not specify a filename that already exist
* since there is no graphical context, Oracle would not be able to pop
* out a warning message for existing file. This causes Excel to hang
FUNCTION SaveExcelFile(filename varchar2) return binary_integer IS
BEGIN
dbms_output.put_line('Saving Excel file...');
ORDCOM.InitArg();
ORDCOM.SetArg(filename,'BSTR');
i:=ORDCOM.Invoke(WorkBookToken, 'SaveAs', 1, DummyToken);
IF (i!=0) THEN
ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
RETURN i;
END SaveExcelFile;
* Close the Excel spreadsheet and exit from it
FUNCTION ExitExcel return binary_integer is
BEGIN
dbms_output.put_line('Closing workbook and quitting...');
ORDCOM.InitArg();
ORDCOM.InitArg();
ORDCOM.SetArg(FALSE,'BOOL');
dbms_output.put_line('Closing workbook...');
i:=ORDCOM.Invoke(WorkBookToken, 'Close', 0, DummyToken);
IF (i!=0) THEN
ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
i:=ORDCOM.DestroyObject(WorkBookToken);
ORDCOM.InitArg();
dbms_output.put_line('Closing workbooks...');
i:=ORDCOM.Invoke(WorkBooksToken, 'Close', 0, DummyToken);
IF (i!=0) THEN
ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
i:=ORDCOM.DestroyObject(WorkBooksToken);
i:=ORDCOM.Invoke(applicationToken, 'Quit', 0, DummyToken);
IF (i!=0) THEN
ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
dbms_output.put_line(error_src);
dbms_output.put_line(error_description);
dbms_output.put_line(error_helpfile);
END IF;
i:=ORDCOM.DestroyObject(WorkSheetToken);
i:=ORDCOM.DestroyObject(WorkSheetToken1);
i:=ORDCOM.DestroyObject(applicationToken);
i:=ORDCOM.DestroyObject(ChartObjectToken);
i:=ORDCOM.DestroyObject(Chart1Token);
i:=ORDCOM.DestroyObject(ChartObject1);
i:=ORDCOM.DestroyObject(dummyToken);
RETURN i;
END ExitExcel;
END ORDExcelSB;
/I have created an excel named as C:\Example.xls.
Name SlNo Job Dept Salary Bonus
Saubhik Banerjee 706090 IT Specialist GBS 100 10
Partha S Mohanty 706091 Pogrmmer APPS 70 20
Partha Sarkar 889300 Condultant FIN 200 30
Useless 98009 PM PM 900 90
SQL> SET SERVEROUT ON
SQL> DECLARE
2
3 v_Name varchar2(90);
4 v_SlNo varchar2(100);
5 v_Job varchar2(200);
6 v_Dept varchar2(100);
7 v_recon_remark varchar2(50);
8 v_sal_amt_usd number;
9 v_Bonus_amt_usd number;
10
11 result INTEGER;
12
13 i binary_integer;
14 filename varchar2(255);
15
16 BEGIN
17
18 filename := 'C:\Example.xls';
19
20 result := ORDExcelSB.CreateExcelApplication('');
21 result := ORDExcelSB.OpenExcelFile(filename, 'Sheet1');
22
23 /* Excluding the header row and reading the first 5 row */
24 FOR n in 2 .. 5 LOOP
25
26 v_Name := ORDExcelSB.GetDataStr('A' || n);
27 v_SlNo := ORDExcelSB.GetDataReal('B' || n);
28 v_Job := ORDExcelSB.GetDataStr('C' || n);
29 v_Dept := ORDExcelSB.GetDataStr('D' || n);
30 v_sal_amt_usd := ORDExcelSB.GetDataNum('E' || n);
31 v_Bonus_amt_usd := ORDExcelSB.GetDataNum('F' || n);
32
33 dbms_output.put_line(v_Name || ' ' || v_SlNo || ' ' || v_Job || ' ' ||
34 v_Dept || ' ' || v_sal_amt_usd || ' ' ||
35 v_Bonus_amt_usd);
36
37 END LOOP;
38
39 result := ORDExcelSB.ExitExcel();
40 EXCEPTION
41 WHEN OTHERS THEN
42 result := ORDExcelSB.ExitExcel();
43 RAISE;
44 END;
45 /
Creating Excel application...
Invoking Workbooks...
Opening Excel file C:\Example.xls ...
Opening WorkBook
Invoking WorkSheets..
Invoking WorkSheet
Opened
Saubhik Banerjee 706090 IT Specialist GBS 100 10
Partha S Mohanty 706091 Pogrmmer APPS 70 20
Partha Sarkar 889300 Condultant FIN 200 30
Useless 98009 PM PM 900 90
Closing workbook and quitting...
Closing workbook...
Closing workbooks...
PL/SQL procedure successfully completed.
SQL> Although, You haven't asked, but you can use this code to write to excel file (.xls)
DECLARE
CURSOR c1 IS
SELECT empno, ename, dname, sal, hiredate
FROM emp e, dept d
WHERE e.deptno = d.deptno;
error_message varchar2(1200);
n binary_integer:=2;
i binary_integer;
filename varchar2(255);
cellIndex varchar2(40);
cellValue varchar2(40);
cellColumn varchar2(10);
returnedTime varchar2(20);
currencyvalue double precision;
datevalue DATE;
empno binary_integer;
looptext varchar2(20);
error_src varchar2(255);
error_description varchar2(255);
error_helpfile varchar2(255);
error_helpID binary_integer;
begin
filename:='c:\example2.xls';
i:=ORDExcel.CreateExcelWorkSheet('');
i:=ORDExcel.InsertData('A1', 'EmpNo', 'BSTR');
i:=ORDExcel.InsertData('B1', 'Name', 'BSTR');
i:=ORDExcel.InsertData('C1', 'Dept', 'BSTR');
i:=ORDExcel.InsertData('D1', 'Salary', 'BSTR');
i:=ORDExcel.InsertData('E1', 'HireDate', 'BSTR');
For c1_rec IN c1 LOOP
cellColumn:=TO_CHAR(n);
cellIndex:=CONCAT('A',cellColumn);
cellValue:=TO_CHAR(c1_rec.empno);
empno:=cellValue;
i:=ORDExcel.InsertData(cellIndex, empno, 'I2');
cellIndex:=CONCAT('B',cellColumn);
cellValue:=c1_rec.ename;
i:=ORDExcel.InsertData(cellIndex, cellValue, 'BSTR');
cellIndex:=CONCAT('C',cellColumn);
cellValue:=c1_rec.dname;
i:=ORDExcel.InsertData(cellIndex, cellValue, 'BSTR');
cellIndex:=CONCAT('D',cellColumn);
cellValue:=c1_rec.sal;
currencyValue:=cellValue;
i:=ORDExcel.InsertData(cellIndex, currencyValue, 'CY');
cellIndex:=CONCAT('E',cellColumn);
dateValue:=c1_rec.hiredate;
i:=ORDExcel.InsertData(cellIndex, dateValue, 'DATE');
n:=n+1;
END LOOP;
i:=ORDExcel.SaveExcelFile(filename);
i:=ORDExcel.ExitExcel();
EXCEPTION
WHEN OTHERS THEN
i:=ORDExcel.ExitExcel();
RAISE;
END; -
How to load jpeg images in database?
I have an employees panel and it has a box to show employee's picture. Normally I double click on the box and it takes me to the folder where I have stored all employees jpeg file. I click on the one I need and then insert, it shows up on the panel and also saving the data in a table called PS_EMPLOYEE_IMAGE table.
If I want to insert number of images at one time thru the back end like sqlplus is there a way to do it? This saves me lot of time instead of entering thru the panel. Can it be done? For example fot employee1 insert jpeg1, employee2 jpeg2 etc. DO I have to use any tool to convert these jpeg files into some other data and then insert it? Is there any pl/sql package to do it?. If some one can explain me with simple explanation I really appreciate as I am not an real oracle person. Googling for this issue says it can be done but it is not very clear in steps of doing it.Thanks for your help. I did exactly like what you described (see below)
1) I created a image_file.txt file as shown below
EMPLID|EFFDT|EFF_STATUS|IMAGE_FILE
100000|08-FEB-2011|A|H:\SQL_Loader\George_Test.jpg
100001|08-FEB-2011|A|H:\SQL_Loader\Eftihia_Test.jpg
2) Then created EE_Image_Tbl.ctl file as shown below.
OPTIONS (DIRECT=TRUE, SKIP=1)
UNRECOVERABLE
LOAD DATA
APPEND
INTO TABLE PS_EMPLOYEE_IMAGE
FIELDS TERMINATED BY '|'
(EMPLID
,EFFDT
,EFF_STATUS
,IMAGE_FILE FILLER CHAR(80)
,EE_IMAGE LOBFILE(IMAGE_FILE) TERMINATED BY EOF)
3) then used the sql loader (load_ee_image.sql)
$ sqlldr DH5M/ep5evs1@KDH5MI01 control=h:\sql_loader\EE_Image_Tbl.ctl log=h:\sql_loader\load_ee_image.log data=h:\sql_loader\image_file.txt
SQL> --*
SQL> commit;
Commit complete.
SQL> --*
SQL> @h:\sql_loader\load_ee_image.sql;
SQL> $ sqlldr DH5M/ep5evs1@KDH5MI01 control=h:\sql_loader\EE_Image_Tbl.ctl log=h:\sql_loader\load_ee_image.log data=h:\sql_loader\image_file.txt
SQL> --*
SQL> --*
SQL> --*
SQL> commit;
Commit complete.
SQL> --rollback;
SQL> --*
SQL> spool off
L
Number to skip: 1
Errors allowed: 50
Continuation: none specified
Path used: Direct
Load is UNRECOVERABLE; invalidation redo is produced.
Table PS_EMPLOYEE_IMAGE, loaded from every logical record.
Insert option in effect for this table: APPEND
Column Name Position Len Term Encl Datatype
EMPLID FIRST * | CHARACTER
EFFDT NEXT * | CHARACTER
EFF_STATUS NEXT * | CHARACTER
IMAGE_FILE NEXT 80 | CHARACTER
(FILLER FIELD)
EE_IMAGE DERIVED * EOF CHARACTER
Dynamic LOBFILE. Filename in field IMAGE_FILE
SQL*Loader-418: Bad datafile datatype for column EE_IMAGE
This is becasue my image datatype can be declared as LONG RAW dara type thru my application.
When I created a table with image datatype as BLOB it worked.
But I want to insert into the existing table where image is declared as LONG RAW. How to insert jpeg into this field. Do I have to convert anything? Thx.
Edited by: user5846372 on Feb 8, 2011 1:18 PM
Edited by: user5846372 on Feb 8, 2011 2:16 PM -
Bulk load messages into the language repository?
Hi,
Our existing, pre-APEX, applications make use of a common table of 'messages' to provide multiple language support e.g. we have a lookup against message number and language to produce the required message.
This seems very similar to the functionality supplied through the apex_lang message repository. Is there an easy way in which we can load a modified version of our current messages into the repository without having to enter them in manually?
Thanks,
AndyArie Geller wrote:
Hello Andy,
>> I'm slightly(!) confused. Are you advocating using the wwv_flow_api.create_message API or manual entry? The link that you posted refers to the API as a method of message entry, I don't see a reference to exporting messages from an existing application?
Let’s go back to the beginning. As I understood, you first asked whether you can use some existing translation tables, to automatically populate the APEX translation repository. My answer was ‘no’ and I don’t think Flavio suggestions contradict it.Understood, in 'my' head the ability to create a script that would pick up my existing messages and use the 'create_message' API to load them into APEX was close enough to automatic for me! My intention is that our first move from legacy to APEX messaging would be to do this to create the base messages, and that we would consider translation later... (In some cases, I could use our existing multi-language messages to produce both the primary language and the translated messages).
Is my position more clear now? I hope so :)Thanks, much clearer, however the final step - once we have a set of base/primary and translated messages, how do we make use of them in a later application? -
Load JPEG as an ASPx page (from SQL database)
We are trying to load JPEG images into the Flash player from
an SQL database. But figuring out how to do it has us stumped.
We are already displaying the images on a web page by
setting the source of the image as a page. We use a separate file
for retrieving an image, for example to display an image on a web
page that is stored in the SQL database with an ID 1297 in the DB,
use:
<img src="/image.aspx?id=1297">
Does anyone have any ideas how we might use a similar
technique to load the jpeg images into the flash player? Or any
other suggestions that will allow us to accomplish our object of
viewing many thumbnail jpeg images in the Flash player?
Thanks for any suggestions,
SteveHmm, maybe I'm naive, but what's the problem with
loadMovie("/image.aspx?id=1297","container_mc");
or even using the MovieClipLoader class with that url
string? -
Error when loading data into Planning
Unable to load data into planning 11.1.2.3.200 using ODI 11.1.1.7
Please find the errors from below logs:
INFO [SimpleAsyncTaskExecutor-2]: Oracle Data Integrator Adapter for Hyperion Planning
INFO [SimpleAsyncTaskExecutor-2]: Connecting to planning application [xxxxxxx] on [xxxxxxxxxxx]:[xxxx] using username [admin].
INFO [SimpleAsyncTaskExecutor-2]: Successfully connected to the planning application.
INFO [SimpleAsyncTaskExecutor-2]: The load options for the planning load are
Dimension Name: Account Sort Parent Child : false
Load Order By Input : false
Refresh Database : false
INFO [SimpleAsyncTaskExecutor-2]: Begining the load process.
DEBUG [SimpleAsyncTaskExecutor-2]: Number of columns in the source result set does not match the number of planning target columns.
INFO [SimpleAsyncTaskExecutor-2]: Load type is [Load dimension member].
ERROR [SimpleAsyncTaskExecutor-2]: Record [[A603010, null, null, null, null, null, null, null, null, null, null, null, xxxxx, -100, F3E0,C011,E7172_93275,FY17,Stage 1,Current Service Level,Jul, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]] was rejected by the Planning Server.
ERROR [SimpleAsyncTaskExecutor-2]: Record [[A601060, null, null, null, null, null, null, null, null, null, null, null, xxxxx, -250, F3E0,C011,E7172_93275,FY17,Stage 1,Current Service Level,Jul, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]] was rejected by the Planning Server.
log.err
Account,Data Load Cube Name,Budget,Point-of-View,Error_Reason
A603010,xxxxx,-100,F3E0,C011,E7172_93275,FY17,Stage 1,Current Service Level,Jul,Cannot load dimension member, error message is: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: unrecognized method hash: method not supported by remote object
A601060,xxxxx,-250,F3E0,C011,E7172_93275,FY17,Stage 1,Current Service Level,Jul,Cannot load dimension member, error message is: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: unrecognized method hash: method not supported by remote object
FDMEE log:
ERROR [AIF]: Error: No records exist for Period 'Pd 2 - 2014-08-01'
ERROR [AIF]: Error: No records exist for Period 'Pd 3 - 2014-09-01'
FDMEE Logging Level is set to 5Are you sure that you haven't got Planning 11.1.2.3.500 in your environment? This sounds spookily similar to the issue described in note 1678759.1 which was seen after applying Planning 11.1.2.3.500. If it's definitely Planning 11.1.2.3.500 is there any chance that someone has applied ODI patch 18687916 to the ODI home (C:\Oracle\Middleware\odi)?
If you /*are*/ running Planning 11.1.2.3.500 then you might need to apply patch 18687916 to C:\Oracle\Middleware\odi - you might need note 1683307.1 to take some of the pain out of applying this patch though.
Given the error that you're seeing though there's a mismatch in versions of JAR files between ODI and the Planning server somewhere.
Regards
Craig -
"Load files into Photoshop layers" fails to complete CS6
Hi all,
Hoping someone can help with the folling problem with Photoshop & Bridge CS6
When in Bridge, after selecting 6 images (CR2) using the command TOOLS>LOAD FILES INTO PHOTOSHOP LAYERS the first file will load into Photoshop, Photoshop will then generate a second blank layer and then read the second file. At this point the "script" will stop. I am left with a document with 2 layers. The top layer has my first image, the bottom layer is empty.
At this point when I quit Photoshop I am prompted to save this open document which appears to be the only open document. I choose not to save this as a file. I then get a dialogue box prompting to save another open document. Photoshop has loaded the second file to place as a layer but as the "script" has aborted I am left with an open, but invisible file.
When I first loaded CS6 on Snow Leopard, it would demonstrate this behaviour every time I attempted to run this command from Bridge.
I did a clean install on a blank HDD of OSX Lion. Installed CS6. The command worked without fail for about a month.
Then I would get the command aborting occasionally. Restarting Photoshop would let me continue for a few hours before this aborted script problem would happen again.
Over the last week it has become more frequent, to a point where this workflow is unusable.
A restart of Photoshop may fix the problem for the next batch of images, only to fail again soon after, or fail on the first attempt after a relaunch of Photoshop.
A reboot of my computer will allow my to load one or two sets of files before again failing to complete the command.
I have tried the following:
In Photoshop preferences:
disabling the "Use graphics Processor"
Increasing or decreasing the amount of RAM available to Photoshop
Changing the cache levels or changing the cache tile size
changing the scratch disk
Trashing the Photoshop preferences file (Photoshop Settings.psp)
In Bridge
Purging the cache
Increasing or decreasing the cache size
Resetting Bridge preferences (holding Command on launch) and deleting all cache files.
In general system
Quitting extra programs (Safari, Thunderbird, iTunes)
Sometimes this will seem to then allow Photoshop to load a full set of images, only to abort again after a few sets.
Rebooting the computer - again will work for a few images sets before again failing.
Now the fact that it worked fine for several weeks without presenting a problem would indicate that it is not a bug.
The fact that is slowly started happening then became more frequent would indicate something changing slowly over time - a larger cache folder perhaps, although purging known Bridge cache folders has not filed the problem.
Really at the end of my tether here. Even considering downgrading to CS5 - but don't want to have to use the older Adobe Camera Raw.
System is as follows:
Mac Pro 2 x 2.66 Quad Core
24GB RAM
ATI Radeon HD 4870 512
OSX Lion 10.7.4
I have seen a couple of others have posted having a the same problem, both with CS5 and CS6.
Hoping someone has an answer.
Thanks.Hi JJMack - I just re-read your post. For some reason I thought you were suggesting to make sure "Open documents in Tabs" was selected, it was. Now I realize you were suggesting to turn it off! As another attemp to solve this problem I did de-select it today. Seemed to work for a good while. I was getting very excited, then, on the last set of images I had to do it displayed the same problem. But, it did go for quite a while without failing, and when it did I was thrashing about trying to make another app active. When loading documents like this - with "Open documents in Tabs" de-selected, Photoshop wants to put the loading images as the front-most window, no matter what other apps (Bridge, email, web etc) I click on in the dock. I think it is related to the bug you described effecting the "load files to stack" command.
Hopefully Adobe is looking at this - mind you, I have read reports of people having this problem in CS5! Looks like that was never resolved sadly.
I'll keep testing and post back.
I am looking to upgrade my video card to see if it's a video memory thing.
What is very weird though is the fact that this problem didn't present itself until after several weeks of working with this command with no problem. No additional apps installed, nothing changed. Why would it start happening only after a while?
Thanks again for your suggestion. -
Load swf into RAM via an asset manager
Hi.
I have an AS3 virtual world and we are continually loading external resources such as swfs and sounds.
A few of my menu screens that take a damn long time to load. Read a tut that said we should load them into RAM using an asset manager.
I'm assuning the asset manager is simply a Class used specifically for loading and unloading graphics, swfs and sounds. So the important part to ask is:
What do they mean by loading into RAM.
I thought all swfs were automatically loaded into RAM ie: cached or in the flash player cache or the browser cache. Or do I have to do it specifically myself with some code. We are importing external files so we thought that was a great idea as they are shared by many games.
btw: RSLs I have read about but I don't understand. I thought my externally loaded files were RSLs (runtime shared libraries) or would I have to do some physical coding do convert them into RSLs.
This is so important because I am not very experienced but I am getting a lot better due to help receied in this forum and my current programmer is leaving me. I have been studying up on As3 and design patterns and I understand basic coding a lot better now.
CHEERS
EDIT: Just read that I am using a http call. - I use urlloader - well that's what you use isn't it or how would you load an external swf. Just read that you can hold the swf as a variable which loads it in RAM and therefore will be available immediately. Know I don't understand anything as I have never read that anywhere.Hi Andrei, nice to see you around here.
Well, somebody helping me says that normally we make a http request with urlLoader to the server and that is what was happening each time. We weren't getting the cached swf. (that bit I don't understand and doesn't sound right - anyway...)
So he says if we create a dictionary class to hold that swf then the next time we make a request we will get the movie from there and not from the server.
I have highlighted the main parts of code below.
What I don't understand about all this is that I have never seen anything like this in my life. I have read extensively and read all about loading external files and using this type of asset manager with the dictionary class does not ring a bell and goole comes up with nothing.
I hunch is that as you say, we are doing something wrong somewhere because the only way to get an external file is via urlLoader to the server the first time and then the second time it should look for it cached on our computer is that right? Or when we make the urlLoader request how does it know to look on our computer first before going to the server or are these innner workings of the flash player I know nothing about. This is so important as when I get 10 kids on the computers they wait for as long as 5 minutes for movies that have already been downloaded many times before.
Cheers in advance.
package com.Gerry.managers.assetManager
import flash.display.Loader;
public class AssetLoader extends Loader
private var _assetName:String;
public function AssetLoader()
super();
public function get assetName():String
return _assetName;
public function set assetName(value:String):void
_assetName = value;
The asset manager loading class
package com.Gerry.managers.assetManager
import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.events.Event;
import flash.net.URLRequest;
import flash.utils.Dictionary;
public class AssetManager extends Sprite
public static const ASSET_LOADED:String = "assetLoaded";
private static var _instance:AssetManager;
private var _assetsLoaded:Dictionary = new Dictionary();
private var _assetsBeingLoaded:Dictionary = new Dictionary();
public function AssetManager(pvt:SingletonEnforcer)
* loads and asset and keeps a reference to the loaded content
* @param name
* @return null if the asset is not loaded yet
public function loadAsset(name:String):MovieClip
var asset:MovieClip;
if (_assetsLoaded[name])
asset = _assetsLoaded[name];
else if (_assetsBeingLoaded[name] == null)
var skinloader:AssetLoader = new AssetLoader();
skinloader.assetName = name;
skinloader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadCompleteF);
skinloader.load(new URLRequest(name));
_assetsBeingLoaded[name] = true;
return asset;
protected function loadCompleteF(e:Event):void
var skin:MovieClip = e.target.content as MovieClip;
var name:String = ((e.target as LoaderInfo).loader as AssetLoader).assetName;
_assetsLoaded[name] = skin;
delete _assetsBeingLoaded[name];
dispatchEvent(new Event(ASSET_LOADED));
* gets an instance of the class
* @return
public static function get instance():AssetManager
if (_instance == null)
_instance = new AssetManager(new SingletonEnforcer());
return _instance;
internal class SingletonEnforcer
The function inside a class called Screen which is used by menus classes to load their swf menus.
protected function loadSkin(path:String = null):void
trace("skin to load: " + path);
Home.instance.addPreloaderF();
_path = path + Home.instance.cacheString;
if (_usingAssetManager)
loadSkinFromAssetManager();
else
if (_skinloader.content)
_skinloader.unloadAndStop(true);
_skinloader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadCompleteF);
_skinloader.load(new URLRequest(_path));
protected function loadSkinFromAssetManager(e:Event = null):void
_skin = AssetManager.instance.loadAsset(_path);
//if no skin we have to wait to be loaded it
if (_skin == null)
AssetManager.instance.addEventListener(AssetManager.ASSET_LOADED, loadSkinFromAssetManager);
else
AssetManager.instance.removeEventListener(AssetManager.ASSET_LOADED, loadSkinFromAssetManager);
loadCompleteF(null); -
Unable to load data into Planning cube
Hi,
I am trying to load data into a planning cube using a DTP.
But the system throws a message saying that, real time data loading cannot be performed to the planning cube.
What would be the possible reason for the same?
Thanks & Regards,
Surjit PHi Surjit,
To load data into cube using DTP, it should be put in loading mode only.
The real time cube behaviour is set to planning mode only when the data is input to the cube via the planning layouts / or through the Fileupload program.
You can change the behaviour of the cube in RSA1 -> Right click on the cube -> Change Real-time load behaviour and select the first option(real time cube can be loaded with data; planning not allowed)
Best Rgds
Shyam
Edited by: Syam K on Mar 14, 2008 7:57 AM
Edited by: Syam K on Mar 14, 2008 7:59 AM
Maybe you are looking for
-
Suggestions for Upgrading to iPod Touch v 1.1.1
This is the procedure I used and it worked without a single hiccup: 1. Disconnect the Touch from the Computer (Unplug the USB connector from the Touch, NOT from the Computer). 2. Reset and Erase (Two Seperate items) everything on the Touch. In ess
-
How do you know if your SIM card is an NFC capable card?
I recently had to get a new SIM card, but I didn't pay attention to know if it was an NFC type card. Is there any way to find out via MyVerizon account or with the SIM card number itself?
-
Rendering error message:File in use
Please help, I am trying to print a project to video but in the rendering process I get the error message: File in use by this or another application. I have no files in use in another application. MAC support is unfamiliar with the message and recom
-
Hi friends, Greetings. i am trying to work with my inventory management system. My code is as follows and i getan error as follows: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1. CODING: import java.i
-
3 Major issues: 1. Application updates don't work really, because it's considered a new App. 2. You get charged for every update (whatever you paid before, you pay again) 3. App store has no recognition that you already bought the apps. ...Although t