MouseEvent.RELEASE_OUTSIDE error
I used MouseEvent.RELEASE_OUTSIDE in my file, but flash responded my this error message:
1119: access of possibly underfined property RELEASE_OUTSIDE through a reference with a static type Class.
Does anyone know what shoud i do?
Thanks a lot!
"RELEASE_OUTSIDE" in my file is also shows up as black text.
Acctually, I can run this code in some other PC. This means it sometimes work, and sometimes doesn't work.
I think maybe I loss anything thing in my computer? not sure....
Similar Messages
-
MouseEvent.RELEASE_OUTSIDE is null!
It was announced that the RELEASE_OUTSIDE mouse event was brought back in Flash Player version 11.3.
But the RELEASE_OUTSIDE constant in the MouseEvent model is not initialized with any value: public static const RELEASE_OUTSIDE : String;
Any idea what's going on here?Out of curiosity I tried it myself on Windows and when I use the debugger (CTRL+SHIFT+ENTER) it works. If I just use the player (CTRL+ENTER) I get an error.
Here's the single frame script I used:
import flash.display.Sprite;
import flash.events.MouseEvent;
var s:Sprite = new Sprite();
s.graphics.beginFill(0x0,1);
s.graphics.drawRect(0,0,100,100);
s.graphics.endFill();
addChild(s);
s.addEventListener(MouseEvent.RELEASE_OUTSIDE, handleOutside);
function handleOutside(e:MouseEvent):void
trace("Release outside");
When I tried to do this with a regular (non-debugger) player I got this error:
TypeError: Error #2007: Parameter type must be non-null.
at flash.events::EventDispatcher/addEventListener()
at ReleaseOutside_fla::MainTimeline/frame1()
Since Stage3D and AIR I've become very used to this rodeo.. You must use the debugger, not the standard player. -
i have windows xp pro with sp2.....
java compiler:
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
whenever i run code below it gives me error:
code
import java.awt.*;
import java.applet.*;
import java.awt.image.*;
import java.awt.event.*;
import java.math.*;
import javax.swing.JApplet;
import javax.swing.*;
public class particle extends JApplet implements Runnable, MouseMotionListener
//blanking out the mouse cursor in the applet screen
BufferedImage bufferdImg;
Graphics2D bufferdImgSurface;
JButton play;
//thread
Thread pThread;
//for screen dimension
Dimension screen;
int width;
int height;
//mouse x cordinate
int x;
long timeStart;
long timeEnd;
long timeDiff;
long sleepTime;
Image image[];
MediaTracker mTracker;
public void start(){
pThread=new Thread(this);
pThread.start();
public void init(){
screen=getSize();
width=screen.width;
height=screen.height;
image=new Image[3];
mTracker=new MediaTracker(this);
image[0]=getImage(getDocumentBase(),"player.gif");
image[1]=getImage(getDocumentBase(),"background.jpg");
mTracker.addImage(image[0],0);
mTracker.addImage(image[1],0);
BufferedImage bim = new BufferedImage(1,1,BufferedImage.TYPE_4BYTE_ABGR);
setCursor(getToolkit().createCustomCursor(bim,(new Point(0,0)),""));
bufferdImg = (BufferedImage)createImage(width, height);
bufferdImgSurface = bufferdImg.createGraphics();
addMouseMotionListener(this);
public void run(){
while(true)
timeStart=System.currentTimeMillis();
repaint();
timeEnd=System.currentTimeMillis();
timeDiff=timeEnd-timeStart;
sleepTime=50-timeDiff;
if(sleepTime<10)
sleepTime=10;
try
Thread.sleep(sleepTime);
}catch(InterruptedException e){}
public void paint(Graphics g){
update(g);
public void update(Graphics g){
Graphics2D g2=(Graphics2D)g;
bufferdImgSurface.clearRect(0,0,width,height);
bufferdImgSurface.setBackground(Color.black);
bufferdImgSurface.drawImage(image[1],0,0,this);
bufferdImgSurface.drawImage(image[0],x,width-20,this);
g2.drawImage(bufferdImg,0,0,this);
public void mouseMoved(MouseEvent e){
this.x=e.getX();
public void mouseDragged(MouseEvent e){}
error
Unexpected Signal : EXCEPTION_FLT_STACK_CHECK (0xc0000092) occurred at PC=0xC3D2
12
Function=[Unknown.]
Library=(N/A)
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
Dynamic libraries:
0x00400000 - 0x0040C000 D:\j2sdk1.4.2_05\bin\javac.exe
0x77F50000 - 0x77FF9000 C:\WINDOWS\System32\ntdll.dll
0x77E60000 - 0x77F48000 C:\WINDOWS\system32\kernel32.dll
0x77DA0000 - 0x77E35000 C:\WINDOWS\system32\ADVAPI32.dll
0x78000000 - 0x78087000 C:\WINDOWS\system32\RPCRT4.dll
0x77C10000 - 0x77C65000 C:\WINDOWS\system32\MSVCRT.dll
0x00280000 - 0x002F3000 C:\DOCUME~1\H34PH4~1\LOCALS~1\Temp\cuv140.tmp
0x77340000 - 0x773D4000 C:\WINDOWS\system32\COMCTL32.DLL
0x77C70000 - 0x77CB1000 C:\WINDOWS\system32\GDI32.dll
0x77CC0000 - 0x77D4C000 C:\WINDOWS\system32\USER32.dll
0x71B20000 - 0x71B31000 C:\WINDOWS\system32\MPR.DLL
0x771C0000 - 0x772E6000 C:\WINDOWS\system32\OLE32.DLL
0x77130000 - 0x771BD000 C:\WINDOWS\system32\OLEAUT32.DLL
0x71AD0000 - 0x71AD9000 C:\WINDOWS\System32\WSOCK32.DLL
0x71AB0000 - 0x71AC5000 C:\WINDOWS\System32\WS2_32.dll
0x71AA0000 - 0x71AA8000 C:\WINDOWS\System32\WS2HELP.dll
0x76390000 - 0x763AC000 C:\WINDOWS\System32\IMM32.DLL
0x629C0000 - 0x629C9000 C:\WINDOWS\System32\LPK.DLL
0x72FA0000 - 0x73009000 C:\WINDOWS\System32\USP10.dll
0x08000000 - 0x08139000 D:\j2sdk1.4.2_05\jre\bin\client\jvm.dll
0x76B40000 - 0x76B6C000 C:\WINDOWS\System32\WINMM.dll
0x10000000 - 0x10007000 D:\j2sdk1.4.2_05\jre\bin\hpi.dll
0x009D0000 - 0x009DE000 D:\j2sdk1.4.2_05\jre\bin\verify.dll
0x009E0000 - 0x009F9000 D:\j2sdk1.4.2_05\jre\bin\java.dll
0x00A00000 - 0x00A0D000 D:\j2sdk1.4.2_05\jre\bin\zip.dll
0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll
0x6D510000 - 0x6D590000 C:\WINDOWS\system32\DBGHELP.dll
0x77C00000 - 0x77C08000 C:\WINDOWS\system32\VERSION.dll
0x76BF0000 - 0x76BFB000 C:\WINDOWS\System32\PSAPI.DLL
Heap at VM Abort:
Heap
def new generation total 576K, used 198K [0x10010000, 0x100b0000, 0x104f0000)
eden
Another exception has been detected while we were handling last error.
Dumping information about last error:
ERROR REPORT FILE = (N/A)
PC = 0x00c3d212
SIGNAL = -1073741678
FUNCTION NAME = (N/A)
OFFSET = 0xFFFFFFFF
LIBRARY NAME = (N/A)
Please check ERROR REPORT FILE for further information, if there is any.
Good bye.
this is all it shows
****i have tested this code in other machine works fine****
***************************************************************Hi
This error occurs when you are using MathLib with JNI and calling those from Java. If you call them in a tightly coupled loop, then try to move them in or put some delays (Thread.sleep) and see if it works.
There is a bug logged on this.
Regards,
Chandra -
Error ! some body help me
i have windows xp pro with sp2.....
java compiler:
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
whenever i run code below it gives me error:
code
import java.awt.*;
import java.applet.*;
import java.awt.image.*;
import java.awt.event.*;
import java.math.*;
import javax.swing.JApplet;
import javax.swing.*;
public class particle extends JApplet implements Runnable, MouseMotionListener
//blanking out the mouse cursor in the applet screen
BufferedImage bufferdImg;
Graphics2D bufferdImgSurface;
JButton play;
//thread
Thread pThread;
//for screen dimension
Dimension screen;
int width;
int height;
//mouse x cordinate
int x;
long timeStart;
long timeEnd;
long timeDiff;
long sleepTime;
Image image[];
MediaTracker mTracker;
public void start(){
pThread=new Thread(this);
pThread.start();
public void init(){
screen=getSize();
width=screen.width;
height=screen.height;
image=new Image[3];
mTracker=new MediaTracker(this);
image[0]=getImage(getDocumentBase(),"player.gif");
image[1]=getImage(getDocumentBase(),"background.jpg");
mTracker.addImage(image[0],0);
mTracker.addImage(image[1],0);
BufferedImage bim = new BufferedImage(1,1,BufferedImage.TYPE_4BYTE_ABGR);
setCursor(getToolkit().createCustomCursor(bim,(new Point(0,0)),""));
bufferdImg = (BufferedImage)createImage(width, height);
bufferdImgSurface = bufferdImg.createGraphics();
addMouseMotionListener(this);
public void run(){
while(true)
timeStart=System.currentTimeMillis();
repaint();
timeEnd=System.currentTimeMillis();
timeDiff=timeEnd-timeStart;
sleepTime=50-timeDiff;
if(sleepTime<10)
sleepTime=10;
try
Thread.sleep(sleepTime);
}catch(InterruptedException e){}
public void paint(Graphics g){
update(g);
public void update(Graphics g){
Graphics2D g2=(Graphics2D)g;
bufferdImgSurface.clearRect(0,0,width,height);
bufferdImgSurface.setBackground(Color.black);
bufferdImgSurface.drawImage(image[1],0,0,this);
bufferdImgSurface.drawImage(image[0],x,width-20,this);
g2.drawImage(bufferdImg,0,0,this);
public void mouseMoved(MouseEvent e){
this.x=e.getX();
public void mouseDragged(MouseEvent e){}
error
Unexpected Signal : EXCEPTION_FLT_STACK_CHECK (0xc0000092) occurred at PC=0xC3D2
12
Function=[Unknown.]
Library=(N/A)
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
Dynamic libraries:
0x00400000 - 0x0040C000 D:\j2sdk1.4.2_05\bin\javac.exe
0x77F50000 - 0x77FF9000 C:\WINDOWS\System32\ntdll.dll
0x77E60000 - 0x77F48000 C:\WINDOWS\system32\kernel32.dll
0x77DA0000 - 0x77E35000 C:\WINDOWS\system32\ADVAPI32.dll
0x78000000 - 0x78087000 C:\WINDOWS\system32\RPCRT4.dll
0x77C10000 - 0x77C65000 C:\WINDOWS\system32\MSVCRT.dll
0x00280000 - 0x002F3000 C:\DOCUME~1\H34PH4~1\LOCALS~1\Temp\cuv140.tmp
0x77340000 - 0x773D4000 C:\WINDOWS\system32\COMCTL32.DLL
0x77C70000 - 0x77CB1000 C:\WINDOWS\system32\GDI32.dll
0x77CC0000 - 0x77D4C000 C:\WINDOWS\system32\USER32.dll
0x71B20000 - 0x71B31000 C:\WINDOWS\system32\MPR.DLL
0x771C0000 - 0x772E6000 C:\WINDOWS\system32\OLE32.DLL
0x77130000 - 0x771BD000 C:\WINDOWS\system32\OLEAUT32.DLL
0x71AD0000 - 0x71AD9000 C:\WINDOWS\System32\WSOCK32.DLL
0x71AB0000 - 0x71AC5000 C:\WINDOWS\System32\WS2_32.dll
0x71AA0000 - 0x71AA8000 C:\WINDOWS\System32\WS2HELP.dll
0x76390000 - 0x763AC000 C:\WINDOWS\System32\IMM32.DLL
0x629C0000 - 0x629C9000 C:\WINDOWS\System32\LPK.DLL
0x72FA0000 - 0x73009000 C:\WINDOWS\System32\USP10.dll
0x08000000 - 0x08139000 D:\j2sdk1.4.2_05\jre\bin\client\jvm.dll
0x76B40000 - 0x76B6C000 C:\WINDOWS\System32\WINMM.dll
0x10000000 - 0x10007000 D:\j2sdk1.4.2_05\jre\bin\hpi.dll
0x009D0000 - 0x009DE000 D:\j2sdk1.4.2_05\jre\bin\verify.dll
0x009E0000 - 0x009F9000 D:\j2sdk1.4.2_05\jre\bin\java.dll
0x00A00000 - 0x00A0D000 D:\j2sdk1.4.2_05\jre\bin\zip.dll
0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll
0x6D510000 - 0x6D590000 C:\WINDOWS\system32\DBGHELP.dll
0x77C00000 - 0x77C08000 C:\WINDOWS\system32\VERSION.dll
0x76BF0000 - 0x76BFB000 C:\WINDOWS\System32\PSAPI.DLL
Heap at VM Abort:
Heap
def new generation total 576K, used 198K [0x10010000, 0x100b0000, 0x104f0000)
eden
Another exception has been detected while we were handling last error.
Dumping information about last error:
ERROR REPORT FILE = (N/A)
PC = 0x00c3d212
SIGNAL = -1073741678
FUNCTION NAME = (N/A)
OFFSET = 0xFFFFFFFF
LIBRARY NAME = (N/A)
Please check ERROR REPORT FILE for further information, if there is any.
Good bye.
this is all it shows i have tested this code in other machine works fineSounds like something broke with javac itself. Try using [url http://www-124.ibm.com/developerworks/oss/jikes/]jikes instead. It's much faster and makes better compile time optimizations then javac.
-
I want to have a "Poster Screen" on the last frame of a movie. I want to put a "Active" link, meaning the person could click the link on that frame and be taken to the URL in the link.
Is this possible? I have been searching around for a way to do this but I do not think I am looking in the right places.
A push in the right direction is all I need.
Thanksthanks for the help Mithrandireself...when i paste your code
into my flash 8 and run the script check it gives me errors. am i
not support to just paste that in place of what I had? it gives me
these errors:
**Error** Scene=Scene 1, layer=therm-3, frame=144:Line 3: The
class or interface 'MouseEvent' could not be loaded.
function goWhere (evt:MouseEvent):void {
**Error** Scene=Scene 1, layer=therm-3, frame=144:Line 5: The
class or interface 'URLRequest' could not be loaded.
var request:URLRequest = new URLRequest(url);
Total ActionScript Errors: 2 Reported Errors: 2
THANKS so much for the help so far. -
How do I alter this code?
This code makes an external text file scroll on the stage. I
would like to alter it so that it continues to scroll while the
mouse is down, as moving the text a tiny bit on each mouse click
seems useless to me. Thanks, jcarruth.
var external_txt:TextField = new TextField();
var externalReq:URLRequest = new URLRequest("external.txt");
var externalLoad:URLLoader = new URLLoader();
externalLoad.load(externalReq);
externalLoad.addEventListener(Event.COMPLETE, textReady);
up_btn.addEventListener(MouseEvent.CLICK, scrollUp);
down_btn.addEventListener(MouseEvent.CLICK, scrollDown);
external_txt.x = 175;
external_txt.y = 100;
external_txt.border = true;
external_txt.width = 200;
external_txt.height = 200;
external_txt.wordWrap = true;
addChild(external_txt);
function textReady(event:Event):void
external_txt.text = event.target.data;
function scrollUp(event:MouseEvent):void
external_txt.scrollV --;
function scrollDown(event:MouseEvent):void
external_txt.scrollV ++;
}I would like to see this work. I got 8 error message on
running it. Are these some custom Class package? And I do not see
Class instantiations here.
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2: The
class or interface 'URLRequest' could not be loaded.
var externalReq:URLRequest = new URLRequest("external.txt");
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 3: The
class or interface 'URLLoader' could not be loaded.
var externalLoad:URLLoader = new URLLoader();
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 14: The
class or interface 'Event' could not be loaded.
function textReady(event:Event):void
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 20: The
class or interface 'int' could not be loaded.
var t:Timer=new Timer(50,0);
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 26: The
class or interface 'MouseEvent' could not be loaded.
function scrollUp(event:MouseEvent):void {
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 30: The
class or interface 'MouseEvent' could not be loaded.
function scrollDown(event:MouseEvent):void {
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 34: The
class or interface 'MouseEvent' could not be loaded.
function stopScrollF(evt:MouseEvent){
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 37: The
class or interface 'TimerEvent' could not be loaded.
function scrollF(evt:TimerEvent){ -
Ok, another one for you guys!
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
public class Scribble extends Applet implements
MouseListener,
MouseMotionListener {
int oldX, oldY;
public void init() {
// Register the event handlers
addMouseListener(this);
addMouseMotionListener(this);
public void mouseMoved(MouseEvent evt) {
Graphics g = getGraphics();
g.drawLine(oldX, oldY, evt.getX(), evt.getY());
g.dispose();
oldX = evt.getX();
oldY = evt.getY();
public void mouseEntered(MouseEvent evt) {
public void mouseExited(MouseEvent evt) {
public void mousePressed(MouseEvent evt) {
oldX = evt.getX();
oldY = evt.getY();
public void mouseReleased(MouseEvent evt) {
public void mouseClicked(MouseEvent evt) {
Error:
Scribble.java:5: Scribble should be declared abstract; it does not define mouseD
ragged(java.awt.event.MouseEvent) in Scribble
public class Scribble extends Applet implements
^
1 errorSo? It's saying you didn't implement mouseDragged, which you agreed to do when you said it implements MouseMotionListener. So implement it.
Rather than making your applet implement the mouse interfaces, you could create inner classes that do, and then make those inner classes subclass MouseAdapter and MouseMotionAdapter.
You'd end up with smaller, tighter code. -
Error while creating a new entity row
This exception raise when i attempt to set an attribute in overwrite entity's create() method. Please show me what mistake did i take ? Thanks !!!
My error stack says:
oracle.jbo.RowCreateException: JBO-25017: Error while creating a new entity row for ManualEntry.
void oracle.jbo.server.ViewRowStorage.create(oracle.jbo.AttributeList)
ViewRowStorage.java:778
void oracle.jbo.server.ViewRowImpl.create(oracle.jbo.AttributeList)
ViewRowImpl.java:280
oracle.jbo.server.ViewRowImpl oracle.jbo.server.ViewObjectImpl.createInstance(oracle.jbo.server.ViewRowSetImpl, oracle.jbo.AttributeList)
ViewObjectImpl.java:2105
oracle.jbo.server.RowImpl oracle.jbo.server.QueryCollection.createRowWithEntities(int[], oracle.jbo.server.EntityImpl[], oracle.jbo.server.ViewRowSetImpl, oracle.jbo.AttributeList)
QueryCollection.java:771
oracle.jbo.Row oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(int[], oracle.jbo.server.EntityImpl[], oracle.jbo.AttributeList)
ViewRowSetImpl.java:1438
oracle.jbo.Row oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(oracle.jbo.AttributeList)
ViewRowSetImpl.java:1476
oracle.jbo.Row oracle.jbo.server.ViewRowSetImpl.createRow()
ViewRowSetImpl.java:1460
oracle.jbo.Row oracle.jbo.server.ViewObjectImpl.createRow()
ViewObjectImpl.java:5400
void oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt()
JUCtrlActionBinding.java:315
void oracle.jbo.uicli.controls.JUNavigationBar.doAction(int)
JUNavigationBar.java:257
void oracle.jbo.uicli.controls.JUNavigationBar.actionPerformed(java.awt.event.ActionEvent)
JUNavigationBar.java:228
void javax.swing.AbstractButton.fireActionPerformed(java.awt.event.ActionEvent)
AbstractButton.java:1450
void javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(java.awt.event.ActionEvent)
AbstractButton.java:1504
void javax.swing.DefaultButtonModel.fireActionPerformed(java.awt.event.ActionEvent)
DefaultButtonModel.java:378
void javax.swing.DefaultButtonModel.setPressed(boolean)
DefaultButtonModel.java:250
void javax.swing.plaf.basic.BasicButtonListener.mouseReleased(java.awt.event.MouseEvent)
BasicButtonListener.java:216
void java.awt.AWTEventMulticaster.mouseReleased(java.awt.event.MouseEvent)
AWTEventMulticaster.java:230
void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
Component.java:3715
void java.awt.Component.processEvent(java.awt.AWTEvent)
Component.java:3544
void java.awt.Container.processEvent(java.awt.AWTEvent)
Container.java:1164
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
Component.java:2593
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1213
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
Container.java:2451
boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
Container.java:2216
boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
Container.java:2125
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1200
void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
Window.java:922
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
EventQueue.java:339
boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
EventDispatchThread.java:131
void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
EventDispatchThread.java:98
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
EventDispatchThread.java:93
void java.awt.EventDispatchThread.run()
EventDispatchThread.java:85
## Detail 0 ##
java.lang.NullPointerException
void oracle.jbo.server.ViewDefImpl.processEntityAssociations()
ViewDefImpl.java:3268
com.sun.java.util.collections.ArrayList oracle.jbo.server.ViewAttributeDefImpl.getEntityAssociationReferences()
ViewAttributeDefImpl.java:566
void oracle.jbo.server.ViewObjectImpl.associatedReferenceEntities(oracle.jbo.server.ViewAttributeDefImpl, com.sun.java.util.collections.ArrayList)
ViewObjectImpl.java:7697
void oracle.jbo.server.ViewObjectImpl.sourceChanged(oracle.jbo.server.EntityEvent)
ViewObjectImpl.java:7199
void oracle.jbo.server.EntityCache.deliverEntityEvent(oracle.jbo.server.EntityEvent)
EntityCache.java:504
void oracle.jbo.server.EntityCache.notifyColumnChange(oracle.jbo.server.EntityImpl, int[], java.lang.Object[])
EntityCache.java:534
void oracle.jbo.server.EntityImpl.notifyAttributesChanged(int[], java.lang.Object[])
EntityImpl.java:4034
void oracle.jbo.server.EntityImpl.setAttributeValue(int, java.lang.Object)
EntityImpl.java:1984
void oracle.jbo.server.AttributeDefImpl.set(oracle.jbo.Row, java.lang.Object)
AttributeDefImpl.java:1700
void oracle.jbo.server.EntityImpl.setAttributeInternal(int, java.lang.Object)
EntityImpl.java:941
void vn.com.tivn.ticas.bc.ManualEntryImpl.setBatchlogid(oracle.jbo.domain.Number)
ManualEntryImpl.java:152
void vn.com.tivn.ticas.bc.ManualEntryImpl.create(oracle.jbo.AttributeList)
ManualEntryImpl.java:128
void oracle.jbo.server.EntityImpl.callCreate(oracle.jbo.AttributeList)
EntityImpl.java:380
void oracle.jbo.server.ViewRowStorage.create(oracle.jbo.AttributeList)
ViewRowStorage.java:765
void oracle.jbo.server.ViewRowImpl.create(oracle.jbo.AttributeList)
ViewRowImpl.java:280
oracle.jbo.server.ViewRowImpl oracle.jbo.server.ViewObjectImpl.createInstance(oracle.jbo.server.ViewRowSetImpl, oracle.jbo.AttributeList)
ViewObjectImpl.java:2105
oracle.jbo.server.RowImpl oracle.jbo.server.QueryCollection.createRowWithEntities(int[], oracle.jbo.server.EntityImpl[], oracle.jbo.server.ViewRowSetImpl, oracle.jbo.AttributeList)
QueryCollection.java:771
oracle.jbo.Row oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(int[], oracle.jbo.server.EntityImpl[], oracle.jbo.AttributeList)
ViewRowSetImpl.java:1438
oracle.jbo.Row oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(oracle.jbo.AttributeList)
ViewRowSetImpl.java:1476
oracle.jbo.Row oracle.jbo.server.ViewRowSetImpl.createRow()
ViewRowSetImpl.java:1460
oracle.jbo.Row oracle.jbo.server.ViewObjectImpl.createRow()
ViewObjectImpl.java:5400
void oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt()
JUCtrlActionBinding.java:315
void oracle.jbo.uicli.controls.JUNavigationBar.doAction(int)
JUNavigationBar.java:257
void oracle.jbo.uicli.controls.JUNavigationBar.actionPerformed(java.awt.event.ActionEvent)
JUNavigationBar.java:228
void javax.swing.AbstractButton.fireActionPerformed(java.awt.event.ActionEvent)
AbstractButton.java:1450
void javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(java.awt.event.ActionEvent)
AbstractButton.java:1504
void javax.swing.DefaultButtonModel.fireActionPerformed(java.awt.event.ActionEvent)
DefaultButtonModel.java:378
void javax.swing.DefaultButtonModel.setPressed(boolean)
DefaultButtonModel.java:250
void javax.swing.plaf.basic.BasicButtonListener.mouseReleased(java.awt.event.MouseEvent)
BasicButtonListener.java:216
void java.awt.AWTEventMulticaster.mouseReleased(java.awt.event.MouseEvent)
AWTEventMulticaster.java:230
void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
Component.java:3715
void java.awt.Component.processEvent(java.awt.AWTEvent)
Component.java:3544
void java.awt.Container.processEvent(java.awt.AWTEvent)
Container.java:1164
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
Component.java:2593
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1213
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
Container.java:2451
boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
Container.java:2216
boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
Container.java:2125
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1200
void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
Window.java:922
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
EventQueue.java:339
boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
EventDispatchThread.java:131
void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
EventDispatchThread.java:98
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
EventDispatchThread.java:93
void java.awt.EventDispatchThread.run()
EventDispatchThread.java:85It's most likely a bug.
See:
Urgent: nullpointer exception in postChanges
Sascha -
So now Im getting a new error report. I named the instance of the button in the properties panel btn_ccbil.
Here is the code I have now:
import flash.net.URLRequest;
var url:String = 'http://www.lexiefyfe.com/ccbill9001/index.htm';
btn_ccbil.addEventListener(MouseEvent.CLICK, onOrderClick);
function onOrderClick():void
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank');
} catch (e:Error) {
trace('An error occurred');
Here is the error report:
Scene=photogallery, layer=buttons, frame=1, Line 7 A type identifier is expected after the ':'.
Scene=photogallery, layer=buttons, frame=1, Line 9 The class or interface 'flash.net.URLRequest' could not be loaded.
This is the original code for the billing from ccbill I am trying to get to work with flash:
<A HREF="http://www.lexiefyfe.com/ccbill9001/index.htm"><img src="ccbutton.jpg"></A>
Is this just something that flash can't do? If so will someone please let me know. I am running in circles at this point and very frustrated... I'm new to as3 but I thought it could work.
Thank you to all for the help and consideration,
ThomasYou appear to be using AS3 code in an AS2 setting. Go into your Publish Settings and change the actionscript version to AS3 in the Flash section.
Other matters...
You do not need to import the URLRequest class while coding in the Flash IDE.
You need to put an argument in the function definition due to the listeners throwing one when it is triggered...
function onOrderClick(evt:MouseEvent):void -
I am using action script 3. I have html codes from ccbill that I am trying to make work with flash. Here is the script I am trying to use:
import flash.net.URLRequest;
var url:String = 'http://www.lexiefyfe.com/ccbill9001/index.htm';
myButton.addEventListener(MouseEvent.CLICK, onOrderClick);
function onOrderClick():void
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank');
} catch (e:Error) {
trace('An error occurred');
Here is the code from ccbill:
<A HREF="http://www.lexiefyfe.com/ccbill9001/index.htm"><img src="ccbutton.jpg"></A>
This is the error report I am getting:
Scene=photogallery, layer=buttons, frame=1, Line 1 Statement must appear within on handler
Scene=photogallery, layer=buttons, frame=1, Line 3 Statement must appear within on handler
Scene=photogallery, layer=buttons, frame=1, Line 5 Statement must appear within on handler
Scene=photogallery, layer=buttons, frame=1, Line 7 A type identifier is expected after the ':'.
Scene=photogallery, layer=buttons, frame=1, Line 9 The class or interface 'flash.net.URLRequest' could not be loaded.
Scene=photogallery, layer=buttons, frame=1, Line 7 Statement must appear within on handler
If anyone can help me with this issue I would be most grateful.
Thank you for any consideration,
ThomasYou have a mixture of things going on... AS3 code in an AS2 setting. Those are all AS2 error messages, and they are indicating you have placed the code on the buttons. To use that code, it must be placed on the timeline, and your Flash Publish Settings need to have AS3 specified instead of AS2. AS3 does not allow code to be placed on objects like AS2 does.
-
Need help non-null error: xml or onComplete?
Can someone tell me what this means?
The slideshow its referring to is a something I purchased online and is embedded into my movie.
Does it mean I need to put and onComplete function on the page thats loading this? Is it for the xml or the slideshow movie?
Or am I missing eventListener somewhere?
Error #2007: Parameter listener must be non-null.
at flash.events::EventDispatcher/addEventListener()
at slideshow_fla::TheWholeSlideshow_1/xmlLoaded()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
Thanks in advance
BarbaraThats is my question, I just have this code on the frame that I want it to play on and it plays on the first try, after that it's not loading.
I don't know what i am doing wrong or how or where to code to put the listener. I've tried so many things, obviously not the right thing!
var ss1Req:URLRequest = new URLRequest("slideshow/slideshow.swf");
var ss1loader:Loader = new Loader();
_1a.x = 10;
_1a.y = 70;
ss1loader.load(ss1Req);
_1a.addChild(ss1loader);
ss1loader.unload();
This is the buttoncode that takes user to the page
smm1_btn.addEventListener(MouseEvent.MOUSE_DOWN, slide);
function slide(event:MouseEvent):void {
if (this.vidPlayer == !null)
this.vidPlayer.stop();
SoundMixer.stopAll();
MovieClip(this.parent).gotoAndStop("photo");
This is the site :
http://www.stacykessler.com/test.html
Thanks, -
TableSorter errors when adding new data
so here is the deal:
I am using the TableSorter.java helper class with DefaultTableModel
from: http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
It works great when the data is static and I get it for the first time. however, occationally, when adding new data I get a NullPointerException error.
in use:
DefaultTableModel.addRow()
DefaultTableModel.removeRow() and
DefaultTableModel.insertRow() methods.
Error:
java.lang.ArrayIndexOutOfBoundsException: 5
at com.shared.model.TableSorter.modelIndex(TableSorter.java:294)
at com.shared.model.TableSorter.getValueAt(TableSorter.java:340)
at javax.swing.JTable.getValueAt(Unknown Source)
at javax.swing.JTable.prepareRenderer(Unknown Source)...
code problem I:
public Object getValueAt(int row, int column)
return tableModel.getValueAt(modelIndex(row), column);
}code problem II:
public int modelIndex(int viewIndex)
return getViewToModel()[viewIndex].modelIndex;
}TableSroter class:
package com.shared.model;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.util.List;
import javax.swing.*;
import javax.swing.event.TableModelEvent;
import javax.swing.event.TableModelListener;
import javax.swing.table.*;
* TableSorter is a decorator for TableModels; adding sorting
* functionality to a supplied TableModel. TableSorter does
* not store or copy the data in its TableModel; instead it maintains
* a map from the row indexes of the view to the row indexes of the
* model. As requests are made of the sorter (like getValueAt(row, col))
* they are passed to the underlying model after the row numbers
* have been translated via the internal mapping array. This way,
* the TableSorter appears to hold another copy of the table
* with the rows in a different order.
* <p/>
* TableSorter registers itself as a listener to the underlying model,
* just as the JTable itself would. Events recieved from the model
* are examined, sometimes manipulated (typically widened), and then
* passed on to the TableSorter's listeners (typically the JTable).
* If a change to the model has invalidated the order of TableSorter's
* rows, a note of this is made and the sorter will resort the
* rows the next time a value is requested.
* <p/>
* When the tableHeader property is set, either by using the
* setTableHeader() method or the two argument constructor, the
* table header may be used as a complete UI for TableSorter.
* The default renderer of the tableHeader is decorated with a renderer
* that indicates the sorting status of each column. In addition,
* a mouse listener is installed with the following behavior:
* <ul>
* <li>
* Mouse-click: Clears the sorting status of all other columns
* and advances the sorting status of that column through three
* values: {NOT_SORTED, ASCENDING, DESCENDING} (then back to
* NOT_SORTED again).
* <li>
* SHIFT-mouse-click: Clears the sorting status of all other columns
* and cycles the sorting status of the column through the same
* three values, in the opposite order: {NOT_SORTED, DESCENDING, ASCENDING}.
* <li>
* CONTROL-mouse-click and CONTROL-SHIFT-mouse-click: as above except
* that the changes to the column do not cancel the statuses of columns
* that are already sorting - giving a way to initiate a compound
* sort.
* </ul>
* <p/>
* This is a long overdue rewrite of a class of the same name that
* first appeared in the swing table demos in 1997.
* @author Philip Milne
* @author Brendon McLean
* @author Dan van Enckevort
* @author Parwinder Sekhon
* @version 2.0 02/27/04
public class TableSorter extends AbstractTableModel
protected TableModel tableModel;
public static final int DESCENDING = -1;
public static final int NOT_SORTED = 0;
public static final int ASCENDING = 1;
private static Directive EMPTY_DIRECTIVE = new Directive(-1, NOT_SORTED);
public static final Comparator COMPARABLE_COMAPRATOR = new Comparator()
public int compare(Object o1, Object o2)
return ((Comparable) o1).compareTo(o2);
public static final Comparator LEXICAL_COMPARATOR = new Comparator()
public int compare(Object o1, Object o2)
return o1.toString().compareTo(o2.toString());
private Row[] viewToModel;
private int[] modelToView;
private JTableHeader tableHeader;
private MouseListener mouseListener;
private TableModelListener tableModelListener;
private Map columnComparators = new HashMap();
private List sortingColumns = new ArrayList();
public TableSorter()
this.mouseListener = new MouseHandler();
this.tableModelListener = new TableModelHandler();
public TableSorter(TableModel tableModel)
this();
setTableModel(tableModel);
public TableSorter(TableModel tableModel, JTableHeader tableHeader)
this();
setTableHeader(tableHeader);
setTableModel(tableModel);
private void clearSortingState()
viewToModel = null;
modelToView = null;
public TableModel getTableModel()
return tableModel;
public void setTableModel(TableModel tableModel)
if (this.tableModel != null)
this.tableModel.removeTableModelListener(tableModelListener);
this.tableModel = tableModel;
if (this.tableModel != null)
this.tableModel.addTableModelListener(tableModelListener);
clearSortingState();
fireTableStructureChanged();
public JTableHeader getTableHeader()
return tableHeader;
public void setTableHeader(JTableHeader tableHeader)
if (this.tableHeader != null)
this.tableHeader.removeMouseListener(mouseListener);
TableCellRenderer defaultRenderer = this.tableHeader.getDefaultRenderer();
if (defaultRenderer instanceof SortableHeaderRenderer)
this.tableHeader.setDefaultRenderer(((SortableHeaderRenderer) defaultRenderer).tableCellRenderer);
this.tableHeader = tableHeader;
if (this.tableHeader != null)
this.tableHeader.addMouseListener(mouseListener);
this.tableHeader.setDefaultRenderer
new SortableHeaderRenderer(this.tableHeader.getDefaultRenderer())
public boolean isSorting()
return sortingColumns.size() != 0;
private Directive getDirective(int column)
for (int i = 0; i < sortingColumns.size(); i++)
Directive directive = (Directive)sortingColumns.get(i);
if (directive.column == column)
return directive;
return EMPTY_DIRECTIVE;
public int getSortingStatus(int column)
return getDirective(column).direction;
private void sortingStatusChanged()
clearSortingState();
fireTableDataChanged();
if (tableHeader != null)
tableHeader.repaint();
public void setSortingStatus(int column, int status)
Directive directive = getDirective(column);
if (directive != EMPTY_DIRECTIVE)
sortingColumns.remove(directive);
if (status != NOT_SORTED)
sortingColumns.add(new Directive(column, status));
sortingStatusChanged();
protected Icon getHeaderRendererIcon(int column, int size)
Directive directive = getDirective(column);
if (directive == EMPTY_DIRECTIVE)
return null;
return new Arrow(directive.direction == DESCENDING, size, sortingColumns.indexOf(directive));
private void cancelSorting()
sortingColumns.clear();
sortingStatusChanged();
public void setColumnComparator(Class type, Comparator comparator)
if (comparator == null)
columnComparators.remove(type);
else
columnComparators.put(type, comparator);
protected Comparator getComparator(int column)
Class columnType = tableModel.getColumnClass(column);
Comparator comparator = (Comparator) columnComparators.get(columnType);
if (comparator != null)
return comparator;
if (Comparable.class.isAssignableFrom(columnType))
return COMPARABLE_COMAPRATOR;
return LEXICAL_COMPARATOR;
private Row[] getViewToModel()
if (viewToModel == null)
int tableModelRowCount = tableModel.getRowCount();
viewToModel = new Row[tableModelRowCount];
for (int row = 0; row < tableModelRowCount; row++)
viewToModel[row] = new Row(row);
if (isSorting())
Arrays.sort(viewToModel);
return viewToModel;
public int modelIndex(int viewIndex)
return getViewToModel()[viewIndex].modelIndex;
private int[] getModelToView()
if (modelToView == null)
int n = getViewToModel().length;
modelToView = new int[n];
for (int i = 0; i < n; i++)
modelToView[modelIndex(i)] = i;
return modelToView;
// TableModel interface methods
public int getRowCount()
return (tableModel == null) ? 0 : tableModel.getRowCount();
public int getColumnCount()
return (tableModel == null) ? 0 : tableModel.getColumnCount();
public String getColumnName(int column)
return tableModel.getColumnName(column);
public Class getColumnClass(int column)
return tableModel.getColumnClass(column);
public boolean isCellEditable(int row, int column)
return tableModel.isCellEditable(modelIndex(row), column);
public Object getValueAt(int row, int column)
return tableModel.getValueAt(modelIndex(row), column);
public void setValueAt(Object aValue, int row, int column)
tableModel.setValueAt(aValue, modelIndex(row), column);
// Helper classes
private class Row implements Comparable
private int modelIndex;
public Row(int index)
this.modelIndex = index;
public int compareTo(Object o)
int row1 = modelIndex;
int row2 = ((Row) o).modelIndex;
for (Iterator it = sortingColumns.iterator(); it.hasNext();)
Directive directive = (Directive) it.next();
int column = directive.column;
Object o1 = tableModel.getValueAt(row1, column);
Object o2 = tableModel.getValueAt(row2, column);
int comparison = 0;
// Define null less than everything, except null.
if (o1 == null && o2 == null)
comparison = 0;
} else if (o1 == null)
comparison = -1;
} else if (o2 == null)
comparison = 1;
} else {
comparison = getComparator(column).compare(o1, o2);
if (comparison != 0)
return directive.direction == DESCENDING ? -comparison : comparison;
return 0;
private class TableModelHandler implements TableModelListener
public void tableChanged(TableModelEvent e)
// If we're not sorting by anything, just pass the event along.
if (!isSorting())
clearSortingState();
fireTableChanged(e);
return;
// If the table structure has changed, cancel the sorting; the
// sorting columns may have been either moved or deleted from
// the model.
if (e.getFirstRow() == TableModelEvent.HEADER_ROW)
cancelSorting();
fireTableChanged(e);
return;
// We can map a cell event through to the view without widening
// when the following conditions apply:
// a) all the changes are on one row (e.getFirstRow() == e.getLastRow()) and,
// b) all the changes are in one column (column != TableModelEvent.ALL_COLUMNS) and,
// c) we are not sorting on that column (getSortingStatus(column) == NOT_SORTED) and,
// d) a reverse lookup will not trigger a sort (modelToView != null)
// Note: INSERT and DELETE events fail this test as they have column == ALL_COLUMNS.
// The last check, for (modelToView != null) is to see if modelToView
// is already allocated. If we don't do this check; sorting can become
// a performance bottleneck for applications where cells
// change rapidly in different parts of the table. If cells
// change alternately in the sorting column and then outside of
// it this class can end up re-sorting on alternate cell updates -
// which can be a performance problem for large tables. The last
// clause avoids this problem.
int column = e.getColumn();
if (e.getFirstRow() == e.getLastRow()
&& column != TableModelEvent.ALL_COLUMNS
&& getSortingStatus(column) == NOT_SORTED
&& modelToView != null)
int viewIndex = getModelToView()[e.getFirstRow()];
fireTableChanged(new TableModelEvent(TableSorter.this,
viewIndex, viewIndex,
column, e.getType()));
return;
// Something has happened to the data that may have invalidated the row order.
clearSortingState();
fireTableDataChanged();
return;
private class MouseHandler extends MouseAdapter
public void mouseClicked(MouseEvent e)
JTableHeader h = (JTableHeader) e.getSource();
TableColumnModel columnModel = h.getColumnModel();
int viewColumn = columnModel.getColumnIndexAtX(e.getX());
int column = columnModel.getColumn(viewColumn).getModelIndex();
if (column != -1)
int status = getSortingStatus(column);
if (!e.isControlDown())
cancelSorting();
// Cycle the sorting states through {NOT_SORTED, ASCENDING, DESCENDING} or
// {NOT_SORTED, DESCENDING, ASCENDING} depending on whether shift is pressed.
status = status + (e.isShiftDown() ? -1 : 1);
status = (status + 4) % 3 - 1; // signed mod, returning {-1, 0, 1}
setSortingStatus(column, status);
private static class Arrow implements Icon
private boolean descending;
private int size;
private int priority;
public Arrow(boolean descending, int size, int priority)
this.descending = descending;
this.size = size;
this.priority = priority;
public void paintIcon(Component c, Graphics g, int x, int y)
Color color = c == null ? Color.GRAY : c.getBackground();
// In a compound sort, make each succesive triangle 20%
// smaller than the previous one.
int dx = (int)(size/2*Math.pow(0.8, priority));
int dy = descending ? dx : -dx;
// Align icon (roughly) with font baseline.
y = y + 5*size/6 + (descending ? -dy : 0);
int shift = descending ? 1 : -1;
g.translate(x, y);
// Right diagonal.
g.setColor(color.darker());
g.drawLine(dx / 2, dy, 0, 0);
g.drawLine(dx / 2, dy + shift, 0, shift);
// Left diagonal.
g.setColor(color.brighter());
g.drawLine(dx / 2, dy, dx, 0);
g.drawLine(dx / 2, dy + shift, dx, shift);
// Horizontal line.
if (descending) {
g.setColor(color.darker().darker());
} else {
g.setColor(color.brighter().brighter());
g.drawLine(dx, 0, 0, 0);
g.setColor(color);
g.translate(-x, -y);
public int getIconWidth()
return size;
public int getIconHeight()
return size;
private class SortableHeaderRenderer implements TableCellRenderer
private TableCellRenderer tableCellRenderer;
public SortableHeaderRenderer(TableCellRenderer tableCellRenderer)
this.tableCellRenderer = tableCellRenderer;
public Component getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
Component c = tableCellRenderer.getTableCellRendererComponent(table,
value, isSelected, hasFocus, row, column);
if (c instanceof JLabel) {
JLabel l = (JLabel) c;
l.setHorizontalTextPosition(JLabel.LEFT);
int modelColumn = table.convertColumnIndexToModel(column);
l.setIcon(getHeaderRendererIcon(modelColumn, l.getFont().getSize()));
return c;
private static class Directive
private int column;
private int direction;
public Directive(int column, int direction)
this.column = column;
this.direction = direction;
}any input will be appreciated.
thanks
PeterThe code you posted doesn't help us at all. Its just a duplicate of the code from the tutorial. The custom code is what you have written. For example do you update the TableModel from the Event Thread? Do you update the SortModel or the DefaultTableModel? If you actually provide your test code and somebody has already downloaded the sort classes, then maybe they will test your code against the classes. But I doubt if people will download the sort classes and create a test program just to see if they can duplicate your results (at least I know I'm not about to).
-
Error #1009 - think it has to do with a movie file
This error keeps on coming up when im trying to complete my flash website, the error seams to linked to a movie file that is interrupting something somewhere
this is the complete error message,
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at wokringonsite_fla::MainTimeline/frame3()[wokringonsite_fla.MainTimeline::frame3:16]
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at flash.display::MovieClip/nextFrame()
at wokringonsite_fla::MainTimeline/updatePreloader()[wokringonsite_fla.MainTimeline::frame1: 12]
this is the code from the begining
stop();
//Preloader
loaderInfo.addEventListener(ProgressEvent.PROGRESS, updatePreloader);
function updatePreloader(evtObj:ProgressEvent):void
//container for the progress of the site (download)
var percent:Number = Math.floor((evtObj.bytesLoaded*100)/evtObj.bytesTotal);
preloader_txt.text = percent+"%";
if (percent==100){
nextFrame();
next frame
stop();
//Animate in the home_mc from right to left, using the Tween class.
//Flash - go get code that's going to make the tween work...
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;
//content_mc animation - animate in..
var homeTween:Tween = new Tween(content_mc,"x",Regular.easeOut,content_mc.x,350,1,true);
//Move the background into place
new Tween(bkgd_mc,"x",Regular.easeOut,bkgd_mc.x,0,1,true);
//handle events for buttons...
home.addEventListener(MouseEvent.CLICK, clickSection);
about.addEventListener(MouseEvent.CLICK, clickSection);
portfolio.addEventListener(MouseEvent.CLICK, clickSection);
contact.addEventListener(MouseEvent.CLICK, clickSection);
AD5.addEventListener(MouseEvent.CLICK, clickSection);
AD6.addEventListener(MouseEvent.CLICK, clickSection);
AD7.addEventListener(MouseEvent.CLICK, clickSection);
tvc.addEventListener(MouseEvent.CLICK, clickSection);
function clickSection(evtObj:MouseEvent){
//trace shows what's happening.. in the output window
trace ("The "+evtObj.target.name+" button was clicked!")
//go to the section clicked on...
gotoAndStop(evtObj.target.name);
var aboutTween:Tween = new Tween(content_mc,"x",Regular.easeOut,content_mc.x, 0,1,true);
//Move the background into place
new Tween(bkgd_mc,"x",Regular.easeOut,bkgd_mc.x,-166,1,true); ------- this basic code is used for all windows from home to tvc ,
tvc code
var tvcTween:Tween = new Tween(content_mc,"x",Regular.easeOut,content_mc.x,-2500,1,true);
//Move the background into place
new Tween(bkgd_mc,"x",Regular.easeOut,bkgd_mc.x,-1500,1,true);
tvcTween.addEventListener(TweenEvent.MOTION_FINISH,donePlaying);
function donePlaying(e:TweenEvent):void{
trace ("done playing!");
content_mc.tvc_mc.myvideo.play();
I have absolutely no idea and right now it seams like a maze trapped in the puzzel trapped in pac man,
any help would be fantastic
cheershey man this is a screen shot from frame 3, there is nothing in frame 16 which makes me wonder
-
Data Commit throwing an error.
This is the way I commit data:
protected function btnCommit_clickHandler(event:MouseEvent):void
baa_data_svc.updt_SBJ(bAA_SBJ);
data_chngd = false;
When I try to re-open the form after a commit (shown above) I get the error:
undefined
at mx.data::DataList/http://www.adobe.com/2006/flex/mx/internal::processSequenceResult()[C:\depot\DataServices\ branches\dune_rc\frameworks\projects\data\src\mx\data\DataList.as:3043]
at mx.data::DataListRequestResponder/result()[C:\depot\DataServices\branches\dune_rc\framewo rks\projects\data\src\mx\data\DataListRequestResponder.as:153]
at mx.data::RPCDataServiceAdapter/sendResultEvent()[C:\depot\DataServices\branches\dune_rc\f rameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:1508]
at mx.data::RPCDataServiceAdapter/getItemResult()[C:\depot\DataServices\branches\dune_rc\fra meworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:1549]
at mx.collections::ItemResponder/result()[E:\dev\gumbo_beta2\frameworks\projects\framework\s rc\mx\collections\ItemResponder.as:129]
at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyResult()[E:\dev\gumbo_beta2\frameworks\pr ojects\rpc\src\mx\rpc\AsyncToken.as:239]
at mx.rpc.events::ResultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()[E:\dev\gumbo_beta2\frame works\projects\rpc\src\mx\rpc\events\ResultEvent.as:207]
at mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\gumbo_beta2\framewor ks\projects\rpc\src\mx\rpc\AbstractOperation.as:244]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\gumbo_beta2\frameworks\ projects\rpc\src\mx\rpc\AbstractInvoker.as:318]
at mx.rpc::Responder/result()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\rpc\Responde r.as:56]
at mx.rpc::AsyncRequest/acknowledge()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\rpc\ AsyncRequest.as:84]
at NetConnectionMessageResponder/resultHandler()[E:\dev\gumbo_beta2\frameworks\projects\rpc\ src\mx\messaging\channels\NetConnectionChannel.as:547]
at mx.messaging::MessageResponder/result()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx \messaging\MessageResponder.as:235]
Any idea what I'm doing wrong? The error doesn't occur if I just repeatedly open and close the form. TextInput populate normally. The error only occurs if I make a change and commit the changes to the DB. Thanks in advance.I am seeing the same error on a data service commit. Though sometimes it works, and sometimes it errors out...
-
Dear all -
I am writing with the confidence that someone will be able to assist me.
I am using the Flash Builder Data Services Wizard to access a Server that utilizes REST type calls and returns JSON objects. The server is a JETTY server and it apparantly already works and is returning JSON objects (see below for example). It is both HTTP and HTTPS enabled, and right now it has a cross-domain policy file that is wide open (insecure but its not a production server, it's internal).
The crossdomain file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-http-request-headers-from domain="*" headers="*" secure="false" />
<allow-access-from domain="*" to-ports="*" secure="false"/>
<site-control permitted-cross-domain-policies="master-only" />
</cross-domain-policy>
The crossdomain file is in the jetty server's root directory and is browseable via HTTP and HTTPS (i.e. browsing to it returns the xml)
Now before all of you say that using wizards sucks (generally) I thought I would utilize the FB Data Services Wizard as at least it would provide a template for which I could build additional code against, or replace and improve the code it produces.
With that in mind, I browse to the URL of the Jetty Server with any web browser (for example, Google Chrome, Firefox or IE) with a URL like this (the URL is a little confidential at the moment, but the structure is the same)
https://localhost:somePort/someKey/someUser/somePassword/someTask
*somePort is the SSL port like 8443
*someKey is a key to access the URL's set of services
returns a JSON object as a string in the web browser and it appears like the following:
{"result":success,"value":"whatEverTheValueShould"}
Looks like the JSON string/object is valid.
I went through the Flash Builder Data Services Wizard to set up HTTP access to this server. The information that I filled in is described below:
Do you want to use a Base URL as a prefix for all operation URLs?
YES
Base URL:
https://localhost:8443/someKey/
Name : someTask
Method : POST
Content-Type: application/x-www-form-urlencoded
URL : {someUser}/{somePassword}/someTask
Service Name: SampleRestapi
Services Package: services.SampleRestapi
datatype objects: valueObjects:
Completing the wizard, I run the Test Operation command. Remember, no authentication is needed to get a JSON string.
It returns:
InvocationTargetException: Unable to connect to the URL specified
I am thinking - okay, but the URL IS browseable (as I originally was able to browse to it, as noted above).
I continue to test the service by creating a Flex application that accepts a username and password in a form. when the form is submitted, the call to the service is invoked and an event handler returns the result. The code is below (with some minor changes to mask the actual source).
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:SampleRestapi="services.SampleRestapi.*"
minWidth="955" minHeight="600">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.rpc.events.ResultEvent;
protected function button_clickHandler(event:MouseEvent):void
isUserValidResult.token = SampleRestAPI.isUserValid(userNameTextInput.text,passwordTextInput.text);
protected function SampleRestAPI_resultHandler(event:ResultEvent):void
// TODO Auto-generated method stub
// print out the results
txtAreaResults.text = event.result.message as String;
// txtAreaResults.appendText( "headers \n" + event.headers.toString() );
]]>
</fx:Script>
<fx:Declarations>
<SampleRestapi:SampleRestAPI id="SampleRestAPI"
fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
result="SampleRestAPI_resultHandler(event)"
showBusyCursor="true"/>
<s:CallResponder id="isUserValidResult"/>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:Form defaultButton="{button}">
<s:FormItem label="UserName">
<s:TextInput id="userNameTextInput" text="q"/>
</s:FormItem>
<s:FormItem label="Password">
<s:TextInput id="passwordTextInput" text="q"/>
</s:FormItem>
<s:Button id="button" label="IsUserValid" click="button_clickHandler(event)"/>
<s:FormItem label="results:">
<s:TextArea id="txtAreaResults"/>
</s:FormItem>
</s:Form>
</s:Application>
It's a simple application to be sure. When I run it , I get the following returned in the text area field txtAreaResults:
An Internal Error Occured.
Which is equivalent to the following JSON string being returned:
{"success":false,"value":"An Internal Error Occured"}
It appears that the call is being made, and that a JSON object is being returned... however it does not return the expected results?
Again the URL constructed is the same:
https://www.somedomain.com:somePort/someKey/someUser/somePassword/someTask
So I am wondering what the issue could be:
1) is it the fact that I am browsing the test application from an insecure (http://) web page containing the Flex application and it is accessing a service through https:// ?
2) is the JSON string structurally correct? (it appears so).
3) There is a certificate enabled for HTTPs. it does not match the test site I am using ( the cert is for www.somedomain.com but I am using localhost for testing). Would that be an issue? Google Chrome and IE just asks me to proceed anyway, which I say "yes".
Any help or assistance on this would be appreciated.
thanks
EdwardHello everyone -
Since I last posted an interesting update happened. I tested my Flex application again, it is calling a Jetty Server that returns a JSON object, in different BROWSERS. I disabled HTTPS for now, and the crossdomain.xml policy file is wide open for testing (ie. allowing every request to return data). So the app accessing the data using HTTP only. Browsers - IE, Opera, Firefox and Chrome. Each browser contained the SAME application, revision of the Flash Player (10.3.183.10 debugger for firefox, chrome, opera, safari PC; 11.0.1.129 consumer version in IE9,) take a look at the screen shot (safari not shown although the result was the same as IE and chrome)
Note that Opera and Firefox returned successful values (i.e. successful JSON objects) using the same code generated from the Data Services Wizard. Chrome, IE and, Safari failed with an Internal error. So I am left wondering - WHY? Is it something with the Flash Player? the Browsers? the Flex SDK? Any thoughts are appreciated. Again, the code is found in the original thread above.
Maybe you are looking for
-
This "Untrusted Connection" is coming up when I try to access my on-line banking site which I use all the time. I also get a OpenDNS message about Phishing and I'm not sure why or what that is. The same thing is happening on my laptop which has Windo
-
HI FOLKS, i want to do datamigration using lsmw with directinput method i want to upload the data for business address services/regionla structure the correspoind sap std program is RSADRLSM02. can anyone let me know how to proceed from step 2 to 5
-
My subscription has expired and I want to cancel
My subscription has expired and I want to cancel it, each day I get an email from Adobe informing me my credit card information has been declined.. How do I cancel and remove the old credit card information?
-
Oracle BI Publisher menu option is missing in Word
The Oracle BI Publisher menu option was there last night when I left the office. Came in today and started working on a report and now the menu option is gone. I reinstall the desktop software but that did not help. Any ideas?
-
App will not install on iPhone 4S
Hi, I try to install an app from App store, and it only shows a big cloud, as if it's in iCloud. However, when I push the iCloud button to download it, nothing happens. I have iOs 8.1.2 installed.