Changing JPG in SWF through ASP
I have a page with three frames. the left frame with images1
thumbnails, the right with images2 thumbnails. Both have Hyperlink
in order to pass that to SWF file in middle frame. To be more
precise - I have two ASP pages displayed in left right frames of my
web page. I want the SWF file (which is to be loaded in middle
frame on click events of these ASP pages) to receive paramenters
from these files and change the image in this SWF file. e. g.
middle frame test.swf files should load with image1.jpg when
clicked on image1.jpg thumbnail in left/ right frame and when
clicked on imageN.jpg thumbnails, the test.swf file should be
loaded in middle frame with imageN.jpg
I've been struggling with LoadVariables, GetURL, LoadVars
etc. etc. since last weak. please help me out.
thanks "motion maker", your reply gave me the basic idea to
sort out my problem. I adopted the same while working with
ASP/Flash.
Thanks.
Now i have more severe issue... that is ...
I have one movieClip "m1" with a "j1.JPG" image in it and
another moveClip "m2" with another (Smaller than j1.jpg) "j2.jpg"
image in it.
The users on client ends are able to impose this m2 (j2.jpg)
on m1 (j1.jpg) using startDrag and stopDrag functions.
I want that the this imposed image (result of j1.jpg +
j2.jpg) could be uploaded by these internet clients to my server so
that I can take printout of this new image and do further work on
it.
em...em...em...mmmmm.... I guess u understood me.... if not
please leave a msg.... so that i could explain it more
specifically.
regards and thanks
Similar Messages
-
Need help with gallery showing .jpg AND .swf
Hi all,
I have an image gallery that loads images and swf-files from an XML-file. The .jpg's load and display just fine, but the .swf files won't show. The data is loaded though. Any help is greatly appreciated!
Thanks so much in advance,
Dirk
My XML file looks like this:
<?xml version="1.0" encoding="UTF-8" ?>
- <slideshow>
<image src="photo1.jpg" time="1" title="test" desc="test" artist="sabre" link="" target="_self" />
<image src="photo2.jpg" time="3" title="test2" desc="test2desc" artist="sabre" link="" target="_self" />
<image src="flash1.swf" time="2" title="test3" desc="test3desc" artist="sabre" link="" target="_self" />
</slideshow>
And the AS3:
// import tweener
import caurina.transitions.Tweener;
// delay between slides
const TIMER_DELAY:int = 5000;
// fade time between slides
const FADE_TIME:Number = 1;
// flag for knowing if slideshow is playing
var bolPlaying:Boolean = true;
// reference to the current slider container
var currentContainer:Sprite;
// index of the current slide
var intCurrentSlide:int = -1;
// total slides
var intSlideCount:int;
// timer for switching slides
var slideTimer:Timer;
// slides holder
var sprContainer1:Sprite;
var sprContainer2:Sprite;
// slides loader
var slideLoader:Loader;
// current slide link
var strLink:String = "";
// current slide link target
var strTarget:String = "";
// url to slideshow xml
var strXMLPath:String = "xml.xml";
// slideshow xml loader
var xmlLoader:URLLoader;
// slideshow xml
var xmlSlideshow:XML;
function initSlideshow():void {
// hide buttons, labels and link
mcInfo.visible = false;
btnLink.visible = false;
var request:URLRequest = new URLRequest (strXMLPath);
request.method = URLRequestMethod.POST;
var variables:URLVariables = new URLVariables();
variables.memberID = root.loaderInfo.parameters.memberID;
request.data = variables;
var loader:URLLoader = new URLLoader (request);
loader.addEventListener(Event.COMPLETE, onXMLLoadComplete);
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.load(request);
// create new timer with delay from constant
slideTimer = new Timer(TIMER_DELAY);
// add event listener for timer event
slideTimer.addEventListener(TimerEvent.TIMER, nextSlide);
// create 2 container sprite which will hold the slides and
// add them to the masked movieclip
sprContainer1 = new Sprite();
sprContainer2 = new Sprite();
mcSlideHolder.addChild(sprContainer1);
mcSlideHolder.addChild(sprContainer2);
// keep a reference of the container which is currently
// in the front
currentContainer = sprContainer2;
// add event listeners for buttons
btnLink.addEventListener(MouseEvent.CLICK, goToWebsite);
btnLink.addEventListener(MouseEvent.ROLL_OVER, showDescription);
btnLink.addEventListener(MouseEvent.ROLL_OUT, hideDescription);
mcInfo.btnPlay.addEventListener(MouseEvent.CLICK, togglePause);
mcInfo.btnPause.addEventListener(MouseEvent.CLICK, togglePause);
mcInfo.btnNext.addEventListener(MouseEvent.CLICK, nextSlide);
mcInfo.btnPrevious.addEventListener(MouseEvent.CLICK, previousSlide);
// hide play button
mcInfo.btnPlay.visible = false;
function onXMLLoadComplete(e:Event):void {
// show buttons, labels and link
mcInfo.visible = true;
btnLink.visible = true;
// create new xml with the received data
xmlSlideshow = new XML(e.target.data);
var unesc_xmlSlideshow:XML = new XML(unescape(xmlSlideshow));
// get total slide count
intSlideCount = unesc_xmlSlideshow..image.length();
// switch the first slide without a delay
switchSlide(0);
function fadeSlideIn(e:Event):void {
var unesc_xmlSlideshow:XML = new XML(unescape(xmlSlideshow));
// add loaded slide from slide loader to the
// current container
addSlideContent();
// clear preloader text
mcInfo.lbl_loading.text = "";
// check if the slideshow is currently playing
// if so, show time to the next slide. If not, show
// a status message
if(bolPlaying) {
mcInfo.lbl_loading.text = "Next slide in " + unesc_xmlSlideshow..image[intCurrentSlide].@time + " sec.";
} else {
mcInfo.lbl_loading.text = "Slideshow paused";
// fade the current container in and start the slide timer
// when the tween is finished
Tweener.addTween(currentContainer, {alpha:1, time:FADE_TIME, onComplete:onSlideFadeIn});
function onSlideFadeIn():void {
// check, if the slideshow is currently playing
// if so, start the timer again
if(bolPlaying && !slideTimer.running)
slideTimer.start();
function togglePause(e:MouseEvent):void {
var unesc_xmlSlideshow:XML = new XML(unescape(xmlSlideshow));
// check if the slideshow is currently playing
if(bolPlaying) {
// show play button
mcInfo.btnPlay.visible = true;
mcInfo.btnPause.visible = false;
// set playing flag to false
bolPlaying = false;
// set status message
mcInfo.lbl_loading.text = "Slideshow paused";
// stop the timer
slideTimer.stop();
} else {
// show pause button
mcInfo.btnPlay.visible = false;
mcInfo.btnPause.visible = true;
// set playing flag to true
bolPlaying = true;
// show time to next slide
mcInfo.lbl_loading.text = "Next slide in " + unesc_xmlSlideshow..image[intCurrentSlide].@time + " sec.";
// reset and start timer
slideTimer.reset();
slideTimer.start();
function switchSlide(intSlide:int):void {
// check if the last slide is still fading in
if(!Tweener.isTweening(currentContainer)) {
// check, if the timer is running (needed for the
// very first switch of the slide)
if(slideTimer.running)
slideTimer.stop();
// change slide index
intCurrentSlide = intSlide;
// check which container is currently in the front and
// assign currentContainer to the one that's in the back with
// the old slide
if(currentContainer == sprContainer2)
currentContainer = sprContainer1;
else
currentContainer = sprContainer2;
// hide the old slide
currentContainer.alpha = 0;
// bring the old slide to the front
mcSlideHolder.swapChildren(sprContainer2, sprContainer1);
// delete loaded content
clearLoader();
// create a new loader for the slide
slideLoader = new Loader();
// add event listener when slide is loaded
slideLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, fadeSlideIn);
// add event listener for the progress
slideLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, showProgress);
var unesc_xmlSlideshow:XML = new XML(unescape(xmlSlideshow));
// load the next slide, seems to f*ck up here...
slideLoader.load(new URLRequest(unesc_xmlSlideshow..image[intCurrentSlide].@src));
// show description of the next slide
mcInfo.lbl_description.text = unesc_xmlSlideshow..image[intCurrentSlide].@title;
// show artist's name of the next slide
mcInfo.lbl_artist.text = unesc_xmlSlideshow..image[intCurrentSlide].@artist;
// set link and link target variable of the slide
strLink = unesc_xmlSlideshow..image[intCurrentSlide].@link;
strTarget = unesc_xmlSlideshow..image[intCurrentSlide].@target;
mcInfo.mcDescription.lbl_description.htmlText = unesc_xmlSlideshow..image[intCurrentSlide].@desc;
// show current slide and total slides
//mcInfo.lbl_count.text = (intCurrentSlide + 1) + " / " + intSlideCount + " Slides";
mcInfo.lbl_count.text = " Slide " + (intCurrentSlide + 1) + " / " + intSlideCount;
function showProgress(e:ProgressEvent):void {
// show percentage of the bytes loaded from the current slide
mcInfo.lbl_loading.text = "Loading..." + Math.ceil(e.bytesLoaded * 100 / e.bytesTotal) + "%";
function goToWebsite(e:MouseEvent):void {
// check if the strLink is not empty and open the link in the
// defined target window
if(strLink != "" && strLink != null) {
navigateToURL(new URLRequest(strLink), strTarget);
function nextSlide(e:Event = null):void {
// check, if there are any slides left, if so, increment slide
// index
if(intCurrentSlide + 1 < intSlideCount)
switchSlide(intCurrentSlide + 1);
// if not, start slideshow from beginning
else
switchSlide(0);
function previousSlide(e:Event = null):void {
// check, if there are any slides left, if so, decrement slide
// index
if(intCurrentSlide - 1 >= 0)
switchSlide(intCurrentSlide - 1);
// if not, start slideshow from the last slide
else
switchSlide(intSlideCount - 1);
function showDescription(e:MouseEvent):void {
// remove tweens
Tweener.removeTweens(mcInfo.mcDescription);
// fade in the description
Tweener.addTween(mcInfo.mcDescription, {alpha:1, time:0.5, y: -1});
function hideDescription(e:MouseEvent):void {
// remove tweens
Tweener.removeTweens(mcInfo.mcDescription);
// fade out the description
Tweener.addTween(mcInfo.mcDescription, {alpha:0, alpha:1, time:0.5, y: 30});
function clearLoader():void {
try {
// get loader info object
var li:LoaderInfo = slideLoader.contentLoaderInfo;
// check if content is bitmap and delete it
if(li.childAllowsParent && li.content is Bitmap){
(li.content as Bitmap).bitmapData.dispose();
} catch(e:*) {}
function addSlideContent():void {
// empty current slide and delete previous bitmap
while(currentContainer.numChildren){Bitmap(currentContainer.getChildAt(0)).bitmapData.disp ose(); currentContainer.removeChildAt(0);}
// create a new bitmap with the slider content, clone it and add it to the slider container
var bitMp:Bitmap = new Bitmap(Bitmap(slideLoader.contentLoaderInfo.content).bitmapData.clone());
currentContainer.addChild(bitMp);
// init slideshow
initSlideshow();I'm sorry, you're right! Didn't intend to be lazy...
This line loads the image in the loader 'slideLoader'. This seems to work fine with image files (.jpg), but .swf files are ignored. Is it possible to load both .jpg AND .swf files in a loader, or do I have to use some other method for this?
slideLoader.load(new URLRequest(unesc_xmlSlideshow..image[intCurrentSlide].@src));
Thanks again,
Dirk -
Inserting swfs in ASP include files, CS4?
I'm having a problem inserting SWFs into ASP include files in CS4 and am wondering if there's a solution other than going back to CS3.
I've been adding pages to this site on a daily basis and at some point a few years ago we needed to start using ASP includes. The C-wrapper is in the ASP file and the content is in the included file.
Unfortunately, the way CS4 insists on adding SWFs leads to broken pages. The error in Firefox is:
Active Server Pages error 'ASP 0139'
Nested Object
/MySite/MyFolder/MyTopic/include/includedFile.htm, line 93
An object tag cannot be placed inside another object tag.
So, MyFile.ASP uses include/includeFile.htm. The SWF is inserted into includeFile.htm. DWCS4 uses this code:
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="510" height="384">
<param name="movie" value="/MySite/MyFolder/MyTopic/images/oneOfMany.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="9.0.45.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="/Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="/MySite/MyFolder/MyTopic/images/oneOfMany.swf" width="510" height="384">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="9.0.45.0" />
<param name="expressinstall" value="/Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
I understand the problem with nested objects. I think what I'd really like is to keep CS4 but go back to the method CS3 was using to insert SWF files. This current method is especially difficult because when I change it and later reopen the file DW wants to "correct" it.
Any helpful hints would be appreciated.
Rob MackOkay, my solution was to go find the old CS3 code and make a snippet out of it. This way I always have a piece of code that works -sort of- and at least it stays consistant. It's a little more work now but if the old CS3 code for a swf is present then CS4 won't complain.
It seems to me that hard coding this into the CS4 product makes it kind of inflexible.
Here is the CS3 code. It works in a file that will later be included in an ASP file. The CS4 code quoted previously doesn't work.
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','510','height','384','src','/MySite/MyFolder/MyTopic/images/oneOfMany','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','/MySite/MyFolder/MyTopic/images/oneOfMany' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="510" height="384">
<param name="movie" value="/MySite/MyFolder/MyTopic/images/oneOfMany.swf" />
<param name="quality" value="high" />
<embed src="/MySite/MyFolder/MyTopic/images/oneOfMany.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="510" height="384"></embed>
</object>
</noscript>
Rob Mack -
How can I change the insert SWF File, I need to add a few things and make it better?
How can I change the insert SWF File, I need to add a few things and make it better? Is there an option inside of the dreamweaver menu that I am not looking at. It would make it easier on me if I changed some things around and didn't have to do it all myself each time I used it. Just incase you was needing to remember what swf flash was, It is not a swf video either.
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="480">
<param name="movie" value="Sonic Kaboom.swf">
<param name="quality" value="high">
<param name="wmode" value="opaque">
<param name="swfversion" value="9.0.115.0">
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="../Scripts/expressInstall.swf">
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="Sonic Kaboom.swf" width="640" height="480">
<!--<![endif]-->
<param name="quality" value="high">
<param name="wmode" value="opaque">
<param name="swfversion" value="9.0.115.0">
<param name="expressinstall" value="../Scripts/expressInstall.swf">
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>If I understand correctly, Sonic Kaboom.swf needs to be edited in a separate Flash authoring program and then reinserted into your HTML document.
As Murray said, Flash is dead. Nobody uses it anymore. We use HTML5, CSS3 and JavaScript animations which have universal support from Smartphones, Tablets and other web devices that can't support Flash. Look at Edge Animate.
HTML animation | Download free Adobe Edge Animate CC trial
Nancy O. -
Change the image resolution through iPhoto
Does anyone know how to change the image resolution through iPhoto? I know it can be done in other image editing software, but I have yet to find it as an option in iPhoto.
Hi Rachel,
There is no option within iPhoto.
Lori -
My iPhone has the correct Apple ID for everything BUT iCloud. How do I change that. Going through Settings shows the incorrect ID but it does not allow change.
Settings > iCloud > delete account
You want to keep all content on your iPhone
Resign back in -
Can I change the fisheye look through premiere pro, from a GoPro camera?
Can I change the fisheye look through premiere pro, from a GoPro camera?
That depends, at least in part, on which platform you're. [That and the exact version of Premiere Pro you have are two data points that you should always include...]
On Windows, Premiere has an effect called Lens Distortion. I'm not sure what your options are on Mac. If someone else doesn't come along with suggestions for Mac, then Googling "'Premiere Pro" mac fisheye GoPro" yields some promising hits. -
I received my new Verizon Edge bill in the mail and it is $80 higher than my old plan. I have been so unhappy with this change over. Went through hell getting our second phone activated because of a weird computer glitch and when we asked if we would receive any consideration for the time, travel, and money we put into getting the phones the way they were supposed to be, we were told to wait until the bill came and then they could make adjustments. Now I have the bill and have no idea "who" the we would be that could make adjustments. To top it off, the only way I know my account will get any attention is to post this in chat. I am so disappointed and will be counting the months until our phones are paid off and we can change companies.
Call 800-922-0204
I just purchased a new device using Verizon Edge. Why does my bill look higher than normal?
There’s two reasons why your first bill after signing up for Edge might be higher than normal:
Prorate Charges – If you upgraded an existing line and did a price plan change, you may have price plan charges and credits that went into effect the day you upgraded.
Sales Tax – Most states require sales tax on the full retail price paid by the customer, which in most instances will be charged at the time of the first invoice.
Note: Customers who purchased devices in AL, AZ, CO, IL, NM, ND or SD will be billed taxes and surcharges monthly as payments are made.
Your bill will normally include:
Your last Edge installment payment
The next Edge installment charge
If you are on a MORE Everything Plan, a monthly access discount for each qualifying line.
The details of Edge installments and discounts can be viewed at the line level portion of your bill under Monthly Charges and Equipment Charges, or in My Verizon, My Bill then Charges By Line. -
Can we change table into XML through OWB
Hi everyone,
Is it possible to change table into XML through OWB?
Can anybody help me.
just send me the steps to do
Thanks in advance
RachitHello, Rachit
As far as I understand our question you need to export data from the table into XML file.
I dont think you have direct operator within OWB (at least for ver. 9.2.0.4). But anyway, you could write PLSQL procedure using DBMS_XMLQUERY to perform XML generation and transform it with your stylesheet.
Unfortunately, this package uses DOM to work with XML, so could have a serious memory consumption while trying to export large tables this way. -
Referencing an EJB through ASP Pages
How can I call an EJB through ASP.
I think Weblogic supports this by wrapping the Java Class into a COM Object,
but I am not certain.
I also know that Sun has the Java CAS COM Bridge, but someone mentioned that
it doesnt work in WL.
Thanks
Alex PelaezHi Daniel,
The Oracle9iAS Migration Kit for ASP will allow you to deploy your existing ASP application to Oracle9iAS.
Once deployed to Oracle9iAS the migrated application is a Java servlet application. Therefore you could deploy that to your Portal like any other J2EE application.
The Oracle9iAS Migration Kit for ASP is free and officially supported by Oracle Support.
You can download the product and find out more information here: http://otn.oracle.com/tech/migration/asp/content.html
Regards,
Blair Layton
Senior Product Manager
Migration Technology Group
Oracle Corporation -
Call webservices through asp do net page
Anyone got an example of ASP.NET that will call a webservices configure for Oracle Weblogic 12c
I can install the web services on weblogic now need to test through a web page before handing off to the developers.
Can anyone help provide an example how to run the webservices through ASP.NET page?
CheersI believe you are at the wrong forum. However as far as I know like in Jdeveloper ASP has webservice proxy class so you can show wsdl and this will be your starting point.
-
How I break then insert mod and change to query mod through coding
Hi master
Sir how I break then insert mod and change to query mod through coding
Please give me idea
Aamirwhat do you mean with query-mode? QUERY-mode or ENTER-QUERY-mode ?
QUERY-mode is after you fetch successfully data from the database
ENTER-QUERY-mode is the mode, when you insert your selection-criteria into the record -
Can i change the database connections through MAXL Scripts?
Hi,
just want to know whether i can change the database connections through MAXL Scripts. i am using essbase 9.3.1.Hi John,
I have built my rulefile by connecting to a database & now i want to change the database connections. I know i can change the database connections through frontend. ( File--> open file). I want to know whether i can change the database connections by writing any MAXL Scripts. -
Help! Service down when connecting through ASP!
I have oracle 8.1.7 on windows 2000. It runs properly for over 3 years, but I never visit it through ASP. When I tried using ASP to visit oracle, the oracle sevices downd immediately, so I have to restart the service and oracle instance as well.
I have tried many times, and every time I got the same result. I have tried oracle OLEDB and ODBC , both the same. So I just can visit oracle directly and can not visit oracle indirectly through web.
I don't know why. Any one can help me?I have oracle 8.1.7 on windows 2000. It runs properly for over 3 years, but I never visit it through ASP. When I tried using ASP to visit oracle, the oracle sevices downd immediately, so I have to restart the service and oracle instance as well.
I have tried many times, and every time I got the same result. I have tried oracle OLEDB and ODBC , both the same. So I just can visit oracle directly and can not visit oracle indirectly through web.
I don't know why. Any one can help me? -
How can i input japanese through asp??
i can input english and chinese through asp into database, but when i input japanese into database, the record in database become "???", why?
What's you db character set ? What's you NLS_LANG setting ? What are you using as the interface driver ODBC , OLEDB ?
Maybe you are looking for
-
Open and Close Popup With Javascript
Using Apex 3.2 I have probably done this loads of times in my old job, but do not have access to the code and today I just can't get it to work properly. I have opened a pop up window with javascript Now I need to close it and refresh the calling pag
-
How to find out if a panel contains a specific component
I am in a situation where i need to know whether a panel contains a specific component or not, like is there a specific method for that. To clarify, example : Suppose i have a panel JPanel p1; p1 = new JPanel(); JLabel label = new JLabel("LABEL"); p1
-
How to find supported versions of IE
Can someone please tell me how to find which versions of Internet Explorer are supported by which versions of Interactive Reporting. I've been banging my head against the wall trying to find the documentation that will give me that information. I'm n
-
I am making messenger using jms Can anyone tell me **if createQueue() or createTemporaryQueue() should be used for queue creation. **if createTemporaryQueue() is used,i think offline messages can't be sent **i am unable to create the queue,plz tell e
-
Why is the shuffle feature omit songs on both of my Nano's
Both of my nano's have about 1900 songs on them, but when I choose "shuffle songs" and play all of my music or even a large playlist several songs are ommitted. For example, if I select "shuffle songs" and play "all" my nano displays "1 of 1450"; whe